Closed
Description
I get a segmentation fault when trying to use repr::write_repr
on a tuple of an i32
and a pointer of some sort.
I'm on linux x86_64, rustc
from incoming
at f96a2a2.
Here is a sample stack trace where the pointer is an &int
, but it also fails with with strings and other boxes.
#0 0x00007ffff7a44ce0 in repr::__extensions__::meth_4972::visit_int::_bb314cd7b2d5487c::_04 () from /home/ben/local/lib/libcore-c3ca5d77d81b46c1-0.4.so
#1 0x0000000000403cf8 in glue_visit_1770 ()
#2 0x00007ffff7aadee0 in repr::__extensions__::meth_12173::visit_ptr_contents::_c16ac36288f708a::_04 ()
from /home/ben/local/lib/libcore-c3ca5d77d81b46c1-0.4.so
#3 0x00007ffff7a45a9d in repr::__extensions__::meth_5018::visit_rptr::_c16ac36288f708a::_04 () from /home/ben/local/lib/libcore-c3ca5d77d81b46c1-0.4.so
#4 0x0000000000403ca7 in glue_visit_1766 ()
#5 0x00007ffff7a46868 in repr::__extensions__::meth_5048::visit_tup_field::_c16ac36288f708a::_04 () from /home/ben/local/lib/libcore-c3ca5d77d81b46c1-0.4.so
#6 0x0000000000403b94 in glue_visit_1758 ()
#7 0x00000000004050eb in intrinsic::rusti::visit_tydesc_1872::_dd21ad46516abf9c::_00 ()
#8 0x0000000000403666 in repr::write_repr_1718::_18cbcd4791f8cd::_00 ()
#9 0x0000000000405668 in __morestack ()
#10 0x00000000004032f9 in main::_461897b8e816aa::_00 ()
#11 0x000000000040332e in _rust_main ()
#12 0x00007ffff77bb644 in task_start_wrapper (a=0x60bff0)
at /home/ben/code/repos/rust/src/rt/rust_task.cpp:150
#13 0x0000000000000000 in ?? ()