This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug python/21048] New: backtrace is broken on i686


https://sourceware.org/bugzilla/show_bug.cgi?id=21048

            Bug ID: 21048
           Summary: backtrace is broken on i686
           Product: gdb
           Version: 7.12
            Status: NEW
          Severity: normal
          Priority: P2
         Component: python
          Assignee: unassigned at sourceware dot org
          Reporter: jan.kratochvil at redhat dot com
  Target Milestone: ---

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

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]