public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/17667] New: GDB crashes while Reading symbols, with references in lambda function
@ 2014-12-01 18:40 tower120 at gmail dot com
  2014-12-01 18:40 ` [Bug c++/17667] " tower120 at gmail dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: tower120 at gmail dot com @ 2014-12-01 18:40 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=17667

            Bug ID: 17667
           Summary: GDB crashes while Reading symbols, with references in
                    lambda function
           Product: gdb
           Version: 7.8
            Status: NEW
          Severity: normal
          Priority: P2
         Component: c++
          Assignee: unassigned at sourceware dot org
          Reporter: tower120 at gmail dot com

Created attachment 7981
  --> https://sourceware.org/bugzilla/attachment.cgi?id=7981&action=edit
executable file

When I try to debug my application with GDB 7.8 and 7.8.1, GDB crashes on 
"Reading symbols from..."

Part of my code:

OK:

        auto list = make_tuple(1,2,3,4);
        auto iter_simple = [](auto val){    
            cout << val << endl;
        };

        iterate_tuple(list, iter_simple);   



NOT OK (GDB crashes):

        auto list = make_tuple(1,2,3,4);
        auto iter_simple = [](auto &val){    // Neither &&
            cout << val << endl;
        };

        iterate_tuple(list, iter_simple);   

Application compiles and work fine, by itself.

P.S. I use Windows GDB build (from QT 5.4.0rc).

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug c++/17667] GDB crashes while Reading symbols, with references in lambda function
  2014-12-01 18:40 [Bug c++/17667] New: GDB crashes while Reading symbols, with references in lambda function tower120 at gmail dot com
@ 2014-12-01 18:40 ` tower120 at gmail dot com
  2014-12-01 20:07 ` tower120 at gmail dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: tower120 at gmail dot com @ 2014-12-01 18:40 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=17667

tower120 at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tower120 at gmail dot com

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug c++/17667] GDB crashes while Reading symbols, with references in lambda function
  2014-12-01 18:40 [Bug c++/17667] New: GDB crashes while Reading symbols, with references in lambda function tower120 at gmail dot com
  2014-12-01 18:40 ` [Bug c++/17667] " tower120 at gmail dot com
@ 2014-12-01 20:07 ` tower120 at gmail dot com
  2020-03-31 14:27 ` ssbssa at yahoo dot de
  2020-04-01 18:09 ` tromey at sourceware dot org
  3 siblings, 0 replies; 5+ messages in thread
From: tower120 at gmail dot com @ 2014-12-01 20:07 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=17667

--- Comment #1 from tower120 at gmail dot com ---
Created attachment 7982
  --> https://sourceware.org/bugzilla/attachment.cgi?id=7982&action=edit
Reduced Source Code

Add Qt project with problem code.

Or just compile main.cpp with -std=c++1y  (Need gcc 4.9)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug c++/17667] GDB crashes while Reading symbols, with references in lambda function
  2014-12-01 18:40 [Bug c++/17667] New: GDB crashes while Reading symbols, with references in lambda function tower120 at gmail dot com
  2014-12-01 18:40 ` [Bug c++/17667] " tower120 at gmail dot com
  2014-12-01 20:07 ` tower120 at gmail dot com
@ 2020-03-31 14:27 ` ssbssa at yahoo dot de
  2020-04-01 18:09 ` tromey at sourceware dot org
  3 siblings, 0 replies; 5+ messages in thread
From: ssbssa at yahoo dot de @ 2020-03-31 14:27 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=17667

Hannes Domani <ssbssa at yahoo dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ssbssa at yahoo dot de

--- Comment #2 from Hannes Domani <ssbssa at yahoo dot de> ---
I can reproduce the crash with the attached executable with gdb versions up to
7.11.1.
But from 8.0 onward it works fine.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug c++/17667] GDB crashes while Reading symbols, with references in lambda function
  2014-12-01 18:40 [Bug c++/17667] New: GDB crashes while Reading symbols, with references in lambda function tower120 at gmail dot com
                   ` (2 preceding siblings ...)
  2020-03-31 14:27 ` ssbssa at yahoo dot de
@ 2020-04-01 18:09 ` tromey at sourceware dot org
  3 siblings, 0 replies; 5+ messages in thread
From: tromey at sourceware dot org @ 2020-04-01 18:09 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=17667

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED
   Target Milestone|---                         |8.0
                 CC|                            |tromey at sourceware dot org

--- Comment #3 from Tom Tromey <tromey at sourceware dot org> ---
Fixed.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

end of thread, other threads:[~2020-04-01 18:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-01 18:40 [Bug c++/17667] New: GDB crashes while Reading symbols, with references in lambda function tower120 at gmail dot com
2014-12-01 18:40 ` [Bug c++/17667] " tower120 at gmail dot com
2014-12-01 20:07 ` tower120 at gmail dot com
2020-03-31 14:27 ` ssbssa at yahoo dot de
2020-04-01 18:09 ` tromey at sourceware 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).