{"action":"created","issue":{"url":"https://api.github.com/repos/thijsc/mongo-rust-driver/issues/36","repository_url":"https://api.github.com/repos/thijsc/mongo-rust-driver","labels_url":"https://api.github.com/repos/thijsc/mongo-rust-driver/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/thijsc/mongo-rust-driver/issues/36/comments","events_url":"https://api.github.com/repos/thijsc/mongo-rust-driver/issues/36/events","html_url":"https://github.com/thijsc/mongo-rust-driver/issues/36","id":308218757,"number":36,"title":"Mac crash on collection::test_command","user":{"login":"mjjansen","id":1911018,"avatar_url":"https://avatars0.githubusercontent.com/u/1911018?v=4","gravatar_id":"","url":"https://api.github.com/users/mjjansen","html_url":"https://github.com/mjjansen","followers_url":"https://api.github.com/users/mjjansen/followers","following_url":"https://api.github.com/users/mjjansen/following{/other_user}","gists_url":"https://api.github.com/users/mjjansen/gists{/gist_id}","starred_url":"https://api.github.com/users/mjjansen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjjansen/subscriptions","organizations_url":"https://api.github.com/users/mjjansen/orgs","repos_url":"https://api.github.com/users/mjjansen/repos","events_url":"https://api.github.com/users/mjjansen/events{/privacy}","received_events_url":"https://api.github.com/users/mjjansen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-24T01:30:20Z","updated_at":"2018-04-16T21:48:28Z","closed_at":null,"author_association":"NONE","body":"it works fine on linux.  any ideas?  thank you!\r\n\r\nsystem: \r\n`Darwin Kernel Version 17.4.0: Sun Dec 17 09:19:54 PST 2017; root:xnu-4570.41.2~1/RELEASE_X86_64 x86_64`\r\n\r\n```\r\n*** set a breakpoint in malloc_error_break to debug\r\nProcess 96881 stopped\r\n* thread #2, name = 'collection::test_command', stop reason = breakpoint 1.1\r\n    frame #0: 0x00007fff5febc9b6 libsystem_malloc.dylib`malloc_error_break\r\nlibsystem_malloc.dylib`malloc_error_break:\r\n->  0x7fff5febc9b6 <+0>: pushq  %rbp\r\n    0x7fff5febc9b7 <+1>: movq   %rsp, %rbp\r\n    0x7fff5febc9ba <+4>: nop    \r\n    0x7fff5febc9bb <+5>: nopl   (%rax)\r\nTarget 0: (tests-4541342df4fdef02) stopped.\r\n(lldb) bt\r\n* thread #2, name = 'collection::test_command', stop reason = breakpoint 1.1\r\n  * frame #0: 0x00007fff5febc9b6 libsystem_malloc.dylib`malloc_error_break\r\n    frame #1: 0x00007fff5feae7ed libsystem_malloc.dylib`free + 400\r\n    frame #2: 0x0000000100484f40 libbson-1.0.0.dylib`bson_destroy + 32\r\n    frame #3: 0x000000010042fd34 libmongoc-1.0.0.dylib`_mongoc_cursor_destroy + 308\r\n    frame #4: 0x00000001000646f2 tests-4541342df4fdef02`mongo_driver::cursor::{{impl}}::drop(self=0x0000700006eed608) at cursor.rs:149\r\n    frame #5: 0x0000000100029725 tests-4541342df4fdef02`core::ptr::drop_in_place::h485b407153bcb47a + 21\r\n    frame #6: 0x00000001000332d3 tests-4541342df4fdef02`tests::collection::test_command::hd4dce275de33e695 + 819\r\n    frame #7: 0x00000001000d11d2 tests-4541342df4fdef02`test::{{impl}}::call_box<(),closure> [inlined] test::run_test::{{closure}} at lib.rs:1510 [opt]\r\n    frame #8: 0x00000001000d11cd tests-4541342df4fdef02`test::{{impl}}::call_box<(),closure> [inlined] core::ops::function::FnOnce::call_once<closure,(())> at function.rs:223 [opt]\r\n    frame #9: 0x00000001000d11cd tests-4541342df4fdef02`test::{{impl}}::call_box<(),closure> at lib.rs:142 [opt]\r\n    frame #10: 0x00000001001142ff tests-4541342df4fdef02`panic_unwind::__rust_maybe_catch_panic at lib.rs:101 [opt]\r\n    frame #11: 0x00000001000c17a1 tests-4541342df4fdef02`std::sys_common::backtrace::__rust_begin_short_backtrace<closure,()> [inlined] std::panicking::try<(),std::panic::AssertUnwindSafe<closure>> at panicking.rs:459 [opt]\r\n    frame #12: 0x00000001000c175c tests-4541342df4fdef02`std::sys_common::backtrace::__rust_begin_short_backtrace<closure,()> [inlined] std::panic::catch_unwind<std::panic::AssertUnwindSafe<closure>,()> at panic.rs:365 [opt]\r\n    frame #13: 0x00000001000c175c tests-4541342df4fdef02`std::sys_common::backtrace::__rust_begin_short_backtrace<closure,()> [inlined] test::run_test::run_test_inner::{{closure}} at lib.rs:1447 [opt]\r\n    frame #14: 0x00000001000c1609 tests-4541342df4fdef02`std::sys_common::backtrace::__rust_begin_short_backtrace<closure,()> at backtrace.rs:133 [opt]\r\n    frame #15: 0x00000001000c7058 tests-4541342df4fdef02`std::panicking::try::do_call<std::panic::AssertUnwindSafe<closure>,()> [inlined] std::thread::{{impl}}::spawn::{{closure}}::{{closure}}<closure,()> at mod.rs:406 [opt]\r\n    frame #16: 0x00000001000c7042 tests-4541342df4fdef02`std::panicking::try::do_call<std::panic::AssertUnwindSafe<closure>,()> [inlined] std::panic::{{impl}}::call_once<(),closure> at panic.rs:300 [opt]\r\n    frame #17: 0x00000001000c7042 tests-4541342df4fdef02`std::panicking::try::do_call<std::panic::AssertUnwindSafe<closure>,()> at panicking.rs:480 [opt]\r\n    frame #18: 0x00000001001142ff tests-4541342df4fdef02`panic_unwind::__rust_maybe_catch_panic at lib.rs:101 [opt]\r\n    frame #19: 0x00000001000dd762 tests-4541342df4fdef02`alloc::boxed::{{impl}}::call_box<(),closure> [inlined] std::panicking::try<(),std::panic::AssertUnwindSafe<closure>> at panicking.rs:459 [opt]\r\n    frame #20: 0x00000001000dd729 tests-4541342df4fdef02`alloc::boxed::{{impl}}::call_box<(),closure> [inlined] std::panic::catch_unwind<std::panic::AssertUnwindSafe<closure>,()> at panic.rs:365 [opt]\r\n    frame #21: 0x00000001000dd729 tests-4541342df4fdef02`alloc::boxed::{{impl}}::call_box<(),closure> [inlined] std::thread::{{impl}}::spawn::{{closure}}<closure,()> at mod.rs:405 [opt]\r\n    frame #22: 0x00000001000dd6dc tests-4541342df4fdef02`alloc::boxed::{{impl}}::call_box<(),closure> at boxed.rs:817 [opt]\r\n    frame #23: 0x00000001000fbd28 tests-4541342df4fdef02`std::sys_common::thread::start_thread [inlined] alloc::boxed::{{impl}}::call_once<(),()> at boxed.rs:827 [opt]\r\n    frame #24: 0x00000001000fbd25 tests-4541342df4fdef02`std::sys_common::thread::start_thread at thread.rs:24 [opt]\r\n    frame #25: 0x00000001001060e9 tests-4541342df4fdef02`std::sys::unix::thread::{{impl}}::new::thread_start at thread.rs:90 [opt]\r\n    frame #26: 0x00007fff5ff906c1 libsystem_pthread.dylib`_pthread_body + 340\r\n    frame #27: 0x00007fff5ff9056d libsystem_pthread.dylib`_pthread_start + 377\r\n    frame #28: 0x00007fff5ff8fc5d libsystem_pthread.dylib`thread_start + 13\r\n(lldb) \r\n```"},"comment":{"url":"https://api.github.com/repos/thijsc/mongo-rust-driver/issues/comments/381761066","html_url":"https://github.com/thijsc/mongo-rust-driver/issues/36#issuecomment-381761066","issue_url":"https://api.github.com/repos/thijsc/mongo-rust-driver/issues/36","id":381761066,"user":{"login":"mjjansen","id":1911018,"avatar_url":"https://avatars0.githubusercontent.com/u/1911018?v=4","gravatar_id":"","url":"https://api.github.com/users/mjjansen","html_url":"https://github.com/mjjansen","followers_url":"https://api.github.com/users/mjjansen/followers","following_url":"https://api.github.com/users/mjjansen/following{/other_user}","gists_url":"https://api.github.com/users/mjjansen/gists{/gist_id}","starred_url":"https://api.github.com/users/mjjansen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjjansen/subscriptions","organizations_url":"https://api.github.com/users/mjjansen/orgs","repos_url":"https://api.github.com/users/mjjansen/repos","events_url":"https://api.github.com/users/mjjansen/events{/privacy}","received_events_url":"https://api.github.com/users/mjjansen/received_events","type":"User","site_admin":false},"created_at":"2018-04-16T21:48:28Z","updated_at":"2018-04-16T21:48:28Z","author_association":"NONE","body":"I believe this was my openssl version.  I think I was using openssl 1.1.  I uninstalled it and ran\r\nbrew install openssl\r\n    export CPPFLAGS=\"-I/usr/local/opt/openssl/include\"\r\n    export LDFLAGS=\"-L/usr/local/opt/openssl/lib\"\r\ncargo clean\r\ncargo build\r\n\r\nand all was ok."}}
{"actor":{"display_login":"mjjansen"}}