public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/14999] New: Clang debug info crashes GDB when trying to collect local variables in a trace
@ 2013-01-07  1:50 dblaikie at gmail dot com
  2013-01-07 15:32 ` [Bug c++/14999] " tromey at redhat dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: dblaikie at gmail dot com @ 2013-01-07  1:50 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=14999

             Bug #: 14999
           Summary: Clang debug info crashes GDB when trying to collect
                    local variables in a trace
           Product: gdb
           Version: 7.5
            Status: NEW
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned@sourceware.org
        ReportedBy: dblaikie@gmail.com
    Classification: Unclassified


Using Clang ToT (I believe this would easily reproduce with the recently
released 3.2 as well, perhaps with older versions too) to compile the following
program:

  int func(int p) {
    int x = p + 3;
    return x;
  }

  int main() { return func(3); }

Then loading that into GDB (7.5) & executing the following:

  trace 3
  actions
  collect x
  end

At the "collect" point (reproduces when using "collect q" instead) GDB has the
following error:

  ../../gdb-7.5.x/gdb/tracepoint.c:665: internal-error: expression has min
height < 0
  A problem internal to GDB has been detected,
  further debugging may prove unreliable.

It'd be nice if GDB didn't fail. Beyond that, there's nothing in Clang's debug
info that seems unreasonable for this, but evidently there's /some/ difference
between GCC 4.7 and Clang's output here because GCC's output works just fine.
Perhaps the location information is broken in some way. (advice on that would
be appreciated, though not required - this bug is merely about the internal
error)

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

end of thread, other threads:[~2013-01-18 18:37 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-07  1:50 [Bug c++/14999] New: Clang debug info crashes GDB when trying to collect local variables in a trace dblaikie at gmail dot com
2013-01-07 15:32 ` [Bug c++/14999] " tromey at redhat dot com
2013-01-07 19:36 ` dblaikie at gmail dot com
2013-01-07 20:29 ` tromey at redhat dot com
2013-01-08  3:16 ` dblaikie at gmail dot com
2013-01-08  4:26 ` tromey at redhat dot com
2013-01-18 18:32 ` cvs-commit at gcc dot gnu.org
2013-01-18 18:37 ` tromey at redhat dot com

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).