| Summary: | gdb py-bt command raises an exception while processing statements form eval , causes missing trace info | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Attila Fazekas <afazekas> | ||||||||
| Component: | python | Assignee: | Bohuslav "Slavek" Kabrda <bkabrda> | ||||||||
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||
| Severity: | unspecified | Docs Contact: | |||||||||
| Priority: | unspecified | ||||||||||
| Version: | 19 | CC: | apevec, bkabrda, dmalcolm, ivazqueznet, jonathansteffan, mstuchli, spoore, tomspur | ||||||||
| Target Milestone: | --- | ||||||||||
| Target Release: | --- | ||||||||||
| Hardware: | Unspecified | ||||||||||
| OS: | Unspecified | ||||||||||
| Whiteboard: | |||||||||||
| Fixed In Version: | python-2.7.5-8.fc19 | Doc Type: | Bug Fix | ||||||||
| Doc Text: | Story Points: | --- | |||||||||
| Clone Of: | Environment: | ||||||||||
| Last Closed: | 2013-10-12 04:25:27 UTC | Type: | Bug | ||||||||
| Regression: | --- | Mount Type: | --- | ||||||||
| Documentation: | --- | CRM: | |||||||||
| Verified Versions: | Category: | --- | |||||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||||
| Attachments: |
|
||||||||||
|
Description
Attila Fazekas
2013-09-15 09:47:24 UTC
Created attachment 797860 [details]
simple-py-gdb-eval.patch
A very simple patch attached, which solves the issues most annoying aspect: the partial stack-trace.
Created attachment 797861 [details]
simple-py-gdb-eval-trace.patch
Patch looks reasonable to me Thanks for the patch, I'll accept it and build. (Note: Python 3 version is not affected by this, as there is a try/except block that opens the file. But this may be a way to display nicer information, so I'll try to submit to upstream anyway) python-2.7.5-8.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/python-2.7.5-8.fc20 python-2.7.5-8.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/python-2.7.5-8.fc19 Package python-2.7.5-8.fc20: * should fix your issue, * was pushed to the Fedora 20 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing python-2.7.5-8.fc20' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-18526/python-2.7.5-8.fc20 then log in and leave karma (feedback). I don't see this failure in f20 now. python-2.7.5-8.fc20.x86_64 [root@f20-1 ~]# gdb --args python die2.py GNU gdb (GDB) Fedora 7.6.50.20130731-12.fc20 Copyright (C) 2013 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-redhat-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word". .. Reading symbols from /usr/bin/python2.7...Reading symbols from /usr/lib/debug/usr/bin/python2.7.debug...done. done. (gdb) run Starting program: /usr/bin/python2.7 die2.py [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". Program received signal SIGSEGV, Segmentation fault. 0x00007ffff6db36ba in strlen () from /lib64/libc.so.6 Missing separate debuginfos, use: debuginfo-install glibc-2.18-11.fc20.x86_64 libffi-3.0.13-5.fc20.x86_64 (gdb) py-bt #10 Frame 0x6cd9b0, for file /usr/lib64/python2.7/ctypes/__init__.py, line 504, in string_at (ptr=3735928559, size=-1) return _string_at(ptr, size) #14 Frame 0x6f57f0, for file die2.py, line 6, in die_func () string_at(0xDEADBEEF) #17 Frame 0x6f3960, for file <string>, line 1, in <module> () (in an eval block) #24 Frame 0x642680, for file die2.py, line 8, in <module> () eval("die_func()") python-2.7.5-8.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report. python-2.7.5-8.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report. python-2.7.5-8.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report. |