summaryrefslogtreecommitdiff
path: root/Python/traceback.c
AgeCommit message (Collapse)AuthorLines
2016-10-18Issue #23782: Fixed possible memory leak in _PyTraceback_Add() and exceptionSerhiy Storchaka-20/+26
loss in PyTraceBack_Here().
2016-10-18Issue #23782: Fixed possible memory leak in _PyTraceback_Add() and exceptionSerhiy Storchaka-20/+26
loss in PyTraceBack_Here().
2016-09-05Avoid calling functions with an empty string as format stringVictor Stinner-2/+2
Directly pass NULL rather than an empty string.
2016-08-20Fix reference leak in tb_printinternal()Victor Stinner-0/+2
Issue #26823.
2016-08-15Issue #26823: Abbreviate recursive tracebacksNick Coghlan-4/+32
Large sections of repeated lines in tracebacks are now abbreviated as "[Previous line repeated {count} more times]" by both the traceback module and the builtin traceback rendering. Patch by Emanuel Barry.
2016-06-17Issue #27336: Fix compilation failures --without-threadsBerker Peksag-1/+1
2016-03-23Rework _Py_DumpASCII() to make Coverity happyVictor Stinner-8/+8
2016-03-23Issue #23848: Expose _Py_DumpHexadecimal()Victor Stinner-8/+9
This function will be reused by faulthandler.
2016-03-16faulthandler now works in non-Python threadsVictor Stinner-2/+47
Issue #26563: * Add _PyGILState_GetInterpreterStateUnsafe() function: the single PyInterpreterState used by this process' GILState implementation. * Enhance _Py_DumpTracebackThreads() to retrieve the interpreter state from autoInterpreterState in last resort. The function now accepts NULL for interp and current_tstate parameters. * test_faulthandler: fix a ResourceWarning when test is interrupted by CTRL+c
2016-03-16Fix compilation error of traceback.c on WindowsVictor Stinner-3/+3
Issue #26564.
2016-03-15Enhance and rewrite traceback dump C functionsVictor Stinner-52/+55
Issue #26564: * Expose _Py_DumpASCII() and _Py_DumpDecimal() in traceback.h * Change the type of the second _Py_DumpASCII() parameter from int to unsigned long * Rewrite _Py_DumpDecimal() and dump_hexadecimal() to write directly characters in the expected order, avoid the need of reversing the string. * dump_hexadecimal() limits width to the size of the buffer * _Py_DumpASCII() does nothing if the object is not a Unicode string * dump_frame() wrtites "???" as the line number if the line number is negative
2015-06-21Issue #24436: Added const qualifiers for char* arguments of _PyTraceback_Add.Serhiy Storchaka-1/+1
Patch by Michael Ensslin.
2015-06-21Issue #24436: Added const qualifiers for char* arguments of _PyTraceback_Add.Serhiy Storchaka-1/+1
Patch by Michael Ensslin.
2015-04-12Issue #23524: Replace _PyVerify_fd function with calls to ↵Steve Dower-0/+2
_set_thread_local_invalid_parameter_handler.
2015-04-01Issue #23836: Use _Py_write_noraise() to retry on EINTR in _Py_DumpTraceback()Victor Stinner-8/+20
and _Py_DumpTracebackThreads(). Document also these functions to explain that the caller is responsible to call PyErr_CheckSignals().
2015-03-25Merge 3.4 (traceback)Victor Stinner-1/+8
2015-03-25Issue #23571: If io.TextIOWrapper constructor fails in _Py_DisplaySourceLine(),Victor Stinner-1/+8
close the binary file to fix a resource warning.
2014-10-30(Merge 3.4) Issue #22762: Fix _Py_DisplaySourceLine(), clear the exception ifVictor Stinner-0/+1
PyFile_GetLine() failed. Patch written by Xavier de Gaye.
2014-10-30Issue #22762: Fix _Py_DisplaySourceLine(), clear the exception ifVictor Stinner-0/+1
PyFile_GetLine() failed. Patch written by Xavier de Gaye.
2014-10-08Issue #22462: Fix pyexpat's creation of a dummy frame to make it appear in ↵Antoine Pitrou-0/+33
exception tracebacks. Initial patch by Mark Shannon.
2014-10-08Issue #22462: Fix pyexpat's creation of a dummy frame to make it appear in ↵Antoine Pitrou-0/+33
exception tracebacks. Initial patch by Mark Shannon.
2014-10-03faulthandler: enhance dump_ascii() to escape also non-printable ASCIIVictor Stinner-4/+5
characters (U+0000..U+001f and U+007f).
2014-08-15Issue #22156: Fix "comparison between signed and unsigned integers" compilerVictor Stinner-1/+1
warnings in the Python/ subdirectory.
2013-12-19Fix _Py_DisplaySourceLine(), if PyTokenizer_FindEncodingFilename() fails, clearVictor Stinner-0/+2
the exception to not call open() with an exception set.
2013-11-07Issue #19512, #19515: remove shared identifiers, move identifiers where theyVictor Stinner-5/+6
are used. Move also _Py_IDENTIFIER() defintions to the top in modified files to remove identifiers duplicated in the same file.
2013-11-06Issue #19512: add some common identifiers to only create common strings once,Victor Stinner-1/+1
instead of creating temporary Unicode string objects Add also more identifiers in pythonrun.c to avoid temporary Unicode string objets for the interactive interpreter.
2013-10-20Issue 19306: Add extra hints to faulthandler stack dumps that they are ↵Guido van Rossum-8/+8
upside down.
2013-07-21merge 3.3Benjamin Peterson-1/+1
2013-07-21fix spacingBenjamin Peterson-1/+1
2013-07-21merge 3.3Benjamin Peterson-2/+2
2013-07-21let's not return NULL from functions that should return intsBenjamin Peterson-2/+2
2013-07-21Check return value of lseek() in _Py_DisplaySourceLine().Christian Heimes-1/+7
Also use portable SEEK_SET instead of 0. CID 1040639
2013-07-21Check return value of lseek() in _Py_DisplaySourceLine().Christian Heimes-1/+7
Also use portable SEEK_SET instead of 0. CID 1040639
2013-07-21Check return value of PyObject_AsFileDescriptor() in _Py_DisplaySourceLine() ↵Christian Heimes-0/+5
for error CID 486768
2013-07-21Check return value of PyObject_AsFileDescriptor() in _Py_DisplaySourceLine() ↵Christian Heimes-0/+5
for error CID 486768
2013-07-16Issue #18408: Fix _Py_DisplaySourceLine()Victor Stinner-1/+3
Report _Py_FindSourceFile() error, so the error is cleared; and clear io.open(filename) exception on failure.
2013-05-17Fix compilater warnings on Windows 64-bitVictor Stinner-1/+1
2012-07-30Issue #15463: the faulthandler module truncates strings to 500 characters,Victor Stinner-1/+1
instead of 100, to be able to display long file paths
2012-07-19Issue #15365: Make traceback reporting ignore any errors when printing outKristján Valur Jónsson-1/+4
the source line. Such errors can't be reported anyway. This makes error reporting work, even if the "io" module can't be loaded.
2011-11-22Remove "#ifdef Py_UNICODE_WIDE": Python is now always wideVictor Stinner-8/+2
2011-10-14Rename _Py_identifier to _Py_IDENTIFIER.Martin v. Löwis-4/+4
2011-10-14Issue #13088: Add shared Py_hexdigits constant to format a number into base 16Victor Stinner-2/+1
2011-10-09Add API for static strings, primarily good for identifiers.Martin v. Löwis-4/+8
Thanks to Konrad Schöbel and Jasper Schulz for helping with the mass-editing.
2011-10-05traceback: fix dump_ascii() for string with kind=PyUnicode_WCHAR_KINDVictor Stinner-3/+13
2011-09-28Implement PEP 393.Martin v. Löwis-21/+38
2011-04-05Issue #9319: Include the filename in "Non-UTF8 code ..." syntax error.Victor Stinner-3/+3
2011-04-01Issue #11393: _Py_DumpTraceback() writes the header even if there is no frameVictor Stinner-7/+7
2011-03-31Issue #11393: Add the new faulthandler moduleVictor Stinner-0/+235
2010-11-30Remove redundant includes of headers that are already included by Python.h.Georg Brandl-1/+0
2010-10-16Issue #9713, #10114: Parser functions (eg. PyParser_ASTFromFile) expectsVictor Stinner-10/+25
filenames encoded to the filesystem encoding with surrogateescape error handler (to support undecodable bytes), instead of UTF-8 in strict mode.