Comment 2 for bug 868695

Revision history for this message
Jamie Strandboge (jdstrand) wrote :

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.