Skip to content
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

misc/cgo/testcarchive: test4 fails on darwin/{arm,arm64} #13701

Closed
ianlancetaylor opened this issue Dec 21, 2015 · 3 comments
Closed

misc/cgo/testcarchive: test4 fails on darwin/{arm,arm64} #13701

ianlancetaylor opened this issue Dec 21, 2015 · 3 comments
Milestone

Comments

@ianlancetaylor
Copy link
Contributor

From http://build.golang.org/log/bdb16ad9a65cab92ea0c49f86bc7967ca3f3cd94:

(lldb) process continue
Process 808 resuming
(lldb) Process 808 stopped

  • thread cmd/cgo: fails with gcc 4.4.1 #1: tid = 0x4d91, 0x0000bbd8 gotestmain + 764, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0) frame #0: 0x0000bbd8 gotestmain + 764
    gotest`main:
    -> 0xbbd8 <+764>: strb r2, [r3]
    0xbbdc <+768>: ldr r0, [r0]
    0xbbe0 <+772>: bl 0x13ff80 ; symbol stub for: fprintf
    0xbbe4 <+776>: movw r1, #0x1
    go_darwin_arm_exec: command timeout (test completion for 1s)
    FAIL test4
    2015/12/18 20:21:11 Failed: exit status 1

This is the code in misc/cgo/testcarchive/main2.c that does this:

    if (verbose) {
        printf("triggering SIGSEGV\n");
    }

    *nullPointer = '\0';

Is is intended to trigger a SIGSEGV, but instead on darwin/{arm,arm64} it triggers a EXC_BAD_ACCESS.

@ianlancetaylor ianlancetaylor self-assigned this Dec 21, 2015
@ianlancetaylor ianlancetaylor added this to the Go1.6 milestone Dec 21, 2015
@gopherbot
Copy link

CL https://golang.org/cl/18090 mentions this issue.

@minux
Copy link
Member

minux commented Dec 22, 2015 via email

@ianlancetaylor
Copy link
Contributor Author

Ah, in that case maybe we should treat CL 18090 as an actual fix.

@golang golang locked and limited conversation to collaborators Dec 29, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants