Seeing segfaults on two Travis x86_64 linux jobs
which appear to be related to referencing const std::string UNNAMED_THREAD
, which is defined in threadutil.h
, from
the pthreads version of threadutil.cpp:thread_util::GetInternalName()
.
After some digging, I'm still not sure what's going on here.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007f8d7462e45b in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::string const&) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
(gdb) bt
#0 0x00007f8d7462e45b in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::string const&) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#1 0x00007f8d759b0cdf in thread_util::GetInternalName () at threadutil.cpp:146
#2 0x00007f8d759abb00 in EnterCritical (pszName=pszName@entry=0x7f8d759c0cd9 "ppmutexOpenSSL[i]",
pszFile=pszFile@entry=0x7f8d759c0cd0 "util.cpp", nLine=nLine@entry=94, cs=0x7f8d75c37288,
fTry=fTry@entry=false) at sync.cpp:144
#3 0x00007f8d75995ff5 in locking_callback (mode=<optimized out>, i=<optimized out>, file=<optimized out>,
line=<optimized out>) at util.cpp:94
#4 0x00007f8d74ba23d1 in ?? () from /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
#5 0x00007f8d759a9f87 in RandAddSeed () at random.cpp:133
#6 0x00007f8d75966b24 in __static_initialization_and_destruction_0 (__initialize_p=1, __priority=65535)
at util.cpp:135
#7 _GLOBAL__sub_I_BITCOIN_CONF_FILENAME () at util.cpp:1001
#8 0x00007f8d759b53cd in __libc_csu_init ()
#9 0x00007f8d73d97ed5 in __libc_start_main (main=0x7f8d759643e0 <main(int, char**)>, argc=3,
argv=0x7ffe009b6528, init=0x7f8d759b5380 <__libc_csu_init>, fini=<optimized out>,
rtld_fini=<optimized out>, stack_end=0x7ffe009b6518) at libc-start.c:246
#10 0x00007f8d7596778e in _start ()