apport-retrace fails on reports for scripts

Bug #72201 reported by Laurent Bonnaud
2
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Fix Released
Medium
Martin Pitt

Bug Description

Binary package hint: apport

Here is the problem:

$ apport-retrace -d /var/crash/_usr_bin_gaphor.1000.crash
Traceback (most recent call last):
  File "/usr/bin/apport-retrace", line 189, in ?
    debug_dir = prepare_debugdir(report, options.cache_dir)
  File "/usr/bin/apport-retrace", line 129, in prepare_debugdir
    assert ldd.returncode == 0
AssertionError

Revision history for this message
Laurent Bonnaud (laurent-bonnaud) wrote :
Revision history for this message
Caroline Ford (secretlondon) wrote :

apport >gaphor

Revision history for this message
Laurent Bonnaud (laurent-bonnaud) wrote :

I do not agree with the previous change: this is a bug in apport itself.

Revision history for this message
Caroline Ford (secretlondon) wrote :

The trace says:

Core was generated by `/usr/bin/python /usr/bin/gaphor'.

The trace is the file that crashed apport?

Revision history for this message
Laurent Bonnaud (laurent-bonnaud) wrote : Re: [Bug 72201] Re: AssertionError with -d option

On Fri, 2006-11-17 at 21:24 +0000, Caroline Ford wrote:
> The trace is the file that crashed apport?

Yes it is.

--
Laurent Bonnaud.
http://www.lis.inpg.fr/pages_perso/bonnaud/

Revision history for this message
Martin Pitt (pitti) wrote : Re: AssertionError with -d option

Hmm, this is a bit hard to reproduce since gaphor is uninstallable in both edgy and feisty (on amd64 at least).

Changed in apport:
assignee: nobody → pitti
Revision history for this message
Martin Pitt (pitti) wrote :

Can you please give me the output of

  file /usr/bin/gaphor
  ldd /usr/bin/gaphor; echo $?

? Thank you!

Changed in apport:
status: Unconfirmed → Needs Info
Revision history for this message
Laurent Bonnaud (laurent-bonnaud) wrote : Re: [Bug 72201] Re: AssertionError with -d option

On Sat, 2006-11-25 at 08:27 +0000, Martin Pitt wrote:
> Can you please give me the output of
>
> file /usr/bin/gaphor
> ldd /usr/bin/gaphor; echo $?

Here it is:

$ file /usr/bin/gaphor
/usr/bin/gaphor: python script text executable

$ ldd /usr/bin/gaphor; echo $?
        not a dynamic executable
1

--
Laurent Bonnaud.
http://www.lis.inpg.fr/pages_perso/bonnaud/

Revision history for this message
Martin Pitt (pitti) wrote : Re: AssertionError with -d option

Ah, I see. apport-retrace should use the InterpreterPath for ldd'ing, not the ExecutablePath.

Changed in apport:
status: Needs Info → In Progress
importance: Undecided → Medium
Martin Pitt (pitti)
Changed in apport:
status: In Progress → Fix Committed
Revision history for this message
Martin Pitt (pitti) wrote :

 apport (0.32) feisty; urgency=low
 .
   * apport_utils.py: Filter out "no debugging symbols found" warnings from gdb
     outputs, and add some tests for this. Thanks to Kees Cook for the patch!
   * test-apport: Fix AGENTPATH directory when building the preload library
     (recently moved to bin/).
   * use-local: Fix path to apport as well (recently moved to bin/).
   * apport-retrace: Use ldd on InterpreterPath if present; ldd'ing scripts
     will not get us very far. Closes: LP#72201

Changed in apport:
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

Bug attachments

Remote bug watches

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