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.

** Patch added: "gdb-fix-crash-when-checking-for-ctor-of-lambda.diff"
   
https://bugs.launchpad.net/ubuntu/+source/gdb/+bug/1006860/+attachment/3218151/+files/gdb-fix-crash-when-checking-for-ctor-of-lambda.diff

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1006860

Title:
  gdb crashes when loading core files (in is_ctor_or_dtor)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gdb/+bug/1006860/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to