apport-gtk crashed: UnboundLocalError: local variable 'replacements' referenced before assignment

Bug #338033 reported by Albert Damen
6
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Fix Released
Medium
Martin Pitt

Bug Description

Binary package hint: apport

I had a crash in cpufreq-selector. When I wanted to report this crash by clicking on the crash icon, then selecting Report, apport itself crashed.
As apport also couldn't report the apport crash, I have unpacked the crash file with apport-unpack and will attach the resulting files.

last lines of the Traceback:

  File "/usr/lib/python2.6/dist-packages/apport/ui.py", line 66, in thread_collect_info
    report.anonymize()
  File "/usr/lib/python2.6/dist-packages/apport/report.py", line 932, in anonymize
    replacements[os.uname()[1]] = 'hostname'
UnboundLocalError: local variable 'replacements' referenced before assignment

ProblemType: Bug
Architecture: amd64
CrashReports:
 600:1000:1000:4129336:2009-02-27 19:49:23.000000000 +0100:2009-02-27 19:49:27.000000000 +0100:/var/crash/_usr_lib_nspluginwrapper_i386_linux_npviewer.bin.1000.crash
 600:0:0:47885:2009-03-05 00:43:15.000000000 +0100:2009-03-05 00:44:30.000000000 +0100:/var/crash/_usr_share_apport_apport-gtk.0.crash
 600:0:0:92767:2009-03-05 00:42:00.000000000 +0100:2009-03-05 00:44:56.000000000 +0100:/var/crash/_usr_bin_cpufreq-selector.0.crash
DistroRelease: Ubuntu 9.04
Package: apport 0.141
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: apport
Uname: Linux 2.6.28-8-generic x86_64

Revision history for this message
Albert Damen (albrt) wrote :
Revision history for this message
Albert Damen (albrt) wrote : crash files
  • Date Edit (24 bytes, text/plain; name=Date; charset=us-ascii)
  • ExecutablePath Edit (28 bytes, text/plain; name=ExecutablePath; charset=us-ascii)
  • InterpreterPath Edit (18 bytes, text/plain; name=InterpreterPath; charset=us-ascii)
  • ProblemType Edit (5 bytes, text/plain; name=ProblemType; charset=us-ascii)
  • ProcAttrCurrent Edit (10 bytes, text/plain; name=ProcAttrCurrent; charset=us-ascii)
  • ProcCmdline Edit (44 bytes, text/plain; name=ProcCmdline; charset=us-ascii)
  • ProcCwd Edit (12 bytes, text/plain; name=ProcCwd; charset=us-ascii)
  • ProcEnviron Edit (57 bytes, text/plain; name=ProcEnviron; charset=UTF-8)
  • ProcMaps Edit (44.6 KiB, text/plain; name=ProcMaps; charset=UTF-8)
  • ProcStatus Edit (760 bytes, text/plain; name=ProcStatus; charset=UTF-8)
  • PythonArgs Edit (32 bytes, text/plain; name=PythonArgs; charset=us-ascii)
  • Traceback Edit (1011 bytes, text/plain; name=Traceback; charset=UTF-8)
Revision history for this message
C de-Avillez (hggdh2) wrote :

Confirming, same here.

Changed in apport:
importance: Undecided → Medium
status: New → Confirmed
Martin Pitt (pitti)
Changed in apport:
assignee: nobody → pitti
status: Confirmed → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apport - 0.142

---------------
apport (0.142) jaunty; urgency=low

  * apport/report.py: Do not include lsb_release's stderr in the
    DistroRelease: output.
  * apport/hookutils.py: Fix attach_printing():
    - Correct spelling or "error_log".
    - Do not call fgrep with no file names (if /etc/cups/ppd/ is empty), since
      that hangs forever.
  * apport/report.py, _gen_stacktrace_top(): Fix parsing of stacktraces
    with some addresses missing. Add test cases. (LP: #269133)
  * apport/ui.py, run_report_bug(): Show details of collected information and
    give the user a chance to cancel. Previously, collected data was sent
    directly to Launchpad. Nowadays lots of packages have hooks, so we cannot
    guarantee any more that bug reports only have non-sensitive information.
    (LP: #195514) This also allows the user to cancel if (s)he inadvertedly
    clicked on "Report a problem". (LP: #279033)
  * apport/ui.py: Fix crash in get_complete_size() for reports that are
    constructed on the fly instead of loaded from a file (i. e. for bug
    reports). Fixes displaying of report in apport-cli.
  * apport/report.py: Slight robustification of test_add_gdb_info_script()
    test case.
  * debian/local/ubuntu-bug: Fix invocation with "--help". (LP: #305841)
  * apport/ui.py, load_report(): Clearer error message if report file does not
    exist. (LP: #204198)
  * Remove redundant verbiage from test suite docstrings.
  * apport/report.py, anonymize(): Fix crash when processing root-owned
    reports. (LP: #338033)
  * apport/report.py, anonymize(): Do not anonymize single-character user and
    host names, since they create an utter mess in bug reports, and also are
    very low-sensitive.
  * debian/apport.init: Also start apport if force_start=1 is given. This
    provides a convenient method of starting apport just for a session without
    changing the default file. Add a comment to debian/apport.default about
    this possibility. Thanks to Milan for the suggestion and the initial
    patch! (LP: #320467)
  * backends/packaging-apt-dpkg.py, _get_mirror(): Only consider http://
    mirrors for fetching Contents.gz. (LP: #315797)

 -- Martin Pitt <email address hidden> Thu, 05 Mar 2009 17:01:05 +0100

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

Remote bug watches

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