-
-
Notifications
You must be signed in to change notification settings - Fork 650
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: Windows execute APE with SEGV segment fault exception c0000005 at 00000000002c8cea #1345
Comments
Works fine for me. Try running yes on the windows command prompt rather than the Cygwin shell. Cosmo isn't Cygwin so obviously it's not going to work with Cygwin's strace tool. You only need the If it's still crashing, then run it from a folder where Windows Defender is disabled. If it's still crashing, and strace logs nothing, then try using these
For example, you can run |
WinDbg load yes.exe:
Go:
Time Travel Position stops on LdrInitializeThunk in ntdll
this is what I can provide with WinDbg so far. |
That's not cosmopolitan code. I think you might need to click continue
after that first breakpoint happens.
…On Thu, Jan 2, 2025 at 11:57 PM HuangShumin ***@***.***> wrote:
WinDbg load yes.exe:
ModLoad: 00000000`00400000 00000000`0043a000 image00000000`00400000
ModLoad: 00007ff9`ddef0000 00007ff9`de0e8000 ntdll.dll
ModLoad: 00007ff9`dd830000 00007ff9`dd8f2000 C:\Windows\System32\KERNEL32.DLL
ModLoad: 00007ff9`db810000 00007ff9`dbb0e000 C:\Windows\System32\KERNELBASE.dll
(10970.efac): Break instruction exception - code 80000003 (first chance)
ntdll!LdrpDoDebuggerBreak+0x30:
00007ff9`ddfc07a0 cc int 3
—
Reply to this email directly, view it on GitHub
<#1345 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAMA3SR3QYWQ5UQ3V6EGUD2IY7FZAVCNFSM6AAAAABUPSN6SSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNRYHAYTMMBXG4>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
After I click |
Contact Details
[email protected]
What happened?
I installed MSYS2 and started a shell to execute any executables in https://cosmo.zip/pub/cosmos/zip/cosmos.zip, with segment fault error code 0xc0000005, take simple yes as example:
$ strace /c/bin/yes --strace
--- Process 60960 created
--- Process 60960 loaded C:\Windows\System32\ntdll.dll at 00007ff9ddef0000
--- Process 60960 loaded C:\Windows\System32\kernel32.dll at 00007ff9dd830000
--- Process 60960 loaded C:\Windows\System32\KernelBase.dll at 00007ff9db810000
--- Process 60960, exception c0000005 at 0000000000059d96
--- Process 60960 exited with status 0xc0000005
Segmentation fault
I also tried compiler in https://cosmo.zip/pub/cosmos/zip/cosmocc.zip
$ cat hello.c
// hello.c
#include <stdio.h>
int main() {
printf("hello world\n");
}
$ strace ./cosmocc hello.c -o hello
strace.exe: error creating process C:\cosmocc-3.9.7\bin\cosmocc, (error 193)
It seems cosmopolitan world won't work on my computer. Any clues?
Best Regards
Version
cosmocc (GCC) 14.1.0
What operating system are you seeing the problem on?
Windows_NT 10.0 19045
Relevant log output
The text was updated successfully, but these errors were encountered: