Windows 7 64 cmd stdout exception

Discussion of bugs and problems found in Altap Salamander. In your reports, please be as descriptive as possible, and report one incident per report. Do not post crash reports here, send us the generated bug report by email instead, please.
ramarik
Posts: 1
Joined: 02 Feb 2010, 18:25

Windows 7 64 cmd stdout exception

Post by ramarik »

CMD shell started from Altap Salamander does not provide a proper file descriptors (stdout).

I wrote a small Python script test.py containing just the following two lines:
for i in range(100):
  print "hello"
If the script is executed from the command shell started by Windows 7 one can see the following replies:
>D:\tmp>python test.py > d:\tmp\blb.txt
>
>D:\tmp>test.py > d:\tmp\blb.txt
>

However, if the command shell is started through Altap Salamander, then the replies are like this:
>D:\tmp>python test.py > d:\tmp\blb.txt
>
>D:\tmp>test.py > d:\tmp\blb.txt
>close failed in file object destructor:
>Error in sys.excepthook:
>
>Original exception was:
>

">" at the beginning of lines were added by me to highlight the sessions.
The environment:
-Windows 7 64 bit Ultimate
-Python 2.6.2 32 bit
-Altap Salamander 2.52
I noticed different environment variable setting in the CMD shells:

CMD Windows 7:
CommonProgramFiles=C:\Program Files\Common Files
ProgramFiles=C:\Program Files

CMD Salamander:
CommonProgramFiles=C:\Program Files (x86)\Common Files
ProgramFiles=C:\Program Files (x86)

I would guess it deals with file type association, its related mechanism of execution, and mixing 32 and 64 bit environments.

Any clue what is going on?

Thank you
Radek
Jan Rysavy
ALTAP Staff
ALTAP Staff
Posts: 5231
Joined: 08 Dec 2005, 06:34
Location: Novy Bor, Czech Republic
Contact:

Re: Windows 7 64 cmd stdout exception

Post by Jan Rysavy »

Please search this forum for x64 and redirector words for explanation of this problem.
User avatar
Ether
Posts: 1471
Joined: 10 May 2007, 16:08
Location: Czech Republic
Contact:

Re: Windows 7 64 cmd stdout exception

Post by Ether »

Jan Rysavy wrote:Please search this forum for x64 and redirector words for explanation of this problem.
I'm not sure that's the source of the problem.
Ελληνικά rulez.
User avatar
SelfMan
Posts: 1155
Joined: 05 Apr 2006, 20:51
Contact:

Re: Windows 7 64 cmd stdout exception

Post by SelfMan »

Its a timing related issue. A pipe/redirector must be closed before the end which does not happen.

Read this thread for atleast a partial solution: http://bugs.python.org/issue4192
Post Reply