linux - How to get rid of libthread_db -
on embedded file system, rid of libthread_db. understanding was necessary when debugging program using pthread. however, here observation :
if libthread_db not present @ boot time (when first pthread using programm launched), launching such program causes segfault.
adding libthread_db later (ie after pthread program has segfaulted) doesn't change anything. every program uses pthread segfault on launch.
so seems libthread_db essential run sort of program using pthread.
libthread_db never used threaded program. only used debugger.
your assertion libthread_db somehow required run program using pthreads incorrect. if pthread programs crash when libthread_db removed system, else broken on embedded target; removal of libthread_db merely triggers else.
you can trivially confirm this: build pthread program on regular linux system. run program under strace, , observe libthread_db not appear in strace output. rename /lib/libthread_db.so.1 else, , observe test program continues work fine.
Comments
Post a Comment