This is the Link of program what i am compiling https://play.golang.org/p/drJGhsWiEi
when i am using- go build program.go ,it generating ->program(binary) file ./program program: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=91d49d6db997f83dfc722b820e5cab4cc16854cf, not stripped ldd ./program linux-vdso.so.1 => (0x00007ffca8fba000) libcrypto.so.1.0.0 => /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 (0x00007fa93c071000) libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fa93be6d000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fa93bc4f000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fa93b886000) /lib64/ld-linux-x86-64.so.2 (0x000055f1aa574000) ./program Output i am getting - {"name":"xeodou", "password": "123456"} when i am using go build --ldflags '-extldflags "-static"' program.go file ./program program: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), statically linked, for GNU/Linux 2.6.32, BuildID[sha1]=71fa3d0c30cc5c52dd4f8bea432f8e0468225f9a, not stripped ldd ./program not a dynamic executable Output i am getting - Segmentation fault (core dumped) -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.