http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46000
Summary: runtime error in std::set python pretty printer
Product: gcc
Version: 4.5.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
AssignedTo: [email protected]
ReportedBy: [email protected]
Host: x86_64-gnu-linux
Target: x86_64-gnu-linux
Build: x86_64-gnu-linux
Created attachment 22027
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22027
reduced testcase.
(gdb) r
Starting program: /home/users/pawels/sandbox/src/gdb-printers-bugs/02/t
Breakpoint 1, main () at t.cpp:13
13 Bus bus;
(gdb) n
14 bus.c.insert( new Connection() );
(gdb)
15 bus.c.insert( new Connection() );
(gdb) p bus
$1 = (Bus) {
_vptr.Bus = 0x418050,
c = std::set with 1 elements = {
[0] = 0x633c20
}
}
(gdb) n
16 bus.c.insert( new Connection() );
(gdb) p bus
$2 = (Bus) {
_vptr.Bus = 0x418050,
c = std::set with 2 elementsTraceback (most recent call last):
File
"/local/devel/toolchain45/x86_64-gnu-linux.mt_alloc/share/gcc-4.5.2/python/libstdcxx/v6/printers.py",
line 395, in next
item = self.rbiter.next()
File
"/local/devel/toolchain45/x86_64-gnu-linux.mt_alloc/share/gcc-4.5.2/python/libstdcxx/v6/printers.py",
line 297, in next
if node.dereference()['_M_right']:
RuntimeError: Attempt to dereference a generic pointer.
}