Bug 556738 - RFE: Use /usr/share/doc/python-devel-2.6*/gdbinit if app is python
Summary: RFE: Use /usr/share/doc/python-devel-2.6*/gdbinit if app is python
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: abrt
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Denys Vlasenko
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: ABRTF17
TreeView+ depends on / blocked
 
Reported: 2010-01-19 09:33 UTC by Tim Waugh
Modified: 2011-11-29 11:04 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2011-11-29 11:04:36 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Tim Waugh 2010-01-19 09:33:53 UTC
Description of problem:
The gdb init script shipped with the python-devel package has lots of useful commands for working out where we are in the Python source script and so on.  If the crash application is python it would be great if abrt used some of these to point to where in the Python program it crashed.

Just having the interpreter's stack trace isn't so useful.  It isn't usually the interpreter at fault.

Comment 1 Denys Vlasenko 2010-05-27 13:22:13 UTC
Can you be more specific? Is the bug is that
- python-devel gdb plugin doesn't load?
  or
- it loads all right, but abrt doesnt use any cool and useful commands it provides when it generates a backtrace? And if so, which exactly commands do you want abrt to run in gdb? (I'm no expert on gdb-on-python, sorry)

Comment 2 Tim Waugh 2010-05-28 09:32:40 UTC
I'm no expert on it either.  Looks like abrt would need to run extra commands, perhaps something like 'pystackv' -- in addition to loading the plugin in the first place.

Comment 3 Jiri Moskovcak 2011-11-28 12:26:07 UTC
I thought it's loaded automatically, CCing dmalcolm as he should be expert on this.

Comment 4 Dave Malcolm 2011-11-28 17:13:25 UTC
It isn't loaded automatically, but it's been superseded for gdb 7 onwards by the gdb Python script I wrote for Python itself.  See:
  http://fedoraproject.org/wiki/Features/EasierPythonDebugging

From Fedora 13 onwards, a regular "bt" in gdb should show Python-level information from a stack track involving the Python interpreter, assuming that python-debuginfo is installed (similar for python3-debuginfo).  This has been working for me with abrt crash reports for Python since then.

Comment 5 Dave Malcolm 2011-11-28 17:14:21 UTC
See also the notes I wrote for upstream here: http://docs.python.org/devguide/gdb.html

Comment 6 Tim Waugh 2011-11-29 11:04:36 UTC
Indeed, thanks.


Note You need to log in before you can comment on or make changes to this bug.