Skip to content

conflict with apport sitecustomize #1

Description

@rsgalloway

on ubuntu and other debian based linux systems, Apport installs a sitecustomize.py file in /usr/lib as part of its crash reporting system. sitecustomize.py modules in /usr/lib will always take precedence over locally installed sitecustomize.py modules.

https://wiki.ubuntu.com/Apport

Crash interception
Apport uses /proc/sys/kernel/core_pattern to directly pipe the core dump into apport:

$ cat /proc/sys/kernel/core_pattern
|/usr/share/apport/apport %p %s %c
$ 
Note that even if ulimit is set to disabled core files (by specyfing a core file size of zero
using ulimit -c 0), apport will still capture the crash.

For intercepting Python crashes it installs a /etc/python*/sitecustomize.py to call
apport on unhandled exceptions.

perhaps the solution is to simply add this logic to the siteconf sitecustomize.py module so there is no regression for apport.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions