We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Expectation: the program would crash.
Observation: When c-side crashes, the program hangs indefinitely.
Reproduction:
Ran misc/cgo/testcarchive/test.bash with the following modified main.c
diff --git a/misc/cgo/testcarchive/main.c b/misc/cgo/testcarchive/main.c index cc3170d..2dfdbae 100644 --- a/misc/cgo/testcarchive/main.c +++ b/misc/cgo/testcarchive/main.c @@ -8,6 +8,11 @@ #include "p.h" #include "libgo.h" +void causeCrash() { + int *i = NULL; + printf("%d", *i + 10); +} + int main(void) { int32_t res; @@ -27,6 +32,8 @@ int main(void) { return 2; } + causeCrash(); + CheckArgs(); fprintf(stderr, "PASS\n");
$ lldb ./testp arg1 arg2 (lldb) target create "./testp" Current executable set to './testp' (x86_64). (lldb) settings set -- target.run-args "arg1" "arg2" (lldb) run Process 29934 launched: './testp' (x86_64) Process 29934 stopped * thread #1: tid = 0x29bb8e, 0x000000010000111b testp`causeCrash + 27, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0) frame #0: 0x000000010000111b testp`causeCrash + 27 testp`causeCrash + 27: -> 0x10000111b: movl (%rax), %ecx 0x10000111d: addl $0xa, %ecx 0x100001123: movl %ecx, %esi 0x100001125: movb $0x0, %al (lldb)
The text was updated successfully, but these errors were encountered:
CC @mwhudson
Sorry, something went wrong.
I'm happy to look at this but I think it's more to do with the runtime initialization stuff @spetrovic77 did?
Dup of #10139 I believe.
No branches or pull requests
Expectation: the program would crash.
Observation: When c-side crashes, the program hangs indefinitely.
Reproduction:
Ran misc/cgo/testcarchive/test.bash with the following modified main.c
The text was updated successfully, but these errors were encountered: