https://bugzilla.redhat.com/show_bug.cgi?id=1411094 Hironobu Ishii 2017-01-08 11:58:16 CET Description of problem: On i686 (or 32-bit machine), bt does not work. Applying following upstream commit solved this bug in my environment. Fix some error-handling bugs in python frame filters http://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commit;h=30a7bb833cbd848b1814f18b91dfdafba4e86839 Version-Release number of selected component (if applicable): gdb-7.12-29.fc25 How reproducible: Always, but it seems to depend on core complexity or something. Steps to Reproduce: 1. Run firefox and gcore firefox. 2. gdb /usr/lib/firefox/firefox core.XXX 3. bt in gdb Actual results: (gdb) bt Python Exception <class 'SystemError'> <built-in function isinstance> returned a result with an error set: Python Exception <class 'SystemError'> <built-in function isinstance> returned a result with an error set: Python Exception <class 'SystemError'> <built-in function isinstance> returned a result with an error set: Python Exception <class 'SystemError'> <built-in function isinstance> returned a result with an error set: #0 0xffffffff in #1 0xffffffff in Python Exception <class 'SystemError'> <built-in function isinstance> returned a result with an error set: Python Exception <class 'SystemError'> <built-in function isinstance> returned a result with an error set: Python Exception <class 'SystemError'> <built-in function isinstance> returned a result with an error set: Python Exception <class 'SystemError'> <built-in function isinstance> returned a result with an error set: Python Exception <class 'SystemError'> <built-in function isinstance> returned a result with an error set: Expected results: This log was collected after applying the upstream patch. (gdb) bt #0 0xb7730d05 in __kernel_vsyscall () #1 0xb73f655f in poll () at ../sysdeps/unix/syscall-template.S:84 #2 0xb6123f4c in poll (__timeout=-1, __nfds=5, __fds=0xa2930100) at /usr/include/bits/poll2.h:46 #3 0xb6123f4c in g_poll (fds=0xa2930100, nfds=5, timeout=-1) at gpoll.c:124 #4 0xb2cb07ba in PollWrapper(GPollFD*, guint, gint) (ufds=ufds@entry=0xa2930100, nfsd=nfsd@entry=5, timeout_=timeout_@entry=-1) at /usr/src/debug/firefox-50.1.0/firefox-50.1.0/widget/gtk/nsAppShell.cpp:42 #5 0xb61136e8 in g_main_context_poll (priority=<optimized out>, n_fds=5, fds=0xa2930100, timeout=<optimized out>, context=0xb712da90) at gmain.c:4228 #6 0xb61136e8 in g_main_context_iterate (context=context@entry=0xb712da90, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3924 #7 0xb6113837 in g_main_context_iteration (context=0xb712da90, may_block=1) at gmain.c:3990 #8 0xb2cb0847 in nsAppShell::ProcessNextNativeEvent(bool) (this=0xa9749b50, mayWait=true) at /usr/src/debug/firefox-50.1.0/firefox-50.1.0/widge/gtk/nsAppShell.cpp:270 Additional info: This bug is also repoted in debian. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=814558
Backported: commit 30a7bb833cbd848b1814f18b91dfdafba4e86839 Author: Tom Tromey <tom@tromey.com> Date: Mon Oct 31 11:10:35 2016 -0600 Fix some error-handling bugs in python frame filters [RFA 1/2] Fix some error-handling bugs in python frame filters https://sourceware.org/ml/gdb-patches/2016-10/msg00870.html https://sourceware.org/ml/gdb-patches/2016-11/msg00076.html into 7.12 as: commit df1fe27b672d7aa054eaad8b51f86302f7e46c65 Author: Tom Tromey <tom@tromey.com> Date: Mon Oct 31 11:10:35 2016 -0600 Fix some error-handling bugs in python frame filters