Title Windows: Printing "argc x x" at start of every program
Priority bug Status resolved
Superseder Nosy List ajilius, kayhayen
Assigned To kayhayen Keywords windows

Created on 2016-01-14.03:41:25 by ajilius, last changed by kayhayen.

msg1779 (view) Author: kayhayen Date: 2016-01-14.23:19:18
I think I found out, how it happens.

With Python3, the printf() I was using for debug information does not cause a flush or be 
output, unless the output is line buffered. It is not in my test setup, where Popen( stdout = 
subprocess.PIPE ) is used. Changing that would be a major headache, plus potentially make 
testing slower, although I doubt.

So, sorry about the regression, the hotfix was just released.

msg1778 (view) Author: ajilius Date: 2016-01-14.22:53:50
To be more precise, here is the output from cl:

Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23026 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.
msg1777 (view) Author: ajilius Date: 2016-01-14.22:35:33
Microsoft, Kay. Visual Studio 2015.

I don't think this happened before 0.5.17, if that helps.
msg1776 (view) Author: kayhayen Date: 2016-01-14.22:21:34
Which C compiler were you using?

msg1775 (view) Author: kayhayen Date: 2016-01-14.21:57:40
Hello there,

you are absolute right, and I am now confused, as most of the tests compare 
outputs, and should fail. Will investigate and issue hotfix shortly.

It's noteworthy to say that it will only happen with Python3, but still, should 
fail almost all tests.


msg1773 (view) Author: ajilius Date: 2016-01-14.03:41:25
On Windows platforms programs compiled with Nuitka are printing "argc n n", 
where n is the number of arguments, at the start of every execution.

This can be demonstrated with the most simple program, such as:

print ('Hello')

When compiled with a command such as:

nuitka --recurse-all

The program gives the following output when run:

argc 1 1

This behaviour does not appear to occur on OSX.

Any idea what is happening?
Date User Action Args
2016-01-14 23:19:37kayhayensetstatus: chatting -> resolved
assignedto: kayhayen
title: Printing "argc x x" at start of every program -> Windows: Printing "argc x x" at start of every program
nosy: + kayhayen
2016-01-14 23:19:18kayhayensetmessages: + msg1779
keyword: + windows
2016-01-14 22:53:50ajiliussetmessages: + msg1778
2016-01-14 22:35:33ajiliussetmessages: + msg1777
2016-01-14 22:21:34kayhayensetmessages: + msg1776
2016-01-14 21:57:40kayhayensetstatus: unread -> chatting
messages: + msg1775
2016-01-14 03:41:25ajiliuscreate