This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Broken Py3.1 release build in Visual Studio 2005
Type: compile error Stage: test needed
Components: Library (Lib) Versions: Python 3.1
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: kristjan.jonsson Nosy List: kristjan.jonsson, ocean-city, pitrou, rhettinger
Priority: normal Keywords:

Created on 2009-03-02 22:08 by rhettinger, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (9)
msg83042 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2009-03-02 22:08
The build crashes and it seems related to io.py.  This started about two
weeks ago.  Before that, it built fine.


------ Build started: Project: _ssl, Configuration: Release Win32 ------
Performing Pre-Build Event...
Traceback (most recent call last):
  File "C:\py31\lib\io.py", line 222, in open
  File "C:\py31\lib\io.py", line 619, in __init__
OSError: [Errno 9] Bad file descriptor
This application has requested the Runtime to terminate it in an unusual
way.
Please contact the application's support team for more information.
Fatal Python error: Py_Initialize: can't initialize sys standard streams
Project : error PRJ0019: A tool returned an error code from "Performing
Pre-Build Event..."
Build log was saved at
"file://C:\py31\PC\VS8.0\Win32-temp-Release\_ssl\BuildLog.htm"
_ssl - 1 error(s), 0 warning(s)
------ Skipped Build: Project: bdist_wininst, Configuration: Release
Win32 ------
Project not selected to build for this solution configuration 
------ Build started: Project: _hashlib, Configuration: Release Win32 ------
Performing Pre-Build Event...
Traceback (most recent call last):
  File "C:\py31\lib\io.py", line 222, in open
  File "C:\py31\lib\io.py", line 619, in __init__
OSError: [Errno 9] Bad file descriptor
This application has requested the Runtime to terminate it in an unusual
way.
Please contact the application's support team for more information.
Fatal Python error: Py_Initialize: can't initialize sys standard streams
Project : error PRJ0019: A tool returned an error code from "Performing
Pre-Build Event..."
Build log was saved at
"file://C:\py31\PC\VS8.0\Win32-temp-Release\_hashlib\BuildLog.htm"
_hashlib - 1 error(s), 0 warning(s)
msg83044 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2009-03-02 22:48
I can't reproduce under Visual Studio Express 2008, release mode.
I suspect it may be due to r69560/r69793 (introduction of a
Windows-specific function named _PyVerify_fd()).
msg83053 - (view) Author: Kristján Valur Jónsson (kristjan.jonsson) * (Python committer) Date: 2009-03-03 02:07
I didn't know that VS2005 was supported.  We jumped from 2003 to 2008, 
didn't we?  Anyway, I'll fix this, we can't have things crashing.
msg83058 - (view) Author: Kristján Valur Jónsson (kristjan.jonsson) * (Python committer) Date: 2009-03-03 06:56
Okay, I have submitted revision 70119 that fixes this.
This is most weird, though.  It is as though the non-_DEBUG crt doesn't 
match the headers supplied with the CRT sources that come with visual 
studio 2005.

One possible reason is that there is some extra data in VC8.0 SP1 that 
isn't reflected in the headers.  We need to test this with a compile by 
vanilla VC8.0, one without the service packs.
msg83060 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2009-03-03 07:14
The fix works for me.  It all builds once again :-)
msg83061 - (view) Author: Hirokazu Yamamoto (ocean-city) * (Python committer) Date: 2009-03-03 07:22
Sorry for interruption. Maybe is this CRT internal hack needed for debug
build only? I believe _ASSERTE is only enabled for debug build.
msg83062 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2009-03-03 07:42
For me, it was the release builds that were failing.  With the fix just
added, all is well now.
msg83064 - (view) Author: Kristján Valur Jónsson (kristjan.jonsson) * (Python committer) Date: 2009-03-03 07:46
no, r69560/r69793 also removed the call to 
_set_invalid_parameter_handler().  The default parameter handling is now 
left alone in the crt which will throw up a dialogue box both in the 
release and debug versions.

Anyway, the issue (strange block layout) was only present in Release 
builds.
msg83066 - (view) Author: Hirokazu Yamamoto (ocean-city) * (Python committer) Date: 2009-03-03 07:53
OK, sorry for interruption.
History
Date User Action Args
2022-04-11 14:56:46adminsetgithub: 49657
2010-04-29 17:53:08terry.reedysetstatus: pending -> closed
2009-03-03 07:53:46ocean-citysetmessages: + msg83066
2009-03-03 07:46:46kristjan.jonssonsetmessages: + msg83064
2009-03-03 07:42:42rhettingersetmessages: + msg83062
2009-03-03 07:22:31ocean-citysetmessages: + msg83061
2009-03-03 07:14:28rhettingersetmessages: + msg83060
2009-03-03 06:56:51kristjan.jonssonsetstatus: open -> pending
resolution: fixed
messages: + msg83058
stage: test needed
2009-03-03 02:07:39kristjan.jonssonsetmessages: + msg83053
2009-03-02 23:10:23pitrousetassignee: pitrou -> kristjan.jonsson
2009-03-02 22:54:51pitrousetnosy: + ocean-city
2009-03-02 22:54:18pitrousetnosy: + kristjan.jonsson
2009-03-02 22:48:59pitrousetmessages: + msg83044
2009-03-02 22:08:22rhettingercreate