Bug 1073284 - gdb/gobject.py: ImportError: No module named backtrace
Summary: gdb/gobject.py: ImportError: No module named backtrace
Keywords:
Status: CLOSED DUPLICATE of bug 972351
Alias: None
Product: Fedora
Classification: Fedora
Component: glib2
Version: 20
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Matthias Clasen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-03-06 06:54 UTC by Jiri Popelka
Modified: 2014-06-30 03:27 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-30 03:27:04 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
backtrace written to /tmp by darktable (20.33 KB, text/plain)
2014-03-06 06:54 UTC, Jiri Popelka
no flags Details

Description Jiri Popelka 2014-03-06 06:54:07 UTC
Created attachment 871237 [details]
backtrace written to /tmp by darktable

I've seen this when darktable crashed:

[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
0x0000003c7acea9dd in poll () from /lib64/libc.so.6
Traceback (most recent call last):
  File "/usr/share/gdb/auto-load/usr/lib64/libgobject-2.0.so.0.3800.2-gdb.py", line 9, in <module>
    from gobject import register
  File "/usr/share/glib-2.0/gdb/gobject.py", line 3, in <module>
    import gdb.backtrace
ImportError: No module named backtrace
Traceback (most recent call last):
  File "/usr/share/gdb/auto-load/usr/lib64/libgobject-2.0.so.0.3800.2-gdb.py", line 9, in <module>
    from gobject import register
  File "/usr/share/glib-2.0/gdb/gobject.py", line 3, in <module>
    import gdb.backtrace
ImportError: No module named backtrace
backtrace written to /tmp/darktable_bt_SP9HCX.txt
Segmentation fault

Version-Release number of selected component (if applicable):
glib2-devel-2.38.2-2.fc20.x86_64
darktable-1.4.1-3.fc20.x86_64


Steps to Reproduce:
No idea

Comment 1 Yann Droneaud 2014-03-31 15:52:25 UTC
I'm having this issue too on Fedora 20.

According to /usr/share/glib-2.0/gdb/gobject.py:

  import gdb
  import glib
  import gdb.backtrace
  import gdb.command.backtrace

The file seems to be the same in Fedora 19.

Trying the following commands on gdb prompt in Fedora 19 seems to indicate that gdb.backtrace nor gdb.command.backtrace exist.

(gdb) python import gdb                    # OK
(gdb) python import gdb.command            # OK
(gdb) python import gdb.command.backtrace  # failure
(gdb) python import gdb.backtrace          # failure

This problem might affect Fedora 19 too, but I haven't seen it yet.

Comment 2 Sudhir Khanger 2014-05-07 15:09:26 UTC
I have the same problem on Fedora 20 KDE.

[donnie@fedora ~]$ gdb systemsettings
GNU gdb (GDB) Fedora 7.6.50.20130731-19.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/systemsettings...Reading symbols from /usr/bin/systemsettings...(no debugging symbols found)...done.
(no debugging symbols found)...done.
Missing separate debuginfos, use: debuginfo-install kde-workspace-4.11.8-1.fc20.x86_64
(gdb) run
Starting program: /usr/bin/systemsettings 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Traceback (most recent call last):
  File "/usr/share/gdb/auto-load/usr/lib64/libgobject-2.0.so.0.3800.2-gdb.py", line 9, in <module>
    from gobject import register
  File "/usr/share/glib-2.0/gdb/gobject.py", line 3, in <module>
    import gdb.backtrace
ImportError: No module named backtrace
Traceback (most recent call last):
  File "/usr/share/gdb/auto-load/usr/lib64/libgobject-2.0.so.0.3800.2-gdb.py", line 9, in <module>
    from gobject import register
  File "/usr/share/glib-2.0/gdb/gobject.py", line 3, in <module>
    import gdb.backtrace
ImportError: No module named backtrace
Detaching after fork from child process 29207.
[Inferior 1 (process 29203) exited normally]
(gdb) quit

And I can confirm Yann Droneaud's observations.

(gdb) python import gdb
(gdb) python import gdb.command
(gdb) python import gdb.command.backtrace
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named backtrace
Error while executing Python code.
(gdb) python import gdb.backtrace
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named backtrace
Error while executing Python code.

Comment 3 Moez Roy 2014-06-30 03:27:04 UTC

*** This bug has been marked as a duplicate of bug 972351 ***


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