apport fails to communicate with the web browser for system-level crashes (wrong uid or env?)

Bug #916810 reported by Steve Langasek
60
This bug affects 10 people
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Fix Released
High
Martin Pitt
Precise
Fix Released
High
Martin Pitt

Bug Description

Whenever I try to submit a bug report from apport about a system crash (as opposed to a crash of something running as my user), I get a dialog popping up with the following error message:

  Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system.

If this is widespread, it's pretty critical to fix since it will prevent us from getting the bug reports we need from users for the development cycle.

Steve Langasek (vorlon)
Changed in apport (Ubuntu):
importance: Undecided → High
milestone: none → precise-alpha-2
Revision history for this message
Sasa Paporovic (melchiaros) wrote :

Have this catched for a some days, SAM_ has confirmed.

See bug

https://bugs.launchpad.net/ubuntu/+source/apport/+bug/913784

I close mine as dub.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in apport (Ubuntu):
status: New → Confirmed
Revision history for this message
Sasa Paporovic (melchiaros) wrote :

SAM_ has seen this a security vulnarability, see the link to the report.

Revision history for this message
shishimaru (shishimaru) wrote :

I have the same problem. I have this problem also when I try to open Last.fm from Rhythmbox.

Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system.

Running Ubuntu Precise.

Revision history for this message
Sam_ (and-sam) wrote :

apport-collect requests restart of firefox or the system (screenshot). Quit with ctrl+c terminal output:
^CTraceback (most recent call last):
  File "/usr/share/apport/apport-gtk", line 398, in <module>
    app.run_argv()
  File "/usr/lib/python2.7/dist-packages/apport/ui.py", line 575, in run_argv
    return self.run_update_report()
  File "/usr/lib/python2.7/dist-packages/apport/ui.py", line 426, in run_update_report
    if not self.crashdb.can_update(self.options.update_report):
  File "/usr/lib/python2.7/dist-packages/apport/crashdb_impl/launchpad.py", line 494, in can_update
    bug = self.launchpad.bugs[id]
  File "/usr/lib/python2.7/dist-packages/lazr/restfulclient/resource.py", line 948, in __getitem__
    shim_resource._ensure_representation()
  File "/usr/lib/python2.7/dist-packages/lazr/restfulclient/resource.py", line 357, in _ensure_representation
    representation = self._root._browser.get(self._wadl_resource)
  File "/usr/lib/python2.7/dist-packages/lazr/restfulclient/_browser.py", line 291, in get
    response, content = self._request(url, extra_headers=headers)
  File "/usr/lib/python2.7/dist-packages/lazr/restfulclient/_browser.py", line 242, in _request
    str(url), method=method, body=data, headers=headers)
  File "/usr/lib/python2.7/dist-packages/lazr/restfulclient/_browser.py", line 211, in _request_and_retry
    url, method=method, body=body, headers=headers)
  File "/usr/lib/python2.7/dist-packages/httplib2/__init__.py", line 1444, in request
    (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
  File "/usr/lib/python2.7/dist-packages/launchpadlib/launchpad.py", line 127, in _request
    return self.retry_on_bad_token(response, content, *args)
  File "/usr/lib/python2.7/dist-packages/launchpadlib/launchpad.py", line 139, in retry_on_bad_token
    self.launchpad.credentials, self.launchpad.credential_store)
  File "/usr/lib/python2.7/dist-packages/launchpadlib/credentials.py", line 492, in __call__
    self.make_end_user_authorize_token(credentials, request_token_string)
  File "/usr/lib/python2.7/dist-packages/launchpadlib/credentials.py", line 584, in make_end_user_authorize_token
    time.sleep(access_token_poll_time)
KeyboardInterrupt

tags: added: rls-mgr-p-tracking
Revision history for this message
Thomas (t.c) wrote :

I installed alpha-2 cd and have the same bug - see my description from Bug #927037

Martin Pitt (pitti)
Changed in apport (Ubuntu):
milestone: precise-alpha-2 → ubuntu-12.04-beta-1
Martin Pitt (pitti)
tags: added: rls-p-tracking
removed: rls-mgr-p-tracking
Changed in apport (Ubuntu Precise):
assignee: nobody → Martin Pitt (pitti)
status: Confirmed → In Progress
Revision history for this message
Martin Pitt (pitti) wrote :

Fixed in trunk r2144.

Changed in apport (Ubuntu Precise):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apport - 1.93-0ubuntu1

---------------
apport (1.93-0ubuntu1) precise; urgency=low

  * New upstream bug fix release:
    - apport-gtk: Fix crash on nonexisting icon. Thanks Evan Dandrea.
      (LP: #937354)
    - ui.py, open_url(): Revert back to calling sudo instead of dropping
      privileges ourselves; with the latter, calling firefox as the sudo'ing
      user fails. (LP: #916810, #938128)
    - ui.py: Fix aborting with "AssertionError" if the report is already
      known, but without an URL. (LP: #938778)
    - launchpad.py: If a bug is already known, but the report is private, do
      not send the report. There is little sense piling up lots of duplicates.
      (LP: #938700)
    - test/crash: Fix regression of test_crash_apport(), consider $TERM a
      non-sensitive variable.
    - ui.py: Fix test failures for data collection progress, they are not
      expected to happen for "ProblemType: Crash" any more (happens in the
      background during sending, or if user clicks on "Show Details").
    - test/hooks: Use a package from Debian/Ubuntu main, so that this works
      better during package builds on build servers.
    - test/python: Do not assume that /var/crash/ exists. Use /var/tmp/ for
      the fake binaries instead.
    - data/general-hooks/parse_segv.py: Fix test case name.
    - ui.py: Fix crash on invalid core dumps. (LP: #937215)
    - launchpad.py: Fix crash on unicode report titles. (LP: #896626)
    - apport-gtk: Show the most interesting fields first in the details view.
    - do-release: Call pyflakes and abort on errors other than unused imports.
    - Move all test suites out of the code modules into test/test_<module>.py.
      This avoids having to load it every time the program runs, and also
      allows running the tests against the installed version of Apport.
    - Clean up the other executable test script in test/* and change them to
      the same structure as the module tests.
  * debian/control: Add python-mock and GTK gir build dependencies for the
    gtk/kde tests.
  * debian/control: Add procps dependency to avoid a "command not found" error
    for killall in the ubuntu.py general hook during the test suite.
  * debian/control: Add missing python-gi dependency to apport-gtk.
 -- Martin Pitt <email address hidden> Thu, 23 Feb 2012 16:22:37 +0100

Changed in apport (Ubuntu Precise):
status: Fix Committed → Fix Released
Revision history for this message
Pavlo Bohmat (bohm) wrote :

When the browser is running in the fluxbox unable to open a link from the programs (need close ff), in Unity OK. Probably a problem in xdg-open? Bug #931407

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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