classification
Title: Asssertion in Windows debug build
Type: enhancement Stage:
Components: Windows Versions: Python 3.0
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: theller Nosy List: Alexander.Belopolsky, gvanrossum, theller
Priority: normal Keywords:

Created on 2007-08-28 06:01 by theller, last changed 2010-03-21 18:32 by Alexander.Belopolsky. This issue is now closed.

Files
File name Uploaded Description Edit
os.diff theller, 2007-08-28 06:01
Messages (5)
msg55350 - (view) Author: Thomas Heller (theller) * (Python committer) Date: 2007-08-28 06:01
In a windows debug build, an assertion is triggered when os.execvpe is
called with an empty argument list:

self.assertRaises(OSError, os.execvpe, 'no such app-', [], None)

The same problem is present in the trunk version.
Attached is a patch that fixes this, with a test.
msg55439 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2007-08-29 20:47
If it works for you, can you submit it?
msg55492 - (view) Author: Thomas Heller (theller) * (Python committer) Date: 2007-08-30 17:15
Applied in rev. 57731.
msg101439 - (view) Author: Alexander Belopolsky (Alexander.Belopolsky) Date: 2010-03-21 18:24
Link to revision: r57731
msg101441 - (view) Author: Alexander Belopolsky (Alexander.Belopolsky) Date: 2010-03-21 18:32
This issue was misclassified as an interpreter crash while in fact it was a bug in the underlying OS utility. Please see discussion in issue8154.

Since the fix changes behavior, it should be documented and a NEWS entry added.
History
Date User Action Args
2010-03-21 18:32:38Alexander.Belopolskysettype: crash -> enhancement
messages: + msg101441
2010-03-21 18:24:46Alexander.Belopolskysetnosy: + Alexander.Belopolsky
messages: + msg101439
2007-08-30 17:15:43thellersetstatus: open -> closed
resolution: accepted -> fixed
messages: + msg55492
2007-08-30 15:34:30loewissetresolution: accepted
2007-08-29 20:47:30gvanrossumsetassignee: theller
messages: + msg55439
nosy: + gvanrossum
2007-08-28 06:01:58thellercreate