cannot determine package name from file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Apport |
New
|
Undecided
|
Unassigned | ||
apport (Debian) |
Fix Released
|
Unknown
|
Bug Description
Hello Martin,
I'm trying to refresh apport in Debian, again, as a crash detection tool. apport-retrace is an important component for the workflow I want to build on Debian. Currently, apport-retrace doesn't seem to be capable of working perfect under Debian.
From the logs below, you can see that apport-retrace is not able to determine respective package name for many of the libraries.
For the same file, running dpkg yields the correct package name.
Package installation details:
rrs@learner:
ii apport 2.20.3-1 all automatically generate crash reports for debugging
ii apport-gtk 2.20.3-1 all GTK+ frontend for the apport crash report system
ii apport-notify 2.20.3-1 amd64 automatically generate crash reports for debugging
ii apport-retrace 2.20.3-1 all tools for reprocessing Apport crash reports
ii apport-valgrind 2.20.3-1 all valgrind wrapper that first downloads debug symbols
ii python-apport 2.20.3-1 all Python library for Apport crash report handling
ii python3-apport 2.20.3-1 all Python 3 library for Apport crash report handling
2016-11-05 / 15:52:03 ♒♒♒ ☺
THere is nothing interesting in apport.log either.
ERROR: apport (pid 4831) Fri Apr 1 18:25:03 2016: wrote report /var/crash/
ERROR: apport (pid 13192) Sat Apr 2 21:51:40 2016: called for pid 5360, signal 11, core limit 0
ERROR: apport (pid 13192) Sat Apr 2 21:51:40 2016: executable: /usr/lib/
ERROR: apport (pid 13192) Sat Apr 2 21:51:40 2016: is_closing_
ERROR: apport (pid 13192) Sat Apr 2 21:51:40 2016: apport: report /var/crash/
ERROR: apport (pid 1603) Sat Nov 5 14:36:59 2016: called for pid 2205, signal 11, core limit 0
ERROR: apport (pid 1603) Sat Nov 5 14:36:59 2016: executable: /usr/lib/
ERROR: apport (pid 1603) Sat Nov 5 14:36:59 2016: is_closing_
invalid /etc/os-release: Does not contain NAME and VERSION_ID
ERROR: apport (pid 1603) Sat Nov 5 14:37:01 2016: wrote report /var/crash/
=======
rrs@learner:~$ apport-retrace -S system --cache ~/.cache/
invalid /etc/os-release: Does not contain NAME and VERSION_ID
I do not have permission to write to /var/lib/debtags/
WARNING: /lib/x86_
WARNING: /lib/x86_
WARNING: /lib/x86_
WARNING: /usr/lib/
WARNING: /usr/lib/
WARNING: /lib/x86_
WARNING: /lib/x86_
WARNING: /lib/x86_
WARNING: /usr/lib/
WARNING: /usr/lib/
WARNING: /usr/lib/
WARNING: /lib/x86_
WARNING: /lib/x86_
WARNING: /lib/x86_
WARNING: /lib/x86_
WARNING: /usr/lib/
WARNING: /usr/lib/
WARNING: /lib/x86_
WARNING: /lib/x86_
WARNING: /usr/lib/
WARNING: /usr/lib/
WARNING: /usr/lib/
WARNING: /lib/x86_
WARNING: /lib/x86_
WARNING: /usr/lib/
WARNING: /usr/lib/
WARNING: /lib/x86_
WARNING: /lib/x86_
WARNING: /lib/x86_
WARNING: /usr/lib/
WARNING: /lib/x86_
WARNING: /usr/lib/
WARNING: /usr/lib/
WARNING: /usr/lib/
WARNING: /lib/x86_
WARNING: /usr/lib/
WARNING: /lib/x86_
WARNING: /usr/lib/
WARNING: /usr/lib/
WARNING: /usr/lib/
WARNING: /lib/x86_
WARNING: /usr/lib/
WARNING: /lib/x86_
WARNING: /lib/x86_
WARNING: /usr/lib/
WARNING: /usr/lib/
WARNING: /usr/lib/
WARNING: /lib/x86_
WARNING: /lib/x86_
WARNING: /usr/lib/
WARNING: /usr/lib/
WARNING: /usr/lib/
WARNING: /lib/x86_
WARNING: /lib/x86_
ERROR: Cannot find package which ships ExecutablePath /usr/lib/
2016-11-05 / 15:48:21 ♒♒♒ ☹ => 1
rrs@learner:~$ dpkg -S /lib/x86_
liblzma5:amd64: /lib/x86_
2016-11-05 / 15:48:39 ♒♒♒ ☺
Changed in apport (Debian): | |
importance: | Undecided → Unknown |
status: | New → Unknown |
Changed in apport (Debian): | |
status: | Unknown → Confirmed |
tags: | added: id-5956ac068ac02cedd0e8e17c |
Changed in apport (Debian): | |
status: | Confirmed → Fix Released |
Martin,
Can you give me some pointers on how this should be dealt with in Debian ?
rrs@learner: ~/rrs-home/ Community/ Packaging/ apport (master)$ apport-retrace -S "Debian testing" --stdout /var/crash/ _usr_bin_ evolution. 1000.crash apport- retrace" , line 301, in <module> dynamic_ origins) python2. 7/dist- packages/ apport/ sandboxutils. py", line 203, in make_sandbox e=report. get('Architectu re'), origins=origins) python2. 7/dist- packages/ apport/ packaging_ impl.py" , line 727, in install_packages set_mirror( self._get_ primary_ mirror_ from_apt_ sources( apt_sources) ) python2. 7/dist- packages/ apport/ packaging_ impl.py" , line 1112, in _get_primary_ mirror_ from_apt_ sources sources. list'
Traceback (most recent call last):
File "/usr/bin/
options.
File "/usr/lib/
architectur
File "/usr/lib/
self.
File "/usr/lib/
with open(apt_sources) as f:
IOError: [Errno 2] No such file or directory: u'Debian testing/Debian testing/
2016-11-11 / 23:04:35 ♒♒♒ ☹ => 1
rrs@learner: ~/rrs-home/ Community/ Packaging/ apport (master)$ apport-retrace -S testing --stdout /var/crash/ _usr_bin_ evolution. 1000.crash apport- retrace" , line 301, in <module> dynamic_ origins) python2. 7/dist- packages/ apport/ sandboxutils. py", line 203, in make_sandbox e=report. get('Architectu re'), origins=origins) python2. 7/dist- packages/ apport/ packaging_ impl.py" , line 727, in install_packages set_mirror( self._get_ primary_ mirror_ from_apt_ sources( apt_sources) ) python2. 7/dist- packages/ apport/ packaging_ impl.py" , line 1112, in _get_primary_ mirror_ from_apt_ sources sources. list'
Traceback (most recent call last):
File "/usr/bin/
options.
File "/usr/lib/
architectur
File "/usr/lib/
self.
File "/usr/lib/
with open(apt_sources) as f:
IOError: [Errno 2] No such file or directory: u'testing/Debian testing/
2016-11-11 / 23:04:46 ♒♒♒ ☹ => 1
The only argument it can take is system, but that has its own glitch. When passing 'system' as the sandbox type, it only looks at /etc/apt/ sources. list. Since my debug URLs are defined inside sources.list.d/, it doesn't seem to be picking that.
OTOH, if I do not pass -S, I am not getting the desired result.
rrs@learner: ~/rrs-home/ Community/ Packaging/ apport (master)$ apport-retrace --stdout /var/crash/ _usr_bin_ evolution. 1000.crash 3.22.2. orig.tar. xz 3.22.2- 1.debian. tar.xz libevolution_ avoid-version. patch evolution/ libevolution- mail.so. 0 evolution/ libevolution- util.so. 0 e_cell_ toggle_ new () from /usr/lib/ evolution/ libevolution- util.so. 0 evolution/ libevolution- util.so. 0 evolution/ libevolution- util.so. 0
dpkg-source: info: extracting evolution in evolution-3.22.2
dpkg-source: info: unpacking evolution_
dpkg-source: info: unpacking evolution_
dpkg-source: info: applying 02_nss_paths.patch
dpkg-source: info: applying 10_revert_
--- stack trace ---
#0 0x0000000000000000 in ?? ()
No symbol table info available.
#1 0x00007f5871a1e63c in ?? () from /usr/lib/
No symbol table info available.
#2 0x00007f58998ce453 in ?? () from /usr/lib/
No symbol table info available.
#3 0x00007f58998ce787 in gal_a11y_
No symbol table info available.
#4 0x00007f58998d2045 in ?? () from /usr/lib/
No symbol table info available.
#5 0x00007f58998d2236 in ?? () from /usr/lib/
No symbol...