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

runtime: TestCgoCrashHandler and TestCgoSignalDeadlock compilation failure on openbsd/amd64 #5415

Closed
gopherbot opened this issue May 6, 2013 · 10 comments

Comments

@gopherbot
Copy link

by raul.san@sent.com:

I compiled Go in OpenBSD 5.3 for arch. 386 with `ulimit -d 2036792; ulimit -p 512` and
it worked ok, but it fails in amd64.


ok      regexp/syntax   0.828s
--- FAIL: TestCgoCrashHandler (0.83 seconds)
        crash_test.go:78: expected "main: recovered done\nnew-thread: recovered done\nsecond-new-thread: recovered done\nmain-again: recovered done\n", but got "# command-line-arguments\n/usr/bin/ld: /var/tmp/go-link-uH0FNo/go.o: relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC\n/var/tmp/go-link-uH0FNo/go.o: could not read symbols: Bad value\ncollect2: ld returned 1 exit status\n/usr/local/go/pkg/tool/openbsd_amd64/6l: running gcc failed: unsuccessful exit status 0x100\n"
--- FAIL: TestCgoSignalDeadlock (0.56 seconds)
        crash_cgo_test.go:21: expected "OK\n", but got "# command-line-arguments\n/usr/bin/ld: /var/tmp/go-link-73A0Ps/go.o: relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC\n/var/tmp/go-link-73A0Ps/go.o: could not read symbols: Bad value\ncollect2: ld returned 1 exit status\n/usr/local/go/pkg/tool/openbsd_amd64/6l: running gcc failed: unsuccessful exit status 0x100\n"
FAIL
@minux
Copy link
Member

minux commented May 7, 2013

Comment 1:

reproduced on openbsd-5.2/amd64:
--- FAIL: TestCgoCrashHandler (1.90 seconds)
        crash_test.go:78: expected "main: recovered done\nnew-thread: recovered done\nsecond-new-thread: recovered done\nmain-again: recovered done\n", but got "# command-line-arguments\n/usr/bin/ld: /var/tmp/go-link-FwncUO/go.o: relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC\n/var/tmp/go-link-FwncUO/go.o: could not read symbols: Bad value\ncollect2: ld returned 1 exit status\n/home/minux/go.hg/pkg/tool/openbsd_amd64/6l: running gcc failed: unsuccessful exit status 0x100\n"
--- FAIL: TestCgoSignalDeadlock (1.65 seconds)
        crash_cgo_test.go:21: expected "OK\n", but got "# command-line-arguments\n/usr/bin/ld: /var/tmp/go-link-iIEXwY/go.o: relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC\n/var/tmp/go-link-iIEXwY/go.o: could not read symbols: Bad value\ncollect2: ld returned 1 exit status\n/home/minux/go.hg/pkg/tool/openbsd_amd64/6l: running gcc failed: unsuccessful exit status 0x100\n"
FAIL
FAIL    runtime 20.563s

Labels changed: added priority-later, removed priority-triage.

Status changed to Accepted.

@minux
Copy link
Member

minux commented May 7, 2013

Comment 2:

Labels changed: added os-openbsd.

@faried
Copy link

faried commented May 27, 2013

Comment 3:

I get a similar error with tip (16907:fae6ab78c055) on FreeBSD 8.3, on i386:
--- FAIL: TestCgoCrashHandler (2.01 seconds)
        crash_test.go:78: expected "main: recovered done\nnew-thread: recovered done\nsecond-new-thread: recovered done\nmain-again: recovered done\n", but got "# command-line-arguments\n/var/tmp/go-link-vq1CgF/go.o(.text+0x17d94): In function `runtime.mallocinit':\n/data/go/src/pkg/runtime/malloc.goc:402: relocation truncated to fit: R_386_32 end\n/var/tmp/go-link-vq1CgF/go.o(.gosymtab+0x2e9b): In function `runtime.chanrecv':\n/data/go/src/pkg/runtime/chan.c:346: relocation truncated to fit: R_386_32 end\n/var/tmp/go-link-vq1CgF/go.o(.debug_info+0x88b9): In function `scanblock':\n/data/go/src/pkg/runtime/mgc0.c:1084: relocation truncated to fit: R_386_32 end\n/data/go/pkg/tool/freebsd_386/8l: running gcc failed: unsuccessful exit status 0x100\n"
--- FAIL: TestCgoSignalDeadlock (1.64 seconds)
        crash_cgo_test.go:21: expected "OK\n", but got "# command-line-arguments\n/var/tmp/go-link-b3i1Q8/go.o(.text+0x18984): In function `runtime.mallocinit':\n/data/go/src/pkg/runtime/malloc.goc:402: relocation truncated to fit: R_386_32 end\n/var/tmp/go-link-b3i1Q8/go.o(.gosymtab+0x2ec4): In function `runtime.chanrecv':\n/data/go/src/pkg/runtime/chan.c:366: relocation truncated to fit: R_386_32 end\n/var/tmp/go-link-b3i1Q8/go.o(.debug_info+0x8c3e): In function `flushptrbuf':\n/data/go/src/pkg/runtime/mgc0.c:347: relocation truncated to fit: R_386_32 end\n/data/go/pkg/tool/freebsd_386/8l: running gcc failed: unsuccessful exit status 0x100\n"
FAIL
FAIL    runtime 21.657s

@minux
Copy link
Member

minux commented May 27, 2013

Comment 4:

not specific to openbsd anymore.

Labels changed: removed os-openbsd.

@rsc
Copy link
Contributor

rsc commented Nov 27, 2013

Comment 5:

Labels changed: added go1.3maybe.

@4a6f656c
Copy link
Contributor

4a6f656c commented Dec 2, 2013

Comment 6:

On OpenBSD, this is the same as issue #5067.
The FreeBSD issue looks similar but different...

@mikioh
Copy link
Contributor

mikioh commented Dec 2, 2013

Comment 7:

See issue #6845 for FreeBSD. It's a different issue.

@rsc
Copy link
Contributor

rsc commented Dec 4, 2013

Comment 8:

Labels changed: added release-none, removed go1.3maybe.

@rsc
Copy link
Contributor

rsc commented Dec 4, 2013

Comment 9:

Labels changed: added repo-main.

@rsc rsc added this to the Unplanned milestone Apr 10, 2015
@4a6f656c
Copy link
Contributor

This was fixed in #5067.

@golang golang locked and limited conversation to collaborators Aug 20, 2023
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

6 participants