apport doesn't install gdb dependencies

Bug #1580287 reported by Brian Murray
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Apport
Fix Released
Undecided
Unassigned

Bug Description

In revision 3076 of apport, apport was modified to install and use gdb in the sandbox. However, installing gdb alone is insufficient as gdb has dependencies (like libpython3.5) which also need to be installed. If they are not then gdb will exit in the following manner.

'/tmp/apport_sandbox_WYSPbz/usr/bin/gdb: error while loading shared libraries: libpython3.5m.so.1.0: cannot open shared object file: No such file or directory\n'

I'd thought something like the following would resolve the issue:

deps = apport.packaging.get_dependencies('gdb')
for dep in deps:
    gdb_pks.append((dep, None))

However, it seems to get the dependencies for the version of gdb on the host, not the retracing sandbox.

(Pdb) deps
['libc6', 'libexpat1', 'liblzma5', 'libncurses5', 'libpython3.4', 'libreadline6', 'libtinfo5', 'zlib1g', 'libpython3-stdlib', 'libc-dbg', 'python3']

ubuntu@juju-stg-ue-error-tracker-machine-10:/srv/daisy.staging.ubuntu.com/staging/apport-2984$ apt-cache show gdb | grep Depends
Depends: libc6 (>= 2.15), libexpat1 (>= 2.0.1), liblzma5 (>= 5.1.1alpha+20110809), libncurses5 (>= 5.5-5~), libpython3.4 (>= 3.4.2), libreadline6 (>= 6.0), libtinfo5, zlib1g (>= 1:1.2.0)

Revision history for this message
Martin Pitt (pitti) wrote :

This got introduced recently in trunk (not in any release) in http://bazaar.launchpad.net/~apport-hackers/apport/trunk/revision/3076. This commit got reverted in http://bazaar.launchpad.net/~apport-hackers/apport/trunk/revision/3080. This reopens bug 1517257, I'll add details to that one.

Changed in apport:
status: New → 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.