From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id F15283857821; Sun, 6 Dec 2020 16:58:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F15283857821 From: "ppluzhnikov at google dot com" To: gdb-prs@sourceware.org Subject: [Bug python/27021] Python Exception 'NoneType' object has no attribute 'pointer': when using pretty-printer Date: Sun, 06 Dec 2020 16:58:14 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed 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: ppluzhnikov 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: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Dec 2020 16:58:15 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27021 --- Comment #2 from Paul Pluzhnikov --- There is a very similar failure when the current frame is in the correct ELF image, but has the "wrong" language: --- main.cc --- #include extern "C" int foo(); static std::map foo_map; int main() { foo_map[1] =3D 10; foo_map[2] =3D 20; return foo(); } --- foo.c --- // Note: plain "C" #include int foo() { abort(); } gcc -g -c foo.c && g++ -g main.cc foo.o && ./a.out gdb ./a.out core GNU gdb (GDB) 11.0.50.20201205-git ... Reading symbols from a.out... [New LWP 228379] Core was generated by `./a.out'. Program terminated with signal SIGABRT, Aborted. #0 __GI_raise (sig=3Dsig@entry=3D6) at ../sysdeps/unix/sysv/linux/raise.c:= 50 50 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory. (gdb) up #1 0x00007fb556b98537 in __GI_abort () at abort.c:79 79 abort.c: No such file or directory. (gdb) #2 0x000055732abe9942 in foo () at foo.c:3 3 int foo() { abort(); } (gdb) p foo_map Python Exception 'NoneType' object has no attribute 'pointer': $1 =3D std::map with 2 elements (gdb) info symbol foo foo in section .text of /tmp/a.out --=20 You are receiving this mail because: You are on the CC list for the bug.=