This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug python/16470] New: Crash when inspecting STL containers with GDB pretty print


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

            Bug ID: 16470
           Summary: Crash when inspecting STL containers with GDB pretty
                    print
           Product: gdb
           Version: 7.6
            Status: NEW
          Severity: critical
          Priority: P2
         Component: python
          Assignee: unassigned at sourceware dot org
          Reporter: aegges at web dot de

I have the following source code:
#include <list>
using namespace std;

int main()
{
list<int> x;
list<int> y;

x.push_back(1);
y.push_back(2);

return 0;
}

I installed the python pretty printers for STL from the GNU website and load
them in my .gdbinit.
GDB crashes when I inspect the STL list.

To reproduce from the command line:
gdb -i mi -nx

-enable-pretty-printing
-gdb-set print object on
source /home/amueller/.gdbinit
-file-exec-and-symbols --thread-group i1 /home/amueller/testing/test
-break-insert --thread-group i1 -f /home/amueller/testing/test.cpp:12
-break-insert --thread-group i1 -t -f main
-exec-run --thread-group i1

-var-create --thread-group i1 - * x
-var-create --thread 1 --frame 0 - * x
-var-list-children var2
-exec-continue --thread 1

-var-update 1 var2

The bug was initially reported for Eclipse but also occurs using the command
line gdb. See http://www.eclipse.org/forums/index.php/t/636361/

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]