Skip to content

Instantly share code, notes, and snippets.

@tmm1
Last active March 8, 2017 02:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tmm1/86cd869d1bfdae66e4058698dd30aee9 to your computer and use it in GitHub Desktop.
Save tmm1/86cd869d1bfdae66e4058698dd30aee9 to your computer and use it in GitHub Desktop.
warning: core file may not match specified executable file.
[New LWP 101498]
[New LWP 101526]
[New LWP 101527]
[New LWP 101528]
Core was generated by `channels-dvr'.
Program terminated with signal SIGILL, Illegal instruction.
#0 syscall.Syscall6 () at /home/vagrant/go/src/syscall/asm_freebsd_amd64.s:52
52 SYSCALL
[Current thread is 1 (LWP 101498)]
Loading Go Runtime support.
(gdb) bt
#0 syscall.Syscall6 () at /home/vagrant/go/src/syscall/asm_freebsd_amd64.s:52
#1 0x00000000005353ab in os.(*Process).blockUntilWaitable (p=0xc4201e41b0, ~r0=128, ~r1=...) at /home/vagrant/go/src/os/wait_wait6.go:29
#2 0x000000000052f7db in os.(*Process).wait (p=0xc4201e41b0, ps=0x0, err=...) at /home/vagrant/go/src/os/exec_unix.go:22
#3 0x000000000052ddab in os.(*Process).Wait (p=0xc4201e41b0, ~r0=0xc42010fc00, ~r1=...) at /home/vagrant/go/src/os/doc.go:49
#4 0x00000000005fec2d in os/exec.(*Cmd).Wait (c=0xc420074dc0, ~r0=...) at /home/vagrant/go/src/os/exec/exec.go:434
#5 0x00000000005fe048 in os/exec.(*Cmd).Run (c=0xc420074dc0, ~r0=...) at /home/vagrant/go/src/os/exec/exec.go:279
#6 0x00000000005ff106 in os/exec.(*Cmd).Output (c=0xc420074dc0, ~r0= []uint8, ~r1=...) at /home/vagrant/go/src/os/exec/exec.go:473
#7 0x00000000008125b4 in github.com/shirou/gopsutil/internal/common.DoSysctrl (mib="kern.cp_time", ~r1= []string = {...}, ~r2=...)
at /home/vagrant/channels-server-x86_64/.go/src/github.com/shirou/gopsutil/internal/common/common_freebsd.go:22
#8 0x000000000097d4f5 in github.com/shirou/gopsutil/cpu.Times (percpu=false, ~r1= []github.com/shirou/gopsutil/cpu.TimesStat, ~r2=...)
at /home/vagrant/channels-server-x86_64/.go/src/github.com/shirou/gopsutil/cpu/cpu_freebsd.go:53
#9 0x000000000097c9c3 in github.com/shirou/gopsutil/cpu.init.1 () at /home/vagrant/channels-server-x86_64/.go/src/github.com/shirou/gopsutil/cpu/cpu.go:57
#10 0x000000000097dce0 in github.com/shirou/gopsutil/cpu.init ()
at /home/vagrant/channels-server-x86_64/.go/src/github.com/shirou/gopsutil/cpu/cpu_freebsd.go:155
#11 0x000000000085ba0d in github.com/shirou/gopsutil/process.init ()
at /home/vagrant/channels-server-x86_64/.go/src/github.com/shirou/gopsutil/process/process_posix.go:123
#12 0x000000000064d265 in github.com/shirou/gopsutil/host.init ()
at /home/vagrant/channels-server-x86_64/.go/src/github.com/shirou/gopsutil/host/host_freebsd_amd64.go:45
#13 0x000000000042805d in main.init () at _/home/vagrant/channels-server-x86_64/_obj/_cgo_import.go:9
#14 0x00000000004547ff in runtime.main () at /home/vagrant/go/src/runtime/proc.go:172
#15 0x0000000000482c41 in runtime.goexit () at /home/vagrant/go/src/runtime/asm_amd64.s:2086
#16 0x0000000000000000 in ?? ()
(gdb) disas
Dump of assembler code for function syscall.Syscall6:
0x000000000065edf0 <+0>: callq 0x45ab30 <runtime.entersyscall>
0x000000000065edf5 <+5>: mov 0x10(%rsp),%rdi
0x000000000065edfa <+10>: mov 0x18(%rsp),%rsi
0x000000000065edff <+15>: mov 0x20(%rsp),%rdx
0x000000000065ee04 <+20>: mov 0x28(%rsp),%r10
0x000000000065ee09 <+25>: mov 0x30(%rsp),%r8
0x000000000065ee0e <+30>: mov 0x38(%rsp),%r9
0x000000000065ee13 <+35>: mov 0x8(%rsp),%rax
=> 0x000000000065ee18 <+40>: syscall
0x000000000065ee1a <+42>: jae 0x65ee39 <syscall.Syscall6+73>
0x000000000065ee1c <+44>: movq $0xffffffffffffffff,0x40(%rsp)
0x000000000065ee25 <+53>: movq $0x0,0x48(%rsp)
0x000000000065ee2e <+62>: mov %rax,0x50(%rsp)
0x000000000065ee33 <+67>: callq 0x45aff0 <runtime.exitsyscall>
0x000000000065ee38 <+72>: retq
0x000000000065ee39 <+73>: mov %rax,0x40(%rsp)
0x000000000065ee3e <+78>: mov %rdx,0x48(%rsp)
0x000000000065ee43 <+83>: movq $0x0,0x50(%rsp)
0x000000000065ee4c <+92>: callq 0x45aff0 <runtime.exitsyscall>
0x000000000065ee51 <+97>: retq
End of assembler dump.
(gdb) info threads
Id Target Id Frame
* 1 LWP 101498 syscall.Syscall6 () at /home/vagrant/go/src/syscall/asm_freebsd_amd64.s:52
2 LWP 101526 runtime.usleep () at /home/vagrant/go/src/runtime/sys_freebsd_amd64.s:254
3 LWP 101527 runtime.usleep () at /home/vagrant/go/src/runtime/sys_freebsd_amd64.s:254
4 LWP 101528 runtime.sys_umtx_op () at /home/vagrant/go/src/runtime/sys_freebsd_amd64.s:21
(gdb) thread 4
[Switching to thread 4 (LWP 101528)]
#0 runtime.sys_umtx_op () at /home/vagrant/go/src/runtime/sys_freebsd_amd64.s:21
21 MOVL AX, ret+32(FP)
(gdb) bt
#0 runtime.sys_umtx_op () at /home/vagrant/go/src/runtime/sys_freebsd_amd64.s:21
#1 0x00000000004507bd in runtime.futexsleep1 (addr=0xc420022d18, val=0, ns=-1) at /home/vagrant/go/src/runtime/os_freebsd.go:92
#2 0x0000000000479e8a in runtime.futexsleep.func1 () at /home/vagrant/go/src/runtime/os_freebsd.go:80
#3 0x000000000047fdab in runtime.systemstack () at /home/vagrant/go/src/runtime/asm_amd64.s:314
#4 0x0000000000450754 in runtime.futexsleep (addr=0xc420022d18, val=0, ns=-1) at /home/vagrant/go/src/runtime/os_freebsd.go:81
#5 0x00000000004372f2 in runtime.notesleep (n=0xc420022d18) at /home/vagrant/go/src/runtime/lock_futex.go:145
#6 0x000000000045860d in runtime.stopm () at /home/vagrant/go/src/runtime/proc.go:1594
#7 0x0000000000458ecf in runtime.startlockedm (gp=0xc4200001a0) at /home/vagrant/go/src/runtime/proc.go:1771
#8 0x0000000000459f38 in runtime.schedule () at /home/vagrant/go/src/runtime/proc.go:2133
#9 0x000000000045a303 in runtime.park_m (gp=0xc420001040) at /home/vagrant/go/src/runtime/proc.go:2183
#10 0x000000000047fcdb in runtime.mcall () at /home/vagrant/go/src/runtime/asm_amd64.s:240
#11 0x000000c420014000 in ?? ()
#12 0x0000000000000000 in ?? ()
(gdb) thread 2
[Switching to thread 2 (LWP 101526)]
#0 runtime.usleep () at /home/vagrant/go/src/runtime/sys_freebsd_amd64.s:254
254 RET
(gdb) bt
#0 runtime.usleep () at /home/vagrant/go/src/runtime/sys_freebsd_amd64.s:254
#1 0x000000000045e342 in runtime.sysmon () at /home/vagrant/go/src/runtime/proc.go:3606
#2 0x000000000045765e in runtime.mstart1 () at /home/vagrant/go/src/runtime/proc.go:1126
#3 0x0000000000457534 in runtime.mstart () at /home/vagrant/go/src/runtime/proc.go:1096
#4 0x000000000099b06c in crosscall_amd64 () at gcc_amd64.S:35
#5 0x000000080180a808 in ?? ()
#6 0x00000000004574d0 in ?? () at /home/vagrant/go/src/runtime/proc.go:1014
#7 0x0000000000000000 in ?? ()
(gdb) thread 3
[Switching to thread 3 (LWP 101527)]
#0 runtime.usleep () at /home/vagrant/go/src/runtime/sys_freebsd_amd64.s:254
254 RET
(gdb) bt
#0 runtime.usleep () at /home/vagrant/go/src/runtime/sys_freebsd_amd64.s:254
#1 0x000000000045ffdf in runtime.runqgrab (_p_=0xc420014000, batch=0xc420015ac8, batchHead=1, stealRunNextG=true, ~r4=0)
at /home/vagrant/go/src/runtime/proc.go:4160
#2 0x00000000004600c7 in runtime.runqsteal (_p_=0xc420015500, p2=0xc420014000, stealRunNextG=true, ~r3=0x0) at /home/vagrant/go/src/runtime/proc.go:4194
#3 0x0000000000459908 in runtime.findrunnable (gp=0x45fe2e <runtime.runqget+142>, inheritTime=false) at /home/vagrant/go/src/runtime/proc.go:1917
#4 0x0000000000459f8c in runtime.schedule () at /home/vagrant/go/src/runtime/proc.go:2120
#5 0x000000000045a740 in runtime.goexit0 (gp=0xc4201de9c0) at /home/vagrant/go/src/runtime/proc.go:2257
#6 0x000000000047fcdb in runtime.mcall () at /home/vagrant/go/src/runtime/asm_amd64.s:240
#7 0x000000c420014000 in ?? ()
#8 0x0000000000000000 in ?? ()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment