[CDRIVER-3689] /BulkOperation/error/unordered failure Created: 28/May/20  Updated: 26/Sep/23  Resolved: 26/Sep/23

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

Type: Task Priority: Major - P3
Reporter: Kevin Albertson Assignee: Kevin Albertson
Resolution: Duplicate Votes: 0
Labels: flaky-tests
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates CDRIVER-4350 Unskip change stream and cursor tests Backlog
Epic Link: Stabilize Evergreen

 Description   

Observed here: https://evergreen.mongodb.com/task/mongo_c_driver_asan_ubuntu_ubuntu1404_debug_compile_asan_clang_openssl_f56a51535e08692ccd10d8ae1c3f68826176f9c6_20_05_27_16_08_07

ASAN:SIGSEGV
 [2020/05/28 11:47:48.986] =================================================================
 [2020/05/28 11:47:48.986] ==8612==ERROR: AddressSanitizer: SEGV on unknown address 0x0000000000a0 (pc 0x0000006944a4 sp 0x7fff4c9f0760 bp 0x7fff4c9f0910 T0)
 [2020/05/28 11:47:49.414]     #0 0x6944a3 in request_destroy /data/mci/a9ea0d25ec7dfb8e1a403ef2bc183132/mongoc/src/libmongoc/tests/mock_server/request.c:702
 [2020/05/28 11:47:49.419]     #1 0x6ecce2 in test_bulk_error_unordered /data/mci/a9ea0d25ec7dfb8e1a403ef2bc183132/mongoc/src/libmongoc/tests/test-mongoc-bulk.c:341
 [2020/05/28 11:47:49.421]     #2 0xbcf2e8 in TestSuite_RunTest /data/mci/a9ea0d25ec7dfb8e1a403ef2bc183132/mongoc/src/libmongoc/tests/TestSuite.c:597
 [2020/05/28 11:47:49.422]     #3 0xbcbb26 in TestSuite_RunNamed /data/mci/a9ea0d25ec7dfb8e1a403ef2bc183132/mongoc/src/libmongoc/tests/TestSuite.c:924
 [2020/05/28 11:47:49.422]     #4 0xbc9c30 in TestSuite_Run /data/mci/a9ea0d25ec7dfb8e1a403ef2bc183132/mongoc/src/libmongoc/tests/TestSuite.c:968
 [2020/05/28 11:47:49.426]     #5 0x6cfa3d in main /data/mci/a9ea0d25ec7dfb8e1a403ef2bc183132/mongoc/src/libmongoc/tests/test-libmongoc.c:2636
 [2020/05/28 11:47:51.322]     #6 0x7fbd2bb39f44 in __libc_start_main /build/eglibc-xkFqqE/eglibc-2.19/csu/libc-start.c:287
 [2020/05/28 11:47:51.322]     #7 0x4a0c4c in _start (/data/mci/a9ea0d25ec7dfb8e1a403ef2bc183132/mongoc/src/libmongoc/test-libmongoc+0x4a0c4c)
 [2020/05/28 11:47:51.323] AddressSanitizer can not provide additional info.
 [2020/05/28 11:47:51.323] SUMMARY: AddressSanitizer: SEGV /data/mci/a9ea0d25ec7dfb8e1a403ef2bc183132/mongoc/src/libmongoc/tests/mock_server/request.c:702 request_destroy
 [2020/05/28 11:47:51.323] ==8612==ABORTING
 [2020/05/28 11:47:51.348]     { "status": "fail", "test_file": "/BulkOperation/error/unordered", "seed": "1389885282", "start": 903.411806, "end": 939.539880, "elapsed": 36.128074  },

Hypothesis: Though the logs indicate a segfault, I suspect request is just NULL here because no command was sent. The test sets sockettimeoutms to 500. I suspect that is causing a network timeout error if the test is slow. I am not sure if a small sockettimeoutms is necessary for this test.



 Comments   
Comment by Kevin Albertson [ 26/Sep/23 ]

Test is currently skipped: https://github.com/mongodb/mongo-c-driver/blob/06b23c45636977108483c46a38a5efb44bde8a4d/.evergreen/etc/skip-tests.txt#L54

Investigating is tracked in CDRIVER-4350.

Closing as "Duplicate" of CDRIVER-4350.

Comment by Kevin Albertson [ 29/Jun/20 ]

Here is another, on Windows:
https://evergreen.mongodb.com/task/mongo_c_driver_windows_2013_debug_compile_compression_zlib_ec9c74dae2ff6e70ac850a3936378aa517098524_20_06_29_19_38_27

[2020/06/29 19:46:04.824] Begin /BulkOperation/error/unordered, seed 1593459919
[2020/06/29 19:46:04.824] listening on port 49554
[2020/06/29 19:46:04.824]  0.05  49555 -> server port 49554 (connected)
[2020/06/29 19:46:04.824]  0.08  49555 -> 49554 OP_QUERY admin.$cmd { "isMaster" : 1, "client" : { "driver" : { "name" : "mongoc", "version" : "1.17.0-pre" }, "os" : { "type" : "Windows", "name" : "Windows", "version" : "6.1 (7601)", "architecture" : "x86_64" }, "platform" : "cfg=0x0004172063 CC=MSVC 1800 CFLAGS=\"/DWIN32 /D_WINDOWS /W3\" LDFLAGS=\"/machine:x64\"" }, "compression" : [  ] } flags=SLAVE_OK n_return=-1
[2020/06/29 19:46:04.824]  0.08  49555 <- 49554 OP_REPLY { "ok" : 1.0, "ismaster" : true, "minWireVersion" : 0, "maxWireVersion" : 3 }
[2020/06/29 19:46:04.824]  0.09  49555 -> 49554 OP_QUERY test.$cmd { "update" : "test", "ordered" : false, "updates" : [ { "q" : { "hello" : "earth" }, "u" : { "$set" : { "hello" : "world" } }, "upsert" : false, "multi" : true }, ... flags=0 n_return=-1
[2020/06/29 19:46:34.940] entering windows exception handler
[2020/06/29 19:46:34.940] exception '(access violation)' at '0x000000013FABE93B', terminating
[2020/06/29 19:46:34.940] begin stack trace
[2020/06/29 19:46:34.940] test-libmongoc : request_destroy c:\data\mci\378ef66247e1622ad93995c57620be1f\mongoc\src\libmongoc\tests\mock_server\request.c:702
[2020/06/29 19:46:34.940] test-libmongoc : test_bulk_error_unordered c:\data\mci\378ef66247e1622ad93995c57620be1f\mongoc\src\libmongoc\tests\test-mongoc-bulk.c:342
[2020/06/29 19:46:34.940] test-libmongoc : TestSuite_RunTest c:\data\mci\378ef66247e1622ad93995c57620be1f\mongoc\src\libmongoc\tests\testsuite.c:598
[2020/06/29 19:46:34.940] test-libmongoc : TestSuite_RunSerial c:\data\mci\378ef66247e1622ad93995c57620be1f\mongoc\src\libmongoc\tests\testsuite.c:868
[2020/06/29 19:46:34.940] test-libmongoc : TestSuite_Run c:\data\mci\378ef66247e1622ad93995c57620be1f\mongoc\src\libmongoc\tests\testsuite.c:970
[2020/06/29 19:46:34.940] test-libmongoc : main c:\data\mci\378ef66247e1622ad93995c57620be1f\mongoc\src\libmongoc\tests\test-libmongoc.c:2662
[2020/06/29 19:46:34.940] test-libmongoc : __tmainCRTStartup f:\dd\vctools\crt\crtw32\dllstuff\crtexe.c:626
[2020/06/29 19:46:34.940] test-libmongoc : mainCRTStartup f:\dd\vctools\crt\crtw32\dllstuff\crtexe.c:466
[2020/06/29 19:46:34.940] BaseThreadInitThunk
[2020/06/29 19:46:34.940] RtlUserThreadStart
[2020/06/29 19:46:34.940] end stack trace
[2020/06/29 19:46:34.940] ./.evergreen/compile-windows.sh: line 137:   628 Segmentation fault      "$TEST_PATH" --no-fork -d -F test-results.json
[2020/06/29 19:46:34.956]  1.75  49555 <- 49554 OP_REPLY { "ok" : 1, "n" : 5 }
[2020/06/29 19:46:34.956] Command failed: command encountered problem: error waiting on process 'ec902519-81e9-4a0d-8286-e32c75f65005': exit status 139
[2020/06/29 19:46:34.956] Task completed - FAILURE.

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