discard options when looking for the first paramter

Bug #87005 reported by Matthias Klose
2
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Fix Released
Medium
Martin Pitt

Bug Description

Binary package hint: apport

bug 86744: python -OO /usr/lib/listen/listen.py is called, apport should discard the options until the first argument to determine the package.

Martin Pitt (pitti)
Changed in apport:
assignee: nobody → pitti
importance: Undecided → Medium
status: Unconfirmed → In Progress
Revision history for this message
Martin Pitt (pitti) wrote :

Fixed in bzr head.

Changed in apport:
status: In Progress → Fix Committed
Revision history for this message
Martin Pitt (pitti) wrote :

 apport (0.59) feisty; urgency=low
 .
   * apport/report.py: Check that interpreter options are discarded in
     test_check_interpreted_script(). This replicates bug #87005.
   * apport/report.py, _check_interpreted_script(): Filter out interpreter
     command line options. This should make the detection of interpreted
     scripts more robust. (LP: #87005)
   * test-apport, check_crash(): Differ between expecting the program dumping
     core and finding a core dump on disk, because this is not equivalent any
     more with core pipelining.
   * bin/apport: Write core files into a process' cwd if the process' ulimit
     requests and permits it and the crashes process is not packaged, so that
     developers get happy again. Test this behaviour with various ulimits in
     test-apport.
   * test-apport: Check that the core file written by apport is valid. This
     uncovers kernel bugs like #87065
   * problem_report.py test suite: Use assertAlmostEqual() when comparing stat
     times, since they are floats on some systems.
   * apport/report.py, add_gdb_info():
     - Remove all the initial gdb output, which gets rid of the duplicated #0
       line.
     - Replace some stray tabs with spaces.
     - Thanks to Kees Cook for this!

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.