Skip to content

Commit 231d801

Browse files
[3.14] gh-127604: Docs: Include a C stack in the faulthandler example (GH-136081) (GH-136102)
* gh-127604: Docs: Include a C stack in the `faulthandler` example (GH-136081) (cherry picked from commit 3947847) Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
1 parent ce65956 commit 231d801

File tree

1 file changed

+36
-1
lines changed

1 file changed

+36
-1
lines changed

Doc/library/faulthandler.rst

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,41 @@ handler:
228228
Fatal Python error: Segmentation fault
229229
230230
Current thread 0x00007fb899f39700 (most recent call first):
231-
File "/home/python/cpython/Lib/ctypes/__init__.py", line 486 in string_at
231+
File "/opt/python/Lib/ctypes/__init__.py", line 486 in string_at
232232
File "<stdin>", line 1 in <module>
233+
234+
Current thread's C stack trace (most recent call first):
235+
Binary file "/opt/python/python", at _Py_DumpStack+0x42 [0x5b27f7d7147e]
236+
Binary file "/opt/python/python", at +0x32dcbd [0x5b27f7d85cbd]
237+
Binary file "/opt/python/python", at +0x32df8a [0x5b27f7d85f8a]
238+
Binary file "/usr/lib/libc.so.6", at +0x3def0 [0x77b73226bef0]
239+
Binary file "/usr/lib/libc.so.6", at +0x17ef9c [0x77b7323acf9c]
240+
Binary file "/opt/python/build/lib.linux-x86_64-3.14/_ctypes.cpython-314d-x86_64-linux-gnu.so", at +0xcdf6 [0x77b7315dddf6]
241+
Binary file "/usr/lib/libffi.so.8", at +0x7976 [0x77b73158f976]
242+
Binary file "/usr/lib/libffi.so.8", at +0x413c [0x77b73158c13c]
243+
Binary file "/usr/lib/libffi.so.8", at ffi_call+0x12e [0x77b73158ef0e]
244+
Binary file "/opt/python/build/lib.linux-x86_64-3.14/_ctypes.cpython-314d-x86_64-linux-gnu.so", at +0x15a33 [0x77b7315e6a33]
245+
Binary file "/opt/python/build/lib.linux-x86_64-3.14/_ctypes.cpython-314d-x86_64-linux-gnu.so", at +0x164fa [0x77b7315e74fa]
246+
Binary file "/opt/python/build/lib.linux-x86_64-3.14/_ctypes.cpython-314d-x86_64-linux-gnu.so", at +0xc624 [0x77b7315dd624]
247+
Binary file "/opt/python/python", at _PyObject_MakeTpCall+0xce [0x5b27f7b73883]
248+
Binary file "/opt/python/python", at +0x11bab6 [0x5b27f7b73ab6]
249+
Binary file "/opt/python/python", at PyObject_Vectorcall+0x23 [0x5b27f7b73b04]
250+
Binary file "/opt/python/python", at _PyEval_EvalFrameDefault+0x490c [0x5b27f7cbb302]
251+
Binary file "/opt/python/python", at +0x2818e6 [0x5b27f7cd98e6]
252+
Binary file "/opt/python/python", at +0x281aab [0x5b27f7cd9aab]
253+
Binary file "/opt/python/python", at PyEval_EvalCode+0xc5 [0x5b27f7cd9ba3]
254+
Binary file "/opt/python/python", at +0x255957 [0x5b27f7cad957]
255+
Binary file "/opt/python/python", at +0x255ab4 [0x5b27f7cadab4]
256+
Binary file "/opt/python/python", at _PyEval_EvalFrameDefault+0x6c3e [0x5b27f7cbd634]
257+
Binary file "/opt/python/python", at +0x2818e6 [0x5b27f7cd98e6]
258+
Binary file "/opt/python/python", at +0x281aab [0x5b27f7cd9aab]
259+
Binary file "/opt/python/python", at +0x11b6e1 [0x5b27f7b736e1]
260+
Binary file "/opt/python/python", at +0x11d348 [0x5b27f7b75348]
261+
Binary file "/opt/python/python", at +0x11d626 [0x5b27f7b75626]
262+
Binary file "/opt/python/python", at PyObject_Call+0x20 [0x5b27f7b7565e]
263+
Binary file "/opt/python/python", at +0x32a67a [0x5b27f7d8267a]
264+
Binary file "/opt/python/python", at +0x32a7f8 [0x5b27f7d827f8]
265+
Binary file "/opt/python/python", at +0x32ac1b [0x5b27f7d82c1b]
266+
Binary file "/opt/python/python", at Py_RunMain+0x31 [0x5b27f7d82ebe]
267+
<truncated rest of calls>
233268
Segmentation fault

0 commit comments

Comments
 (0)