jemalloc segfaults programs
When compilng programs with jemalloc I get alternating errors of Segmentation Fault and / Bus Error. Compiling these programs without jemalloc allows them to run normally. Operating on Alpine Edge.
(gdb) backtrace
#0 0x00007609f0ccb40d in ?? () from /usr/lib/libjemalloc.so.1
#1 0x00007609f1799622 in ?? () from /usr/lib/libpcap.so.1
#2 0x00007609f1799852 in ?? () from /usr/lib/libpcap.so.1
#3 0x00007609f179b67e in ?? () from /usr/lib/libpcap.so.1
#4 0x00007609f179fd5f in pcap_activate () from /usr/lib/libpcap.so.1
#5 0x00007609f17a0497 in pcap_open_live () from
/usr/lib/libpcap.so.1
#6 0x000006ecbec788dc in iosource::pcap::PcapSource::OpenLive() ()
#7 0x000006ecbec94f0f in
iosource::Manager::Register(iosource::IOSource*, bool) ()
#8 0x000006ecbec953b2 in
iosource::Manager::OpenPktSrc(std::__cxx11::basic_string_traits, std::allocator >const&, bool) ()
#9 0x000006ecbe9f3917 in net_init(charPList&, charPList&, char
const*, int) ()
#10 0x000006ecbe94861a in main ()
Program terminated with signal SIGBUS, Bus error.
#0 0x00007609f0ccb40d in ?? () from /usr/lib/libjemalloc.so.1
(from redmine: issue id 5389, created on 2016-04-12)