Comment 11 for bug 1020994

Revision history for this message
Brian Murray (brian-murray) wrote : Re: Investigate why we're not showing many errors for the development release

What is happening is that a .upload file is created by apport before the collect_info function is complete. Subsequently, it is possible for whoopsie to upload a crash that doesn't have all the information in it. In whoopsie.c there a TODO about dealing with crash files being modified:

    /* TODO handle the file being modified underneath us. */

So while that should be fixed the least invasive thing to do would be to ensure that apport creates the .upload file after all the information has been collected. Luckily, collect_info has an on_finished argument that will do the trick. I'll attach the patch to apport that I successfully tested.

I was able to recreate the issue by interrupting the 'collect info' stage of apport by clicking the close window button when a package hook was running. You can see my incomplete problem report at https://errors.ubuntu.com/oops/e139df74-e6f8-11e1-b1e6-2c768aafd08c. Depending on when the collect process is interrupted there probably would not be a package version which would prevent the problem from being bucketed (at least as I understand it).