tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Go binary panics on amd64-current - SIG*unknown
I downloaded IACA tool from intel.com but I couldn't run it:
$ ktrace ./iaca-v3.0-lin64/iaca
fatal error: rt_sigaction read failure
runtime stack:
runtime.throw(0x75de24, 0x19)
/nfs/iil/disks/kfw/tools/go/go-latest/src/runtime/panic.go:596 +0x95
runtime.getsig(0x40, 0x441c60)
/nfs/iil/disks/kfw/tools/go/go-latest/src/runtime/os_linux.go:427 +0x92
runtime.initsig(0xe59d00)
/nfs/iil/disks/kfw/tools/go/go-latest/src/runtime/signal_unix.go:79 +0x98
runtime.mstart1()
/nfs/iil/disks/kfw/tools/go/go-latest/src/runtime/proc.go:1175 +0xa4
runtime.mstart()
/nfs/iil/disks/kfw/tools/go/go-latest/src/runtime/proc.go:1149 +0x64
goroutine 1 [runnable]:
runtime.main()
/nfs/iil/disks/kfw/tools/go/go-latest/src/runtime/proc.go:106
runtime.goexit()
/nfs/iil/disks/kfw/tools/go/go-latest/src/runtime/asm_amd64.s:2197 +0x1
goroutine 17 [syscall, locked to thread]:
runtime.goexit()
/nfs/iil/disks/kfw/tools/go/go-latest/src/runtime/asm_amd64.s:2197 +0x1
$ kdump
5477 5477 iaca CALL rt_sigaction(SIG*unknown 64*,0,0x7f7fffffe580,8)
5477 5477 iaca RET rt_sigaction -1 errno -22 Invalid argument
5477 5477 iaca CALL rt_sigaction(SIG*unknown 64*,0,0x7f7fffffe8b8,8)
5477 5477 iaca RET rt_sigaction -1 errno -22 Invalid argument
$ uname -a
NetBSD neva 8.99.7 NetBSD 8.99.7 (GENERIC_KASLR) #0: Sat Nov 18 09:54:53 GMT 2017 alnsn@neva:/home/alnsn/netbsd-current/clean/src/sys/arch/amd64/compile/obj/GENERIC_KASLR amd64
I don't know if it matters but I have PAX protections enabled:
$ sysctl -a |grep -w pax | grep enabled
security.pax.mprotect.enabled = 1
security.pax.segvguard.enabled = 1
security.pax.aslr.enabled = 1
--
Alex
Home |
Main Index |
Thread Index |
Old Index