From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 120532 invoked by alias); 20 May 2015 21:32:07 -0000 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org Received: (qmail 120312 invoked by uid 48); 20 May 2015 21:32:06 -0000 From: "dje at google dot com" To: gdb-prs@sourceware.org Subject: [Bug python/18438] New: PyExc_MemoryError != gdbpy_gdb_memory_error Date: Wed, 20 May 2015 21:32:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: python X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dje at google dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-q2/txt/msg00301.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=18438 Bug ID: 18438 Summary: PyExc_MemoryError != gdbpy_gdb_memory_error Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: python Assignee: unassigned at sourceware dot org Reporter: dje at google dot com Target Milestone: --- A user is getting the following in a backtrace: ... #7 0x000000000040bac0 in operator<< , std::allocator > (__os=warning: RTTI symbol not found for class 'std::ostream' ..., Traceback (most recent call last): File "/foo/printers.py", line 38, in to_string return ptr.lazy_string (length = length) MemoryError: Cannot create a lazy string with address 0x0, and a non-zero length. __str= ) at bar/string:927 #8 0x000000000040ba55 in main () at baz.cc:10 The RTTI error is a separate bug (IIRC PR 18141, PR 18417 - there are multiple bugs here, I could be forgetting one). This bug is the python backtrace being printed when there's a memory error. That's not supposed to happen. The bug arises because PyExc_MemoryError is being used instead of gdbpy_gdb_memory_error. Patch to follow. -- You are receiving this mail because: You are on the CC list for the bug.