public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/32990]  New: [Regression] gdb has symbol table issues
@ 2007-08-04 23:13 scovich at gmail dot com
  2007-08-05 19:50 ` [Bug debug/32990] " pinskia at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: scovich at gmail dot com @ 2007-08-04 23:13 UTC (permalink / raw)
  To: gcc-bugs

When debugging code produced by g++-4.3.0-20070716 the debugger regularly
outputs the following error message when stopping at breakpoints or examining
stack frames:

error: warning: (Internal error: pc 0x419e59 in read in psymtab, but not in
symtab.) 

Compiling the same code with g++-4.1.2 and running the same breakpoints results
in no problems. I'm using gdb-6.6-debian, if that's any help.

Unfortunately I have no idea how to narrow the test case down, and am not
allowed to submit my program (it's from work). Some searching on Google
indicates that .linkonce functions might be part of the issue (I have tons of
those), but other than that I'm at a loss to narrow down the problem.  If
anyone has ideas I'm happy to try them out and report back.


-- 
           Summary: [Regression] gdb has symbol table issues
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: scovich at gmail dot com
GCC target triplet: x86_64-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32990


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug debug/32990] [Regression] gdb has symbol table issues
  2007-08-04 23:13 [Bug c++/32990] New: [Regression] gdb has symbol table issues scovich at gmail dot com
@ 2007-08-05 19:50 ` pinskia at gcc dot gnu dot org
  2007-08-06 13:21 ` drow at false dot org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-08-05 19:50 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2007-08-05 19:50 -------
First if gdb is throwing an internal error, then there is a bug in gdb.  Now if
you can prove somehow gcc's debug info is broken, then GCC has a bug.  But
until we get a testcase, it is hard to say anything really.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
          Component|c++                         |debug


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32990


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug debug/32990] [Regression] gdb has symbol table issues
  2007-08-04 23:13 [Bug c++/32990] New: [Regression] gdb has symbol table issues scovich at gmail dot com
  2007-08-05 19:50 ` [Bug debug/32990] " pinskia at gcc dot gnu dot org
@ 2007-08-06 13:21 ` drow at false dot org
  2007-08-10 16:20 ` scovich at gmail dot com
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: drow at false dot org @ 2007-08-06 13:21 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from drow at gcc dot gnu dot org  2007-08-06 13:21 -------
Subject: Re:   New: [Regression] gdb has symbol table issues

On Sat, Aug 04, 2007 at 11:13:11PM -0000, scovich at gmail dot com wrote:
> When debugging code produced by g++-4.3.0-20070716 the debugger regularly
> outputs the following error message when stopping at breakpoints or examining
> stack frames:
> 
> error: warning: (Internal error: pc 0x419e59 in read in psymtab, but not in
> symtab.) 

This is more likely to be a bug in GDB than in GCC.  We would need at
least the debugging info (readelf -wf) from the compilation unit
containing that address.  But the GDB developers will probably not be
able to help you without a testcase, either.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32990


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug debug/32990] [Regression] gdb has symbol table issues
  2007-08-04 23:13 [Bug c++/32990] New: [Regression] gdb has symbol table issues scovich at gmail dot com
  2007-08-05 19:50 ` [Bug debug/32990] " pinskia at gcc dot gnu dot org
  2007-08-06 13:21 ` drow at false dot org
@ 2007-08-10 16:20 ` scovich at gmail dot com
  2007-08-10 16:39 ` scovich at gmail dot com
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: scovich at gmail dot com @ 2007-08-10 16:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from scovich at gmail dot com  2007-08-10 16:20 -------
Created an attachment (id=14050)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14050&action=view)
Output of readelf -wf

I'm attaching the output of `readelf -wf' This time around some of offending PC
are 0x41ac8c, 0x41bc1c, 0x41bc2d, 0x41bc44, 0x41bc45, 0x41bc55, 0x41bc56,
0x41bc63, 0x41bc64.

Also in case it helps, `readelf -a' prints the following warning/error
messages:
readelf: Warning: There is a hole [0xe1fc - 0xe238] in .debug_loc section.
readelf: Warning: There is a hole [0x100dc - 0x10118] in .debug_loc section.
readelf: Warning: There is a hole [0x13860 - 0x1389c] in .debug_loc section.
readelf: Warning: There is a hole [0x138ac - 0x138e8] in .debug_loc section.
readelf: Warning: There is a hole [0x13c3c - 0x13c78] in .debug_loc section.
readelf: Warning: There is a hole [0x13f34 - 0x13f70] in .debug_loc section.
readelf: Warning: There is a hole [0x13f80 - 0x13fbc] in .debug_loc section.
readelf: Warning: There is a hole [0x14148 - 0x14184] in .debug_loc section.
readelf: Warning: There is a hole [0x15908 - 0x15944] in .debug_loc section.
readelf: Warning: There is a hole [0x16618 - 0x16654] in .debug_loc section.
readelf: Warning: There is a hole [0x17f54 - 0x17f90] in .debug_loc section.
readelf: Warning: There is a hole [0x17fec - 0x18028] in .debug_loc section.
readelf: Warning: There is a hole [0x1824c - 0x18288] in .debug_loc section.
readelf: Warning: There is a hole [0x184ac - 0x184e8] in .debug_loc section.
readelf: Warning: There is a hole [0x18590 - 0x185cc] in .debug_loc section.
readelf: Warning: There is a hole [0x22a08 - 0x22a44] in .debug_loc section.
readelf: Warning: There is a hole [0x232f0 - 0x2332c] in .debug_loc section.
readelf: Warning: There is a hole [0x26944 - 0x26980] in .debug_loc section.
readelf: Warning: There is a hole [0x29320 - 0x2935c] in .debug_loc section.
readelf: Warning: There is a hole [0x29878 - 0x298b4] in .debug_loc section.
readelf: Warning: There is a hole [0x29910 - 0x2994c] in .debug_loc section.
readelf: Error: Range lists in .debug_info section aren't in ascending order!
readelf: Warning: There is a hole [0x50 - 0xb0] in .debug_ranges section.
readelf: Warning: There is an overlap [0x2fe0 - 0x50] in .debug_ranges section.
readelf: Warning: There is a hole [0xb0 - 0x3010] in .debug_ranges section.
readelf: Warning: There is an overlap [0x30b0 - 0x2fe0] in .debug_ranges
section.
readelf: Warning: There is a hole [0x3010 - 0x56e0] in .debug_ranges section.
readelf: Warning: There is a hole [0x7610 - 0x76d0] in .debug_ranges section.
readelf: Warning: There is an overlap [0x7700 - 0x7610] in .debug_ranges
section.
readelf: Warning: There is a hole [0x76d0 - 0x9b40] in .debug_ranges section.
readelf: Warning: There is an overlap [0xd700 - 0x9a20] in .debug_ranges
section.
readelf: Warning: There is a hole [0x9b40 - 0xd700] in .debug_ranges section.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32990


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug debug/32990] [Regression] gdb has symbol table issues
  2007-08-04 23:13 [Bug c++/32990] New: [Regression] gdb has symbol table issues scovich at gmail dot com
                   ` (2 preceding siblings ...)
  2007-08-10 16:20 ` scovich at gmail dot com
@ 2007-08-10 16:39 ` scovich at gmail dot com
  2007-08-10 16:50 ` scovich at gmail dot com
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: scovich at gmail dot com @ 2007-08-10 16:39 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from scovich at gmail dot com  2007-08-10 16:39 -------
The problem comes from adding a member function to a header file and only
recompiling some of the source files that include it (make depend missed
something). It looked like a regression because changing versions of gcc
required a clean recompile.


-- 

scovich at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32990


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug debug/32990] [Regression] gdb has symbol table issues
  2007-08-04 23:13 [Bug c++/32990] New: [Regression] gdb has symbol table issues scovich at gmail dot com
                   ` (3 preceding siblings ...)
  2007-08-10 16:39 ` scovich at gmail dot com
@ 2007-08-10 16:50 ` scovich at gmail dot com
  2007-08-13 20:29 ` drow at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: scovich at gmail dot com @ 2007-08-10 16:50 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from scovich at gmail dot com  2007-08-10 16:50 -------
Murphy strikes again -- 5 minutes after closing this bug it popped back up in
spite of a clean compile. Apparently `make clean' can change which PC causes
complaints but doesn't necessarily fix the problem. 


-- 

scovich at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32990


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug debug/32990] [Regression] gdb has symbol table issues
  2007-08-04 23:13 [Bug c++/32990] New: [Regression] gdb has symbol table issues scovich at gmail dot com
                   ` (4 preceding siblings ...)
  2007-08-10 16:50 ` scovich at gmail dot com
@ 2007-08-13 20:29 ` drow at gcc dot gnu dot org
  2007-08-13 21:11 ` scovich at gmail dot com
  2007-08-14 14:09 ` drow at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: drow at gcc dot gnu dot org @ 2007-08-13 20:29 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from drow at gcc dot gnu dot org  2007-08-13 20:29 -------
Sorry, my mistake.  I meant readelf -wi (lowercase I).


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32990


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug debug/32990] [Regression] gdb has symbol table issues
  2007-08-04 23:13 [Bug c++/32990] New: [Regression] gdb has symbol table issues scovich at gmail dot com
                   ` (5 preceding siblings ...)
  2007-08-13 20:29 ` drow at gcc dot gnu dot org
@ 2007-08-13 21:11 ` scovich at gmail dot com
  2007-08-14 14:09 ` drow at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: scovich at gmail dot com @ 2007-08-13 21:11 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from scovich at gmail dot com  2007-08-13 21:10 -------
(In reply to comment #6)
> Sorry, my mistake.  I meant readelf -wi (lowercase I).
> 

Unfortunately, I recompiled with 4.1 to get on with debugging, and also updated
to 20070810 later that day. Now the bug won't cooperate and show up any more.
Maybe the changes over the last three weeks fixed the problem? 

Also unfortunately, I will lose access to the code once my internship ends this
week.  It might be best to close this bug or leave it in WAITING as a
placeholder in case anyone else sees the same thing in an easier-to-replicate
context...


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32990


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug debug/32990] [Regression] gdb has symbol table issues
  2007-08-04 23:13 [Bug c++/32990] New: [Regression] gdb has symbol table issues scovich at gmail dot com
                   ` (6 preceding siblings ...)
  2007-08-13 21:11 ` scovich at gmail dot com
@ 2007-08-14 14:09 ` drow at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: drow at gcc dot gnu dot org @ 2007-08-14 14:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from drow at gcc dot gnu dot org  2007-08-14 14:08 -------
I don't think there's anything useful we can do with it without a testcase,
unfortunately.


-- 

drow at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |WORKSFORME


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32990


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2007-08-14 14:09 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-04 23:13 [Bug c++/32990] New: [Regression] gdb has symbol table issues scovich at gmail dot com
2007-08-05 19:50 ` [Bug debug/32990] " pinskia at gcc dot gnu dot org
2007-08-06 13:21 ` drow at false dot org
2007-08-10 16:20 ` scovich at gmail dot com
2007-08-10 16:39 ` scovich at gmail dot com
2007-08-10 16:50 ` scovich at gmail dot com
2007-08-13 20:29 ` drow at gcc dot gnu dot org
2007-08-13 21:11 ` scovich at gmail dot com
2007-08-14 14:09 ` drow at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).