shenwei356 / rush

A cross-platform command-line tool for executing jobs in parallel
https://github.com/shenwei356/rush
MIT License
866 stars 63 forks source link

Rush failed to create subprocess when running sambamba in parallel #2

Closed bioinformatist closed 7 years ago

bioinformatist commented 7 years ago

Prerequisites

I'm sure that I'm using the latest version. But I'm not sure if it occurs by my mistake, for I'm a newbie to this software. If so, forgive me please.

Describe your issue

I have a list file fq_ref containing a part of filename as:

SRR638714   J02428
SRR638714   FJ150422
...

And I've worked with rush and this list well when running commands like bowtie-build and bowtie. But this time when I tried run sambamba in parallel (or add -j 1 to perform just one command at the time), something went wrong.

The command I used is:

cat fq_ref | rush 'sambamba view -S -F "not unmapped" {1}_{2}.all > {1}_{2}.sam'

And it will produce commands like below with --dry-run parameter:

sambamba view -S -F "not unmapped" SRR638719_J02428.all > SRR638719_J02428.sam
sambamba view -S -F "not unmapped" SRR638716_J02428.all > SRR638716_J02428.sam
sambamba view -S -F "not unmapped" SRR638714_FJ150422.all > SRR638714_FJ150422.sam
sambamba view -S -F "not unmapped" SRR638717_J02428.all > SRR638717_J02428.sam
sambamba view -S -F "not unmapped" SRR638717_FJ150422.all > SRR638717_FJ150422.sam

These commands all perform well as I redirected them as a bash shell script then called bash to execute them one-by-one.

It seems sambamba works in some special mode (maybe multi-threads), which may cause trouble when rush try build subprocess by fork in shell.

I also caught some exception information mixed from both bash and goroutine. For some unknown reasons (["教育网抽风", "辣鸡南开大学"] in Chinese, you know), I cannot upload any files in any format to GitHub again, so I just paste them all here as a comment, for the other details, you can discuss with me on QQ :laughing:

bioinformatist commented 7 years ago
core.thread.ThreadError@/tmp/ldc/runtime/druntime/src/core/thread.d(3057): Error creating thread
----------------Error creating thread

/bin/bash: fork: retry: 没有子进程
runtime/cgo: pthread_create failed: Resource temporarily unavailable
runtime/cgo: pthread_create failed: Resource temporarily unavailable
SIGABRT: abort
PC=0x352ce35877 m=11 sigcode=18446744073709551610

goroutine 0 [idle]:

goroutine 22 [syscall]:
runtime.notetsleepg(0x93fec8, 0xffffffffffffffff, 0xc42001a600)
    /usr/local/go/src/runtime/lock_futex.go:205 +0x42 fp=0xc420454418 sp=0xc4204543e8
runtime.gcBgMarkStartWorkers()
    /usr/local/go/src/runtime/mgc.go:1413 +0xb1 fp=0xc420454450 sp=0xc420454418
runtime.gcStart(0x0, 0x0)
    /usr/local/go/src/runtime/mgc.go:997 +0x339 fp=0xc420454488 sp=0xc420454450
runtime.mallocgc(0x600, 0x71b9c0, 0x1, 0xc42046e0f0)
    /usr/local/go/src/runtime/malloc.go:773 +0x491 fp=0xc420454528 sp=0xc420454488
runtime.makeslice(0x71b9c0, 0x583, 0x583, 0xc42046e0f0, 0xd, 0xd)
    /usr/local/go/src/runtime/slice.go:54 +0x7b fp=0xc420454578 sp=0xc420454528
syscall.ByteSliceFromString(0xc420012000, 0x582, 0xc42046e0f0, 0xd, 0xd, 0x0, 0x0)
    /usr/local/go/src/syscall/syscall.go:55 +0x64 fp=0xc4204545d8 sp=0xc420454578
syscall.BytePtrFromString(0xc420012000, 0x582, 0xc42046e0f0, 0x0, 0x0)
    /usr/local/go/src/syscall/syscall.go:71 +0x39 fp=0xc420454620 sp=0xc4204545d8
syscall.SlicePtrFromStrings(0xc42043c340, 0x19, 0x19, 0xc4204640e0, 0x4, 0x4, 0x0, 0x0)
    /usr/local/go/src/syscall/exec_unix.go:87 +0x97 fp=0xc420454690 sp=0xc420454620
syscall.forkExec(0xc420010016, 0x9, 0xc420484000, 0x3, 0x3, 0xc4204548a0, 0x0, 0x0, 0x0)
    /usr/local/go/src/syscall/exec_unix.go:158 +0x16e fp=0xc4204547b8 sp=0xc420454690
syscall.StartProcess(0xc420010016, 0x9, 0xc420484000, 0x3, 0x3, 0xc4204548a0, 0x2, 0x4, 0xc420496000, 0xc420454870)
    /usr/local/go/src/syscall/exec_unix.go:240 +0x64 fp=0xc420454810 sp=0xc4204547b8
os.startProcess(0xc420010016, 0x9, 0xc420484000, 0x3, 0x3, 0xc420454a48, 0xc42043c340, 0x19, 0x19)
    /usr/local/go/src/os/exec_posix.go:45 +0x1a3 fp=0xc4204548f8 sp=0xc420454810
os.StartProcess(0xc420010016, 0x9, 0xc420484000, 0x3, 0x3, 0xc420454a48, 0x0, 0x0, 0xc420454a18)
    /usr/local/go/src/os/exec.go:94 +0x64 fp=0xc420454950 sp=0xc4204548f8
os/exec.(*Cmd).Start(0xc42048a000, 0x910e60, 0xc420494000)
    /usr/local/go/src/os/exec/exec.go:359 +0x3d2 fp=0xc420454aa0 sp=0xc420454950
github.com/shenwei356/rush/process.(*Command).run(0xc420468000, 0x0, 0x0)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:292 +0x32e fp=0xc420454e70 sp=0xc420454aa0
github.com/shenwei356/rush/process.(*Command).Run(0xc420468000, 0xc4201443c0, 0x52)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:117 +0x74 fp=0xc420454ed0 sp=0xc420454e70
github.com/shenwei356/rush/process.Run.func1.1(0xc42012a000, 0xc42012c000, 0xc420084a80, 0xc420042740, 0xc420084ba0, 0x0, 0xc420084c00, 0xc42012a010, 0xa, 0xc4201443c0, ...)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:611 +0xe4 fp=0xc420454f88 sp=0xc420454ed0
runtime.goexit()
    /usr/local/go/src/runtime/asm_amd64.s:2197 +0x1 fp=0xc420454f90 sp=0xc420454f88
created by github.com/shenwei356/rush/process.Run.func1
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:655 +0x261

goroutine 1 [chan receive]:
main.glob..func1(0x93c640, 0xc420011830, 0x1, 0x1)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/root.go:316 +0x87d
github.com/spf13/cobra.(*Command).execute(0x93c640, 0xc42000c2f0, 0x1, 0x1, 0x93c640, 0xc42000c2f0)
    /home/shenwei/shenwei/script/Go/project/src/github.com/spf13/cobra/command.go:648 +0x234
github.com/spf13/cobra.(*Command).ExecuteC(0x93c640, 0xc42006bf78, 0x4061bc, 0xc420084058)
    /home/shenwei/shenwei/script/Go/project/src/github.com/spf13/cobra/command.go:734 +0x339
github.com/spf13/cobra.(*Command).Execute(0x93c640, 0x0, 0x0)
    /home/shenwei/shenwei/script/Go/project/src/github.com/spf13/cobra/command.go:693 +0x2b
main.Execute()
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/root.go:337 +0x31
main.main()
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/main.go:29 +0x20

goroutine 17 [syscall, locked to thread]:
runtime.goexit()
    /usr/local/go/src/runtime/asm_amd64.s:2197 +0x1

goroutine 5 [syscall]:
os/signal.signal_recv(0x0)
    /usr/local/go/src/runtime/sigqueue.go:116 +0x104
os/signal.loop()
    /usr/local/go/src/os/signal/signal_unix.go:22 +0x22
created by os/signal.init.1
    /usr/local/go/src/os/signal/signal_unix.go:28 +0x41

goroutine 6 [semacquire]:
main.fillCommand(0x0, 0x20, 0x793e43, 0x1, 0xc420011920, 0x1, 0x1, 0x793e60, 0x1, 0x793e60, ...)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/string_repl.go:67 +0x25e
main.glob..func1.2(0xc420093520, 0xc420011850, 0xc4200f3020, 0xc420084a80, 0x7fff8c466729, 0x3c, 0xc420017a10, 0x0, 0xc420084b40, 0xc420084ae0)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/root.go:213 +0x3c7
created by main.glob..func1
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/root.go:258 +0x647

goroutine 7 [chan send]:
github.com/shenwei356/rush/process.Run.func1(0xc420042740, 0xc420084b40, 0xc420084a80, 0xc420084ba0, 0x0, 0xc420084c00)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:595 +0x1c0
created by github.com/shenwei356/rush/process.Run
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:667 +0xe2

goroutine 8 [chan receive]:
github.com/shenwei356/rush/process.Run4Output.func1(0xc420042740, 0xc420084ba0, 0xc420084a80, 0xc420084c60, 0xc420084c00, 0xc420084cc0)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:447 +0x8a5
created by github.com/shenwei356/rush/process.Run4Output
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:555 +0x113

goroutine 9 [chan receive]:
main.glob..func1.3(0xc420084c60, 0xc420042700, 0xc420084d20)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/root.go:269 +0xc6
created by main.glob..func1
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/root.go:279 +0x6f6

goroutine 10 [select, locked to thread]:
runtime.gopark(0x7aa1d8, 0x0, 0x794bf0, 0x6, 0x18, 0x2)
    /usr/local/go/src/runtime/proc.go:271 +0x13a
runtime.selectgoImpl(0xc42005cf50, 0x0, 0x18)
    /usr/local/go/src/runtime/select.go:423 +0x1364
runtime.selectgo(0xc42005cf50)
    /usr/local/go/src/runtime/select.go:238 +0x1c
runtime.ensureSigM.func1()
    /usr/local/go/src/runtime/signal_unix.go:434 +0x2dd
runtime.goexit()
    /usr/local/go/src/runtime/asm_amd64.s:2197 +0x1

goroutine 11 [select]:
main.glob..func1.5(0xc420084e40, 0xc420084a80, 0xc420084ea0, 0xc420084de0)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/root.go:299 +0x1d7
created by main.glob..func1
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/root.go:313 +0x857

goroutine 12 [semacquire]:
syscall.ByteSliceFromString(0xc420012000, 0x582, 0xc42044c0f0, 0xd, 0xd, 0x0, 0x0)
    /usr/local/go/src/syscall/syscall.go:55 +0x64
syscall.BytePtrFromString(0xc420012000, 0x582, 0xc42044c0f0, 0x0, 0x0)
    /usr/local/go/src/syscall/syscall.go:71 +0x39
syscall.SlicePtrFromStrings(0xc420414340, 0x19, 0x19, 0xc4204360e0, 0x4, 0x4, 0x0, 0x0)
    /usr/local/go/src/syscall/exec_unix.go:87 +0x97
syscall.forkExec(0xc420010016, 0x9, 0xc42047e000, 0x3, 0x3, 0xc4200678a0, 0x0, 0x0, 0x0)
    /usr/local/go/src/syscall/exec_unix.go:158 +0x16e
syscall.StartProcess(0xc420010016, 0x9, 0xc42047e000, 0x3, 0x3, 0xc4204588a0, 0x2, 0x4, 0xc42047c0a0, 0xc420458870)
    /usr/local/go/src/syscall/exec_unix.go:240 +0x64
os.startProcess(0xc420010016, 0x9, 0xc42047e000, 0x3, 0x3, 0xc420458a48, 0xc420414340, 0x19, 0x19)
    /usr/local/go/src/os/exec_posix.go:45 +0x1a3
os.StartProcess(0xc420010016, 0x9, 0xc42047e000, 0x3, 0x3, 0xc420458a48, 0x0, 0x0, 0xc420458a18)
    /usr/local/go/src/os/exec.go:94 +0x64
os/exec.(*Cmd).Start(0xc420480000, 0x910e60, 0xc420486000)
    /usr/local/go/src/os/exec/exec.go:359 +0x3d2
github.com/shenwei356/rush/process.(*Command).run(0xc42043a000, 0x0, 0x0)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:292 +0x32e
github.com/shenwei356/rush/process.(*Command).Run(0xc42043a000, 0xc42012e050, 0x4e)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:117 +0x74
github.com/shenwei356/rush/process.Run.func1.1(0xc42012a000, 0xc42012c000, 0xc420084a80, 0xc420042740, 0xc420084ba0, 0x0, 0xc420084c00, 0xc42012a010, 0x1, 0xc42012e050, ...)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:611 +0xe4
created by github.com/shenwei356/rush/process.Run.func1
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:655 +0x261

goroutine 13 [semacquire]:
github.com/shenwei356/rush/process.(*Command).run(0xc4202e6000, 0x0, 0x0)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:297 +0x1714
github.com/shenwei356/rush/process.(*Command).Run(0xc4202e6000, 0xc420144240, 0x52)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:117 +0x74
github.com/shenwei356/rush/process.Run.func1.1(0xc42012a000, 0xc42012c000, 0xc420084a80, 0xc420042740, 0xc420084ba0, 0x0, 0xc420084c00, 0xc42012a010, 0x2, 0xc420144240, ...)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:611 +0xe4
created by github.com/shenwei356/rush/process.Run.func1
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:655 +0x261

goroutine 14 [semacquire]:
strings.makeCutsetFunc(0x793e38, 0x1, 0x10)
    /usr/local/go/src/strings/strings.go:621 +0x1bd
strings.TrimLeft(0xc42012e0a0, 0x4e, 0x793e38, 0x1, 0x10, 0x6d3021)
    /usr/local/go/src/strings/strings.go:648 +0x63
github.com/shenwei356/rush/process.NewCommand(0x3, 0xc42012e0a0, 0x4e, 0xc420084a80, 0x0, 0x0)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:83 +0x4e
github.com/shenwei356/rush/process.Run.func1.1(0xc42012a000, 0xc42012c000, 0xc420084a80, 0xc420042740, 0xc420084ba0, 0x0, 0xc420084c00, 0xc42012a010, 0x3, 0xc42012e0a0, ...)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:603 +0xb2
created by github.com/shenwei356/rush/process.Run.func1
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:655 +0x261

goroutine 15 [semacquire]:
fmt.(*fmt).padString(0xc42047a040, 0xc4201442a0, 0x52)
    /usr/local/go/src/fmt/format.go:110 +0x112
fmt.(*fmt).fmt_s(0xc42047a040, 0xc4201442a0, 0x52)
    /usr/local/go/src/fmt/format.go:328 +0x61
fmt.(*pp).fmtString(0xc42047a000, 0xc4201442a0, 0x52, 0xc400000073)
    /usr/local/go/src/fmt/print.go:433 +0x198
fmt.(*pp).printArg(0xc42047a000, 0x71b700, 0xc42044c110, 0x73)
    /usr/local/go/src/fmt/print.go:664 +0x7fc
fmt.(*pp).doPrintf(0xc42047a000, 0x793e91, 0x2, 0xc420458c60, 0x1, 0x1)
    /usr/local/go/src/fmt/print.go:998 +0x11e7
fmt.Sprintf(0x793e91, 0x2, 0xc420458c60, 0x1, 0x1, 0xc403de5402, 0x93f780)
    /usr/local/go/src/fmt/print.go:196 +0x6a
github.com/shenwei356/rush/process.(*Command).run(0xc42043a090, 0x0, 0x0)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:264 +0x179
github.com/shenwei356/rush/process.(*Command).Run(0xc42043a090, 0xc4201442a0, 0x52)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:117 +0x74
github.com/shenwei356/rush/process.Run.func1.1(0xc42012a000, 0xc42012c000, 0xc420084a80, 0xc420042740, 0xc420084ba0, 0x0, 0xc420084c00, 0xc42012a010, 0x4, 0xc4201442a0, ...)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:611 +0xe4
created by github.com/shenwei356/rush/process.Run.func1
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:655 +0x261

goroutine 16 [syscall]:
syscall.Syscall(0x0, 0x8, 0xc42030a000, 0x100000, 0x0, 0x0, 0x0)
    /usr/local/go/src/syscall/asm_linux_amd64.s:18 +0x5
syscall.read(0x8, 0xc42030a000, 0x100000, 0x100000, 0x0, 0x0, 0x0)
    /usr/local/go/src/syscall/zsyscall_linux_amd64.go:783 +0x55
syscall.Read(0x8, 0xc42030a000, 0x100000, 0x100000, 0x20, 0x73dbc0, 0x60)
    /usr/local/go/src/syscall/syscall_unix.go:162 +0x49
os.(*File).read(0xc4201ba000, 0xc42030a000, 0x100000, 0x100000, 0xc420180a60, 0x4102e2, 0xc42019c320)
    /usr/local/go/src/os/file_unix.go:165 +0x4f
os.(*File).Read(0xc4201ba000, 0xc42030a000, 0x100000, 0x100000, 0xc420180901, 0x7f579ecb64b0, 0x0)
    /usr/local/go/src/os/file.go:101 +0x76
bufio.(*Reader).fill(0xc4201ac180)
    /usr/local/go/src/bufio/bufio.go:97 +0x117
bufio.(*Reader).Peek(0xc4201ac180, 0x100000, 0xc4201a8000, 0xc4201ac1e0, 0xc4201b4000, 0xc4201ac060, 0x4e)
    /usr/local/go/src/bufio/bufio.go:129 +0x67
github.com/shenwei356/rush/process.(*Command).run(0xc4201a8000, 0x0, 0x0)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:345 +0x15cb
github.com/shenwei356/rush/process.(*Command).Run(0xc4201a8000, 0xc42012e0f0, 0x4e)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:117 +0x74
github.com/shenwei356/rush/process.Run.func1.1(0xc42012a000, 0xc42012c000, 0xc420084a80, 0xc420042740, 0xc420084ba0, 0x0, 0xc420084c00, 0xc42012a010, 0x5, 0xc42012e0f0, ...)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:611 +0xe4
created by github.com/shenwei356/rush/process.Run.func1
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:655 +0x261

goroutine 18 [semacquire]:
strings.makeCutsetFunc(0x793e38, 0x1, 0x10)
    /usr/local/go/src/strings/strings.go:621 +0x1bd
strings.TrimLeft(0xc420144300, 0x52, 0x793e38, 0x1, 0x10, 0x6d3021)
    /usr/local/go/src/strings/strings.go:648 +0x63
github.com/shenwei356/rush/process.NewCommand(0x6, 0xc420144300, 0x52, 0xc420084a80, 0x0, 0x0)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:83 +0x4e
github.com/shenwei356/rush/process.Run.func1.1(0xc42012a000, 0xc42012c000, 0xc420084a80, 0xc420042740, 0xc420084ba0, 0x0, 0xc420084c00, 0xc42012a010, 0x6, 0xc420144300, ...)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:603 +0xb2
created by github.com/shenwei356/rush/process.Run.func1
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:655 +0x261

goroutine 19 [semacquire]:
github.com/shenwei356/rush/process.(*Command).run(0xc42040e090, 0x0, 0x0)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:297 +0x1714
github.com/shenwei356/rush/process.(*Command).Run(0xc42040e090, 0xc42012e140, 0x4e)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:117 +0x74
github.com/shenwei356/rush/process.Run.func1.1(0xc42012a000, 0xc42012c000, 0xc420084a80, 0xc420042740, 0xc420084ba0, 0x0, 0xc420084c00, 0xc42012a010, 0x7, 0xc42012e140, ...)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:611 +0xe4
created by github.com/shenwei356/rush/process.Run.func1
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:655 +0x261

goroutine 20 [semacquire]:
github.com/shenwei356/rush/process.(*Command).run(0xc4201d2000, 0x0, 0x0)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:297 +0x1714
github.com/shenwei356/rush/process.(*Command).Run(0xc4201d2000, 0xc420144360, 0x52)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:117 +0x74
github.com/shenwei356/rush/process.Run.func1.1(0xc42012a000, 0xc42012c000, 0xc420084a80, 0xc420042740, 0xc420084ba0, 0x0, 0xc420084c00, 0xc42012a010, 0x8, 0xc420144360, ...)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:611 +0xe4
created by github.com/shenwei356/rush/process.Run.func1
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:655 +0x261

goroutine 21 [semacquire]:
github.com/shenwei356/rush/process.(*Command).run(0xc42040e000, 0x0, 0x0)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:297 +0x1714
github.com/shenwei356/rush/process.(*Command).Run(0xc42040e000, 0xc42012e190, 0x4e)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:117 +0x74
github.com/shenwei356/rush/process.Run.func1.1(0xc42012a000, 0xc42012c000, 0xc420084a80, 0xc420042740, 0xc420084ba0, 0x0, 0xc420084c00, 0xc42012a010, 0x9, 0xc42012e190, ...)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:611 +0xe4
created by github.com/shenwei356/rush/process.Run.func1
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:655 +0x261

goroutine 23 [syscall]:
syscall.Syscall(0x0, 0x3, 0xc4201da000, 0x100000, 0x0, 0x0, 0x0)
    /usr/local/go/src/syscall/asm_linux_amd64.s:18 +0x5
syscall.read(0x3, 0xc4201da000, 0x100000, 0x100000, 0x0, 0x0, 0x0)
    /usr/local/go/src/syscall/zsyscall_linux_amd64.go:783 +0x55
syscall.Read(0x3, 0xc4201da000, 0x100000, 0x100000, 0x20, 0x73dbc0, 0x60)
    /usr/local/go/src/syscall/syscall_unix.go:162 +0x49
os.(*File).read(0xc42000e0b0, 0xc4201da000, 0x100000, 0x100000, 0xc42005da60, 0x4102e2, 0xc4200f3360)
    /usr/local/go/src/os/file_unix.go:165 +0x4f
os.(*File).Read(0xc42000e0b0, 0xc4201da000, 0x100000, 0x100000, 0xc42005d901, 0x7f579ecb6000, 0x0)
    /usr/local/go/src/os/file.go:101 +0x76
bufio.(*Reader).fill(0xc4200851a0)
    /usr/local/go/src/bufio/bufio.go:97 +0x117
bufio.(*Reader).Peek(0xc4200851a0, 0x100000, 0xc420114120, 0xc420085200, 0xc4200bab00, 0xc420085080, 0x4e)
    /usr/local/go/src/bufio/bufio.go:129 +0x67
github.com/shenwei356/rush/process.(*Command).run(0xc420114120, 0x0, 0x0)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:345 +0x15cb
github.com/shenwei356/rush/process.(*Command).Run(0xc420114120, 0xc42012e1e0, 0x4e)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:117 +0x74
github.com/shenwei356/rush/process.Run.func1.1(0xc42012a000, 0xc42012c000, 0xc420084a80, 0xc420042740, 0xc420084ba0, 0x0, 0xc420084c00, 0xc42012a010, 0xb, 0xc42012e1e0, ...)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:611 +0xe4
created by github.com/shenwei356/rush/process.Run.func1
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:655 +0x261

goroutine 24 [select]:
github.com/shenwei356/rush/process.(*Command).run.func2(0xc420114120, 0xc420085200, 0xc4200bab00, 0xc420085080)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:303 +0x257
created by github.com/shenwei356/rush/process.(*Command).run
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:313 +0x47f

goroutine 34 [select]:
github.com/shenwei356/rush/process.(*Command).run.func2(0xc4201a8000, 0xc4201ac1e0, 0xc4201b4000, 0xc4201ac060)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:303 +0x257
created by github.com/shenwei356/rush/process.(*Command).run
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:313 +0x47f

goroutine 50 [semacquire]:
syscall.SlicePtrFromStrings(0xc42049a680, 0x19, 0x19, 0xc4204523a0, 0x4, 0x4, 0x0, 0x0)
    /usr/local/go/src/syscall/exec_unix.go:85 +0x44
syscall.forkExec(0xc420010016, 0x9, 0xc420158090, 0x3, 0x3, 0xc4206df8a0, 0x0, 0x0, 0x0)
    /usr/local/go/src/syscall/exec_unix.go:158 +0x16e
syscall.StartProcess(0xc420010016, 0x9, 0xc420158090, 0x3, 0x3, 0xc4200588a0, 0x2, 0x4, 0xc42012e500, 0xc420058870)
    /usr/local/go/src/syscall/exec_unix.go:240 +0x64
os.startProcess(0xc420010016, 0x9, 0xc420158090, 0x3, 0x3, 0xc420058a48, 0xc42049a680, 0x19, 0x19)
    /usr/local/go/src/os/exec_posix.go:45 +0x1a3
os.StartProcess(0xc420010016, 0x9, 0xc420158090, 0x3, 0x3, 0xc420058a48, 0x0, 0x0, 0xc420058a18)
    /usr/local/go/src/os/exec.go:94 +0x64
os/exec.(*Cmd).Start(0xc42012c160, 0x910e60, 0xc420154020)
    /usr/local/go/src/os/exec/exec.go:359 +0x3d2
github.com/shenwei356/rush/process.(*Command).run(0xc4201799e0, 0x0, 0x0)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:292 +0x32e
github.com/shenwei356/rush/process.(*Command).Run(0xc4201799e0, 0xc420144420, 0x52)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:117 +0x74
github.com/shenwei356/rush/process.Run.func1.1(0xc42012a000, 0xc42012c000, 0xc420084a80, 0xc420042740, 0xc420084ba0, 0x0, 0xc420084c00, 0xc42012a010, 0xc, 0xc420144420, ...)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:611 +0xe4
created by github.com/shenwei356/rush/process.Run.func1
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:655 +0x261

goroutine 51 [semacquire]:
sync.runtime_SemacquireMutex(0x95c1e4)
    /usr/local/go/src/runtime/sema.go:62 +0x34
sync.(*Mutex).Lock(0x95c1e0)
    /usr/local/go/src/sync/mutex.go:87 +0x9d
sync.(*RWMutex).Lock(0x95c1e0)
    /usr/local/go/src/sync/rwmutex.go:86 +0x2d
syscall.forkExec(0xc420010016, 0x9, 0xc420428180, 0x3, 0x3, 0xc4202ff8a0, 0x0, 0x0, 0x0)
    /usr/local/go/src/syscall/exec_unix.go:185 +0x1fd
syscall.StartProcess(0xc420010016, 0x9, 0xc420428180, 0x3, 0x3, 0xc4202ff8a0, 0x2, 0x4, 0xc4204263c0, 0xc4202ff870)
    /usr/local/go/src/syscall/exec_unix.go:240 +0x64
os.startProcess(0xc420010016, 0x9, 0xc420428180, 0x3, 0x3, 0xc4202ffa48, 0xc4202e4680, 0x19, 0x19)
    /usr/local/go/src/os/exec_posix.go:45 +0x1a3
os.StartProcess(0xc420010016, 0x9, 0xc420428180, 0x3, 0x3, 0xc4202ffa48, 0x0, 0x0, 0xc4202ffa18)
    /usr/local/go/src/os/exec.go:94 +0x64
os/exec.(*Cmd).Start(0xc42042c2c0, 0x910e60, 0xc420434040)
    /usr/local/go/src/os/exec/exec.go:359 +0x3d2
github.com/shenwei356/rush/process.(*Command).run(0xc42040e1b0, 0x0, 0x0)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:292 +0x32e
github.com/shenwei356/rush/process.(*Command).Run(0xc42040e1b0, 0xc42012e230, 0x4e)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:117 +0x74
github.com/shenwei356/rush/process.Run.func1.1(0xc42012a000, 0xc42012c000, 0xc420084a80, 0xc420042740, 0xc420084ba0, 0x0, 0xc420084c00, 0xc42012a010, 0xd, 0xc42012e230, ...)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:611 +0xe4
created by github.com/shenwei356/rush/process.Run.func1
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:655 +0x261

goroutine 52 [semacquire]:
sync.runtime_SemacquireMutex(0x95c1e4)
    /usr/local/go/src/runtime/sema.go:62 +0x34
sync.(*Mutex).Lock(0x95c1e0)
    /usr/local/go/src/sync/mutex.go:87 +0x9d
sync.(*RWMutex).Lock(0x95c1e0)
    /usr/local/go/src/sync/rwmutex.go:86 +0x2d
syscall.forkExec(0xc420010016, 0x9, 0xc4202da0f0, 0x3, 0x3, 0xc4201868a0, 0x0, 0x0, 0x0)
    /usr/local/go/src/syscall/exec_unix.go:185 +0x1fd
syscall.StartProcess(0xc420010016, 0x9, 0xc4202da0f0, 0x3, 0x3, 0xc4201868a0, 0x2, 0x4, 0xc4201880f0, 0xc420186870)
    /usr/local/go/src/syscall/exec_unix.go:240 +0x64
os.startProcess(0xc420010016, 0x9, 0xc4202da0f0, 0x3, 0x3, 0xc420186a48, 0xc42019e4e0, 0x19, 0x19)
    /usr/local/go/src/os/exec_posix.go:45 +0x1a3
os.StartProcess(0xc420010016, 0x9, 0xc4202da0f0, 0x3, 0x3, 0xc420186a48, 0x0, 0x0, 0xc420186a18)
    /usr/local/go/src/os/exec.go:94 +0x64
os/exec.(*Cmd).Start(0xc42017c2c0, 0x910e60, 0xc4202e2020)
    /usr/local/go/src/os/exec/exec.go:359 +0x3d2
github.com/shenwei356/rush/process.(*Command).run(0xc4201d2090, 0x0, 0x0)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:292 +0x32e
github.com/shenwei356/rush/process.(*Command).Run(0xc4201d2090, 0xc420144480, 0x52)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:117 +0x74
github.com/shenwei356/rush/process.Run.func1.1(0xc42012a000, 0xc42012c000, 0xc420084a80, 0xc420042740, 0xc420084ba0, 0x0, 0xc420084c00, 0xc42012a010, 0xe, 0xc420144480, ...)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:611 +0xe4
created by github.com/shenwei356/rush/process.Run.func1
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:655 +0x261

goroutine 53 [semacquire]:
syscall.forkExec(0xc420010016, 0x9, 0xc42047e090, 0x3, 0x3, 0xc4204598a0, 0x0, 0x0, 0x0)
    /usr/local/go/src/syscall/exec_unix.go:195 +0x5f6
syscall.StartProcess(0xc420010016, 0x9, 0xc42047e090, 0x3, 0x3, 0xc4204598a0, 0x2, 0x4, 0xc42047c2d0, 0xc420459870)
    /usr/local/go/src/syscall/exec_unix.go:240 +0x64
os.startProcess(0xc420010016, 0x9, 0xc42047e090, 0x3, 0x3, 0xc420459a48, 0xc420414680, 0x19, 0x19)
    /usr/local/go/src/os/exec_posix.go:45 +0x1a3
os.StartProcess(0xc420010016, 0x9, 0xc42047e090, 0x3, 0x3, 0xc420459a48, 0x0, 0x0, 0xc420459a18)
    /usr/local/go/src/os/exec.go:94 +0x64
os/exec.(*Cmd).Start(0xc4204802c0, 0x910e60, 0xc420486040)
    /usr/local/go/src/os/exec/exec.go:359 +0x3d2
github.com/shenwei356/rush/process.(*Command).run(0xc42043a1b0, 0x0, 0x0)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:292 +0x32e
github.com/shenwei356/rush/process.(*Command).Run(0xc42043a1b0, 0xc42012e280, 0x4e)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:117 +0x74
github.com/shenwei356/rush/process.Run.func1.1(0xc42012a000, 0xc42012c000, 0xc420084a80, 0xc420042740, 0xc420084ba0, 0x0, 0xc420084c00, 0xc42012a010, 0xf, 0xc42012e280, ...)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:611 +0xe4
created by github.com/shenwei356/rush/process.Run.func1
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:655 +0x261

goroutine 54 [semacquire]:
syscall.ByteSliceFromString(0xc420014000, 0xe3, 0xc4204363a0, 0x1d, 0x1d, 0x0, 0x0)
    /usr/local/go/src/syscall/syscall.go:55 +0x64
syscall.BytePtrFromString(0xc420014000, 0xe3, 0xc4204363a0, 0x0, 0x0)
    /usr/local/go/src/syscall/syscall.go:71 +0x39
syscall.SlicePtrFromStrings(0xc4204144e0, 0x19, 0x19, 0xc4204362c0, 0x4, 0x4, 0x0, 0x0)
    /usr/local/go/src/syscall/exec_unix.go:87 +0x97
syscall.forkExec(0xc420010016, 0x9, 0xc42047e060, 0x3, 0x3, 0xc4200698a0, 0x0, 0x0, 0x0)
    /usr/local/go/src/syscall/exec_unix.go:158 +0x16e
syscall.StartProcess(0xc420010016, 0x9, 0xc42047e060, 0x3, 0x3, 0xc4204598a0, 0x2, 0x4, 0xc42047c1e0, 0xc420459870)
    /usr/local/go/src/syscall/exec_unix.go:240 +0x64
os.startProcess(0xc420010016, 0x9, 0xc42047e060, 0x3, 0x3, 0xc420459a48, 0xc4204144e0, 0x19, 0x19)
    /usr/local/go/src/os/exec_posix.go:45 +0x1a3
os.StartProcess(0xc420010016, 0x9, 0xc42047e060, 0x3, 0x3, 0xc420459a48, 0x0, 0x0, 0xc420459a18)
    /usr/local/go/src/os/exec.go:94 +0x64
os/exec.(*Cmd).Start(0xc420480160, 0x910e60, 0xc420486020)
    /usr/local/go/src/os/exec/exec.go:359 +0x3d2
github.com/shenwei356/rush/process.(*Command).run(0xc42043a120, 0x0, 0x0)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:292 +0x32e
github.com/shenwei356/rush/process.(*Command).Run(0xc42043a120, 0xc4201444e0, 0x52)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:117 +0x74
github.com/shenwei356/rush/process.Run.func1.1(0xc42012a000, 0xc42012c000, 0xc420084a80, 0xc420042740, 0xc420084ba0, 0x0, 0xc420084c00, 0xc42012a010, 0x10, 0xc4201444e0, ...)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:611 +0xe4
created by github.com/shenwei356/rush/process.Run.func1
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:655 +0x261

goroutine 55 [semacquire]:
github.com/shenwei356/rush/process.(*Command).Run(0xc4205d6090, 0xc42012e2d0, 0x4e)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:108 +0x3a
github.com/shenwei356/rush/process.Run.func1.1(0xc42012a000, 0xc42012c000, 0xc420084a80, 0xc420042740, 0xc420084ba0, 0x0, 0xc420084c00, 0xc42012a010, 0x11, 0xc42012e2d0, ...)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:611 +0xe4
created by github.com/shenwei356/rush/process.Run.func1
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:655 +0x261

goroutine 56 [semacquire]:
github.com/shenwei356/rush/process.(*Command).Run(0xc4205d6120, 0xc420144540, 0x52)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:108 +0x3a
github.com/shenwei356/rush/process.Run.func1.1(0xc42012a000, 0xc42012c000, 0xc420084a80, 0xc420042740, 0xc420084ba0, 0x0, 0xc420084c00, 0xc42012a010, 0x12, 0xc420144540, ...)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:611 +0xe4
created by github.com/shenwei356/rush/process.Run.func1
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:655 +0x261

goroutine 57 [semacquire]:
fmt.glob..func1(0x936520, 0x0)
    /usr/local/go/src/fmt/print.go:128 +0x2d
sync.(*Pool).Get(0x936520, 0x28, 0xc4205c3a60)
    /usr/local/go/src/sync/pool.go:144 +0xad
fmt.newPrinter(0x10)
    /usr/local/go/src/fmt/print.go:133 +0x31
fmt.Sprintf(0x793e91, 0x2, 0xc4205c3c60, 0x1, 0x1, 0x520e49e, 0x93f780)
    /usr/local/go/src/fmt/print.go:195 +0x26
github.com/shenwei356/rush/process.(*Command).run(0xc4205d61b0, 0x0, 0x0)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:264 +0x179
github.com/shenwei356/rush/process.(*Command).Run(0xc4205d61b0, 0xc42012e320, 0x4e)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:117 +0x74
github.com/shenwei356/rush/process.Run.func1.1(0xc42012a000, 0xc42012c000, 0xc420084a80, 0xc420042740, 0xc420084ba0, 0x0, 0xc420084c00, 0xc42012a010, 0x13, 0xc42012e320, ...)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:611 +0xe4
created by github.com/shenwei356/rush/process.Run.func1
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:655 +0x261

goroutine 58 [semacquire]:
os/exec.Command(0xc420010016, 0x9, 0xc4205bcd30, 0x2, 0x2, 0xc4205d8360)
    /usr/local/go/src/os/exec/exec.go:133 +0x2ef
github.com/shenwei356/rush/process.(*Command).run(0xc4205d6240, 0x0, 0x0)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:280 +0x1b77
github.com/shenwei356/rush/process.(*Command).Run(0xc4205d6240, 0xc4201445a0, 0x52)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:117 +0x74
github.com/shenwei356/rush/process.Run.func1.1(0xc42012a000, 0xc42012c000, 0xc420084a80, 0xc420042740, 0xc420084ba0, 0x0, 0xc420084c00, 0xc42012a010, 0x14, 0xc4201445a0, ...)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:611 +0xe4
created by github.com/shenwei356/rush/process.Run.func1
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:655 +0x261

goroutine 59 [semacquire]:
github.com/shenwei356/rush/process.NewCommand(0x15, 0xc42012e370, 0x4e, 0xc420084a80, 0x0, 0x0)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:85 +0x72
github.com/shenwei356/rush/process.Run.func1.1(0xc42012a000, 0xc42012c000, 0xc420084a80, 0xc420042740, 0xc420084ba0, 0x0, 0xc420084c00, 0xc42012a010, 0x15, 0xc42012e370, ...)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:603 +0xb2
created by github.com/shenwei356/rush/process.Run.func1
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:655 +0x261

goroutine 60 [runnable]:
github.com/shenwei356/rush/process.Run.func1.1(0xc42012a000, 0xc42012c000, 0xc420084a80, 0xc420042740, 0xc420084ba0, 0x0, 0xc420084c00, 0xc42012a010, 0x16, 0xc420144600, ...)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:597
created by github.com/shenwei356/rush/process.Run.func1
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:655 +0x261

goroutine 61 [semacquire]:
os/exec.Command(0xc420010016, 0x9, 0xc4205bdd30, 0x2, 0x2, 0xc4205c61e0)
    /usr/local/go/src/os/exec/exec.go:133 +0x103
github.com/shenwei356/rush/process.(*Command).run(0xc4205d62d0, 0x0, 0x0)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:280 +0x1b77
github.com/shenwei356/rush/process.(*Command).Run(0xc4205d62d0, 0xc42012e3c0, 0x4e)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:117 +0x74
github.com/shenwei356/rush/process.Run.func1.1(0xc42012a000, 0xc42012c000, 0xc420084a80, 0xc420042740, 0xc420084ba0, 0x0, 0xc420084c00, 0xc42012a010, 0x17, 0xc42012e3c0, ...)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:611 +0xe4
created by github.com/shenwei356/rush/process.Run.func1
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:655 +0x261

goroutine 62 [semacquire]:
sync.runtime_SemacquireMutex(0x95c1e4)
    /usr/local/go/src/runtime/sema.go:62 +0x34
sync.(*Mutex).Lock(0x95c1e0)
    /usr/local/go/src/sync/mutex.go:87 +0x9d
sync.(*RWMutex).Lock(0x95c1e0)
    /usr/local/go/src/sync/rwmutex.go:86 +0x2d
syscall.forkExec(0xc420010016, 0x9, 0xc420484090, 0x3, 0x3, 0xc4204558a0, 0x0, 0x0, 0x0)
    /usr/local/go/src/syscall/exec_unix.go:185 +0x1fd
syscall.StartProcess(0xc420010016, 0x9, 0xc420484090, 0x3, 0x3, 0xc4204558a0, 0x2, 0x4, 0xc4204960f0, 0xc420455870)
    /usr/local/go/src/syscall/exec_unix.go:240 +0x64
os.startProcess(0xc420010016, 0x9, 0xc420484090, 0x3, 0x3, 0xc420455a48, 0xc42043cb60, 0x19, 0x19)
    /usr/local/go/src/os/exec_posix.go:45 +0x1a3
os.StartProcess(0xc420010016, 0x9, 0xc420484090, 0x3, 0x3, 0xc420455a48, 0x0, 0x0, 0xc420455a18)
    /usr/local/go/src/os/exec.go:94 +0x64
os/exec.(*Cmd).Start(0xc42048a2c0, 0x910e60, 0xc420494040)
    /usr/local/go/src/os/exec/exec.go:359 +0x3d2
github.com/shenwei356/rush/process.(*Command).run(0xc420468120, 0x0, 0x0)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:292 +0x32e
github.com/shenwei356/rush/process.(*Command).Run(0xc420468120, 0xc420144660, 0x52)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:117 +0x74
github.com/shenwei356/rush/process.Run.func1.1(0xc42012a000, 0xc42012c000, 0xc420084a80, 0xc420042740, 0xc420084ba0, 0x0, 0xc420084c00, 0xc42012a010, 0x18, 0xc420144660, ...)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:611 +0xe4
created by github.com/shenwei356/rush/process.Run.func1
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:655 +0x261

goroutine 63 [semacquire]:
github.com/shenwei356/rush/process.(*Command).run(0xc42043a240, 0x0, 0x0)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:297 +0x1714
github.com/shenwei356/rush/process.(*Command).Run(0xc42043a240, 0xc4201446c0, 0x52)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:117 +0x74
github.com/shenwei356/rush/process.Run.func1.1(0xc42012a000, 0xc42012c000, 0xc420084a80, 0xc420042740, 0xc420084ba0, 0x0, 0xc420084c00, 0xc42012a010, 0x19, 0xc4201446c0, ...)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:611 +0xe4
created by github.com/shenwei356/rush/process.Run.func1
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:655 +0x261

goroutine 64 [semacquire]:
syscall.ByteSliceFromString(0xc420014000, 0xe3, 0xc420464380, 0x1d, 0x1d, 0x0, 0x0)
    /usr/local/go/src/syscall/syscall.go:55 +0x64
syscall.BytePtrFromString(0xc420014000, 0xe3, 0xc420464380, 0x0, 0x0)
    /usr/local/go/src/syscall/syscall.go:71 +0x39
syscall.SlicePtrFromStrings(0xc42043c9c0, 0x19, 0x19, 0xc4204642a0, 0x4, 0x4, 0x0, 0x0)
    /usr/local/go/src/syscall/exec_unix.go:87 +0x97
syscall.forkExec(0xc420010016, 0x9, 0xc420484060, 0x3, 0x3, 0xc4206db8a0, 0x0, 0x0, 0x0)
    /usr/local/go/src/syscall/exec_unix.go:158 +0x16e
syscall.StartProcess(0xc420010016, 0x9, 0xc420484060, 0x3, 0x3, 0xc4204558a0, 0x2, 0x4, 0xc420496050, 0xc420455870)
    /usr/local/go/src/syscall/exec_unix.go:240 +0x64
os.startProcess(0xc420010016, 0x9, 0xc420484060, 0x3, 0x3, 0xc420455a48, 0xc42043c9c0, 0x19, 0x19)
    /usr/local/go/src/os/exec_posix.go:45 +0x1a3
os.StartProcess(0xc420010016, 0x9, 0xc420484060, 0x3, 0x3, 0xc420455a48, 0x0, 0x0, 0xc420455a18)
    /usr/local/go/src/os/exec.go:94 +0x64
os/exec.(*Cmd).Start(0xc42048a160, 0x910e60, 0xc420494020)
    /usr/local/go/src/os/exec/exec.go:359 +0x3d2
github.com/shenwei356/rush/process.(*Command).run(0xc420468090, 0x0, 0x0)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:292 +0x32e
github.com/shenwei356/rush/process.(*Command).Run(0xc420468090, 0xc420144720, 0x52)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:117 +0x74
github.com/shenwei356/rush/process.Run.func1.1(0xc42012a000, 0xc42012c000, 0xc420084a80, 0xc420042740, 0xc420084ba0, 0x0, 0xc420084c00, 0xc42012a010, 0x1a, 0xc420144720, ...)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:611 +0xe4
created by github.com/shenwei356/rush/process.Run.func1
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:655 +0x261

goroutine 65 [semacquire]:
github.com/shenwei356/rush/process.(*Command).run(0xc420179b00, 0x0, 0x0)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:297 +0x1714
github.com/shenwei356/rush/process.(*Command).Run(0xc420179b00, 0xc420144780, 0x52)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:117 +0x74
github.com/shenwei356/rush/process.Run.func1.1(0xc42012a000, 0xc42012c000, 0xc420084a80, 0xc420042740, 0xc420084ba0, 0x0, 0xc420084c00, 0xc42012a010, 0x1b, 0xc420144780, ...)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:611 +0xe4
created by github.com/shenwei356/rush/process.Run.func1
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:655 +0x261

goroutine 66 [semacquire]:
sync.runtime_SemacquireMutex(0x95c1e4)
    /usr/local/go/src/runtime/sema.go:62 +0x34
sync.(*Mutex).Lock(0x95c1e0)
    /usr/local/go/src/sync/mutex.go:87 +0x9d
sync.(*RWMutex).Lock(0x95c1e0)
    /usr/local/go/src/sync/rwmutex.go:86 +0x2d
syscall.forkExec(0xc420010016, 0x9, 0xc420422120, 0x3, 0x3, 0xc4203018a0, 0x0, 0x0, 0x0)
    /usr/local/go/src/syscall/exec_unix.go:185 +0x1fd
syscall.StartProcess(0xc420010016, 0x9, 0xc420422120, 0x3, 0x3, 0xc4203018a0, 0x2, 0x4, 0xc4204320a0, 0xc420301870)
    /usr/local/go/src/syscall/exec_unix.go:240 +0x64
os.startProcess(0xc420010016, 0x9, 0xc420422120, 0x3, 0x3, 0xc420301a48, 0xc4201c24e0, 0x19, 0x19)
    /usr/local/go/src/os/exec_posix.go:45 +0x1a3
os.StartProcess(0xc420010016, 0x9, 0xc420422120, 0x3, 0x3, 0xc420301a48, 0x0, 0x0, 0xc420301a18)
    /usr/local/go/src/os/exec.go:94 +0x64
os/exec.(*Cmd).Start(0xc420424160, 0x910e60, 0xc42042a020)
    /usr/local/go/src/os/exec/exec.go:359 +0x3d2
github.com/shenwei356/rush/process.(*Command).run(0xc4202e6090, 0x0, 0x0)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:292 +0x32e
github.com/shenwei356/rush/process.(*Command).Run(0xc4202e6090, 0xc4201447e0, 0x52)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:117 +0x74
github.com/shenwei356/rush/process.Run.func1.1(0xc42012a000, 0xc42012c000, 0xc420084a80, 0xc420042740, 0xc420084ba0, 0x0, 0xc420084c00, 0xc42012a010, 0x1c, 0xc4201447e0, ...)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:611 +0xe4
created by github.com/shenwei356/rush/process.Run.func1
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:655 +0x261

goroutine 67 [semacquire]:
strings.makeCutsetFunc(0x793e38, 0x1, 0x10)
    /usr/local/go/src/strings/strings.go:621 +0x1bd
strings.TrimLeft(0xc420144840, 0x52, 0x793e38, 0x1, 0x10, 0x6d3021)
    /usr/local/go/src/strings/strings.go:648 +0x63
github.com/shenwei356/rush/process.NewCommand(0x1d, 0xc420144840, 0x52, 0xc420084a80, 0x0, 0x0)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:83 +0x4e
github.com/shenwei356/rush/process.Run.func1.1(0xc42012a000, 0xc42012c000, 0xc420084a80, 0xc420042740, 0xc420084ba0, 0x0, 0xc420084c00, 0xc42012a010, 0x1d, 0xc420144840, ...)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:603 +0xb2
created by github.com/shenwei356/rush/process.Run.func1
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:655 +0x261

goroutine 68 [semacquire]:
syscall.ByteSliceFromString(0xc420012000, 0x582, 0xc42012b8c0, 0xd, 0xd, 0x0, 0x0)
    /usr/local/go/src/syscall/syscall.go:55 +0x64
syscall.BytePtrFromString(0xc420012000, 0x582, 0xc42012b8c0, 0x0, 0x0)
    /usr/local/go/src/syscall/syscall.go:71 +0x39
syscall.SlicePtrFromStrings(0xc42049a820, 0x19, 0x19, 0xc4204524a0, 0x4, 0x4, 0x0, 0x0)
    /usr/local/go/src/syscall/exec_unix.go:87 +0x97
syscall.forkExec(0xc420010016, 0x9, 0xc4201580c0, 0x3, 0x3, 0xc4206e18a0, 0x0, 0x0, 0x0)
    /usr/local/go/src/syscall/exec_unix.go:158 +0x16e
syscall.StartProcess(0xc420010016, 0x9, 0xc4201580c0, 0x3, 0x3, 0xc4200588a0, 0x2, 0x4, 0xc42012e5a0, 0xc420058870)
    /usr/local/go/src/syscall/exec_unix.go:240 +0x64
os.startProcess(0xc420010016, 0x9, 0xc4201580c0, 0x3, 0x3, 0xc420058a48, 0xc42049a820, 0x19, 0x19)
    /usr/local/go/src/os/exec_posix.go:45 +0x1a3
os.StartProcess(0xc420010016, 0x9, 0xc4201580c0, 0x3, 0x3, 0xc420058a48, 0x0, 0x0, 0xc420058a18)
    /usr/local/go/src/os/exec.go:94 +0x64
os/exec.(*Cmd).Start(0xc42012c2c0, 0x910e60, 0xc420154040)
    /usr/local/go/src/os/exec/exec.go:359 +0x3d2
github.com/shenwei356/rush/process.(*Command).run(0xc420179a70, 0x0, 0x0)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:292 +0x32e
github.com/shenwei356/rush/process.(*Command).Run(0xc420179a70, 0xc4201448a0, 0x52)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:117 +0x74
github.com/shenwei356/rush/process.Run.func1.1(0xc42012a000, 0xc42012c000, 0xc420084a80, 0xc420042740, 0xc420084ba0, 0x0, 0xc420084c00, 0xc42012a010, 0x1e, 0xc4201448a0, ...)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:611 +0xe4
created by github.com/shenwei356/rush/process.Run.func1
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:655 +0x261

goroutine 69 [semacquire]:
fmt.(*fmt).padString(0xc420420040, 0xc420144900, 0x52)
    /usr/local/go/src/fmt/format.go:110 +0x112
fmt.(*fmt).fmt_s(0xc420420040, 0xc420144900, 0x52)
    /usr/local/go/src/fmt/format.go:328 +0x61
fmt.(*pp).fmtString(0xc420420000, 0xc420144900, 0x52, 0x73)
    /usr/local/go/src/fmt/print.go:433 +0x198
fmt.(*pp).printArg(0xc420420000, 0x71b700, 0xc420412240, 0x73)
    /usr/local/go/src/fmt/print.go:664 +0x7fc
fmt.(*pp).doPrintf(0xc420420000, 0x793e91, 0x2, 0xc4202fec60, 0x1, 0x1)
    /usr/local/go/src/fmt/print.go:998 +0x11e7
fmt.Sprintf(0x793e91, 0x2, 0xc4202fec60, 0x1, 0x1, 0x3f650b0, 0x93f780)
    /usr/local/go/src/fmt/print.go:196 +0x6a
github.com/shenwei356/rush/process.(*Command).run(0xc42040e120, 0x0, 0x0)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:264 +0x179
github.com/shenwei356/rush/process.(*Command).Run(0xc42040e120, 0xc420144900, 0x52)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:117 +0x74
github.com/shenwei356/rush/process.Run.func1.1(0xc42012a000, 0xc42012c000, 0xc420084a80, 0xc420042740, 0xc420084ba0, 0x0, 0xc420084c00, 0xc42012a010, 0x1f, 0xc420144900, ...)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:611 +0xe4
created by github.com/shenwei356/rush/process.Run.func1
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:655 +0x261

goroutine 70 [semacquire]:
fmt.glob..func1(0x936520, 0x0)
    /usr/local/go/src/fmt/print.go:128 +0x2d
sync.(*Pool).Get(0x936520, 0x28, 0xc420057a60)
    /usr/local/go/src/sync/pool.go:144 +0xad
fmt.newPrinter(0x10)
    /usr/local/go/src/fmt/print.go:133 +0x31
fmt.Sprintf(0x793e91, 0x2, 0xc420057c60, 0x1, 0x1, 0x3d2fa36, 0x93f780)
    /usr/local/go/src/fmt/print.go:195 +0x26
github.com/shenwei356/rush/process.(*Command).run(0xc420179950, 0x0, 0x0)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:264 +0x179
github.com/shenwei356/rush/process.(*Command).Run(0xc420179950, 0xc420144960, 0x52)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:117 +0x74
github.com/shenwei356/rush/process.Run.func1.1(0xc42012a000, 0xc42012c000, 0xc420084a80, 0xc420042740, 0xc420084ba0, 0x0, 0xc420084c00, 0xc42012a010, 0x20, 0xc420144960, ...)
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:611 +0xe4
created by github.com/shenwei356/rush/process.Run.func1
    /home/shenwei/shenwei/script/Go/project/src/github.com/shenwei356/rush/process/process.go:655 +0x261

rax    0x0
rbx    0x352d1b8868
rcx    0xffffffffffffffff
rdx    0x6
rdi    0x1533f
rsi    0x15350
rbp    0x7bf84a
rsp    0x7f578dffa9f8
r8     0xa
r9     0x7f578dffb700
r10    0x8
r11    0x206
r12    0x0
r13    0x34
r14    0x0
r15    0xf3
rip    0x352ce35877
rflags 0x206
cs     0x33
fs     0x0
gs     0x0
core.thread.ThreadError@/tmp/ldc/runtime/druntime/src/core/thread.d(3057): Error creating thread
----------------