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: misc/cgo/testcarchive/TestManyCalls is failing on aix/ppc64 #35342

Closed
Helflym opened this issue Nov 4, 2019 · 1 comment
Closed
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. OS-AIX
Milestone

Comments

@Helflym
Copy link
Contributor

Helflym commented Nov 4, 2019

aix/ppc64: https://build.golang.org/log/b623bdfa2f850fe357514464b30cb2b8af74964e

##### ../misc/cgo/testcarchive
--- FAIL: TestManyCalls (5.16s)
    carchive_test.go:861: unexpected fault address 0x100000000000000
        fatal error: fault
        [signal SIGSEGV: segmentation violation code=0x32 addr=0x100000000000000 pc=0x100000000000000]
        
        goroutine 17 [running, locked to thread]:
        runtime.throw(0x10005d20b, 0x5)
        	/ramdisk8GB/workdir-host-aix-ppc64-osuosl/go/src/runtime/panic.go:1045 +0x68 fp=0xa00010000076ed0 sp=0xa00010000076e90 pc=0x100029128
        runtime: unexpected return pc for runtime.sigpanic called from 0x100000000000000
        stack: frame={sp:0xa00010000076ed0, fp:0xa00010000076f10} stack=[0xa00010000076000,0xa00010000077000)
        0a00010000076dd0:  000000010005d0c5  0000000000000001 
        0a00010000076de0:  0000000000000001  0000000000000000 
        0a00010000076df0:  000000010002ac38 <runtime.printstring+104>  0000000000000002 
        0a00010000076e00:  0000000000000002  0a00010000076ebb 
        0a00010000076e10:  0000000000000002  000000010005d0c5 
        0a00010000076e20:  0000000100000001  00000001000292c8 <runtime.fatalthrow+72> 
        0a00010000076e30:  000000010003e540 <runtime.sigpanic+992>  0000000000000000 
        0a00010000076e40:  000000010002a528 <runtime.printnl+56>  0000000100029128 <runtime.throw+104> 
        0a00010000076e50:  0a00010000076ebb  0000000000000011 
        0a00010000076e60:  000000010005d0c5  0a00010000076e70 
        0a00010000076e70:  0000000100051ce0 <runtime.fatalthrow.func1+0>  0a00010000000600 
        0a00010000076e80:  0000000100029128 <runtime.throw+104>  0a00010000076e90 
        0a00010000076e90:  000000010003e560 <runtime.sigpanic+1024>  0000000000000001 
        0a00010000076ea0:  0a00010000000600  000000010003e548 <runtime.sigpanic+1000> 
        0a00010000076eb0:  0a00010000076eb8  0000000100051c60 <runtime.throw.func1+0> 
        0a00010000076ec0:  000000010005d20b  0000000000000005 
        0a00010000076ed0: <0100000000000000  00000001000523e0 <runtime.exitsyscallfast.func1+0> 
        0a00010000076ee0:  0100010000076ec8  0000000000000000 
        0a00010000076ef0:  000000010005d20b  0000000000000005 
        0a00010000076f00:  0000000000000000  0100000000000000 
        0a00010000076f10: >0100000000000000  0a00010000076ee0 
        0a00010000076f20:  000000011001da18  0000000000000000 
        0a00010000076f30:  0000000000000000  00000001000554a8 <runtime.cgocallback_gofunc+136> 
        0a00010000076f40:  0000000000000000  0000000000000000 
        0a00010000076f50:  0000000000000000  0000000000000000 
        0a00010000076f60:  0000000000000000  00000001000555e4 <runtime.goexit+4> 
        0a00010000076f70:  0000000000000000  0000000000000000 
        0a00010000076f80:  0000000000000000  0000000000000000 
        0a00010000076f90:  0000000000000000  0000000000000000 
        0a00010000076fa0:  0a00010000076fe0  0a00010000000600 
        0a00010000076fb0:  00000001000555e4 <runtime.goexit+4>  0000000000000000 
        0a00010000076fc0:  0000000000000000  0000000000000000 
        0a00010000076fd0:  0000000000000000  0000000000000000 
        0a00010000076fe0:  0000000000000000  0000000000000000 
        0a00010000076ff0:  0000000000000000  0000000000000000 
        runtime.sigpanic()
        	/ramdisk8GB/workdir-host-aix-ppc64-osuosl/go/src/runtime/signal_unix.go:601 +0x400 fp=0xa00010000076f10 sp=0xa00010000076ed0 pc=0x10003e560
        
    carchive_test.go:862: signal: IOT/Abort trap (core dumped)

It seems to be an hidden bug which has been triggered by the test added by CL 204957.
In first glance, the stack before runtime.cgocallback seems wrong.
I'm working on it.

@ianlancetaylor ianlancetaylor changed the title TestManyCalls is failing on aix/ppc64 runtime: misc/cgo/testcarchive/TestManyCalls is failing on aix/ppc64 Nov 4, 2019
@ianlancetaylor ianlancetaylor added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Nov 4, 2019
@ianlancetaylor ianlancetaylor added this to the Go1.14 milestone Nov 4, 2019
@gopherbot
Copy link

Change https://golang.org/cl/205338 mentions this issue: cmd/link: fix the size of typerel.* with c-archive buildmode

@golang golang locked and limited conversation to collaborators Nov 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. OS-AIX
Projects
None yet
Development

No branches or pull requests

3 participants