Segmentation fault on Debian 8

tstx program code

package main

import “fmt”

func main(){
fmt.Printf(“Hello”)
}

On dev computer (kali linux) all ok, but when i run it on server computer (Debian 8) i got segmentation fault

go1.7, both systems are amd64, code compilled with [go build]

[strace ./tstx] - says

execve("./tstx", ["./tstx"], [/* 16 vars */]) = 0
— SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0xffffffffffffff8b} —
+++ killed by SIGSEGV +++

I also tried to compile on windows 10 (GOOS=linux ; GOARCH=amd64)(go1.6.3) and run on debian server, after that i got:

execve("./test", ["./test"], [/* 16 vars */]) = 0
arch_prctl(ARCH_SET_FS, 0x584f07) = 0
— SIGTRAP {si_signo=SIGTRAP, si_code=SI_KERNEL} —
+++ killed by SIGTRAP +++

i guess that is something wrong with your Debian :confused:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.