- 12 Agu, 2006 19 kayıt (commit)
-
-
Neal Norwitz yazdı
I modified this patch some by fixing style, some error checking, and adding XXX comments. This patch requires review and some changes are to be expected. I'm checking in now to get the greatest possible review and establish a baseline for moving forward. I don't want this to hold up release if possible.
-
Georg Brandl yazdı
-
Tim Peters yazdı
protected by "if verbose:", which caused the test to fail on all non-Windows boxes. Note that I deliberately didn't convert this to unittest yet, because I expect it would be even harder to debug this on Tru64 after conversion.
-
Tim Peters yazdı
appears to be utterly insane. Plug some theoretical insecurities in the test script: - Verify that the SIGALRM handler was actually installed. - Don't call alarm() before the handler is installed. - Move everything that can fail inside the try/finally, so the test cleans up after itself more often. - Try sending all the expected signals in force_test_exit(), not just SIGALRM. Since that was fixed to actually send SIGALRM (instead of invisibly dying with an AttributeError), we've seen that sending SIGALRM alone does not stop this from hanging. - Move the "kill the child" business into the finally clause, so the child doesn't survive test failure to send SIGALRM to other tests later (there are also baffling SIGALRM-related failures in test_socket). - Cancel the alarm in the finally clause -- if the test dies early, we again don't want SIGALRM showing up to confuse a later test. Alas, this still relies on timing luck wrt the spawned script that sends the test signals, but it's hard to see how waiting for seconds can so often be so unlucky. test_threadedsignals: curiously, this test never fails on Tru64, but doesn't normally signal SIGALRM. Anyway, fixed an obvious (but probably inconsequential) logic error.
-
Neal Norwitz yazdı
Ensure we don't pass NULL to free. Klocwork #306 (at least the first part, checking malloc)
-
Neal Norwitz yazdı
Klocwork #298-299.
-
Neal Norwitz yazdı
Check seq in both portions of if/else. Klocwork #289-290.
-
Neal Norwitz yazdı
Klocwork #214
-
Neal Norwitz yazdı
Whoops, how did that get in there. :-) Revert all the parts of 51227 that were not supposed to go it. Only Modules/_ctypes/cfields.c was supposed to be changed
-
Neal Norwitz yazdı
Klocwork #233
-
Neal Norwitz yazdı
I think it would be better to always use snprintf and have the format limit the size of the name appropriately (like %.200s). Klocwork #340
-
Neal Norwitz yazdı
There might be something else we need to do to handle the exception. Klocwork # 212-213
-
Neal Norwitz yazdı
Klocwork #274.
-
Neal Norwitz yazdı
Return early in that case. The caller checks for PyErr_Occurred so this should be ok. Klocwork #297
-
Neal Norwitz yazdı
There might be something else that needs to be done to setup the error. Klocwork #295.
-
Neal Norwitz yazdı
However, there was no error checking that PyFloat_FromDouble returned a valid pointer. I believe this change is correct as it seemed to follow other code in the area. Klocwork # 292.
-
Neal Norwitz yazdı
So be safe and do an XINCREF. Klocwork # 221-222.
-
Neal Norwitz yazdı
there was no verification that privateobj was a PyString. If it wasn't a string, this could have allowed a NULL pointer to creep in below and crash. I wonder if this should be PyString_CheckExact? Must identifiers be strings or can they be subclasses? Klocwork #275
-
Neal Norwitz yazdı
This is the first batch of fixes that should be easy to verify based on context. This fixes problem numbers: 220 (ast), 323-324 (symtable), 321-322 (structseq), 215 (array), 210 (hotshot), 182 (codecs), 209 (etree).
-
- 11 Agu, 2006 7 kayıt (commit)
-
-
Thomas Heller yazdı
storage before converting the result to C data. See the comment in the code for details. Provide a better context for errors when the conversion of a callback function's result cannot be converted.
-
Thomas Wouters yazdı
-
Georg Brandl yazdı
already been cleaned up.
-
Georg Brandl yazdı
-
Neal Norwitz yazdı
The first hunk changes the colon to an ! like other Windows variants. We need to always wait on the child so the lock gets released and no other tests fail. This is the try/finally in the second hunk.
-
Tim Peters yazdı
at stopping test_signal from hanging forever on the Tru64 buildbot. That could be because there's no such thing as signal.SIGALARM. Changed to the idiotic (but standard) signal.SIGALRM instead, and added some more debug output.
-
Tim Peters yazdı
64-bit boxes. I have no idea what the ctypes docs mean by "integers", and blind-guessing here that it intended to mean the signed C "int" type, in which case perhaps I can repair this by feeding the thread id argument to type ctypes.c_long(). Also made the worker thread daemonic, so it doesn't hang Python shutdown if the test continues to fail.
-
- 10 Agu, 2006 11 kayıt (commit)
-
-
Tim Peters yazdı
of quoted test data relied on preserving a single trailing blank. Changed the string from raw to regular, and forced in the trailing blank via an explicit \x20 escape.
-
Tim Peters yazdı
-
Tim Peters yazdı
PyThreadState_SetAsyncExc(): internal correctness changes wrt refcount safety and deadlock avoidance. Also added a basic test case (relying on ctypes) and repaired the docs.
-
Martin v. Löwis yazdı
mention that this is UCD 4.1 now.
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
SF bug #1112549.
-
Kurt B. Kaiser yazdı
since 1.2a1) Patch 1528468 Tal Einat.
-
Tim Peters yazdı
directories each time it ran, at least on Windows. Several changes: explicitly closed all files; wrapped long lines; stopped suppressing errors when removing a file or directory fails (removing /shouldn't/ fail!); and changed what appeared to be incorrect usage of os.removedirs() (that doesn't remove empty directories at and /under/ the given path, instead it must be given an empty leaf directory and then deletes empty directories moving /up/ the path -- could be that the conceptually simpler shutil.rmtree() was really actually intended here).
-
Kurt B. Kaiser yazdı
-
Tim Peters yazdı
-
- 09 Agu, 2006 3 kayıt (commit)
-
-
Martin v. Löwis yazdı
-
Kurt B. Kaiser yazdı
-
Andrew M. Kuchling yazdı
-