Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 202727 - FEAT: Suggest "try gcc -ggdb3" for: Cannot find thread-local variables
FEAT: Suggest "try gcc -ggdb3" for: Cannot find thread-local variables
Product: Fedora
Classification: Fedora
Component: gdb (Show other bugs)
i686 Linux
medium Severity low
: ---
: ---
Assigned To: Alexandre Oliva
: FutureFeature
Depends On: 185337
  Show dependency treegraph
Reported: 2006-08-15 20:13 EDT by Jan Kratochvil
Modified: 2007-11-30 17:11 EST (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-09-25 09:53:46 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Jan Kratochvil 2006-08-15 20:13:29 EDT
+++ This bug was initially created as a clone of Bug #185337 +++

Description of problem: 
I compiled a simple test program, started gdb on it, set a breakpoint, started 
my program, and after it hit the breakpoint, attempted to "p errno".  Instead 
of printing the value of errno, gdb said "Cannot access memory at address 0x8" 
Version-Release number of selected component (if applicable): 
How reproducible: 
Steps to Reproduce: 
1.Compile the attached program with gcc -o convert -g convert.c 
2.gdb convert 
3.b 59 
4.run utf8 cp850 foobarbaz 
5.p errno 
Actual results: 
Cannot access memory at address 0x8 
Expected results: 
$1 = 0 
Additional info: 
This works on RHEL3, hence regression.

-- Additional comment from fenlason@redhat.com on 2006-03-13 15:26 EST --
Created an attachment (id=126068)
source for simple test program

-- Additional comment from fenlason@redhat.com on 2006-03-14 15:33 EST --
This is also broken in rawhide with gdb- 

-- Additional comment from jan.kratochvil@redhat.com on 2006-07-25 08:30 EST --
Please retest if compiled with -ggdb3: gcc -o convert -ggdb3 convert.c
        -ggdb3  -ggdb2
FC5 gdb OK      Cannot find thread-local variables
CVS gdb OK      Cannot access memory at address 0x8
FC4 gdb OK      Cannot access memory at address 0x8

As it is fixed by on of the Red Hat vendor patches, suggesting to extend the
error message by: ", try gcc -ggdb3"
Comment 1 Jan Kratochvil 2006-09-25 09:53:46 EDT
Bug 185337 is resolving it the proper way - by TLS decoding.
"-ggdb3" suggestion is a wrong workaround (too expensive and not applicable to
all the TLS symbols).

Note You need to log in before you can comment on or make changes to this bug.