Skip to content

Instantly share code, notes, and snippets.

@tmm1 tmm1/1-stdout Secret
Last active Mar 9, 2017

Embed
What would you like to do?
2017/03/08 23:13:29 started process
2017/03/08 23:13:29 running exec...
unexpected fault address 0xffffffff
fatal error: fault
[signal SIGSEGV: segmentation violation code=0x1 addr=0xffffffff pc=0x4ba74a]
goroutine 1 [running, locked to thread]:
runtime.throw(0x4f5e6a, 0x5)
/home/vagrant/go/src/runtime/panic.go:596 +0x95 fp=0xc420035c68 sp=0xc420035c48
runtime.sigpanic()
/home/vagrant/go/src/runtime/signal_unix.go:297 +0x28c fp=0xc420035cb8 sp=0xc420035c68
regexp.(*Regexp).put(0xc420073ae0, 0xc4200817a0)
/home/vagrant/go/src/regexp/regexp.go:227 +0x8a fp=0xc420035d20 sp=0xc420035cb8
regexp.(*Regexp).doExecute(0xc420073ae0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xc420012c30, 0x2e, 0x0, 0xc, ...)
/home/vagrant/go/src/regexp/exec.go:440 +0x363 fp=0xc420035dc0 sp=0xc420035d20
regexp.(*Regexp).FindStringSubmatch(0xc420073ae0, 0xc420012c30, 0x2e, 0xb95, 0xc420012c30, 0x2e)
/home/vagrant/go/src/regexp/regexp.go:919 +0xec fp=0xc420035ea0 sp=0xc420035dc0
main.init.1()
/home/vagrant/spawntest/main.go:22 +0x190 fp=0xc420035f78 sp=0xc420035ea0
main.init()
/home/vagrant/spawntest/main.go:34 +0x67 fp=0xc420035f88 sp=0xc420035f78
runtime.main()
/home/vagrant/go/src/runtime/proc.go:173 +0x1ca fp=0xc420035fe0 sp=0xc420035f88
runtime.goexit()
/home/vagrant/go/src/runtime/asm_amd64.s:2197 +0x1 fp=0xc420035fe8 sp=0xc420035fe0
goroutine 2 [runnable]:
runtime.forcegchelper()
/home/vagrant/go/src/runtime/proc.go:218 fp=0xc4200207e0 sp=0xc4200207d8
runtime.goexit()
/home/vagrant/go/src/runtime/asm_amd64.s:2197 +0x1 fp=0xc4200207e8 sp=0xc4200207e0
created by runtime.init.4
/home/vagrant/go/src/runtime/proc.go:215 +0x35
goroutine 3 [GC sweep wait]:
runtime.gopark(0x4fd138, 0x573ba0, 0x4f7052, 0xd, 0x41ba14, 0x1)
/home/vagrant/go/src/runtime/proc.go:271 +0x13a fp=0xc420020f58 sp=0xc420020f28
runtime.goparkunlock(0x573ba0, 0x4f7052, 0xd, 0x14, 0x1)
/home/vagrant/go/src/runtime/proc.go:277 +0x5e fp=0xc420020f98 sp=0xc420020f58
runtime.bgsweep(0xc420014070)
/home/vagrant/go/src/runtime/mgcsweep.go:56 +0xb6 fp=0xc420020fd8 sp=0xc420020f98
runtime.goexit()
/home/vagrant/go/src/runtime/asm_amd64.s:2197 +0x1 fp=0xc420020fe0 sp=0xc420020fd8
created by runtime.gcenable
/home/vagrant/go/src/runtime/mgc.go:212 +0x61
goroutine 4 [runnable]:
runtime.runfinq()
/home/vagrant/go/src/runtime/mfinal.go:147 fp=0xc4200217e0 sp=0xc4200217d8
runtime.goexit()
/home/vagrant/go/src/runtime/asm_amd64.s:2197 +0x1 fp=0xc4200217e8 sp=0xc4200217e0
created by runtime.createfing
/home/vagrant/go/src/runtime/mfinal.go:142 +0x62
Abort trap (core dumped)
17697 spawntest NAMI "./spawntest"
17697 spawntest RET execve 0
17697 spawntest CALL sysarch(0x81,0x7fffffffea48)
17697 spawntest RET sysarch 0
17697 spawntest CALL __sysctl(0x7fffffffea30,0x2,0x7fffffffea24,0x7fffffffea28,0,0)
17697 spawntest SCTL "hw.ncpu"
17697 spawntest RET __sysctl 0
17697 spawntest CALL __sysctl(0x7fffffffea30,0x2,0x7fffffffea24,0x7fffffffea28,0,0)
17697 spawntest SCTL "hw.pagesize"
17697 spawntest RET __sysctl 0
17697 spawntest CALL mmap(0,0x40000,0x3<PROT_READ|PROT_WRITE>,0x1002<MAP_PRIVATE|MAP_ANON>,0xffffffff,0)
17697 spawntest RET mmap 34365370368/0x80055f000
17697 spawntest CALL mmap(0xc420000000,0x100000,0x3<PROT_READ|PROT_WRITE>,0x1002<MAP_PRIVATE|MAP_ANON>,0xffffffff,0)
17697 spawntest RET mmap 842350460928/0xc420000000
17697 spawntest CALL mmap(0xc41fff8000,0x8000,0x3<PROT_READ|PROT_WRITE>,0x1002<MAP_PRIVATE|MAP_ANON>,0xffffffff,0)
17697 spawntest RET mmap 842350428160/0xc41fff8000
17697 spawntest CALL mmap(0xc000000000,0x1000,0x3<PROT_READ|PROT_WRITE>,0x1002<MAP_PRIVATE|MAP_ANON>,0xffffffff,0)
17697 spawntest RET mmap 824633720832/0xc000000000
17697 spawntest CALL mmap(0,0x10000,0x3<PROT_READ|PROT_WRITE>,0x1002<MAP_PRIVATE|MAP_ANON>,0xffffffff,0)
17697 spawntest RET mmap 34365632512/0x80059f000
17697 spawntest CALL clock_gettime(0x4,0x7fffffffe590)
17697 spawntest RET clock_gettime 0
17697 spawntest CALL mmap(0,0x10000,0x3<PROT_READ|PROT_WRITE>,0x1002<MAP_PRIVATE|MAP_ANON>,0xffffffff,0)
17697 spawntest RET mmap 34365698048/0x8005af000
17697 spawntest CALL open(0x55f4d0,0<O_RDONLY>,<unused>0)
17697 spawntest NAMI "/dev/urandom"
17697 spawntest RET open 3
17697 spawntest CALL read(0x3,0x58e4a0,0x80)
17697 spawntest GIO fd 3 read 128 bytes
17697 spawntest RET read 128/0x80
17697 spawntest CALL close(0x3)
17697 spawntest RET close 0
17697 spawntest CALL sigprocmask(SIG_SETMASK,0,0x574478)
17697 spawntest RET sigprocmask 0
17697 spawntest CALL clock_gettime(0x4,0x7fffffffe9f8)
17697 spawntest RET clock_gettime 0
17697 spawntest CALL clock_gettime(0x4,0x7fffffffe978)
17697 spawntest RET clock_gettime 0
17697 spawntest CALL sigaltstack(0,0x7fffffffe9d0)
17697 spawntest RET sigaltstack 0
17697 spawntest CALL sigprocmask(SIG_SETMASK,0x7fffffffe9e0,0)
17697 spawntest RET sigprocmask 0
17697 spawntest CALL sigaction(SIGHUP,0,0x7fffffffe9a8)
17697 spawntest RET sigaction 0
17697 spawntest CALL sigaction(SIGHUP,0x7fffffffe988,0)
17697 spawntest RET sigaction 0
17697 spawntest CALL sigaction(SIGINT,0,0x7fffffffe9a8)
17697 spawntest RET sigaction 0
17697 spawntest CALL sigaction(SIGINT,0x7fffffffe988,0)
17697 spawntest RET sigaction 0
17697 spawntest CALL sigaction(SIGQUIT,0,0x7fffffffe9a8)
17697 spawntest RET sigaction 0
17697 spawntest CALL sigaction(SIGQUIT,0x7fffffffe988,0)
17697 spawntest RET sigaction 0
17697 spawntest CALL sigaction(SIGILL,0,0x7fffffffe9a8)
17697 spawntest RET sigaction 0
17697 spawntest CALL sigaction(SIGILL,0x7fffffffe988,0)
17697 spawntest RET sigaction 0
17697 spawntest CALL sigaction(SIGTRAP,0,0x7fffffffe9a8)
17697 spawntest RET sigaction 0
17697 spawntest CALL sigaction(SIGTRAP,0x7fffffffe988,0)
17697 spawntest RET sigaction 0
17697 spawntest CALL sigaction(SIGIOT,0,0x7fffffffe9a8)
17697 spawntest RET sigaction 0
17697 spawntest CALL sigaction(SIGIOT,0x7fffffffe988,0)
17697 spawntest RET sigaction 0
17697 spawntest CALL sigaction(SIGEMT,0,0x7fffffffe9a8)
17697 spawntest RET sigaction 0
17697 spawntest CALL sigaction(SIGEMT,0x7fffffffe988,0)
17697 spawntest RET sigaction 0
17697 spawntest CALL sigaction(SIGFPE,0,0x7fffffffe9a8)
17697 spawntest RET sigaction 0
17697 spawntest CALL sigaction(SIGFPE,0x7fffffffe988,0)
17697 spawntest RET sigaction 0
17697 spawntest CALL sigaction(SIGBUS,0,0x7fffffffe9a8)
17697 spawntest RET sigaction 0
17697 spawntest CALL sigaction(SIGBUS,0x7fffffffe988,0)
17697 spawntest RET sigaction 0
17697 spawntest CALL sigaction(SIGSEGV,0,0x7fffffffe9a8)
17697 spawntest RET sigaction 0
17697 spawntest CALL sigaction(SIGSEGV,0x7fffffffe988,0)
17697 spawntest RET sigaction 0
17697 spawntest CALL sigaction(SIGSYS,0,0x7fffffffe9a8)
17697 spawntest RET sigaction 0
17697 spawntest CALL sigaction(SIGSYS,0x7fffffffe988,0)
17697 spawntest RET sigaction 0
17697 spawntest CALL sigaction(SIGPIPE,0,0x7fffffffe9a8)
17697 spawntest RET sigaction 0
17697 spawntest CALL sigaction(SIGPIPE,0x7fffffffe988,0)
17697 spawntest RET sigaction 0
17697 spawntest CALL sigaction(SIGALRM,0,0x7fffffffe9a8)
17697 spawntest RET sigaction 0
17697 spawntest CALL sigaction(SIGALRM,0x7fffffffe988,0)
17697 spawntest RET sigaction 0
17697 spawntest CALL sigaction(SIGTERM,0,0x7fffffffe9a8)
17697 spawntest RET sigaction 0
17697 spawntest CALL sigaction(SIGTERM,0x7fffffffe988,0)
17697 spawntest RET sigaction 0
17697 spawntest CALL sigaction(SIGURG,0,0x7fffffffe9a8)
17697 spawntest RET sigaction 0
17697 spawntest CALL sigaction(SIGURG,0x7fffffffe988,0)
17697 spawntest RET sigaction 0
17697 spawntest CALL sigaction(SIGCHLD,0,0x7fffffffe9a8)
17697 spawntest RET sigaction 0
17697 spawntest CALL sigaction(SIGCHLD,0x7fffffffe988,0)
17697 spawntest RET sigaction 0
17697 spawntest CALL sigaction(SIGIO,0,0x7fffffffe9a8)
17697 spawntest RET sigaction 0
17697 spawntest CALL sigaction(SIGIO,0x7fffffffe988,0)
17697 spawntest RET sigaction 0
17697 spawntest CALL sigaction(SIGXCPU,0,0x7fffffffe9a8)
17697 spawntest RET sigaction 0
17697 spawntest CALL sigaction(SIGXCPU,0x7fffffffe988,0)
17697 spawntest RET sigaction 0
17697 spawntest CALL sigaction(SIGXFSZ,0,0x7fffffffe9a8)
17697 spawntest RET sigaction 0
17697 spawntest CALL sigaction(SIGXFSZ,0x7fffffffe988,0)
17697 spawntest RET sigaction 0
17697 spawntest CALL sigaction(SIGVTALRM,0,0x7fffffffe9a8)
17697 spawntest RET sigaction 0
17697 spawntest CALL sigaction(SIGVTALRM,0x7fffffffe988,0)
17697 spawntest RET sigaction 0
17697 spawntest CALL sigaction(SIGPROF,0,0x7fffffffe9a8)
17697 spawntest RET sigaction 0
17697 spawntest CALL sigaction(SIGPROF,0x7fffffffe988,0)
17697 spawntest RET sigaction 0
17697 spawntest CALL sigaction(SIGWINCH,0,0x7fffffffe9a8)
17697 spawntest RET sigaction 0
17697 spawntest CALL sigaction(SIGWINCH,0x7fffffffe988,0)
17697 spawntest RET sigaction 0
17697 spawntest CALL sigaction(SIG29,0,0x7fffffffe9a8)
17697 spawntest RET sigaction 0
17697 spawntest CALL sigaction(SIG29,0x7fffffffe988,0)
17697 spawntest RET sigaction 0
17697 spawntest CALL sigaction(SIGUSR1,0,0x7fffffffe9a8)
17697 spawntest RET sigaction 0
17697 spawntest CALL sigaction(SIGUSR1,0x7fffffffe988,0)
17697 spawntest RET sigaction 0
17697 spawntest CALL sigaction(SIGUSR2,0,0x7fffffffe9a8)
17697 spawntest RET sigaction 0
17697 spawntest CALL sigaction(SIGUSR2,0x7fffffffe988,0)
17697 spawntest RET sigaction 0
17697 spawntest CALL sigaction(SIG 32,0,0x7fffffffe9a8)
17697 spawntest RET sigaction 0
17697 spawntest CALL sigaction(SIG 32,0x7fffffffe988,0)
17697 spawntest RET sigaction 0
17697 spawntest CALL clock_gettime(0x4,0xc420020760)
17697 spawntest RET clock_gettime 0
17697 spawntest CALL sigprocmask(SIG_SETMASK,0x55f540,0x7fffffffe910)
17697 spawntest RET sigprocmask 0
17697 spawntest CALL thr_new(0x7fffffffe930,0x68)
17697 spawntest RET thr_new 0
17697 spawntest CALL sigprocmask(SIG_SETMASK,0x7fffffffe910,0)
17697 spawntest RET sigprocmask 0
17697 spawntest CALL sigprocmask(SIG_SETMASK,0x55f540,0x7fffffffe840)
17697 spawntest RET sigprocmask 0
17697 spawntest CALL thr_new(0x7fffffffe860,0x68)
17697 spawntest RET thr_new 0
17697 spawntest CALL sigprocmask(SIG_SETMASK,0x7fffffffe840,0)
17697 spawntest RET sigprocmask 0
17697 spawntest CALL _umtx_op(0x574538,UMTX_OP_WAIT_UINT_PRIVATE,0,0x18,0)
17697 spawntest RET fork 0
17697 spawntest CALL sysarch(0x81,0xc420033fe0)
17697 spawntest RET sysarch 0
17697 spawntest CALL sigaltstack(0,0xc420033f68)
17697 spawntest RET sigaltstack 0
17697 spawntest CALL sigaltstack(0xc420033f30,0)
17697 spawntest RET sigaltstack 0
17697 spawntest CALL sigprocmask(SIG_SETMASK,0xc420033f78,0)
17697 spawntest RET sigprocmask 0
17697 spawntest CALL clock_gettime(0x4,0xc420033f10)
17697 spawntest RET clock_gettime 0
17697 spawntest CALL nanosleep(0xc420033f18,0)
17697 spawntest RET fork 0
17697 spawntest CALL sysarch(0x81,0xc42002ffe0)
17697 spawntest RET sysarch 0
17697 spawntest CALL sigaltstack(0,0xc42002ff68)
17697 spawntest RET sigaltstack 0
17697 spawntest CALL sigaltstack(0xc42002ff30,0)
17697 spawntest RET sigaltstack 0
17697 spawntest CALL sigprocmask(SIG_SETMASK,0xc42002ff78,0)
17697 spawntest RET sigprocmask 0
17697 spawntest CALL _umtx_op(0x574538,UMTX_OP_WAKE_PRIVATE,0x1,0,0)
17697 spawntest RET _umtx_op 0
17697 spawntest RET _umtx_op 0
17697 spawntest CALL __sysctl(0xc420035da0,0x2,0xc4200140e0,0xc420035d98,0xc42000e260,0xe)
17697 spawntest SCTL "sysctl.name2oid"
17697 spawntest RET __sysctl 0
17697 spawntest CALL __sysctl(0xc4200140e0,0x2,0xc420035e0c,0xc420035e10,0,0)
17697 spawntest SCTL "kern.osreldate"
17697 spawntest RET __sysctl 0
17697 spawntest CALL __sysctl(0xc420035d80,0x2,0xc420014150,0xc420035d78,0xc42000e270,0xc)
17697 spawntest SCTL "sysctl.name2oid"
17697 spawntest RET __sysctl 0 17697 spawntest CALL __sysctl(0xc420014150,0x2,0,0xc420035de8,0,0)
17697 spawntest SCTL "kern.conftxt"
17697 spawntest RET __sysctl 0
17697 spawntest CALL __sysctl(0xc420014150,0x2,0xc42005c000,0xc420035de8,0,0)
17697 spawntest SCTL "kern.conftxt"
17697 spawntest RET __sysctl 0
17697 spawntest CALL mmap(0,0x40000,0x3<PROT_READ|PROT_WRITE>,0x1002<MAP_PRIVATE|MAP_ANON>,0xffffffff,0)
17697 spawntest RET mmap 34365763584/0x8005bf000
17697 spawntest CALL __sysctl(0xc420035e08,0x2,0xc4200141c0,0xc420035e00,0xc42000e330,0xe)
17697 spawntest SCTL "sysctl.name2oid"
17697 spawntest RET __sysctl 0
17697 spawntest CALL __sysctl(0xc4200141c0,0x2,0xc420035e74,0xc420035e78,0,0)
17697 spawntest SCTL "kern.osreldate"
17697 spawntest RET __sysctl 0
17697 spawntest CALL stat(0xc42000a260,0xc420068038)
17697 spawntest NAMI "/home/vagrant/go/bin/true"
17697 spawntest RET stat -1 errno 2 No such file or directory
17697 spawntest CALL stat(0xc42000e3d0,0xc4200680e8)
17697 spawntest NAMI "/sbin/true"
17697 spawntest RET stat -1 errno 2 No such file or directory
17697 spawntest CALL stat(0xc42000e3f0,0xc420068198)
17697 spawntest NAMI "/bin/true"
17697 spawntest RET stat -1 errno 2 No such file or directory
17697 spawntest CALL stat(0xc42000e410,0xc420068248)
17697 spawntest NAMI "/usr/sbin/true"
17697 spawntest RET stat -1 errno 2 No such file or directory
17697 spawntest RET nanosleep 0
17697 spawntest CALL clock_gettime(0x4,0xc420033f10)
17697 spawntest RET clock_gettime 0
17697 spawntest CALL clock_gettime(0,0xc420033ef0)
17697 spawntest RET clock_gettime 0
17697 spawntest CALL nanosleep(0xc420033f18,0)
17697 spawntest CALL _umtx_op(0xc420024518,UMTX_OP_WAIT_UINT_PRIVATE,0,0x18,0)
17697 spawntest CALL stat(0xc42000e430,0xc4200682f8)
17697 spawntest NAMI "/usr/bin/true"
17697 spawntest STRU struct stat {dev=77, ino=655670, mode=0100555, nlink=1, uid=0, gid=0, rdev=1378208, atime=1489014809.668090000, mtime=1475115531, ctime=1475115633.762225000, birthtime=1475115531, size=4984, blksize=32768, blocks=16, flags=0x0 }
17697 spawntest RET stat 0
17697 spawntest CALL open(0xc42000e440,0x100000<O_CLOEXEC>,<unused>0)
17697 spawntest NAMI "/dev/null"
17697 spawntest RET open 3
17697 spawntest CALL open(0xc42000e460,0x100001<O_WRONLY|O_CLOEXEC>,<unused>0)
17697 spawntest NAMI "/dev/null"
17697 spawntest RET open 4
17697 spawntest CALL open(0xc42000e480,0x100001<O_WRONLY|O_CLOEXEC>,<unused>0)
17697 spawntest NAMI "/dev/null"
17697 spawntest RET open 5
17697 spawntest CALL compat10.pipe
17697 spawntest RET compat10.pipe 6
17697 spawntest CALL fcntl(0x6,F_SETFD,FD_CLOEXEC)
17697 spawntest RET fcntl 0
17697 spawntest CALL fcntl(0x7,F_SETFD,FD_CLOEXEC)
17697 spawntest RET fcntl 0
17697 spawntest CALL fork
17697 spawntest RET fork 36614/0x8f06
17697 spawntest CALL close(0x7)
17697 spawntest RET close 0
17697 spawntest CALL read(0x6,0xc420035ae8,0x8)
36614 spawntest RET fork 0
36614 spawntest CALL dup2(0x3,0)
36614 spawntest RET dup2 0
36614 spawntest CALL dup2(0x4,0x1)
36614 spawntest RET dup2 1
36614 spawntest CALL dup2(0x5,0x2)
36614 spawntest RET dup2 2
36614 spawntest CALL execve(0xc42000e4b0,0xc42000e4c0,0xc42006a000)
36614 spawntest NAMI "/usr/bin/true"
36614 spawntest NAMI "/libexec/ld-elf.so.1"
36614 true RET execve 0
17697 spawntest GIO fd 6 read 0 bytes
""
17697 spawntest RET read 0
17697 spawntest CALL close(0x6)
17697 spawntest RET close 0
17697 spawntest CALL close(0x3)
17697 spawntest RET close 0
17697 spawntest CALL close(0x4)
17697 spawntest RET close 0
17697 spawntest CALL close(0x5)
17697 spawntest RET close 0
17697 spawntest CALL wait6(P_PID,0x8f06,0,0x18<WNOWAIT|WEXITED>,0,0)
36614 true ...
36614 true CALL exit(0)
17697 spawntest RET wait6 RESTART
17697 spawntest PSIG SIGCHLD caught handler=0x450b50 mask=0x0 code=CLD_EXITED
17697 spawntest CALL sigreturn(0xc420073b00)
17697 spawntest RET sigreturn JUSTRETURN
17697 spawntest CALL wait6(P_PID,0x8f06,0,0x18<WNOWAIT|WEXITED>,0,0)
17697 spawntest RET wait6 36614/0x8f06
17697 spawntest CALL wait4(0x8f06,0xc420035d1c,0,0xc42006c000)
17697 spawntest RET wait4 36614/0x8f06
17697 spawntest CALL open(0xc42000a520,0x100000<O_CLOEXEC>,<unused>0)
17697 spawntest NAMI "/var/run/dmesg.boot"
17697 spawntest RET open 3
17697 spawntest CALL read(0x3,0xc42006e000,0x1000)
17697 spawntest GIO fd 3 read 4096 bytes
17697 spawntest RET read 4096/0x1000
17697 spawntest CALL mmap(0xc420100000,0x100000,0x3<PROT_READ|PROT_WRITE>,0x1002<MAP_PRIVATE|MAP_ANON>,0xffffffff,0)
17697 spawntest RET mmap 842351509504/0xc420100000
17697 spawntest CALL mmap(0xc41fff0000,0x8000,0x3<PROT_READ|PROT_WRITE>,0x1002<MAP_PRIVATE|MAP_ANON>,0xffffffff,0)
17697 spawntest RET mmap 842350395392/0xc41fff0000
17697 spawntest CALL clock_gettime(0x4,0x7fffffffe750)
17697 spawntest RET clock_gettime 0
17697 spawntest PSIG SIGSEGV caught handler=0x450b50 mask=0x0 code=SEGV_MAPERR
17697 spawntest CALL sigreturn(0xc420073b00)
17697 spawntest RET sigreturn JUSTRETURN
17697 spawntest CALL write(0x2,0x4f9450,0x19)
17697 spawntest GIO fd 2 wrote 25 bytes
"unexpected fault address "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.