Program that crashed as root: report can not be sent

Bug #87364 reported by ChristofferS
6
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Confirmed
Low
Unassigned

Bug Description

Binary package hint: apport

I tried running NetworkManager as root through sudo.

It crashed and apport caught it.

When I tried to send the crash report, I was asked my credidentials, clicked Report problem.

Firefox was running as a normal user during this.

After some time, a message box from Firefox said it was already running.

The crash report never got sent.

Revision history for this message
Cristian Aravena Romero (caravena) wrote :

See /var/crash

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

This should have been fixed in

apport (0.56) feisty; urgency=low

  * apport/ui.py, open_url(): When being invoked as root, call gnome-open or
    firefox as root through sudo instead of dropping our uid/gid and calling
    it normally. The latter does not work for Firefox for some mysterious
    reason. Thanks to Mika Fischer for this trick. (LP: #81207)

What is the output of

  dpkg -l apport-gtk

for you? If your version is older than 0.59, please upgrade your Feisty system.

Changed in apport:
status: Unconfirmed → Needs Info
Revision history for this message
ChristofferS (ubuntu-curo) wrote :

Output of dkpg -l apport-gtk:

dpkg -l apport-gtk
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-==============-==============-============================================
ii apport-gtk 0.59 GTK frontend for the apport crash report sys

I just tried crashing NetworkManager again.

I saw the messagebox from firefox, saying I had to close it, so the report never got sent.

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

Can you please give me the output of

  dpkg -l python-apport
  gconftool --get /desktop/gnome/url-handlers/http/command

? Does firefox open correctly if you have it closed before submitting the crash?

Revision history for this message
ChristofferS (ubuntu-curo) wrote :

dpkg -l python-apport:

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-==============-==============-============================================
ii python-apport 0.59 apport crash report handling library

gconftool --get /desktop/gnome/url-handlers/http/command:

firefox %s

When I closed firefox prior to submitting the crash, yes it opened correctly and sent the report.

Martin Pitt (pitti)
Changed in apport:
status: Needs Info → Unconfirmed
Revision history for this message
Jérôme Guelfucci (jerome-guelfucci-deactivatedaccount) wrote :

Is this fixed in the latest release of Ubuntu ?

Changed in apport:
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
ChristofferS (ubuntu-curo) wrote :

I haven't been able to upload reports for root in gutsy, so I think it is not fixed.

Changed in apport:
status: Incomplete → Confirmed
Revision history for this message
Juan Pablo Salazar Bertín (snifer) wrote :

At least in Gutsy, it's probably related to bug #152990.

Revision history for this message
Juan Pablo Salazar Bertín (snifer) wrote :

snifer@snifer-laptop:/var/crash$ ls -l
total 28
-rw------- 1 root root 27297 2007-10-15 03:38 _usr_bin_displayconfig-gtk.0.crash
snifer@snifer-laptop:/var/crash$ /usr/share/apport/apport-gtk -c _usr_bin_displayconfig-gtk.0.crash
Traceback (most recent call last):
  File "/usr/share/apport/apport-gtk", line 252, in <module>
    app.run_argv()
  File "/var/lib/python-support/python2.5/apport/ui.py", line 256, in run_argv
    self.run_crash(self.options.crash_file, False)
  File "/var/lib/python-support/python2.5/apport/ui.py", line 113, in run_crash
    apport.fileutils.mark_report_seen(report_file)
  File "/var/lib/python-support/python2.5/apport/fileutils.py", line 92, in mark_report_seen
    f = open(report)
IOError: [Errno 13] Permission denied: '_usr_bin_displayconfig-gtk.0.crash'
snifer@snifer-laptop:/var/crash$ sudo /usr/share/apport/apport-gtk -c _usr_bin_displayconfig-gtk.0.crash

At this point I experience bug #152990, where Alexander Sack said <https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/152990/comments/2>: "starting firefox as root is not supported".

Revision history for this message
ChristofferS (ubuntu-curo) wrote :

Isn't bug #129146 a duplicate of this?

My report is earlier than the other.

I just want to understand the duplicate system.

Revision history for this message
Oumar Aziz OUATTARA (wattazoum) wrote :

Hi,

Well, I saw your bug, I remembered one similar that I have with the problem explanation and solution proposal. So I tagged it as a Duplicate.

Basically, but that my way of doing, I first look at the bug that has the most duplicates and tag the one with less as a duplicate.

BTW, I tagged this bug as a duplicate of the other one because the StackTrace *Juan Pablo Salazar Bertín * put was exactly due to the access right problem. But it's possible that your problem wasn't the same. if it's the case, just tell me and I'll take care of removing the duplicate tag.

Best Regards

Revision history for this message
ChristofferS (ubuntu-curo) wrote :

ok, that's fine.

I was just curious :-)

Best regards.

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.