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

Open
gopherbot opened this Issue May 6, 2013 · 9 comments

Comments

Projects
None yet
6 participants
@gopherbot

gopherbot commented May 6, 2013

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

This comment has been minimized.

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

This comment has been minimized.

Member

minux commented May 7, 2013

Comment 2:

Labels changed: added os-openbsd.

@fntintash

This comment has been minimized.

fntintash 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

This comment has been minimized.

Member

minux commented May 27, 2013

Comment 4:

not specific to openbsd anymore.

Labels changed: removed os-openbsd.

@rsc

This comment has been minimized.

Contributor

rsc commented Nov 27, 2013

Comment 5:

Labels changed: added go1.3maybe.

@4a6f656c

This comment has been minimized.

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

This comment has been minimized.

Contributor

mikioh commented Dec 2, 2013

Comment 7:

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

This comment has been minimized.

Contributor

rsc commented Dec 4, 2013

Comment 8:

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

@rsc

This comment has been minimized.

Contributor

rsc commented Dec 4, 2013

Comment 9:

Labels changed: added repo-main.

@rsc rsc added this to the Unplanned milestone Apr 10, 2015

@mikioh mikioh added the OS-OpenBSD label Jan 26, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment