Activity log for bug #1281086

Date Who What changed Old value New value Message
2014-02-17 12:46:05 Daniel Hahler bug added bug
2014-02-17 12:48:45 Daniel Hahler description % ubuntu-bug apport Traceback (most recent call last): File "/usr/share/apport/apport-gtk", line 590, in <module> app.run_argv() File "/usr/lib/python3/dist-packages/apport/ui.py", line 654, in run_argv return self.run_report_bug() File "/usr/lib/python3/dist-packages/apport/ui.py", line 456, in run_report_bug self.collect_info(symptom_script) File "/usr/lib/python3/dist-packages/apport/ui.py", line 1031, in collect_info os.environ.clear() File "/usr/lib/python3.3/collections/abc.py", line 553, in clear self.popitem() File "/usr/lib/python3.3/collections/abc.py", line 546, in popitem del self[key] File "/usr/lib/python3.3/os.py", line 687, in __delitem__ self.unsetenv(encodedkey) OSError: [Errno 22] Invalid argument Looking at the output of `os.environ`, there is a odd entry (key ''). ProblemType: Bug DistroRelease: Ubuntu 13.10 Package: apport 2.12.5-0ubuntu2.2 ProcVersionSignature: Ubuntu 3.11.0-15.25-generic 3.11.10 Uname: Linux 3.11.0-15-generic x86_64 ApportVersion: 2.12.5-0ubuntu2.2 Architecture: amd64 CrashReports: 640:1000:114:120104180:2014-02-13 00:58:41.677010970 +0100:2014-02-13 00:57:20.989009053 +0100:/var/crash/_opt_firefox_firefox.1000.crash 640:1000:114:63870076:2014-02-13 00:00:35.972928127 +0100:2014-02-12 23:59:49.260927017 +0100:/var/crash/_usr_lib_firefox_firefox.1000.crash 640:1000:114:14175879:2014-02-09 10:23:03.104148831 +0100:2014-02-09 10:22:57.576148699 +0100:/var/crash/_usr_bin_nautilus.1000.crash Date: Mon Feb 17 13:41:48 2014 InstallationDate: Installed on 2012-05-28 (629 days ago) InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425) MarkForUpload: True PackageArchitecture: all SourcePackage: apport UpgradeStatus: Upgraded to saucy on 2013-10-08 (131 days ago) modified.conffile..etc.default.apport: [modified] mtime.conffile..etc.default.apport: 2014-02-13T00:58:07.609010 % ubuntu-bug apport Traceback (most recent call last):   File "/usr/share/apport/apport-gtk", line 590, in <module>     app.run_argv()   File "/usr/lib/python3/dist-packages/apport/ui.py", line 654, in run_argv     return self.run_report_bug()   File "/usr/lib/python3/dist-packages/apport/ui.py", line 456, in run_report_bug     self.collect_info(symptom_script)   File "/usr/lib/python3/dist-packages/apport/ui.py", line 1031, in collect_info     os.environ.clear()   File "/usr/lib/python3.3/collections/abc.py", line 553, in clear     self.popitem()   File "/usr/lib/python3.3/collections/abc.py", line 546, in popitem     del self[key]   File "/usr/lib/python3.3/os.py", line 687, in __delitem__     self.unsetenv(encodedkey) OSError: [Errno 22] Invalid argument Looking at the output of `os.environ`, there is a odd entry (key ''). os.environ.clear() fails both with python2.7 and python3: In [1]: import os In [2]: os.environ[''] = '' In [3]: os.environ.clear() --------------------------------------------------------------------------- OSError Traceback (most recent call last) <ipython-input-3-bfe7fb2930ac> in <module>() ----> 1 os.environ.clear() /usr/lib/python3.3/collections/abc.py in clear(self) 551 try: 552 while True: --> 553 self.popitem() 554 except KeyError: 555 pass /usr/lib/python3.3/collections/abc.py in popitem(self) 544 raise KeyError 545 value = self[key] --> 546 del self[key] 547 return key, value 548 /usr/lib/python3.3/os.py in __delitem__(self, key) 685 def __delitem__(self, key): 686 encodedkey = self.encodekey(key) --> 687 self.unsetenv(encodedkey) 688 try: 689 del self._data[encodedkey] OSError: [Errno 22] Invalid argument While this looks like a bug to be fixed in Python also, apport should handle it gracefully, and not crash/abort on it. ProblemType: Bug DistroRelease: Ubuntu 13.10 Package: apport 2.12.5-0ubuntu2.2 ProcVersionSignature: Ubuntu 3.11.0-15.25-generic 3.11.10 Uname: Linux 3.11.0-15-generic x86_64 ApportVersion: 2.12.5-0ubuntu2.2 Architecture: amd64 CrashReports:  640:1000:114:120104180:2014-02-13 00:58:41.677010970 +0100:2014-02-13 00:57:20.989009053 +0100:/var/crash/_opt_firefox_firefox.1000.crash  640:1000:114:63870076:2014-02-13 00:00:35.972928127 +0100:2014-02-12 23:59:49.260927017 +0100:/var/crash/_usr_lib_firefox_firefox.1000.crash  640:1000:114:14175879:2014-02-09 10:23:03.104148831 +0100:2014-02-09 10:22:57.576148699 +0100:/var/crash/_usr_bin_nautilus.1000.crash Date: Mon Feb 17 13:41:48 2014 InstallationDate: Installed on 2012-05-28 (629 days ago) InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425) MarkForUpload: True PackageArchitecture: all SourcePackage: apport UpgradeStatus: Upgraded to saucy on 2013-10-08 (131 days ago) modified.conffile..etc.default.apport: [modified] mtime.conffile..etc.default.apport: 2014-02-13T00:58:07.609010
2014-02-17 12:49:23 Daniel Hahler summary Apport might crash when clearing environment (via os.environ.clear() with empty environ key) Crash in os.environ.clear() with empty environment key
2014-02-17 12:49:43 Daniel Hahler bug task added python2.7 (Ubuntu)
2014-02-17 12:50:11 Daniel Hahler bug task added python3.3 (Ubuntu)
2014-02-17 13:06:39 Daniel Hahler bug watch added http://bugs.python.org/issue20658
2014-02-17 13:06:39 Daniel Hahler bug task added python
2014-02-17 13:45:10 Bug Watch Updater python: status Unknown New
2014-06-04 07:48:43 Matthias Klose python2.7 (Ubuntu): importance Undecided Medium
2014-06-04 07:48:43 Matthias Klose python2.7 (Ubuntu): status New Confirmed
2014-06-04 07:48:56 Matthias Klose python3.3 (Ubuntu): importance Undecided Medium
2014-06-04 07:48:56 Matthias Klose python3.3 (Ubuntu): status New Confirmed
2020-03-05 13:10:47 Marcus Tomlinson apport (Ubuntu): status New Incomplete
2020-05-06 12:13:13 Marcus Tomlinson apport (Ubuntu): status Incomplete Invalid