Red Hat Bugzilla – Bug 587576
Cannot find new threads error when debugging programs that dlopen libraries.
Last modified: 2010-04-30 06:07:51 EDT
Created attachment 410354 [details]
Description of problem:
I'm trying to
Version-Release number of selected component (if applicable):
100% in F13 virtual machine hosted on F11 host.
Steps to Reproduce:
1. compile the attached program with make test CFLAGS='-g -O2' LDFLAGS='-lcrypto -g'
2. set breakpoint to main()
3. use next command to step over the FIPS_mode_set call
[Thread debugging using libthread_db enabled]
Cannot find new threads: generic error
to be able to continue debugging
You need to have undone prelink on libcrypto and libssl libraries. These libraries are dlopened during the FIPS_mode_set() call. The libcrypto is also DT_NEEDED so it does not cause anything during the dlopen() but when the libssl is dlopened it will break the debugging.
gdb version: gdb-7.1-16.fc13.x86_64
Bug 179072 Comment 13 reproduces this specific problem.
*** This bug has been marked as a duplicate of bug 179072 ***