Bug 46000 - runtime error in std::set python pretty printer
Summary: runtime error in std::set python pretty printer
Status: RESOLVED DUPLICATE of bug 43628
Alias: None
Product: gcc
Classification: Unclassified
Component: libstdc++ (show other bugs)
Version: 4.5.2
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-13 09:15 UTC by Pawel Sikora
Modified: 2010-10-13 10:04 UTC (History)
0 users

See Also:
Host: x86_64-gnu-linux
Target: x86_64-gnu-linux
Build: x86_64-gnu-linux
Known to work:
Known to fail:
Last reconfirmed:


Attachments
reduced testcase. (143 bytes, application/octet-stream)
2010-10-13 09:15 UTC, Pawel Sikora
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pawel Sikora 2010-10-13 09:15:37 UTC
Created attachment 22027 [details]
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.

}
Comment 1 Jonathan Wakely 2010-10-13 09:31:57 UTC
Hmm, that looks like PR 44645, which is fixed
Comment 2 Jonathan Wakely 2010-10-13 10:04:35 UTC
works fine with 4.5.2 20101007

*** This bug has been marked as a duplicate of bug 43628 ***