Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #11757: select.select() now raises ValueError when a negative timeout | Antoine Pitrou | 2011-04-09 | 1 | -0/+5 |
| | | | | | is passed (previously, a select.error with EINVAL would be raised). Patch by Charles-François Natali. | ||||
* | Fix nit (make spelling consistent in prototype) | Raymond Hettinger | 2011-04-09 | 1 | -1/+1 |
| | |||||
* | Improve faulthandler.enable(all_threads=True) | Victor Stinner | 2011-04-08 | 1 | -22/+32 |
| | | | | | | | faulthandler.enable(all_threads=True) dumps the tracebacks even if it is not possible to get the state of the current thread Create also the get_thread_state() subfunction to factorize the code. | ||||
* | faulthandler: dump_tracebacks_later() displays also the timeout | Victor Stinner | 2011-04-08 | 1 | -3/+49 |
| | |||||
* | faulthandler: fix variable name, timeout_ms => timeout_us | Victor Stinner | 2011-04-08 | 1 | -6/+6 |
| | | | | The comment was already correct. | ||||
* | faulthandler: one more time, fix usage of locks in the watchdog thread | Victor Stinner | 2011-04-08 | 1 | -29/+28 |
| | | | | | | | | | | | * Write a new test to ensure that dump_tracebacks_later() still works if it was already called and then cancelled before * Don't use a variable to check the status of the thread, only rely on locks * The thread only releases cancel_event if it was able to acquire it (if the timer was interrupted) * The main thread always hold this lock. It is only released when faulthandler_thread() is interrupted until this thread exits, or at Python exit. | ||||
* | faulthandler: fix unregister() if it is called before register() | Victor Stinner | 2011-04-08 | 1 | -0/+3 |
| | | | | Fix a crash: don't read from NULL. | ||||
* | faulthandler: fix compilating without threads | Victor Stinner | 2011-04-07 | 1 | -0/+8 |
| | |||||
* | faulthandler: we don't use (or need) SA_SIGINFO flag of sigaction() | Victor Stinner | 2011-04-07 | 1 | -7/+2 |
| | |||||
* | faulthandler: check PyThreadState_Get() result in dump_tracebacks_later() | Victor Stinner | 2011-04-07 | 1 | -12/+21 |
| | | | | Cleanup also the code | ||||
* | merge from 3.2 | Senthil Kumaran | 2011-04-06 | 1 | -1/+1 |
|\ | |||||
| * | Merge from 3.1 | Senthil Kumaran | 2011-04-06 | 1 | -1/+1 |
| |\ | |||||
| | * | Issue #10762: Guard against invalid/non-supported format string '%f' on ↵ | Senthil Kumaran | 2011-04-06 | 1 | -1/+1 |
| | | | | | | | | | | | | Windows. Patch Santoso Wijaya. | ||||
| | * | Merge 3.1 | Kristjan Valur Jonsson | 2011-03-30 | 1 | -1/+1 |
| | |\ | |||||
| | | * | Issue 11713: clarify docstring for collections.deque() | Raymond Hettinger | 2011-03-30 | 1 | -1/+1 |
| | | | | |||||
* | | | | Issue #11576: Fixed timedelta subtraction glitch on big timedelta values | Alexander Belopolsky | 2011-04-06 | 1 | -7/+8 |
|\ \ \ \ | |/ / / | |||||
| * | | | Issue #11576: Fixed timedelta subtraction glitch on big timedelta values | Alexander Belopolsky | 2011-04-06 | 1 | -7/+8 |
| | | | | |||||
* | | | | implement tp_clear | Benjamin Peterson | 2011-04-05 | 1 | -1/+10 |
| | | | | |||||
* | | | | Issue #11707: Fix compilation errors with Visual Studio | Victor Stinner | 2011-04-05 | 1 | -6/+8 |
| | | | | | | | | | | | | | | | | Fix also a compiler (gcc) warning. | ||||
* | | | | Issue #11707: Fast C version of functools.cmp_to_key() | Raymond Hettinger | 2011-04-05 | 1 | -0/+161 |
| | | | | |||||
* | | | | Issue #10785: Store the filename as Unicode in the Python parser. | Victor Stinner | 2011-04-04 | 1 | -0/+1 |
| | | | | |||||
* | | | | Issue #11753: faulthandler thread uses pthread_sigmask() | Victor Stinner | 2011-04-04 | 1 | -0/+11 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The thread must not receive any signal. If the thread receives a signal, sem_timedwait() is interrupted and returns EINTR, but in this case, PyThread_acquire_lock_timed() retries sem_timedwait() and the main thread is not aware of the signal. The problem is that some tests expect that the main thread receives the signal, not faulthandler handler, which should be invisible. On Linux, the signal looks to be received by the main thread, whereas on FreeBSD, it can be any thread. | ||||
* | | | | Issue #11688: Add sqlite3.Connection.set_trace_callback(). Patch by Torsten ↵ | Antoine Pitrou | 2011-04-03 | 1 | -0/+62 |
| | | | | | | | | | | | | | | | | Landschoff. | ||||
* | | | | Merge fix for issue #11746 | Antoine Pitrou | 2011-04-03 | 1 | -1/+1 |
|\ \ \ \ | |/ / / | |||||
| * | | | Issue #11746: Fix SSLContext.load_cert_chain() to accept elliptic curve ↵ | Antoine Pitrou | 2011-04-03 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | private keys. | ||||
| * | | | Merge | Kristjan Valur Jonsson | 2011-03-30 | 1 | -1/+1 |
| |\ \ \ | |||||
* | | | | | Issue #5863: Rewrite BZ2File in pure Python, and allow it to accept | Antoine Pitrou | 2011-04-03 | 2 | -2180/+583 |
| | | | | | | | | | | | | | | | | | | | | | | | | | file-like objects using a new `fileobj` constructor argument. Patch by Nadeem Vawda. | ||||
* | | | | | Issue #11393: signal of user signal displays tracebacks even if tstate==NULL | Victor Stinner | 2011-04-01 | 1 | -21/+37 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * faulthandler_user() displays the tracebacks of all threads even if it is unable to get the state of the current thread * test_faulthandler: only release the GIL in test_gil_released() check * create check_signum() subfunction | ||||
* | | | | | Issue #11393: Fix faulthandler.disable() and add a test | Victor Stinner | 2011-04-01 | 1 | -4/+4 |
| | | | | | |||||
* | | | | | Issue #11393: The fault handler handles also SIGABRT | Victor Stinner | 2011-04-01 | 1 | -8/+25 |
| | | | | | |||||
* | | | | | Issue #11393: fault handler uses raise(signum) for SIGILL on Windows | Victor Stinner | 2011-04-01 | 1 | -15/+12 |
| | | | | | |||||
* | | | | | Issue #11393: fix usage of locks in faulthandler | Victor Stinner | 2011-04-01 | 1 | -3/+4 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * faulthandler_cancel_dump_tracebacks_later() is responsible to set running to zero (so we don't need the volatile keyword anymore) * release locks if PyThread_start_new_thread() fails assert(thread.running == 0) was wrong in a corner case | ||||
* | | | | | Issue #11393: New try to fix faulthandler_thread() | Victor Stinner | 2011-04-01 | 1 | -6/+6 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Always release the cancel join. Fix also another corner case: _PyFaulthandler_Fini() called after setting running variable to zero, but before releasing the join lock. | ||||
* | | | | | Issue #11393: Fix faulthandler_thread(): release cancel lock before join lock | Victor Stinner | 2011-04-01 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the thread releases the join lock before the cancel lock, the thread may sometimes still be alive at cancel_dump_tracebacks_later() exit. So the cancel lock may be destroyed while the thread is still alive, whereas the thread will try to release the cancel lock, which just crash. Another minor fix: the thread doesn't release the cancel lock if it didn't acquire it. | ||||
* | | | | | Issue #11393: limit stack overflow test to 100 MB | Victor Stinner | 2011-03-31 | 1 | -5/+32 |
| | | | | | | | | | | | | | | | | | | | | Stop if the stack overflow doesn't occur after allocating 100 MB on the stack. | ||||
* | | | | | Issue #11393: Fix the documentation (cancel_dump_traceback_later) | Victor Stinner | 2011-03-31 | 1 | -6/+6 |
| | | | | | | | | | | | | | | | | | | | | | | | | | * dump_traceback_later() => dump_tracebacks_later() * cancel_dump_traceback_later() => cancel_dump_tracebacks_later() | ||||
* | | | | | Issue #11393: Add the new faulthandler module | Victor Stinner | 2011-03-30 | 3 | -0/+975 |
| | | | | | |||||
* | | | | | Merge | Kristjan Valur Jonsson | 2011-03-30 | 1 | -1/+1 |
|\ \ \ \ \ | |||||
| * \ \ \ \ | Issue 11713: clarify docstring for collections.deque() | Raymond Hettinger | 2011-03-30 | 1 | -1/+1 |
| |\ \ \ \ \ | | | |/ / / | | |/| | | | |||||
| | * | | | | Issue 11713: clarify docstring for collections.deque() | Raymond Hettinger | 2011-03-30 | 1 | -1/+1 |
| | | | | | | |||||
* | | | | | | Merge 3.2 | Kristjan Valur Jonsson | 2011-03-30 | 1 | -3/+6 |
|\ \ \ \ \ \ | |/ / / / / |/| | / / / | | |/ / / | |/| | | | |||||
| * | | | | Merge 3.1 | Kristjan Valur Jonsson | 2011-03-30 | 1 | -3/+6 |
| |\ \ \ \ | | |/ / / | |/| / / | | |/ / | |||||
| | * | | Bugfix: Properly test for errors from PyLong_AsLong() in itertools.cycle. | Kristjan Valur Jonsson | 2011-03-30 | 1 | -3/+6 |
| | |/ | | | | | | | | | | | | | ti can raise an exception even if PyLong_Check() has succeeded. | ||||
* | | | merge 3.2 | Benjamin Peterson | 2011-03-28 | 1 | -3/+3 |
|\ \ \ | |/ / | |||||
| * | | merge 3.1 | Benjamin Peterson | 2011-03-28 | 1 | -3/+3 |
| |\ \ | | |/ | |||||
| | * | let's keep parenthesis around sizeof | Benjamin Peterson | 2011-03-28 | 1 | -3/+3 |
| | | | |||||
* | | | Update docstrings for itertools.accumulate(). | Raymond Hettinger | 2011-03-28 | 1 | -3/+3 |
| | | | |||||
* | | | Add optional *func* argument to itertools.accumulate(). | Raymond Hettinger | 2011-03-28 | 1 | -4/+14 |
| | | | |||||
* | | | merge 3.2 | Benjamin Peterson | 2011-03-26 | 1 | -20/+54 |
|\ \ \ | |/ / | |||||
| * | | merge 3.1 | Benjamin Peterson | 2011-03-26 | 1 | -20/+54 |
| |\ \ | | |/ |