example/read test crash
On one of my runs on the actual master branch I have faced a very interesting error in the unit tests. May be it is a linker bug (and dirty build), but anyway I would like to open an issue.
The #proc
macro on the read
function in examples/read
(frame 15) replaces the expected symbol in std..io..Read$GT$::read_buf
(frame 16)
* thread #1, name = 'main', queue = 'com.apple.main-thread', stop reason = breakpoint 1.2
frame #0: 0x0000000100201118 read-c1842dc494f63891`alloc::raw_vec::capacity_overflow::he313e9439f0e0e72 [inlined] core::fmt::Arguments::new_const::h920b50b1c37fc37e at mod.rs:301:9 [opt]
frame #1: 0x0000000100201118 read-c1842dc494f63891`alloc::raw_vec::capacity_overflow::he313e9439f0e0e72 at panic.rs:61:38 [opt]
frame #2: 0x000000010019624e read-c1842dc494f63891`alloc::raw_vec::RawVec$LT$T$C$A$GT$::allocate_in::h0e33702ad5a93ace(capacity=18446744069397776896, init=Uninitialized, alloc=Global @ 0x00007ff7bfefd830) at raw_vec.rs:177:27
frame #3: 0x0000000100195fc4 read-c1842dc494f63891`_$LT$T$u20$as$u20$alloc..slice..hack..ConvertVec$GT$::to_vec::h8d4c74bbc8ae89d7 [inlined] alloc::raw_vec::RawVec$LT$T$C$A$GT$::with_capacity_in::h39925a583f4bb4b7(capacity=18446744069397776896, alloc=Global @ 0x00007ff7bfefd998) at raw_vec.rs:130:9
frame #4: 0x0000000100195fbf read-c1842dc494f63891`_$LT$T$u20$as$u20$alloc..slice..hack..ConvertVec$GT$::to_vec::h8d4c74bbc8ae89d7 [inlined] alloc::vec::Vec$LT$T$C$A$GT$::with_capacity_in::h9a6c94da19af1ea4(capacity=18446744069397776896, alloc=Global @ 0x00007ff7bfefd998) at mod.rs:672:20
frame #5: 0x0000000100195fbf read-c1842dc494f63891`_$LT$T$u20$as$u20$alloc..slice..hack..ConvertVec$GT$::to_vec::h8d4c74bbc8ae89d7(s=(data_ptr = "", length = 18446744069397776896), alloc=Global @ 0x00007ff7bfefd990) at slice.rs:162:25
frame #6: 0x0000000100196d4c read-c1842dc494f63891`_$LT$alloc..vec..Vec$LT$T$GT$$u20$as$u20$core..convert..From$LT$$RF$$u5b$T$u5d$$GT$$GT$::from::h2d008886fea0d797 [inlined] alloc::slice::hack::to_vec::he60a501cff05b438(s=(data_ptr = "", length = 18446744069397776896)) at slice.rs:111:9
frame #7: 0x0000000100196d3f read-c1842dc494f63891`_$LT$alloc..vec..Vec$LT$T$GT$$u20$as$u20$core..convert..From$LT$$RF$$u5b$T$u5d$$GT$$GT$::from::h2d008886fea0d797 [inlined] alloc::slice::_$LT$impl$u20$$u5b$T$u5d$$GT$::to_vec_in::ha1bbaf63b0e154fa(self=(data_ptr = "", length = 18446744069397776896)) at slice.rs:441:9
frame #8: 0x0000000100196d3f read-c1842dc494f63891`_$LT$alloc..vec..Vec$LT$T$GT$$u20$as$u20$core..convert..From$LT$$RF$$u5b$T$u5d$$GT$$GT$::from::h2d008886fea0d797 [inlined] alloc::slice::_$LT$impl$u20$$u5b$T$u5d$$GT$::to_vec::h68a647f4f0d0a922(self=(data_ptr = "", length = 18446744069397776896)) at slice.rs:416:14
frame #9: 0x0000000100196d3f read-c1842dc494f63891`_$LT$alloc..vec..Vec$LT$T$GT$$u20$as$u20$core..convert..From$LT$$RF$$u5b$T$u5d$$GT$$GT$::from::h2d008886fea0d797(s=(data_ptr = "", length = 18446744069397776896)) at mod.rs:3080:11
frame #10: 0x0000000100196d7c read-c1842dc494f63891`_$LT$T$u20$as$u20$core..convert..Into$LT$U$GT$$GT$::into::hab48fc12804feeda(self=(data_ptr = "", length = 18446744069397776896)) at mod.rs:717:9
frame #11: 0x000000010000214d read-c1842dc494f63891`_$LT$T$u20$as$u20$tarantool..tuple..Decode$GT$::decode::_$u7b$$u7b$closure$u7d$$u7d$::h3056e0bd71c8dab2(e=<unavailable>) at tuple.rs:1545:71
frame #12: 0x000000010000b64f read-c1842dc494f63891`core::result::Result$LT$T$C$E$GT$::map_err::hdb87a5a532b78c02(self=Result<[(); 0], rmp_serde::decode::Error> @ 0x00007ff7bfefdf08, op={closure_env#0}<[(); 0]> @ 0x00007ff7bfefdc50) at result.rs:828:27
frame #13: 0x0000000100008a61 read-c1842dc494f63891`read [inlined] _$LT$T$u20$as$u20$tarantool..tuple..Decode$GT$::decode::h541198b72f7f7fa1(data=(data_ptr = "", length = 18446744069397776896)) at tuple.rs:1545:9
frame #14: 0x0000000100008a2c read-c1842dc494f63891`read at tuple.rs:1400:9
* frame #15: 0x00000001000089ec read-c1842dc494f63891`read(__tp_ctx=FunctionCtx @ 0x00007ff7bfefdcd0, __tp_args=(start = "", end = "")) at lib.rs:13:1
frame #16: 0x00000001001e47f6 read-c1842dc494f63891`_$LT$std..fs..File$u20$as$u20$std..io..Read$GT$::read_buf::h0d4cb6a155b5019b [inlined] std::sys::unix::fd::FileDesc::read_buf::ha586f2f1f946108a at fd.rs:143:13 [opt]
frame #17: 0x00000001001e47df read-c1842dc494f63891`_$LT$std..fs..File$u20$as$u20$std..io..Read$GT$::read_buf::h0d4cb6a155b5019b [inlined] std::sys::unix::fs::File::read_buf::h02c14fc86107b321 at fs.rs:1152:9 [opt]
frame #18: 0x00000001001e47df read-c1842dc494f63891`_$LT$std..fs..File$u20$as$u20$std..io..Read$GT$::read_buf::h0d4cb6a155b5019b at fs.rs:756:9 [opt]
frame #19: 0x000000010001aeea read-c1842dc494f63891`_$LT$std..io..buffered..bufreader..BufReader$LT$R$GT$$u20$as$u20$std..io..Read$GT$::read::h50e71b1c373e4730 [inlined] std::io::impls::_$LT$impl$u20$std..io..Read$u20$for$u20$$RF$mut$u20$R$GT$::read_buf::hede6241f20282a96 at impls.rs:26:9 [opt]
frame #20: 0x000000010001aee3 read-c1842dc494f63891`_$LT$std..io..buffered..bufreader..BufReader$LT$R$GT$$u20$as$u20$std..io..Read$GT$::read::h50e71b1c373e4730 [inlined] std::io::buffered::bufreader::buffer::Buffer::fill_buf::h052d9f6389197717 at buffer.rs:114:13 [opt]
frame #21: 0x000000010001aec4 read-c1842dc494f63891`_$LT$std..io..buffered..bufreader..BufReader$LT$R$GT$$u20$as$u20$std..io..Read$GT$::read::h50e71b1c373e4730 [inlined] _$LT$std..io..buffered..bufreader..BufReader$LT$R$GT$$u20$as$u20$std..io..BufRead$GT$::fill_buf::h0f89a4288729498b at bufreader.rs:376:9 [opt]
frame #22: 0x000000010001aec0 read-c1842dc494f63891`_$LT$std..io..buffered..bufreader..BufReader$LT$R$GT$$u20$as$u20$std..io..Read$GT$::read::h50e71b1c373e4730 at bufreader.rs:270:32 [opt]
frame #23: 0x000000010001a581 read-c1842dc494f63891`_$LT$std..io..buffered..bufreader..BufReader$LT$R$GT$$u20$as$u20$std..io..Read$GT$::read_exact::hfff497fa7e2373d3 [inlined] std::io::default_read_exact::hb777e107ff56e86e at mod.rs:467:15 [opt]
frame #24: 0x000000010001a560 read-c1842dc494f63891`_$LT$std..io..buffered..bufreader..BufReader$LT$R$GT$$u20$as$u20$std..io..Read$GT$::read_exact::hfff497fa7e2373d3 at bufreader.rs:305:9 [opt]
frame #25: 0x000000010003862e read-c1842dc494f63891`test::term::terminfo::TermInfo::from_name::h5c4916d11d212b3c [inlined] test::term::terminfo::parser::compiled::read_le_u16::h92bf77b5d86f4e8a at compiled.rs:162:5 [opt]
frame #26: 0x000000010003860d read-c1842dc494f63891`test::term::terminfo::TermInfo::from_name::h5c4916d11d212b3c [inlined] test::term::terminfo::parser::compiled::parse::h995c483ca381870a at compiled.rs:196:20 [opt]
frame #27: 0x000000010003860d read-c1842dc494f63891`test::term::terminfo::TermInfo::from_name::h5c4916d11d212b3c [inlined] test::term::terminfo::TermInfo::_from_path::h0fcd698067b1ec40 at mod.rs:109:9 [opt]
frame #28: 0x000000010003853b read-c1842dc494f63891`test::term::terminfo::TermInfo::from_name::h5c4916d11d212b3c [inlined] test::term::terminfo::TermInfo::from_path::hc7b829dddf20b5e3 at mod.rs:103:9 [opt]
frame #29: 0x000000010003853b read-c1842dc494f63891`test::term::terminfo::TermInfo::from_name::h5c4916d11d212b3c [inlined] test::term::terminfo::TermInfo::from_name::_$u7b$$u7b$closure$u7d$$u7d$::h1c1c1ebe82ea3650 at mod.rs:98:27 [opt]
frame #30: 0x000000010003853b read-c1842dc494f63891`test::term::terminfo::TermInfo::from_name::h5c4916d11d212b3c [inlined] core::result::Result$LT$T$C$E$GT$::and_then::he86942fee5a720f4 at result.rs:1319:22 [opt]
frame #31: 0x000000010003853b read-c1842dc494f63891`test::term::terminfo::TermInfo::from_name::h5c4916d11d212b3c at mod.rs:98:14 [opt]
frame #32: 0x000000010003e6e2 read-c1842dc494f63891`test::term::stdout::h94e8a4bfbfb7490b [inlined] test::term::terminfo::TermInfo::from_env::hc921b7ccf3d68036 at mod.rs:69:25 [opt]
frame #33: 0x000000010003e6b2 read-c1842dc494f63891`test::term::stdout::h94e8a4bfbfb7490b [inlined] test::term::terminfo::TerminfoTerminal$LT$T$GT$::new::h4ebdebfff75e3a69 at mod.rs:179:9 [opt]
frame #34: 0x000000010003e66c read-c1842dc494f63891`test::term::stdout::h94e8a4bfbfb7490b at term.rs:33:5 [opt]
frame #35: 0x0000000100021102 read-c1842dc494f63891`test::console::run_tests_console::hf700c6bfb0300397 at console.rs:294:24 [opt]
frame #36: 0x000000010003fdc9 read-c1842dc494f63891`test::test_main::h0643a752326a8ed2 at lib.rs:139:15 [opt]
frame #37: 0x0000000100040b5f read-c1842dc494f63891`test::test_main_static::h886e8d05be19785b at lib.rs:158:5 [opt]
frame #38: 0x00000001000090b4 read-c1842dc494f63891`read::main::he6f44ca2135a20e7 at lib.rs:1:1
frame #39: 0x000000010000b75e read-c1842dc494f63891`core::ops::function::FnOnce::call_once::ha712dfc44fd03aac((null)=(read-c1842dc494f63891`read::main::he6f44ca2135a20e7 at lib.rs:1), (null)=<unavailable>) at function.rs:250:5
frame #40: 0x000000010000af21 read-c1842dc494f63891`std::sys_common::backtrace::__rust_begin_short_backtrace::hd4e8ba7ffecb1683(f=(read-c1842dc494f63891`read::main::he6f44ca2135a20e7 at lib.rs:1)) at backtrace.rs:135:18
frame #41: 0x0000000100009144 read-c1842dc494f63891`std::rt::lang_start::_$u7b$$u7b$closure$u7d$$u7d$::hb297ef7e57be946a at rt.rs:166:18
frame #42: 0x00000001001e300a read-c1842dc494f63891`std::rt::lang_start_internal::h2bb66f5226335a85 [inlined] core::ops::function::impls::_$LT$impl$u20$core..ops..function..FnOnce$LT$A$GT$$u20$for$u20$$RF$F$GT$::call_once::h8a101fab1b20875a at function.rs:284:13 [opt]
frame #43: 0x00000001001e2ffd read-c1842dc494f63891`std::rt::lang_start_internal::h2bb66f5226335a85 [inlined] std::panicking::try::do_call::h641488f02470d53b at panicking.rs:500:40 [opt]
frame #44: 0x00000001001e2ffd read-c1842dc494f63891`std::rt::lang_start_internal::h2bb66f5226335a85 [inlined] std::panicking::try::ha421fa6c02b3299b at panicking.rs:464:19 [opt]
frame #45: 0x00000001001e2ffd read-c1842dc494f63891`std::rt::lang_start_internal::h2bb66f5226335a85 [inlined] std::panic::catch_unwind::h3ec96320a9b69ad8 at panic.rs:142:14 [opt]
frame #46: 0x00000001001e2ffd read-c1842dc494f63891`std::rt::lang_start_internal::h2bb66f5226335a85 [inlined] std::rt::lang_start_internal::_$u7b$$u7b$closure$u7d$$u7d$::h8ed6ebd842cbfa8a at rt.rs:148:48 [opt]
frame #47: 0x00000001001e2ffd read-c1842dc494f63891`std::rt::lang_start_internal::h2bb66f5226335a85 [inlined] std::panicking::try::do_call::hd8feaa44f0a8f218 at panicking.rs:500:40 [opt]
frame #48: 0x00000001001e2ffd read-c1842dc494f63891`std::rt::lang_start_internal::h2bb66f5226335a85 [inlined] std::panicking::try::h0efedac2991299d8 at panicking.rs:464:19 [opt]
frame #49: 0x00000001001e2ffd read-c1842dc494f63891`std::rt::lang_start_internal::h2bb66f5226335a85 [inlined] std::panic::catch_unwind::h6ef34d768fa13aba at panic.rs:142:14 [opt]
frame #50: 0x00000001001e2ffd read-c1842dc494f63891`std::rt::lang_start_internal::h2bb66f5226335a85 at rt.rs:148:20 [opt]
frame #51: 0x0000000100009117 read-c1842dc494f63891`std::rt::lang_start::hfbbee9e83a1239a4(main=(read-c1842dc494f63891`read::main::he6f44ca2135a20e7 at lib.rs:1), argc=1, argv=0x00007ff7bfeff7b8, sigpipe='\0') at rt.rs:165:17
frame #52: 0x00000001000090d8 read-c1842dc494f63891`main + 24
frame #53: 0x00007ff8028a9310 dyld`start + 2432
(lldb)