From Fedora Project Wiki
(Created page with '{{QA/Test_Case |description=This test case tests the functionality of the ABRT together with EasierPythonDebugging. |actions=...') |
No edit summary |
||
Line 3: | Line 3: | ||
|actions= | |actions= | ||
* Try to run this one-liner python scripts that abuse the <code>ctypes</code> module in such a way as to cause <code>/usr/bin/python</code> to segfault/abort: | * Try to run this one-liner python scripts that abuse the <code>ctypes</code> module in such a way as to cause <code>/usr/bin/python</code> to segfault/abort: | ||
<pre> | <pre>$ python -c "import ctypes; ctypes.string_at(0xffffffff)" | ||
Segmentation fault (core dumped) | Segmentation fault (core dumped)</pre> | ||
<pre>$ python -c "import ctypes; ctypes.string_at(0x0)" | |||
python: Objects/stringobject.c:115: PyString_FromString: Assertion `str != ((void *)0)' failed. | python: Objects/stringobject.c:115: PyString_FromString: Assertion `str != ((void *)0)' failed. | ||
Aborted (core dumped) | Aborted (core dumped)</pre> | ||
</pre> | |||
* repeat all of the above for <code>python3</code> and <code>python3-debuginfo</code> | * repeat all of the above for <code>python3</code> and <code>python3-debuginfo</code> | ||
|results= | |results= |
Revision as of 13:44, 1 April 2010
Description
This test case tests the functionality of the ABRT together with EasierPythonDebugging.
How to test
- Try to run this one-liner python scripts that abuse the
ctypes
module in such a way as to cause/usr/bin/python
to segfault/abort:
$ python -c "import ctypes; ctypes.string_at(0xffffffff)" Segmentation fault (core dumped)
$ python -c "import ctypes; ctypes.string_at(0x0)" python: Objects/stringobject.c:115: PyString_FromString: Assertion `str != ((void *)0)' failed. Aborted (core dumped)
- repeat all of the above for
python3
andpython3-debuginfo
Expected Results
- In each case, there should be a meaningful information at the Python level, as well as at the C level in the bactrace.
- please see EasierPythonDebuggingTests for more information.