Add non-invasive option to disable python3-apport site customization?

Bug #1910304 reported by eacousineau
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Apport
New
Undecided
Unassigned

Bug Description

I was helping a colleague debug something, and found that `python3-apport` was intercepting a `dlopen` error, and turning it into a segfault.

I then disabled the customization as I indicated here: https://askubuntu.com/a/1305370/692420
(TL;DR I removed `/etc/python3.6/sitecustomize.py`)

Ideally, could there be a better way to disable the Python hook, even if just locally?

Ideas / Suggestions:

- The Python code perhaps does a *quick* file of apport settings to see if apport is enabled? (may be too slow)
- The Python code briefly checks for the existence of some file, e.g. `/etc/python3.6/disable-apport`
- The Python code briefly checks for an environment variable?
- Stick with just manually disabling `sitecustomize.py`, and add that to documentation somewhere?

Thanks!

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.