Bug 13469 - No backtrace/panic action called from python tools
Summary: No backtrace/panic action called from python tools
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Python (show other bugs)
Version: 4.8.0
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Stefan Metzmacher
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-12 05:45 UTC by Stefan Metzmacher
Modified: 2020-02-06 11:02 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Metzmacher 2018-06-12 05:45:13 UTC
If we hit a segfault from within python, we just get
"Segmentation fault (core dumped)"
Comment 1 Douglas Bagnall 2020-02-06 11:02:28 UTC
Things are a bit better with Python 3.7 and above. 

You can use

  python3 -X faulthandler
    or 
  python3 -X dev

to see the *python* stack at SEGV time.


(see https://docs.python.org/3.7/using/cmdline.html#id5)


The '-X dev' devmode is better described in 

https://docs.python.org/3.9/library/devmode.html

That's the 3.9 docs, but it is mostly the same with 3.7 as far as I can tell.