public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/14365] New: gdb crashes when checking ctor of lambdas (in is_ctor_or_dtor)
@ 2012-07-14 13:30 marco.trevisan at canonical dot com
  2012-07-14 13:35 ` [Bug c++/14365] " marco.trevisan at canonical dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: marco.trevisan at canonical dot com @ 2012-07-14 13:30 UTC (permalink / raw)
  To: gdb-prs

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

             Bug #: 14365
           Summary: gdb crashes when checking ctor of lambdas (in
                    is_ctor_or_dtor)
           Product: gdb
           Version: 7.4
            Status: NEW
          Severity: critical
          Priority: P2
         Component: c++
        AssignedTo: unassigned@sourceware.org
        ReportedBy: marco.trevisan@canonical.com
    Classification: Unclassified


Created attachment 6531
  --> http://sourceware.org/bugzilla/attachment.cgi?id=6531
gdb-fix-crash-when-checking-for-ctor-of-lambda by Thomas Voß

Using GDB to debug this test case: http://pastebin.ubuntu.com/1062024/ causes
it to crash in is_ctor_or_dtor.

Attached here patch by Thomas Voß that fixes it.

This is description:
«It turns out that gdb crashes as it tries to determine whether a field of a
lambda is a or ctor/dtor, given the fields name. Apparently, the field's name
is NULL and I added a check for that, bailing out and returning 0 ("no, this is
neither a dtor nor a ctor"). GDB behaves normally when being run on the test
program mentioned before. Patch is attached, generated with quilt.»

See launchpad bug http://pad.lv/1006860 for reference.

-- 
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:[~2012-08-19 19:40 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-14 13:30 [Bug c++/14365] New: gdb crashes when checking ctor of lambdas (in is_ctor_or_dtor) marco.trevisan at canonical dot com
2012-07-14 13:35 ` [Bug c++/14365] " marco.trevisan at canonical dot com
2012-07-15 12:55 ` jan.kratochvil at redhat dot com
2012-08-01 18:55 ` tromey at redhat dot com
2012-08-01 18:58 ` tromey at redhat dot com
2012-08-03 17:22 ` keiths at redhat dot com
2012-08-19 19:38 ` cvs-commit at gcc dot gnu.org
2012-08-19 19:40 ` keiths 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).