apport crashes at reading cgroup

Bug #1296026 reported by Dimitri John Ledkov
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Apport
Fix Released
Undecided
Unassigned
apport (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 103, in apport_excepthook
    pr.add_proc_info(extraenv=['PYTHONPATH', 'PYTHONHOME'])
  File "/usr/lib/python3/dist-packages/apport/report.py", line 546, in add_proc_info
    ret = self.get_logind_session(pid)
  File "/usr/lib/python3/dist-packages/apport/report.py", line 1593, in get_logind_session
    if len(my_cgroup) < 2:
UnboundLocalError: local variable 'my_cgroup' referenced before assignment

Well looking at the code, "if len(my_cgroup) <2" is never executed when my_cgroup is assigned....

Related branches

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

Fixed in trunk r2776, thanks Dimitri!

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

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

---------------
apport (2.14-0ubuntu1) trusty; urgency=medium

  * New upstream release:
    - Add KernelCrash reports when iwlwifi encounters a firmware error (via
      the "error_dump" uevent and the new iwlwifi_error_dump helper). Thanks
      Seth Forshee!
    - launchpad: Really use a temporary launchpadlib cache dir by default.
      This avoids piling up gigabytes of useless cached data over time, which
      also tends to break every now and then.
    - Fix crash in logind session detection. Thanks Dimitri Ledkov!
      (LP: #1296026)
 -- Martin Pitt <email address hidden> Mon, 31 Mar 2014 11:47:19 +0200

Changed in apport (Ubuntu):
status: Fix Committed → Fix Released
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.