[CDRIVER-2281] Travis build broken Created: 13/Sep/17  Updated: 28/Oct/23  Resolved: 14/Sep/17

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 1.9.0

Type: Bug Priority: Major - P3
Reporter: A. Jesse Jiryu Davis Assignee: Hannes Magnusson
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

First Travis failure on master:

https://travis-ci.org/mongodb/mongo-c-driver/builds/274862953

Began failing circa this commit:

https://github.com/mongodb/mongo-c-driver/commit/8f21723ca96c94aab5e131ec8c7ee94c9c501591



 Comments   
Comment by Ramon Fernandez Marina [ 14/Sep/17 ]

Author:

{'username': u'bjori', 'name': u'Hannes Magnusson', 'email': u'bjori@php.net'}

Message:Merge branch 'CDRIVER-2281-travis-broken'

Comment by Ramon Fernandez Marina [ 14/Sep/17 ]

Author:

{'username': u'bjori', 'name': u'Hannes Magnusson', 'email': u'bjori@php.net'}

Message:CDRIVER-2281 Ensure we have sd before accessing it
Branch:master
https://github.com/mongodb/mongo-c-driver/commit/154ca5b4e2fe279a36f748fbf42d75898fbdf52b

Comment by Ramon Fernandez Marina [ 14/Sep/17 ]

Author:

{'username': u'bjori', 'name': u'Hannes Magnusson', 'email': u'bjori@php.net'}

Message:CDRIVER-2281 Build on osx too
Branch:master
https://github.com/mongodb/mongo-c-driver/commit/a75aaa1b47565e82de32f3ea0d4fa506da0e0da1

Comment by Ramon Fernandez Marina [ 14/Sep/17 ]

Author:

{'username': u'bjori', 'name': u'Hannes Magnusson', 'email': u'bjori@php.net'}

Message:CDRIVER-2281 Improve travis debugging
Branch:master
https://github.com/mongodb/mongo-c-driver/commit/2fa99dbaed81ebc76413fa79a6b1957caea20901

Comment by Hannes Magnusson [ 13/Sep/17 ]

/Client/null_error_pointer/single

Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00000000004c4189 in mongoc_cluster_fetch_stream_single (
    cluster=0x1444a48, server_id=1, reconnect_ok=true, error=0x2ba301e7f800)
    at src/mongoc/mongoc-cluster.c:1699
1699       if (sd->type == MONGOC_SERVER_UNKNOWN) {
 
(gdb) #0  0x00000000004c4189 in mongoc_cluster_fetch_stream_single (
    cluster=0x1444a48, server_id=1, reconnect_ok=true, error=0x2ba301e7f800)
    at src/mongoc/mongoc-cluster.c:1699
        topology = 0x142f230
        sd = 0x0
        stream = 0x2ba320002df0
        scanner_node = 0x14444b0
        expire_at = 171032527
        __func__ = "mongoc_cluster_fetch_stream_single"
 
#1  0x00000000004c3cf6 in _mongoc_cluster_stream_for_server (
    cluster=0x1444a48, server_id=1, reconnect_ok=true, error=0x0)
    at src/mongoc/mongoc-cluster.c:1552
        topology = 0x142f230
        server_stream = 0xd2b28e6
        err_local = {domain = 0, code = 0,
          message = '\000' <repeats 503 times>}
        err_ptr = 0x2ba301e7f800
 
#2  0x00000000004c478b in _mongoc_cluster_stream_for_optype (
    cluster=0x1444a48, optype=MONGOC_SS_READ, read_prefs=0x0, error=0x0)
    at src/mongoc/mongoc-cluster.c:1932
        server_stream = 0x2ba301e7fc80
        server_id = 1
        topology = 0x142f230
        __func__ = "_mongoc_cluster_stream_for_optype"
 
#3  0x00000000004c47c2 in mongoc_cluster_stream_for_reads (cluster=0x1444a48,
    read_prefs=0x0, error=0x0) at src/mongoc/mongoc-cluster.c:1962
No locals.
 
#4  0x00000000004bd8e1 in mongoc_client_command_simple (client=0x1444a40,
    db_name=0x5163c0 "test", command=0x1442630, read_prefs=0x0, reply=0x0,
    error=0x0) at src/mongoc/mongoc-client.c:1527
        cluster = 0x1444a48
        server_stream = 0x0
        parts = {assembled = {db_name = 0x5163c0 "test",
            query_flags = MONGOC_QUERY_NONE, command = 0x0,
            command_name = 0x0, payload = 0x0, payload_size = 0,
            payload_identifier = 0x0,
            server_stream = 0x2ba2fe7a1bfd <sched_getcpu+45>,
            operation_id = 1}, user_query_flags = MONGOC_QUERY_NONE,
          body = 0x1442630, extra = {flags = 3, len = 5,
            padding = "\005\000\000\000\000+\000\000 \374\347\001\243+\000\000\240\324C\001\000\000\000\000\240\324C\001\000\000\000\000H\322n\376\242+\000\000 \374\347\001\243+\000\000\240\324C\001\000\000\000\000\240\324C\001\000\000\000\000`\374\347\001\243+\000\000`\374\347\001\243+\000\000\240\324C\001\000\000\000\000\240\324C\001\000\000\000\000H\322n\376\242+\000\000`\374\347\001\243+\000\000\240\324C\001\000\000\000"}, read_prefs = 0x0, assembled_body = {flags = 3,
            len = 5,
            padding = "\005\000\000\000\000\000\000\000\361\002\030\376\\\324\377\377\002", '\000' <repeats 15 times>, "\060\000\000\000\000\000\000\000\020\375\347\001\243+\000\000\000\000\000\000\000\000\000\000\324+\000 [", '\000' <repeats 19 times>, "\210\000\000\000\000\000\000\000\241\002\030\376\\\324\377\377\200\000\000\000\000\000\000\000\002\000\000\000\000\000\000\000\200\000\000\000\000\000\000"}, is_write_command = false, session = 0x0}
        ret = false
        __func__ = "mongoc_client_command_simple"
 
#5  0x000000000040ab29 in background_mongoc_client_command_simple (
    data=0x1442750) at tests/mock_server/future-functions.c:60
        future = 0x1442750
        return_value = {type = future_value_bool_type, {bool_value = 104,
            char_ptr_value = 0x2ba2fea71868 <__elf_set___libc_thread_subfreeres_element_res_thread_freeres__> "\340ȁ\376\242+",
            char_ptr_ptr_value = 0x2ba2fea71868 <__elf_set___libc_thread_subfreeres_element_res_thread_freeres__>, int_value = -22603672,
            int64_t_value = 47979057059944, size_t_value = 47979057059944,
            ssize_t_value = 47979057059944, uint32_t_value = 4272363624,
            const_char_ptr_value = 0x2ba2fea71868 <__elf_set___libc_thread_subfreeres_element_res_thread_freeres__> "\340ȁ\376\242+",
            bson_error_ptr_value = 0x2ba2fea71868 <__elf_set___libc_thread_subfreeres_element_res_thread_freeres__>,
            bson_ptr_value = 0x2ba2fea71868 <__elf_set___libc_thread_subfreeres_element_res_thread_freeres__>,
            const_bson_ptr_value = 0x2ba2fea71868 <__elf_set___libc_thread_subfreeres_element_res_thread_freeres__>,
            const_bson_ptr_ptr_value = 0x2ba2fea71868 <__elf_set___libc_thread_subfreeres_element_res_thread_freeres__>,
            mongoc_bulk_operation_ptr_value = 0x2ba2fea71868 <__elf_set___libc_thread_subfreeres_element_res_thread_freeres__>,
            mongoc_client_ptr_value = 0x2ba2fea71868 <__elf_set___libc_thread_subfreeres_element_res_thread_freeres__>,
            mongoc_collection_ptr_value = 0x2ba2fea71868 <__elf_set___libc_thread_subfreeres_element_res_thread_freeres__>,
            mongoc_cursor_ptr_value = 0x2ba2fea71868 <__elf_set___libc_thread_subfreeres_element_res_thread_freeres__>,
            mongoc_database_ptr_value = 0x2ba2fea71868 <__elf_set___libc_thread_subfreeres_element_res_thread_freeres__>,
            mongoc_gridfs_file_ptr_value = 0x2ba2fea71868 <__elf_set___libc_thread_subfreeres_element_res_thread_freeres__>,
            mongoc_gridfs_ptr_value = 0x2ba2fea71868 <__elf_set___libc_thread_subfreeres_element_res_thread_freeres__>,
            mongoc_insert_flags_t_value = (unknown: 4272363624),
            mongoc_iovec_ptr_value = 0x2ba2fea71868 <__elf_set___libc_thread_subfreeres_element_res_thread_freeres__>,
            mongoc_query_flags_t_value = (MONGOC_QUERY_OPLOG_REPLAY | MONGOC_QUERY_AWAIT_DATA | MONGOC_QUERY_EXHAUST | unknown: 4272363520),
            const_mongoc_index_opt_t_value = 0x2ba2fea71868 <__elf_set___libc_thread_subfreeres_element_res_thread_freeres__>,
            mongoc_server_description_ptr_value = 0x2ba2fea71868 <__elf_set___libc_thread_subfreeres_element_res_thread_freeres__>,
            mongoc_ss_optype_t_value = (unknown: 4272363624),
            mongoc_topology_ptr_value = 0x2ba2fea71868 <__elf_set___libc_thread_subfreeres_element_res_thread_freeres__>,
            mongoc_write_concern_ptr_value = 0x2ba2fea71868 <__elf_set___libc_thread_subfreeres_element_res_thread_freeres__>,
            const_mongoc_find_and_modify_opts_ptr_value = 0x2ba2fea71868 <__elf_set___libc_thread_subfreeres_element_res_thread_freeres__>,
            const_mongoc_iovec_ptr_value = 0x2ba2fea71868 <__elf_set___libc_thread_subfreeres_element_res_thread_freeres__>,
            const_mongoc_read_prefs_ptr_value = 0x2ba2fea71868 <__elf_set___libc_thread_subfreeres_element_res_thread_freeres__>,
            const_mongoc_write_concern_ptr_value = 0x2ba2fea71868 <__elf_set___libc_thread_subfreeres_element_res_thread_freeres__>}}
 
#6  0x00002ba2fe49d184 in start_thread (arg=0x2ba301e80700)
    at pthread_create.c:312
        __res = <optimized out>
        pd = 0x2ba301e80700
        now = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {47979111646976,
                -4498533311176941977, 0, 0, 47979111647680, 47979111646976,
                -7577310743905083801, -7578428587681554841},
              mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0},
            data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = <optimized out>
        pagesize_m1 = <optimized out>
        sp = <optimized out>
        freesize = <optimized out>
        __PRETTY_FUNCTION__ = "start_thread"
 
#7  0x00002ba2fe7b0ffd in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
No locals.
 
(gdb) quit

Generated at Wed Feb 07 21:14:45 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.