Merge lp:~darkxst/apport/sandbox-autoload into lp:apport
| Status: | Needs review |
|---|---|
| Proposed branch: | lp:~darkxst/apport/sandbox-autoload |
| Merge into: | lp:apport |
| Diff against target: |
68 lines (+23/-2) 2 files modified
apport/report.py (+22/-2) bin/apport-retrace (+1/-0) |
| To merge this branch: | bzr merge lp:~darkxst/apport/sandbox-autoload |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Martin Pitt | 2015-03-12 | Needs Information on 2015-03-12 | |
|
Review via email:
|
|||
Description of the Change
This is mostly useful for glib based apps to get the pretty printers working, which gives improved output on gobjects and signals. Though there are a few other packages that ship them as well.
apport-retrace when run against the system filesystem would already pick up these scripts.
| Tim (darkxst) wrote : | # |
It currently replaces the search path, which seems fine to me since the scripts are always versioned with soname, so doesnt make sense to load them from the host. (actually thats not entirely true, python has a wrapper for the binary which obviously not versioned.)
auto-load: Attempted file "/lib/x86_
auto-load: Attempted file "sandbox/
auto-load: Attempted file "/lib/x86_
auto-load: Attempted file "sandbox/
auto-load: Loading python script "sandbox/
auto-load: Matching file "sandbox/
auto-load: File "sandbox/
The default search path is
(gdb) show auto-load scripts-directory
List of directories from which to load auto-loaded scripts is $debugdir:
So could use the following to append to the default search paths
set auto-load scripts-directory $debugdir:
| Tim (darkxst) wrote : | # |
actually the solib prefix gets inserted in the path, so we will never match a script on the system $debugdir is already sandbox-ified. we also need to insert a symlink into the sandbox so the path can match
auto-load: Attempted file "/tmp/apport_
| Tim (darkxst) wrote : | # |
This is better:
$ apport-retrace -g -S config /var/crash/
(gdb) info auto-load python-scripts
Loaded Script
Yes /tmp/apport_
Yes /tmp/apport_
Yes /tmp/apport_


Very nice, thanks! Will that append to the default search path, or completely replace it? https:/ /sourceware. org/gdb/ onlinedocs/ gdb/objfile_ 002dgdbdotext- file.html# set%20auto- load%20scripts- directory doesn't really tell.. We certainly do want to keep gdb's scripts on the host, just additionally load the ones in the sandbox.