| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
| |
RuntimeError on encoding surrogate pair area on UCS4 build.
This is a partial backport of r43320. (Approved by Anthony Baxter)
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Try to repair at least one segfault on the Mac buildbot,
as diagnosed by Nick Coghlan.
test_capi.py: A test module should never spawn a thread as
a side effect of being imported. Because this one did, the
segfault one of its thread tests caused didn't occur until
a few tests after test_regrtest.py thought test_capi was
finished. Repair that. Also join() the thread spawned
at the end, so that test_capi is truly finished when
regrtest reports that it's done.
_testcapimodule.c test_thread_state(): this spawns a
couple of non-threading.py threads, passing them a PyObject*
argument, but did nothing to ensure that those threads
finished before returning. As a result, the PyObject*
_could_ (although this was unlikely) get decref'ed out of
existence before the threads got around to using it.
Added explicit synchronization (via a Python mutex) so
that test_thread_state can reliably wait for its spawned
threads to finish.
|
| | |
|
| |
|
|
| |
introduction of C calls profiling events.
|
| |
|
|
|
| |
Fix problem spotted by Coverity that occurs if tzinfo.tzname().replace()
returns a non-string when converting %Z.
|
| | |
|
| |
|
|
| |
Move test code out of xxmodule and into _testcapimodule.c where it belongs.
|
| |
|
|
|
|
|
|
|
| |
Try to be a bit more consistent on all platforms:
python .
python < .
both print a message, return non-zero and do not core dump.
This hopefully fixes the failure on Solaris.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Fix and test (manually w/xx module) passing NULLs to PyObject_Str() and
PyObject_Unicode(). This problem was originally reported from Coverity
and addresses mail on python-dev "checkin r43015".
This inlines the conversion of the string to unicode and cleans
up/simplifies some code at the end of the PyObject_Unicode().
We really need a complete C API test module for all public APIs
and passing good and bad parameter values.
|
| |
|
|
|
| |
Bug #1448490: Fixed a bug that ISO-2022 codecs could not handle
SS2 (single-shift 2) escape sequences correctly.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
_hotshot hotshot_profiler(): If write_header() returned
an error code, this let `self` leak. This is a disaster
on Windows, since `self` already points to a newly-opened
file object, and it was impossible for Python code to
close the thing since the only reference to it was in a
blob of leaked C memory.
test_hotshot test_bad_sys_path(): This new test provoked
the C bug above. This test passed, but left an open
"@test" file behind, which caused a massive cascade of
bogus test failures in later, unrelated tests on Windows.
Changed the test code to remove the @test file it leaves
behind, which relies on the change above to close that
file first.
|
| | |
|
| |
|
|
| |
by Coverity.
|
| |
|
|
|
|
|
|
| |
Coverity found bug: test result of PyTuple_New() against NULL before use.
and r42891 (thomas.wouters):
Fix gcc 4.0.x warning about use of uninitialized value.
|
| |
|
|
| |
Coverity found refleak: need to free 'v' after calling Tkinter_Error().
|
| |
|
|
|
| |
Coverity-found bug: don't use temp->next *before* checking it for NULL. Also
return rather than use it again.
|
| |
|
|
|
|
|
|
| |
Thanks to Coverity, these were all reported by their Prevent tool.
and r42881 (thomas.wouters):
Don't DECREF a borrowed reference.
|
| | |
|
| |
|
|
| |
INET_ADDRSTRLEN is not defined.
|
| | |
|
| |
|
|
| |
offset>=0.
|
| | |
|
| |
|
|
|
|
|
| |
descriptors fit in fd_set.
Introduce Py_SOCKET_FD_CAN_BE_GE_FD_SETSIZE.
Proposed by Tim Peters implemented by Martin von Loewis.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Bug #876637, prevent stack corruption when socket descriptor
is larger than FD_SETSIZE.
This can only be acheived with ulimit -n SOME_NUMBER_BIGGER_THAN_FD_SETSIZE
which is typically only available to root. Since this wouldn't normally
be run in a test (ie, run as root), it doesn't seem too worthwhile to
add a normal test. The bug report has one version of a test. I've
written another. Not sure what the best thing to do is.
Do the check before calling internal_select() because we can't set
an error in between Py_BEGIN_ALLOW_THREADS and Py_END_ALLOW_THREADS.
This seemed the clearest solution.
|
| |
|
|
|
| |
Patch #1407135, bug #1424041: mmap.mmap(-1, size, ...) can return
anonymous memory again on Unix.
|
| | |
|
| |
|
|
| |
Fix bug #1413192, fix seg fault in bsddb if a txn was deleted before the env.
|
| |
|
|
| |
adds support for compiling against BerkeleyDB 4.4.x
|
| | |
|
| |
|
|
|
|
|
| |
Fix SF bug #1402308, segfault when using mmap(-1, ...)
This didn't crash on Linux, but valgrind complained.
I'm not sure if this test is valid on Windows.
|
| |
|
|
|
|
| |
SF bug #1400822, Extended version of _curses over{lay,write} does not work
Fix signatures to conform to doc (also fixed ungetmouse()).
|
| |
|
|
|
| |
Bug #1400115, Fix segfault when calling curses.panel.userptr()
without prior setting of the userptr.
|
| | |
|
| |
|
|
|
| |
fixes pybsddb SF bug id 1215432. DB.associate() would crash when a
DBError was supposed to be raised.
|
| | |
|
| | |
|
| |
|
|
| |
build problem on AIX.
|
| | |
|
| |
|
|
| |
bugfix. Bug reported by John Schmidt; bugfix by Danny Yoo.
|
| | |
|
| |
|
|
|
| |
Bug #1346533, select.poll() doesn't raise an error if timeout > sys.maxint
Need to check return result of PyInt_AsLong()
|
| | |
|
| | |
|
| |
|
|
|
|
| |
SF bug #887946, segfault if redirecting directory
Also provide a warning if a directory is passed on the command line.
Add minimal command line test.
|
| |
|
|
| |
but Python incorrectly assumes it is in UTF-8 format
|
| | |
|
| |
|
|
|
|
|
| |
Patches #1298449 and #1298499: Add some missing checks for error
returns in cStringIO.c. Thanks to Andrew Bennetts.
This must be a backport candidate.
|
| | |
|
| |
|
|
|
|
|
|
|
|
| |
Fix bug:
[ 1163563 ] Sub threads execute in restricted mode
basically by fixing bug 1010677 in a non-broken way.
Backport candidate.
|
| | |
|