← Back to team overview

desktop-packages team mailing list archive

[Bug 868695] Re: [oneiric] apport test suite failure

 

I tried the QRT script in a new VM install with the oneiric-desktop-amd64.iso (beta2 install, upgraded to current release) and it failed in the same place. I then tried /usr/share/apport/testsuite/crash and it worked. I then tried running /usr/share/apport/testsuite/run and there were some failures, but they were the ones I have seen before. I did this as uid 1000 user (ie, in the admin group) and it worked fine. I then tried the test as a newuser (ie not in the admin group) and it failed with:
$ /usr/share/apport/testsuite/crash
* empty core dumps do not generate a report
* check test process creation/killing with apport
* a subsequent crash does not alter unseen report
* a subsequent crash alters seen report
* report has required fields
* dumped environment only has insensitive variables
* collected system groups has nonempty user groups information
Traceback (most recent call last):
  File "/usr/share/apport/testsuite/crash", line 190, in <module>
    assert pr['UserGroups']
AssertionError

Once I added 'testuser' to the admin group,
/usr/share/apport/testsuite/crash worked fine.

Bottom line: the problem is reproducible in QRT. Outside of QRT, I get
various other issues that I think are related to my setup. In QRT, I am
going to add the unprivileged testuser to the admin group and make sure
that /var/crash is cleaned out. I think that this is a QRT issue now,
but it seems the testsuite may assume a specific environment that I may
not be providing.

** Changed in: apport (Ubuntu Oneiric)
       Status: Incomplete => Invalid

** Changed in: apport (Ubuntu)
       Status: Incomplete => Invalid

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to apport in Ubuntu.
https://bugs.launchpad.net/bugs/868695

Title:
  [oneiric] apport test suite failure

Status in “apport” package in Ubuntu:
  Invalid
Status in “apport” source package in Oneiric:
  Invalid

Bug description:
  When running the apport test suite via QRT, if fails with:
  * empty core dumps do not generate a report
  * check test process creation/killing with apport
  * a subsequent crash does not alter unseen report
  * a subsequent crash alters seen report
  * report has required fields
  * dumped environment only has insensitive variables
  * collected system groups has nonempty user groups information
  * collected system groups are not those from root
  * only one apport instance is ran at a time
  * existing .lock file as dangling symlink does not create the file
  * non-packaged executables do not create a report
  * apport ignores SIGQUIT
  * existence of user-inaccessible files does not leak
  * non-packaged scripts do not create a report
  * limitation of flooding: iteration 0 1 2
  * core dump works for non-writable cwds
  * non-packaged executables create core dumps on proper ulimits
  Traceback (most recent call last):
    File "/usr/share/apport/testsuite/crash", line 386, in <module>
      check_crash(expect_corefile=True)
    File "/usr/share/apport/testsuite/crash", line 83, in check_crash
      assert os.path.exists('core'), 'leaves wanted core file'
  AssertionError: leaves wanted core file

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