- xml - AJAX/Jquery XML 解析
- 具有多重继承的 XML 模式
- .net - 枚举序列化 Json 与 XML
- XML 简单类型、简单内容、复杂类型、复杂内容
我正在做类似的事情:
cmd := exec.Command(shell, "-c", someCmd)
[...]
errReader, err := cmd.StderrPipe()
outReader, err := cmd.StdoutPipe()
[...do something with those readers...]
cmd.Dir = aDirectory
[...]
err = cmd.Start()
如果 aDirectory 是普通目录,Start() 总是立即返回 ~。
但是如果它是我成功运行 ioutil.ReadDir(aDirectory)
的进程内 fuse 安装(在设置 cmd.Dir 之后安装),那么大约 1/1000 次,Start() 挂起.我必须 sudo umount -f aDirectory
来结束 go 进程。
我没有深入研究 Start() 以查看它卡在哪里,但有什么想法会导致它出现问题吗?
我最好的选择是使用 CommandContext()
来代替 Start() 调用超时吗?您将如何很好地实现?
最佳答案
似乎是某种神奇的时间问题。我注意到 os/exec_posix.go 中的 startProcess() 执行了 Stat() 调用,所以我在调用 Start() 之前自己执行了 Stat(),问题似乎已经消失(或者比 1/1000 少见) ).
编辑:仍然会发生,只是比较少见。挂起时的堆栈跟踪:
goroutine 648 [running]:
github.com/VertebrateResequencing/wr/cmd.glob..func21.2(0xc0003c5140)
/home/ubuntu/wr/cmd/runner.go:205 +0x131
created by github.com/VertebrateResequencing/wr/cmd.glob..func21
/home/ubuntu/wr/cmd/runner.go:200 +0x69e
goroutine 1 [runnable]:
syscall.Close(0xf, 0xc0006cedc0, 0x4)
/home/ubuntu/go/src/syscall/zsyscall_linux_amd64.go:309 +0xcc
syscall.forkExec(0xc0005a6d10, 0x9, 0xc0002fd8c0, 0x3, 0x3, 0xc0008288a8, 0x20, 0x0, 0xc00054cda0)
/home/ubuntu/go/src/syscall/exec_unix.go:202 +0x3a9
syscall.StartProcess(0xc0005a6d10, 0x9, 0xc0002fd8c0, 0x3, 0x3, 0xc0008288a8, 0x2, 0x4, 0x0, 0x0)
/home/ubuntu/go/src/syscall/exec_unix.go:241 +0x64
os.startProcess(0xc0005a6d10, 0x9, 0xc0002fd8c0, 0x3, 0x3, 0xc000828a38, 0xc0000d6280, 0x27, 0x27)
/home/ubuntu/go/src/os/exec_posix.go:46 +0x213
os.StartProcess(0xc0005a6d10, 0x9, 0xc0002fd8c0, 0x3, 0x3, 0xc000828a38, 0x0, 0x0, 0x101)
/home/ubuntu/go/src/os/exec.go:102 +0x7c
os/exec.(*Cmd).Start(0xc000235b80, 0x351a1ba9ae4, 0x287cf80)
/home/ubuntu/go/src/os/exec/exec.go:383 +0x4bc
github.com/VertebrateResequencing/wr/jobqueue.(*Client).Execute(0xc0003829a0, 0xc00015fb80, 0xc00035ea88, 0x4, 0x0, 0x0)
/home/ubuntu/wr/jobqueue/client.go:753 +0x144c
github.com/VertebrateResequencing/wr/cmd.glob..func21(0x286a2e0, 0xc000382840, 0x0, 0xb)
/home/ubuntu/wr/cmd/runner.go:210 +0x74e
github.com/spf13/cobra.(*Command).execute(0x286a2e0, 0xc000382790, 0xb, 0xb, 0x286a2e0, 0xc000382790)
/home/ubuntu/go/pkg/mod/github.com/spf13/cobra@v0.0.0-20180829160745-99dc12355885/command.go:766 +0x2cc
github.com/spf13/cobra.(*Command).ExecuteC(0x286a080, 0x14e26de, 0x286a080, 0xc0004dff30)
/home/ubuntu/go/pkg/mod/github.com/spf13/cobra@v0.0.0-20180829160745-99dc12355885/command.go:852 +0x2fd
github.com/spf13/cobra.(*Command).Execute(0x286a080, 0xc0004dff88, 0x405700)
/home/ubuntu/go/pkg/mod/github.com/spf13/cobra@v0.0.0-20180829160745-99dc12355885/command.go:800 +0x2b
github.com/VertebrateResequencing/wr/cmd.Execute()
/home/ubuntu/wr/cmd/root.go:83 +0x2d
main.main()
/home/ubuntu/wr/main.go:120 +0x90
goroutine 18 [runnable]:
os/signal.process(0x1b5d5a0, 0xc0004d8000)
/home/ubuntu/go/src/os/signal/signal.go:223 +0xf6
os/signal.loop()
/home/ubuntu/go/src/os/signal/signal_unix.go:23 +0x52
created by os/signal.init.0
/home/ubuntu/go/src/os/signal/signal_unix.go:29 +0x41
goroutine 33 [chan receive, 8 minutes]:
k8s.io/klog.(*loggingT).flushDaemon(0x287d580)
/home/ubuntu/go/pkg/mod/k8s.io/klog@v0.1.0/klog.go:941 +0x8b
created by k8s.io/klog.init.0
/home/ubuntu/go/pkg/mod/k8s.io/klog@v0.1.0/klog.go:403 +0x69
goroutine 175 [runnable]:
github.com/VertebrateResequencing/wr/jobqueue.(*Job).Mount.func1(0xc000344d20, 0xc00015f340)
/home/ubuntu/wr/jobqueue/job.go:574 +0x38
created by github.com/VertebrateResequencing/wr/jobqueue.(*Job).Mount
/home/ubuntu/wr/jobqueue/job.go:573 +0x930
goroutine 9 [select, 8 minutes]:
nanomsg.org/go-mangos.(*dialer).dialer(0xc00052a1c0)
/home/ubuntu/go/pkg/mod/nanomsg.org/go-mangos@v0.0.0-20180815160134-b7ff4263f0d7/core.go:629 +0x347
created by nanomsg.org/go-mangos.(*dialer).Dial
/home/ubuntu/go/pkg/mod/nanomsg.org/go-mangos@v0.0.0-20180815160134-b7ff4263f0d7/core.go:584 +0xbc
goroutine 38 [select, 8 minutes]:
nanomsg.org/go-mangos/protocol/req.(*req).resender(0xc0003828f0)
/home/ubuntu/go/pkg/mod/nanomsg.org/go-mangos@v0.0.0-20180815160134-b7ff4263f0d7/protocol/req/req.go:83 +0x100
created by nanomsg.org/go-mangos/protocol/req.(*req).AddEndpoint.func1
/home/ubuntu/go/pkg/mod/nanomsg.org/go-mangos@v0.0.0-20180815160134-b7ff4263f0d7/protocol/req/req.go:185 +0x57
goroutine 39 [IO wait, 7 minutes]:
internal/poll.runtime_pollWait(0x7f0b6fcc5d60, 0x72, 0xc0005598c0)
/home/ubuntu/go/src/runtime/netpoll.go:173 +0x66
internal/poll.(*pollDesc).wait(0xc000562018, 0x72, 0xffffffffffffff00, 0x1b51640, 0x2804620)
/home/ubuntu/go/src/internal/poll/fd_poll_runtime.go:85 +0x9a
internal/poll.(*pollDesc).waitRead(0xc000562018, 0xc00046e800, 0x800, 0x800)
/home/ubuntu/go/src/internal/poll/fd_poll_runtime.go:90 +0x3d
internal/poll.(*FD).Read(0xc000562000, 0xc00046e800, 0x800, 0x800, 0x0, 0x0, 0x0)
/home/ubuntu/go/src/internal/poll/fd_unix.go:169 +0x179
net.(*netFD).Read(0xc000562000, 0xc00046e800, 0x800, 0x800, 0x40884b, 0xc00002e000, 0x16bebe0)
/home/ubuntu/go/src/net/fd_unix.go:202 +0x4f
net.(*conn).Read(0xc000418008, 0xc00046e800, 0x800, 0x800, 0x0, 0x0, 0x0)
/home/ubuntu/go/src/net/net.go:177 +0x68
crypto/tls.(*block).readFromUntil(0xc000566090, 0x1b4f600, 0xc000418008, 0x5, 0xc000418008, 0xc00046e805)
/home/ubuntu/go/src/crypto/tls/conn.go:492 +0x89
crypto/tls.(*Conn).readRecord(0xc00031c000, 0x19c2117, 0xc00031c120, 0x0)
/home/ubuntu/go/src/crypto/tls/conn.go:593 +0xdd
crypto/tls.(*Conn).Read(0xc00031c000, 0xc0005a69d0, 0x8, 0x8, 0x0, 0x0, 0x0)
/home/ubuntu/go/src/crypto/tls/conn.go:1145 +0xf1
io.ReadAtLeast(0x7f0b6fb25228, 0xc00031c000, 0xc0005a69d0, 0x8, 0x8, 0x8, 0x1633ae0, 0xc000559c01, 0xc0005a69d0)
/home/ubuntu/go/src/io/io.go:310 +0x88
io.ReadFull(0x7f0b6fb25228, 0xc00031c000, 0xc0005a69d0, 0x8, 0x8, 0x43b11d, 0xc0003c45f8, 0x0)
/home/ubuntu/go/src/io/io.go:329 +0x58
encoding/binary.Read(0x7f0b6fb25228, 0xc00031c000, 0x1b75aa0, 0x289ebd8, 0x15b5060, 0xc0005a69c8, 0x2, 0x2)
/home/ubuntu/go/src/encoding/binary/binary.go:171 +0x50a
nanomsg.org/go-mangos.(*conn).Recv(0xc0000d0690, 0xc0002c08c0, 0x0, 0x0)
/home/ubuntu/go/pkg/mod/nanomsg.org/go-mangos@v0.0.0-20180815160134-b7ff4263f0d7/conn.go:52 +0xa7
nanomsg.org/go-mangos.(*pipe).RecvMsg(0xc0000d06e0, 0xc000559f38)
/home/ubuntu/go/pkg/mod/nanomsg.org/go-mangos@v0.0.0-20180815160134-b7ff4263f0d7/pipe.go:109 +0x37
nanomsg.org/go-mangos/protocol/req.(*req).receiver(0xc0003828f0, 0x1b6e220, 0xc0000d06e0)
/home/ubuntu/go/pkg/mod/nanomsg.org/go-mangos@v0.0.0-20180815160134-b7ff4263f0d7/protocol/req/req.go:114 +0x91
created by nanomsg.org/go-mangos/protocol/req.(*req).AddEndpoint
/home/ubuntu/go/pkg/mod/nanomsg.org/go-mangos@v0.0.0-20180815160134-b7ff4263f0d7/protocol/req/req.go:193 +0x174
goroutine 40 [select, 7 minutes]:
nanomsg.org/go-mangos/protocol/req.(*req).sender(0xc0003828f0, 0xc00056e840)
/home/ubuntu/go/pkg/mod/nanomsg.org/go-mangos@v0.0.0-20180815160134-b7ff4263f0d7/protocol/req/req.go:149 +0x18e
created by nanomsg.org/go-mangos/protocol/req.(*req).AddEndpoint
/home/ubuntu/go/pkg/mod/nanomsg.org/go-mangos@v0.0.0-20180815160134-b7ff4263f0d7/protocol/req/req.go:195 +0x1b2
goroutine 51 [runnable]:
crypto/tls.(*block).resize(0xc0002fc180, 0xf)
/home/ubuntu/go/src/crypto/tls/conn.go:457 +0x72
crypto/tls.(*halfConn).decrypt(0xc000088820, 0xc0002fc180, 0x1f, 0xc0002fc180, 0x0)
/home/ubuntu/go/src/crypto/tls/conn.go:314 +0x700
crypto/tls.(*Conn).readRecord(0xc000088700, 0x19c2117, 0xc000088820, 0x455220)
/home/ubuntu/go/src/crypto/tls/conn.go:650 +0x27e
crypto/tls.(*Conn).Read(0xc000088700, 0xc0002e5000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/home/ubuntu/go/src/crypto/tls/conn.go:1145 +0xf1
net/http.(*persistConn).Read(0xc00007dc20, 0xc0002e5000, 0x1000, 0x1000, 0xc00055cc70, 0x404cd5, 0xc000830480)
/home/ubuntu/go/src/net/http/transport.go:1497 +0x75
bufio.(*Reader).fill(0xc000509f80)
/home/ubuntu/go/src/bufio/bufio.go:100 +0x10f
bufio.(*Reader).Peek(0xc000509f80, 0x1, 0x0, 0x0, 0x1, 0xc0008300c0, 0x0)
/home/ubuntu/go/src/bufio/bufio.go:132 +0x3f
net/http.(*persistConn).readLoop(0xc00007dc20)
/home/ubuntu/go/src/net/http/transport.go:1645 +0x1a2
created by net/http.(*Transport).dialConn
/home/ubuntu/go/src/net/http/transport.go:1338 +0x941
goroutine 52 [select, 7 minutes]:
net/http.(*persistConn).writeLoop(0xc00007dc20)
/home/ubuntu/go/src/net/http/transport.go:1885 +0x113
created by net/http.(*Transport).dialConn
/home/ubuntu/go/src/net/http/transport.go:1339 +0x966
goroutine 41 [runnable]:
github.com/VertebrateResequencing/wr/jobqueue.(*Job).Mount.func1(0xc00089c060, 0xc000402580)
/home/ubuntu/wr/jobqueue/job.go:574 +0x38
created by github.com/VertebrateResequencing/wr/jobqueue.(*Job).Mount
/home/ubuntu/wr/jobqueue/job.go:573 +0x930
goroutine 660 [runnable]:
syscall.Syscall(0x0, 0xe, 0xc000cf8000, 0x11000, 0x30, 0x11000, 0x0)
/home/ubuntu/go/src/syscall/asm_linux_amd64.s:18 +0x5
syscall.read(0xe, 0xc000cf8000, 0x11000, 0x11000, 0xc0007ed218, 0xc000766b80, 0xc000224408)
/home/ubuntu/go/src/syscall/zsyscall_linux_amd64.go:732 +0x5a
syscall.Read(0xe, 0xc000cf8000, 0x11000, 0x11000, 0x460f6b, 0xc0007ed230, 0xc000766980)
/home/ubuntu/go/src/syscall/syscall_unix.go:172 +0x49
github.com/hanwen/go-fuse/fuse.(*Server).readRequest.func1(0xc000766980, 0x9f7255)
/home/ubuntu/go/pkg/mod/github.com/hanwen/go-fuse@v0.0.0-20190111173210-425e8d5301f6/fuse/server.go:266 +0x55
github.com/hanwen/go-fuse/fuse.handleEINTR(0xc000776758, 0x15ec360, 0xc00053ee20)
/home/ubuntu/go/pkg/mod/github.com/hanwen/go-fuse@v0.0.0-20190111173210-425e8d5301f6/fuse/server.go:242 +0x27
github.com/hanwen/go-fuse/fuse.(*Server).readRequest(0xc0007ed1d0, 0xc00003a401, 0xc000000000, 0xc000000000)
/home/ubuntu/go/pkg/mod/github.com/hanwen/go-fuse@v0.0.0-20190111173210-425e8d5301f6/fuse/server.go:264 +0x163
github.com/hanwen/go-fuse/fuse.(*Server).loop(0xc0007ed1d0, 0xc00084a701)
/home/ubuntu/go/pkg/mod/github.com/hanwen/go-fuse@v0.0.0-20190111173210-425e8d5301f6/fuse/server.go:381 +0x6b
created by github.com/hanwen/go-fuse/fuse.(*Server).readRequest
/home/ubuntu/go/pkg/mod/github.com/hanwen/go-fuse@v0.0.0-20190111173210-425e8d5301f6/fuse/server.go:291 +0x2d8
goroutine 376 [runnable]:
github.com/VertebrateResequencing/wr/jobqueue.(*Job).Mount.func1(0xc000344420, 0xc000402dc0)
/home/ubuntu/wr/jobqueue/job.go:574 +0x38
created by github.com/VertebrateResequencing/wr/jobqueue.(*Job).Mount
/home/ubuntu/wr/jobqueue/job.go:573 +0x930
goroutine 122 [runnable]:
github.com/VertebrateResequencing/wr/jobqueue.(*Job).Mount.func1(0xc0000b1440, 0xc00060e2c0)
/home/ubuntu/wr/jobqueue/job.go:574 +0x38
created by github.com/VertebrateResequencing/wr/jobqueue.(*Job).Mount
/home/ubuntu/wr/jobqueue/job.go:573 +0x930
goroutine 601 [runnable]:
syscall.Syscall(0x0, 0xe, 0xc000920000, 0x11000, 0xffffffffffffffff, 0x0, 0x13)
/home/ubuntu/go/src/syscall/asm_linux_amd64.s:18 +0x5
syscall.read(0xe, 0xc000920000, 0x11000, 0x11000, 0xc0007ed218, 0xc000766a00, 0xc000830120)
/home/ubuntu/go/src/syscall/zsyscall_linux_amd64.go:732 +0x5a
syscall.Read(0xe, 0xc000920000, 0x11000, 0x11000, 0x460f6b, 0xc0007ed230, 0xc000766800)
/home/ubuntu/go/src/syscall/syscall_unix.go:172 +0x49
github.com/hanwen/go-fuse/fuse.(*Server).readRequest.func1(0xc000766800, 0xc0003a0180)
/home/ubuntu/go/pkg/mod/github.com/hanwen/go-fuse@v0.0.0-20190111173210-425e8d5301f6/fuse/server.go:266 +0x55
github.com/hanwen/go-fuse/fuse.handleEINTR(0xc00077ef58, 0x15ec360, 0xc00056eee0)
/home/ubuntu/go/pkg/mod/github.com/hanwen/go-fuse@v0.0.0-20190111173210-425e8d5301f6/fuse/server.go:242 +0x27
github.com/hanwen/go-fuse/fuse.(*Server).readRequest(0xc0007ed1d0, 0xc0003a0001, 0xc000000000, 0xc000000000)
/home/ubuntu/go/pkg/mod/github.com/hanwen/go-fuse@v0.0.0-20190111173210-425e8d5301f6/fuse/server.go:264 +0x163
github.com/hanwen/go-fuse/fuse.(*Server).loop(0xc0007ed1d0, 0xc0001f7101)
/home/ubuntu/go/pkg/mod/github.com/hanwen/go-fuse@v0.0.0-20190111173210-425e8d5301f6/fuse/server.go:381 +0x6b
created by github.com/hanwen/go-fuse/fuse.(*Server).readRequest
/home/ubuntu/go/pkg/mod/github.com/hanwen/go-fuse@v0.0.0-20190111173210-425e8d5301f6/fuse/server.go:291 +0x2d8
goroutine 593 [runnable]:
github.com/VertebrateResequencing/wr/jobqueue.(*Job).Mount.func1(0xc0003531a0, 0xc000403600)
/home/ubuntu/wr/jobqueue/job.go:574 +0x38
created by github.com/VertebrateResequencing/wr/jobqueue.(*Job).Mount
/home/ubuntu/wr/jobqueue/job.go:573 +0x930
goroutine 531 [runnable]:
github.com/VertebrateResequencing/wr/jobqueue.(*Job).Mount.func1(0xc000352a80, 0xc00015f600)
/home/ubuntu/wr/jobqueue/job.go:574 +0x38
created by github.com/VertebrateResequencing/wr/jobqueue.(*Job).Mount
/home/ubuntu/wr/jobqueue/job.go:573 +0x930
goroutine 662 [runnable]:
github.com/VertebrateResequencing/wr/jobqueue.(*Job).Mount.func1(0xc000508d20, 0xc00015fb80)
/home/ubuntu/wr/jobqueue/job.go:574 +0x38
created by github.com/VertebrateResequencing/wr/jobqueue.(*Job).Mount
/home/ubuntu/wr/jobqueue/job.go:573 +0x930
goroutine 665 [sleep, 7 minutes]:
time.Sleep(0x3333383e)
/home/ubuntu/go/src/runtime/time.go:105 +0x14f
github.com/minio/minio-go.Client.newRetryTimer.func2(0xc000830060, 0xa, 0xc000830000, 0xc00034c780)
/home/ubuntu/go/pkg/mod/github.com/minio/minio-go@v6.0.12+incompatible/retry.go:82 +0x84
created by github.com/minio/minio-go.Client.newRetryTimer
/home/ubuntu/go/pkg/mod/github.com/minio/minio-go@v6.0.12+incompatible/retry.go:72 +0x156
goroutine 649 [IO wait, 7 minutes]:
internal/poll.runtime_pollWait(0x7f0b6fcc5bc0, 0x72, 0xc000756c58)
/home/ubuntu/go/src/runtime/netpoll.go:173 +0x66
internal/poll.(*pollDesc).wait(0xc000352978, 0x72, 0xffffffffffffff01, 0x1b51640, 0x2804620)
/home/ubuntu/go/src/internal/poll/fd_poll_runtime.go:85 +0x9a
internal/poll.(*pollDesc).waitRead(0xc000352978, 0xc000589001, 0x1000, 0x1000)
/home/ubuntu/go/src/internal/poll/fd_poll_runtime.go:90 +0x3d
internal/poll.(*FD).Read(0xc000352960, 0xc000589000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/home/ubuntu/go/src/internal/poll/fd_unix.go:169 +0x179
os.(*File).read(0xc0007aee38, 0xc000589000, 0x1000, 0x1000, 0x9f, 0xffffffffffffff01, 0xc000756dc0)
/home/ubuntu/go/src/os/file_unix.go:249 +0x4e
os.(*File).Read(0xc0007aee38, 0xc000589000, 0x1000, 0x1000, 0x0, 0x7f0b71f316c0, 0x0)
/home/ubuntu/go/src/os/file.go:108 +0x69
bufio.(*Reader).fill(0xc000352a20)
/home/ubuntu/go/src/bufio/bufio.go:100 +0x10f
bufio.(*Reader).ReadSlice(0xc000352a20, 0xc000756f0a, 0xc000000300, 0xc000756e90, 0x4051bf, 0xc000756e70, 0x9f51cb)
/home/ubuntu/go/src/bufio/bufio.go:341 +0x36
bufio.(*Reader).ReadBytes(0xc000352a20, 0xc000756f0a, 0x0, 0x0, 0x0, 0x0, 0x0)
/home/ubuntu/go/src/bufio/bufio.go:419 +0x70
github.com/VertebrateResequencing/wr/jobqueue.stdFilter.func1(0xc000352a20, 0x1b4d740, 0xc0007f0870, 0xc0003c5260)
/home/ubuntu/wr/jobqueue/utils.go:368 +0x4c
created by github.com/VertebrateResequencing/wr/jobqueue.stdFilter
/home/ubuntu/wr/jobqueue/utils.go:365 +0xcc
goroutine 267 [runnable]:
github.com/VertebrateResequencing/wr/jobqueue.(*Job).Mount.func1(0xc00007f2c0, 0xc000403340)
/home/ubuntu/wr/jobqueue/job.go:574 +0x38
created by github.com/VertebrateResequencing/wr/jobqueue.(*Job).Mount
/home/ubuntu/wr/jobqueue/job.go:573 +0x930
goroutine 279 [runnable]:
github.com/VertebrateResequencing/wr/jobqueue.(*Job).Mount.func1(0xc00089c4e0, 0xc00060e580)
/home/ubuntu/wr/jobqueue/job.go:574 +0x38
created by github.com/VertebrateResequencing/wr/jobqueue.(*Job).Mount
/home/ubuntu/wr/jobqueue/job.go:573 +0x930
goroutine 657 [semacquire, 7 minutes]:
sync.runtime_Semacquire(0xc0007ed2ac)
/home/ubuntu/go/src/runtime/sema.go:56 +0x39
sync.(*WaitGroup).Wait(0xc0007ed2ac)
/home/ubuntu/go/src/sync/waitgroup.go:130 +0x64
github.com/hanwen/go-fuse/fuse.(*Server).Serve(0xc0007ed1d0)
/home/ubuntu/go/pkg/mod/github.com/hanwen/go-fuse@v0.0.0-20190111173210-425e8d5301f6/fuse/server.go:332 +0x7b
created by github.com/VertebrateResequencing/muxfys.(*MuxFys).Mount
/home/ubuntu/muxfys/muxfys.go:367 +0x5bb
goroutine 407 [runnable]:
github.com/VertebrateResequencing/wr/jobqueue.(*Job).Mount.func1(0xc000508a80, 0xc00060e840)
/home/ubuntu/wr/jobqueue/job.go:574 +0x38
created by github.com/VertebrateResequencing/wr/jobqueue.(*Job).Mount
/home/ubuntu/wr/jobqueue/job.go:573 +0x930
goroutine 659 [runnable]:
fmt.Sprintf(0x190224f, 0x30, 0xc000781f58, 0x2, 0x2, 0xc000499801, 0xc0004a4000)
/home/ubuntu/go/src/fmt/print.go:201 +0xdd
log.Printf(0x190224f, 0x30, 0xc000781f58, 0x2, 0x2)
/home/ubuntu/go/src/log/log.go:295 +0x53
github.com/hanwen/go-fuse/fuse.(*Server).handleRequest(0xc0007ed1d0, 0xc000499680, 0xc000499680)
/home/ubuntu/go/pkg/mod/github.com/hanwen/go-fuse@v0.0.0-20190111173210-425e8d5301f6/fuse/server.go:433 +0x1a4
github.com/hanwen/go-fuse/fuse.(*Server).loop(0xc0007ed1d0, 0xc00084a601)
/home/ubuntu/go/pkg/mod/github.com/hanwen/go-fuse@v0.0.0-20190111173210-425e8d5301f6/fuse/server.go:400 +0x148
created by github.com/hanwen/go-fuse/fuse.(*Server).readRequest
/home/ubuntu/go/pkg/mod/github.com/hanwen/go-fuse@v0.0.0-20190111173210-425e8d5301f6/fuse/server.go:291 +0x2d8
goroutine 650 [IO wait, 7 minutes]:
internal/poll.runtime_pollWait(0x7f0b6fcc5af0, 0x72, 0xc000853c58)
/home/ubuntu/go/src/runtime/netpoll.go:173 +0x66
internal/poll.(*pollDesc).wait(0xc000352af8, 0x72, 0xffffffffffffff01, 0x1b51640, 0x2804620)
/home/ubuntu/go/src/internal/poll/fd_poll_runtime.go:85 +0x9a
internal/poll.(*pollDesc).waitRead(0xc000352af8, 0xc000620001, 0x1000, 0x1000)
/home/ubuntu/go/src/internal/poll/fd_poll_runtime.go:90 +0x3d
internal/poll.(*FD).Read(0xc000352ae0, 0xc000620000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/home/ubuntu/go/src/internal/poll/fd_unix.go:169 +0x179
os.(*File).read(0xc0007aee48, 0xc000620000, 0x1000, 0x1000, 0x0, 0x0, 0x40369c)
/home/ubuntu/go/src/os/file_unix.go:249 +0x4e
os.(*File).Read(0xc0007aee48, 0xc000620000, 0x1000, 0x1000, 0x300000002, 0xc00069db00, 0xc000853dd0)
/home/ubuntu/go/src/os/file.go:108 +0x69
bufio.(*Reader).fill(0xc000352ba0)
/home/ubuntu/go/src/bufio/bufio.go:100 +0x10f
bufio.(*Reader).ReadSlice(0xc000352ba0, 0x7f0b71f3a70a, 0x3f, 0x43cc7b, 0xc0000b17c8, 0xc000853e58, 0x48677c)
/home/ubuntu/go/src/bufio/bufio.go:341 +0x36
bufio.(*Reader).ReadBytes(0xc000352ba0, 0x40510a, 0xc0000b1918, 0xc00056c790, 0xc000853fb0, 0x0, 0xc000853f30)
/home/ubuntu/go/src/bufio/bufio.go:419 +0x70
github.com/VertebrateResequencing/wr/jobqueue.stdFilter.func1(0xc000352ba0, 0x1b4d740, 0xc0007f08c0, 0xc0003c52c0)
/home/ubuntu/wr/jobqueue/utils.go:368 +0x4c
created by github.com/VertebrateResequencing/wr/jobqueue.stdFilter
/home/ubuntu/wr/jobqueue/utils.go:365 +0xcc
关于Golang cmd.Start() 有时卡在 fuse 安装目录上,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54203525/
我正在尝试制作一个命令行界面程序,它可以从用户输入中获取代码行并使用 execlp 执行它们。 我想知道是否有更好的方法来编写我的代码。 execlp(cmd[0], cmd[0], cmd[1] c
关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。 这个问题似乎不是关于 a specific programming problem, a softwar
我使用此脚本查找当前文件夹及其 .bat 文件: for /f %%i in ("%0") do set curpath=%%~dpi echo %curpath% 如果路径包含空格,它无法正常工作
在 Windows 的命令提示符处,我可以通过键入 echo 来回显响铃字符,然后按住 Ctrl+G 生成 echo ^G,运行时会发出铃声。 当我实际用键盘输入 echo ^G 时,它只会在屏幕上打
这是我执行的命令: >cmd /k >echo 1 1 >echo 2 2 >echo 3 3 >exit /b >cmd /c "doskey /history" echo 1 echo 2 ech
我需要编写一个命令来更改当前目录并打印包含在一些标签中的 NEW 目录。我以为 cd SOMEPATH & echo wkd%cd%wkd会这样做,但有一个问题。 这是一些示例输入和输出 C:\Use
我正在尝试从“调用 ppm 查询断言”中捕获 stoutput,如果它等于“ * 没有安装匹配 'assert' ** 的软件包”或更好但包含字符串“无软件包”做“某事” “.. 正在安装软件包。任何
似乎一个cmd脚本包含: prog1 prog2 与...相同 call prog1 call prog2 使用CALL命令有什么意义? 最佳答案 当需要调用另一个批处理程序(cmd脚本)时,应使用c
我要打电话 cmd /c "C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.com" mysolution.sln /b
在 Windows 上,可以轻松以管理员身份运行 cmd 应用程序: Right click on cmd icon >> run as administrator` 但我想以管理员身份使用 PhpS
我目前正在使用 Python 的 cmd 模块创建一个基于命令的游戏。 在某个时刻,我的 cmd.Cmd 对象会被嵌套。如果我说我正在运行命令提示符 A,那么在某个时刻,会在 A 内创建一个新的提示符
我正在尝试构建一个 cli 框架,其中需要动态添加命令。我想要实现的是 - 我将有一个继承自 cmd.Cmd 的最小类,稍后我将在单独的类中编写命令并将这些命令与主类一起加载。 以下是我尝试过的,但在
以下命令有什么区别: start %comspec% /c script.cmd start cmd /C script.cmd 我需要 script.cmd 的 cmd 窗口在 script.cmd
我正在尝试将一个长而复杂的 Windows 批处理文件转换为 Python。 除了细微的问题外一切正常,我怀疑这与引用有关,但不太清楚。 在批处理文件中,这工作正常: Reg.exe add "HKC
我想为 ffplay 或 ffmpeg 传递多个标题,它说我需要用 CRLF 拆分。在 linux 上我可以使用 \或 $'\r\n'但是 window 怎么样? SET CRLF=^ ffplay
我是 3D 软件 Blender 的用户。 我正在尝试在 CMD 中运行,因为 Blender 提供了 CLI 控制。 下面的代码工作正常。 blender -b "my.blend" ^ --pyt
我有一个包含版本资源的文件,其中填充了文件版本/产品版本字段。我需要通过 BAT 文件检索产品版本。例如,我在 bat 文件的输出中有 ProductVersion 1.0.1 的文件我不想有字符串“
关闭。这个问题不满足Stack Overflow guidelines .它目前不接受答案。 想改善这个问题吗?更新问题,使其成为 on-topic对于堆栈溢出。 去年关闭。 Improve this
我可以运行 forfiles 命令与cmd /c ,正如预期的那样 C:\>forfiles/c "cmd/c ping/a" 必须指定 IP 地址。 但是,如果我删除 cmd /c ,它不再识别任何
我有一个函数,它可以获取所有 USB 连接设备的信息。 connected_devices = :os.cmd('usb-devices | grep -A 1 Product=') 当我使用 :os
我是一名优秀的程序员,十分优秀!