https://bugs.winehq.org/show_bug.cgi?id=55292
Bug ID: 55292 Summary: winegcc: Crash when accessing argv[0] when program is built with -mno-cygwin Product: Wine Version: 8.11 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: winecrt0 Assignee: wine-bugs@winehq.org Reporter: esteve.varela@gmail.com Distribution: ---
When a program is built with -mno-cygwin, it crashes straight away when accessing anything in argv:
$ echo -e '#include <stdio.h>\nint main(int argc,char *argv[]){printf("%s\n",argv[0]);}' > test.c $ winegcc -mconsole -mno-cygwin test.c $ ./a.out *loud noise of breaking windows, cats screaming, sirens blaring*
Incidentally, this works without -mno-cygwin, but then you have no access to windows CRT functions...
https://bugs.winehq.org/show_bug.cgi?id=55292
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, source, testcase
https://bugs.winehq.org/show_bug.cgi?id=55292
Ken Sharp imwellcushtymelike@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|winecrt0 |-unknown
--- Comment #1 from Ken Sharp imwellcushtymelike@gmail.com --- Please provide the console output.
https://bugs.winehq.org/show_bug.cgi?id=55292
--- Comment #2 from esteve.varela@gmail.com --- Segmentation fault