[issue8418] Crash 0xc0000417 STATUS_INVALID_CRUNTIME_PARAMETER on program exit
New submission from Alf P. Steinbach : Python 3.1.1 in Windows XP Prof, appears to be a Windows-only problem Effect: on program exit the interpreter crashes with exception 0xc417 STATUS_INVALID_CRUNTIME_PARAMETER at address 0x78588389, which appears to be in [msvcr90.dll]. To reproduce: very difficult. I had this occur tree times when, after not running any Python program for a while, hitting Ctrl C at the first prompt of the enclosed program. On subsequent runs (not waiting) the bug does *not* manifest. Possibly a timing issue? Possibly the same bug: ticket #85 for PyInstaller, http://www.pyinstaller.org/ticket/85> has same exception code and same address and also occurring at program exit. Reported as not manifesting in Linux, only Windows. If same bug may be more reliable way to reproduce. PS: I reported two or three bugs earlier; one was fixed in 3.1.2. But the "Your issues" link shows no issues for me. Trying to report that via "Report tracker problem" it doesn't recognize me as logged in, and maintains that my login attempt is invalid. So there's like a bug in the tracker's reporting scheme for reporting the bug in the tracker. :-) -- components: Interpreter Core files: sum.v4.py messages: 103325 nosy: alfps severity: normal status: open title: Crash 0xc417 STATUS_INVALID_CRUNTIME_PARAMETER on program exit type: crash versions: Python 3.1 Added file: http://bugs.python.org/file16948/sum.v4.py ___ Python tracker <http://bugs.python.org/issue8418> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8418] Crash 0xc0000417 STATUS_INVALID_CRUNTIME_PARAMETER on program exit
Alf P. Steinbach added the comment: It now seems almost certain that it's /necessary/ to not have run any Python programs for a while (say, 10 minutes?) in order for the bug to manifest when using Ctrl C in the enclosed program. Also, I forgot to mention, the SEH exception occurs *while the program is printing the traceback*. Except that the last line is not displayed until the tell-Bill-Gates-about-it box is clicked away, it consistently manages to print C:\Documents and Settings\Alf> sum.v4.py This program computes the sum of two numbers A and B. Number A, please: Traceback (most recent call last): File "C:\Documents and Settings\Alf\sum.v4.py", line 13, in When it doesn't crash it displays four more lines of traceback. -- ___ Python tracker <http://bugs.python.org/issue8418> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8418] Crash 0xc0000417 STATUS_INVALID_CRUNTIME_PARAMETER on program exit
Alf P. Steinbach added the comment: Thanks for explaining that. However, the first bug I ever reported was #7681, "Use floor division in appropiate places in the wave module.", fixed in 3.1.2. And the tracker search does not find this bug by id. Nor does it find it by specifying "wave" as text to search for, or by specifying me as reporting. The apparent disappearance of #7681 may be a bug in the tracker. -- ___ Python tracker <http://bugs.python.org/issue8418> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7681] Incorrect division in [wave.py] causing crash
New submission from Alf P. Steinbach : CPython 3.1.1 in Windows XP. Traceback (most recent call last): File "C:\Documents and Settings\Alf\sound\error.py", line 6, in writer.setframerate( framerate ) NameError: name 'framerate' is not defined Exception wave.Error: Error('sampling rate not specified',) in > ignored TO FIX: "/" needs to be changed to "//" in lines and 243 464 of [wave.py] -- components: Library (Lib) files: error.py messages: 97629 nosy: alfps severity: normal status: open title: Incorrect division in [wave.py] causing crash type: crash versions: Python 3.1 Added file: http://bugs.python.org/file15834/error.py ___ Python tracker <http://bugs.python.org/issue7681> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7681] Incorrect division in [wave.py] causing crash
Changes by Alf P. Steinbach : Removed file: http://bugs.python.org/file15834/error.py ___ Python tracker <http://bugs.python.org/issue7681> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7681] Incorrect division in [wave.py] causing crash
Alf P. Steinbach added the comment: Sorry, here's correct error message: Traceback (most recent call last): File "C:\Documents and Settings\Alf\sound\error.py", line 8, in writer.writeframes( b"\0"*2*4 ) File "C:\Program Files\cpython\python31\lib\wave.py", line 432, in writeframes self.writeframesraw(data) File "C:\Program Files\cpython\python31\lib\wave.py", line 416, in writeframesraw self._ensure_header_written(len(data)) File "C:\Program Files\cpython\python31\lib\wave.py", line 459, in _ensure_header_written self._write_header(datasize) File "C:\Program Files\cpython\python31\lib\wave.py", line 472, in _write_header self._sampwidth * 8, 'data')) struct.error: required argument is not an integer Exception struct.error: 'required argument is not an integer' in > ignored -- Added file: http://bugs.python.org/file15835/error.py ___ Python tracker <http://bugs.python.org/issue7681> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7681] Incorrect division in [wave.py] causing crash
Alf P. Steinbach added the comment: No, sorry, the bugs in [wave.py] have nothing to do with a name IN A COMMENT in the trivial code to exercise the bugs. To reproduce the crash, just run the supplied code with Python 3.1.1 in Windows XP. The cause of the crash is, as I pointed out, use of Python 2.x "/" division instead of Python 3.x "//" division. The author of [wave.py] had fixed that in some places. But he/she forgot two places. Cheers & hth., - Alf -- ___ Python tracker <http://bugs.python.org/issue7681> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com