** Description changed:

  I'm getting this bug, actually in just one system and one user, I don't
  get it for instance in the "guest" account. I don't get it either if i
  run the apport comment with "sudo".
  
  In the terminal I get:
  
  .Traceback (most recent call last):
    File "/usr/bin/apport-cli", line 365, in <module>
      if not app.run_argv():
    File "/usr/lib/python2.7/dist-packages/apport/ui.py", line 543, in run_argv
      return self.run_report_bug()
    File "/usr/lib/python2.7/dist-packages/apport/ui.py", line 348, in 
run_report_bug
      self.collect_info(symptom_script)
    File "/usr/lib/python2.7/dist-packages/apport/ui.py", line 912, in 
collect_info
      anonymize_thread.exc_raise()
    File "/usr/lib/python2.7/dist-packages/apport/REThread.py", line 34, in run
      self._retval = self.__target(*self.__args, **self.__kwargs)
    File "/usr/lib/python2.7/dist-packages/apport/report.py", line 1297, in 
anonymize
      replacements.append((re.compile('\\b%s\\b' % s), 'User Name'))
    File "/usr/lib/python2.7/re.py", line 190, in compile
      return _compile(pattern, flags)
    File "/usr/lib/python2.7/re.py", line 242, in _compile
      raise error, v # invalid expression
  sre_constants.error: nothing to repeat
  
  TEST CASE:
- 1. Create a new user and set a phone number starting with a '+' in the Gecos 
field
+ 1. Create a new user or change the gecos field of an existing user and set a 
phone number starting with a '+' in the Gecos field
  2. File a new bug report with apport
  
  RESULT
- The Crash above. 
+ The Crash above.
  
  ProblemType: Crash
  DistroRelease: Ubuntu 12.04
  Package: apport 2.0.1-0ubuntu4
  ProcVersionSignature: Ubuntu 3.2.0-23.36-generic 3.2.14
  Uname: Linux 3.2.0-23-generic x86_64
  NonfreeKernelModules: nvidia
  ApportLog:
  
  ApportVersion: 2.0.1-0ubuntu4
  Architecture: amd64
  CrashCounter: 1
  Date: Wed Apr 18 18:12:40 2012
  ExecutablePath: /usr/bin/apport-cli
  InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
  InterpreterPath: /usr/bin/python2.7
  PackageArchitecture: all
  ProcCmdline: /usr/bin/python /usr/bin/apport-cli -f -p cheese --save 
cheese.txt
  ProcCwd: /home/wgarcia
  PythonArgs: ['/usr/bin/apport-cli', '-f', '-p', 'cheese', '--save', 
'cheese.txt']
  SourcePackage: apport
  Title: apport-cli crashed with error in _compile(): nothing to repeat
  UpgradeStatus: Upgraded to precise on 2012-03-05 (44 days ago)
  UserGroups: adm admin audio cdrom dialout lp lpadmin plugdev sambashare video

** Description changed:

- I'm getting this bug, actually in just one system and one user, I don't
- get it for instance in the "guest" account. I don't get it either if i
- run the apport comment with "sudo".
- 
- In the terminal I get:
- 
- .Traceback (most recent call last):
-   File "/usr/bin/apport-cli", line 365, in <module>
-     if not app.run_argv():
-   File "/usr/lib/python2.7/dist-packages/apport/ui.py", line 543, in run_argv
-     return self.run_report_bug()
-   File "/usr/lib/python2.7/dist-packages/apport/ui.py", line 348, in 
run_report_bug
-     self.collect_info(symptom_script)
-   File "/usr/lib/python2.7/dist-packages/apport/ui.py", line 912, in 
collect_info
-     anonymize_thread.exc_raise()
-   File "/usr/lib/python2.7/dist-packages/apport/REThread.py", line 34, in run
-     self._retval = self.__target(*self.__args, **self.__kwargs)
-   File "/usr/lib/python2.7/dist-packages/apport/report.py", line 1297, in 
anonymize
-     replacements.append((re.compile('\\b%s\\b' % s), 'User Name'))
-   File "/usr/lib/python2.7/re.py", line 190, in compile
-     return _compile(pattern, flags)
-   File "/usr/lib/python2.7/re.py", line 242, in _compile
-     raise error, v # invalid expression
- sre_constants.error: nothing to repeat
  
  TEST CASE:
  1. Create a new user or change the gecos field of an existing user and set a 
phone number starting with a '+' in the Gecos field
- 2. File a new bug report with apport
+ 2. File a new bug report with apport:
+   $ ubuntu-bug apport
  
  RESULT
- The Crash above.
+ This crash
+ 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 656, in run_argv
+     return self.run_report_bug()
+   File "/usr/lib/python3/dist-packages/apport/ui.py", line 458, in 
run_report_bug
+     self.collect_info(symptom_script)
+   File "/usr/lib/python3/dist-packages/apport/ui.py", line 1060, in 
collect_info
+     anonymize_thread.exc_raise()
+   File "/usr/lib/python3/dist-packages/apport/REThread.py", line 63, in 
exc_raise
+     raise self._exception[1].with_traceback(self._exception[2])
+   File "/usr/lib/python3/dist-packages/apport/REThread.py", line 33, in run
+     self._retval = self.__target(*self.__args, **self.__kwargs)
+   File "/usr/lib/python3/dist-packages/apport/report.py", line 1395, in 
anonymize
+     replacements.append((re.compile('\\b%s\\b' % s), 'User Name'))
+   File "/usr/lib/python3.3/re.py", line 214, in compile
+     return _compile(pattern, flags)
+   File "/usr/lib/python3.3/re.py", line 281, in _compile
+     p = sre_compile.compile(pattern, flags)
+   File "/usr/lib/python3.3/sre_compile.py", line 494, in compile
+     p = sre_parse.parse(p, flags)
+   File "/usr/lib/python3.3/sre_parse.py", line 735, in parse
+     p = _parse_sub(source, pattern, 0)
+   File "/usr/lib/python3.3/sre_parse.py", line 348, in _parse_sub
+     itemsappend(_parse(source, state))
+   File "/usr/lib/python3.3/sre_parse.py", line 557, in _parse
+     raise error("nothing to repeat")
+ sre_constants.error: nothing to repeat
+ 
+ 
+ ORIGINAL REPORT
+ I'm getting this bug, actually in just one system and one user, I don't get 
it for instance in the "guest" account. I don't get it either if i run the 
apport comment with "sudo".
+ 
  
  ProblemType: Crash
  DistroRelease: Ubuntu 12.04
  Package: apport 2.0.1-0ubuntu4
  ProcVersionSignature: Ubuntu 3.2.0-23.36-generic 3.2.14
  Uname: Linux 3.2.0-23-generic x86_64
  NonfreeKernelModules: nvidia
  ApportLog:
  
  ApportVersion: 2.0.1-0ubuntu4
  Architecture: amd64
  CrashCounter: 1
  Date: Wed Apr 18 18:12:40 2012
  ExecutablePath: /usr/bin/apport-cli
  InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
  InterpreterPath: /usr/bin/python2.7
  PackageArchitecture: all
  ProcCmdline: /usr/bin/python /usr/bin/apport-cli -f -p cheese --save 
cheese.txt
  ProcCwd: /home/wgarcia
  PythonArgs: ['/usr/bin/apport-cli', '-f', '-p', 'cheese', '--save', 
'cheese.txt']
  SourcePackage: apport
  Title: apport-cli crashed with error in _compile(): nothing to repeat
  UpgradeStatus: Upgraded to precise on 2012-03-05 (44 days ago)
  UserGroups: adm admin audio cdrom dialout lp lpadmin plugdev sambashare video

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/985049

Title:
  apport-cli crashed with error in _compile(): nothing to repeat -
  Escape GECOS field in apport.report.anonymize()

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/985049/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to