glib's gdb auto-load scripts are not loaded

Bug #1192372 reported by Tim Lunn
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
glib2.0 (Ubuntu)
Fix Released
Undecided
Tim Lunn

Bug Description

gdb is failing to find the python-scripts for glib/gobject, that should auto-loaded at startup.

auto-load: Attempted file "/usr/lib/debug/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.3701.0-gdb.gdb" does not exist.
auto-load: Attempted file "/usr/share/gdb/auto-load/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.3701.0-gdb.gdb" does not exist.
auto-load: Attempted file "/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.3701.0-gdb.py" does not exist.
auto-load: Expanded $-variables to "/usr/lib/debug:/usr/share/gdb/auto-load".
auto-load: Searching 'set auto-load scripts-directory' path "$debugdir:$datadir/auto-load".
auto-load: Attempted file "/usr/lib/debug/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.3701.0-gdb.py" does not exist.
auto-load: Attempted file "/usr/share/gdb/auto-load/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.3701.0-gdb.py" does not exist.
auto-load: Attempted file "/usr/lib/debug/lib/x86_64-linux-gnu/libglib-2.0.so.0.3701.0-gdb.gdb" does not exist.
auto-load: Expanded $-variables to "/usr/lib/debug:/usr/share/gdb/auto-load".
auto-load: Searching 'set auto-load scripts-directory' path "$debugdir:$datadir/auto-load".
auto-load: Attempted file "/usr/lib/debug/usr/lib/debug/lib/x86_64-linux-gnu/libglib-2.0.so.0.3701.0-gdb.gdb" does not exist.
auto-load: Attempted file "/usr/share/gdb/auto-load/usr/lib/debug/lib/x86_64-linux-gnu/libglib-2.0.so.0.3701.0-gdb.gdb" does not exist.
auto-load: Attempted file "/usr/lib/debug/lib/x86_64-linux-gnu/libglib-2.0.so.0.3701.0-gdb.py" does not exist.
auto-load: Expanded $-variables to "/usr/lib/debug:/usr/share/gdb/auto-load".
auto-load: Searching 'set auto-load scripts-directory' path "$debugdir:$datadir/auto-load".
auto-load: Attempted file "/usr/lib/debug/usr/lib/debug/lib/x86_64-linux-gnu/libglib-2.0.so.0.3701.0-gdb.py" does not exist.
auto-load: Attempted file "/usr/share/gdb/auto-load/usr/lib/debug/lib/x86_64-linux-gnu/libglib-2.0.so.0.3701.0-gdb.py" does not exist.
auto-load: Attempted file "/lib/x86_64-linux-gnu/libglib-2.0.so.0.3701.0-gdb.gdb" does not exist.
auto-load: Expanded $-variables to "/usr/lib/debug:/usr/share/gdb/auto-load".
auto-load: Searching 'set auto-load scripts-directory' path "$debugdir:$datadir/auto-load".
auto-load: Attempted file "/usr/lib/debug/lib/x86_64-linux-gnu/libglib-2.0.so.0.3701.0-gdb.gdb" does not exist.
auto-load: Attempted file "/usr/share/gdb/auto-load/lib/x86_64-linux-gnu/libglib-2.0.so.0.3701.0-gdb.gdb" does not exist.
auto-load: Attempted file "/lib/x86_64-linux-gnu/libglib-2.0.so.0.3701.0-gdb.py" does not exist.
auto-load: Expanded $-variables to "/usr/lib/debug:/usr/share/gdb/auto-load".
auto-load: Searching 'set auto-load scripts-directory' path "$debugdir:$datadir/auto-load".
auto-load: Attempted file "/usr/lib/debug/lib/x86_64-linux-gnu/libglib-2.0.so.0.3701.0-gdb.py" does not exist.
auto-load: Attempted file "/usr/share/gdb/auto-load/lib/x86_64-linux-gnu/libglib-2.0.so.0.3701.0-gdb.py" does not exist.

ProblemType: BugDistroRelease: Ubuntu 13.10
Package: libglib2.0-dev 2.37.1-0ubuntu1
ProcVersionSignature: Ubuntu 3.9.0-4.9-generic 3.9.4
Uname: Linux 3.9.0-4-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.10.2-0ubuntu1
Architecture: amd64
Date: Wed Jun 19 08:50:04 2013
InstallationDate: Installed on 2012-09-23 (268 days ago)
InstallationMedia: Ubuntu GNOME Remix 12.10 "Quantal Quetzal" - Alpha amd64(20120922)
MarkForUpload: TrueSourcePackage: glib2.0
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Tim Lunn (darkxst) wrote :
Tim Lunn (darkxst)
description: updated
Revision history for this message
Tim Lunn (darkxst) wrote :

the python scripts are supposed to be installed into
/usr/share/gdb/auto-load$(ABS_GLIB_RUNTIME_LIBDIR)

For some reason ABS_GLIB_RUNTIME_LIBDIR is not getting set during glib build.

However since we move libglib2 to /lib, this would need to be overridden in the install file either way.

Revision history for this message
Tim Lunn (darkxst) wrote :

The backtrace frame filters require patches that are only shipped on Fedora, it will however be available upstream in gdb 7.7

This adds a patch to ignore the frame-filter stuff. Pretty printers still work

Revision history for this message
Tim Lunn (darkxst) wrote :
Martin Pitt (pitti)
Changed in glib2.0 (Ubuntu):
status: New → Fix Committed
assignee: nobody → Tim (darkxst)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package glib2.0 - 2.39.1-0ubuntu3

---------------
glib2.0 (2.39.1-0ubuntu3) trusty; urgency=low

  * debian/libglib2.0-dev.install.in: Install gdb auto-load scripts to the
    correct location (LP: #1192372)
  * debian/patches:
    - disable-frame-filters.patch: Disable the python frame filters, as they
    are not in gdb 7.6, but will be included upstread in gdb 7.7 (BGO: #613732)
    - fix-long-for-python3.patch: gdb is using python3 where long() no longer
    exists
 -- Tim Lunn <email address hidden> Wed, 04 Dec 2013 09:03:26 +1100

Changed in glib2.0 (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.