[Bug c++/16059] New: Generated code makes gdb segv (may be gdb bug not compiler)

igodard at pacbell dot net gcc-bugzilla@gcc.gnu.org
Fri Jun 18 11:43:00 GMT 2004


The attached binary causes the debugger to segv:

~/ootbc/common/test/src$ gdb testDisplay
gdb: Symbol `emacs_ctlx_keymap' has different size in shared object, consider re
-linking
GNU gdb 2002-04-01-cvs
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-linux"...
(gdb) b 9
Breakpoint 1 at 0x804a019: file testDisplay.cc, line 9.
(gdb) r
Starting program: /home/ivan/ootbc/common/test/src/testDisplay

Breakpoint 1, main () at testDisplay.cc:9
9                               d << "abc def";
(gdb) s
Display<char, std::char_traits<char>, StdAllocator<char> >& Display<char, std::c
har_traits<char>, StdAllocator<char> >::operator<< <char const*>(char const*) (
    this=0xbffffba0, t=0x80510d3 "abc def") at display.hh:337
    337                                             under << t;
(gdb) p under
Segmentation fault

-- 
           Summary: Generated code makes gdb segv (may be gdb bug not
                    compiler)
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: igodard at pacbell dot net
                CC: gcc-bugs at gcc dot gnu dot org


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



More information about the Gcc-bugs mailing list