Bug 587576

Summary: Cannot find new threads error when debugging programs that dlopen libraries.
Product: [Fedora] Fedora Reporter: Tomas Mraz <tmraz>
Component: gdbAssignee: Jan Kratochvil <jan.kratochvil>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 13CC: jan.kratochvil, pmuldoon
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-04-30 10:07:51 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Test source none

Description Tomas Mraz 2010-04-30 09:58:50 UTC
Created attachment 410354 [details]
Test source

Description of problem:
I'm trying to 

Version-Release number of selected component (if applicable):


How reproducible:
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
  
Actual results:

gdb prints:
(gdb) n
[Thread debugging using libthread_db enabled]
Cannot find new threads: generic error


Expected results:
to be able to continue debugging


Additional info:
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.

Comment 1 Tomas Mraz 2010-04-30 09:59:47 UTC
gdb version: gdb-7.1-16.fc13.x86_64

Comment 2 Jan Kratochvil 2010-04-30 10:07:51 UTC
Bug 179072 Comment 13 reproduces this specific problem.

*** This bug has been marked as a duplicate of bug 179072 ***