metal3d / idok

A simple command line to stream media to kodi (aka xbmc). Stream youtube, gstreamer output, livestreamer output, and many other media stream.
BSD 3-Clause "New" or "Revised" License
62 stars 9 forks source link

Problem with ssh and openelec #1

Closed metal3d closed 10 years ago

metal3d commented 10 years ago

See http://forum.xbmc.org/showthread.php?tid=203834

nick@envy ~/Downloads $ idok -ssh -sshuser="root" -sshpass="openelec" -target=lounge /home/nick/Music/wedding/drinks/11.Jimmy_Durante-Make_Someone_Happy.mp3 
2014/09/08 19:26:46 no id_rsa key found
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x20 pc=0x440909]

goroutine 16 [running]:
runtime.panic(0x6f3e00, 0x8e3ef3)
    /home/patachou/go/src/pkg/runtime/panic.c:279 +0xf5
code.google.com/p/go.crypto/ssh.publicKeyCallback.auth(0xc2080008e0, 0xc20803c840, 0x14, 0x14, 0x7fffb2f998b2, 0x4, 0x7f28d6305050, 0xc208086000, 0x7f28d63033a0, 0xc208022330, ...)
    /home/patachou/goprojects/src/code.google.com/p/go.crypto/ssh/client_auth.go:191 +0x199
code.google.com/p/go.crypto/ssh.(*connection).clientAuthenticate(0xc20804e200, 0xc208050140, 0x0, 0x0)
    /home/patachou/goprojects/src/code.google.com/p/go.crypto/ssh/client_auth.go:34 +0x4d8
code.google.com/p/go.crypto/ssh.(*connection).clientHandshake(0xc20804e200, 0xc208000940, 0x9, 0xc208050140, 0x0, 0x0)
    /home/patachou/goprojects/src/code.google.com/p/go.crypto/ssh/client.go:108 +0x578
code.google.com/p/go.crypto/ssh.NewClientConn(0x7f28d6303ab0, 0xc208038020, 0xc208000940, 0x9, 0xc2080500a0, 0x0, 0x0, 0x0, 0xc2080280d0, 0x0, ...)
    /home/patachou/goprojects/src/code.google.com/p/go.crypto/ssh/client.go:74 +0x100
code.google.com/p/go.crypto/ssh.Dial(0x73a410, 0x3, 0xc208000940, 0x9, 0xc2080500a0, 0xc208000940, 0x0, 0x0)
    /home/patachou/goprojects/src/code.google.com/p/go.crypto/ssh/client.go:196 +0xfd
main.sshforward(0xc2080500a0, 0x7fffb2f998f8, 0x27, 0x7fffb2f998d8, 0x1f)
    /home/patachou/Dev/go/idok/idok.go:227 +0x144
main.main()
    /home/patachou/Dev/go/idok/idok.go:358 +0xb6b

goroutine 19 [finalizer wait]:
runtime.park(0x417e30, 0x8e8a10, 0x8e6c69)
    /home/patachou/go/src/pkg/runtime/proc.c:1369 +0x89
runtime.parkunlock(0x8e8a10, 0x8e6c69)
    /home/patachou/go/src/pkg/runtime/proc.c:1385 +0x3b
runfinq()
    /home/patachou/go/src/pkg/runtime/mgc0.c:2644 +0xcf
runtime.goexit()
    /home/patachou/go/src/pkg/runtime/proc.c:1445

goroutine 20 [syscall]:
os/signal.loop()
    /home/patachou/go/src/pkg/os/signal/signal_unix.go:21 +0x1e
created by os/signal.init·1
    /home/patachou/go/src/pkg/os/signal/signal_unix.go:27 +0x32

goroutine 17 [syscall]:
runtime.goexit()
    /home/patachou/go/src/pkg/runtime/proc.c:1445

goroutine 21 [IO wait]:
net.runtime_pollWait(0x7f28d6304a80, 0x72, 0x0)
    /tmp/makerelease197226928/go/src/pkg/runtime/netpoll.goc:146 +0x66
net.(*pollDesc).Wait(0xc20802a140, 0x72, 0x0, 0x0)
    /home/patachou/go/src/pkg/net/fd_poll_runtime.go:84 +0x46
net.(*pollDesc).WaitRead(0xc20802a140, 0x0, 0x0)
    /home/patachou/go/src/pkg/net/fd_poll_runtime.go:89 +0x42
net.(*netFD).Read(0xc20802a0e0, 0xc208015000, 0x1000, 0x1000, 0x0, 0x7f28d6303418, 0xb)
    /home/patachou/go/src/pkg/net/fd_unix.go:232 +0x34c
net.(*conn).Read(0xc208038020, 0xc208015000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
    /home/patachou/go/src/pkg/net/net.go:122 +0xe7
bufio.(*Reader).fill(0xc208004300)
    /home/patachou/go/src/pkg/bufio/bufio.go:97 +0x1b3
bufio.(*Reader).Read(0xc208004300, 0xc20804e420, 0x5, 0x5, 0x5, 0x0, 0x0)
    /home/patachou/go/src/pkg/bufio/bufio.go:175 +0x230
io.ReadAtLeast(0x7f28d6304d08, 0xc208004300, 0xc20804e420, 0x5, 0x5, 0x5, 0x0, 0x0, 0x0)
    /home/patachou/go/src/pkg/io/io.go:289 +0xf7
io.ReadFull(0x7f28d6304d08, 0xc208004300, 0xc20804e420, 0x5, 0x5, 0x14, 0x0, 0x0)
    /home/patachou/go/src/pkg/io/io.go:307 +0x71
code.google.com/p/go.crypto/ssh.(*streamPacketCipher).readPacket(0xc20804e400, 0xc200000005, 0x7f28d6304d08, 0xc208004300, 0x0, 0x0, 0x0, 0x0, 0x0)
    /home/patachou/goprojects/src/code.google.com/p/go.crypto/ssh/cipher.go:137 +0xd8
code.google.com/p/go.crypto/ssh.(*connectionState).readPacket(0xc208024120, 0xc208004300, 0x0, 0x0, 0x0, 0x0, 0x0)
    /home/patachou/goprojects/src/code.google.com/p/go.crypto/ssh/transport.go:110 +0xe7
code.google.com/p/go.crypto/ssh.(*transport).readPacket(0xc208024120, 0x0, 0x0, 0x0, 0x0, 0x0)
    /home/patachou/goprojects/src/code.google.com/p/go.crypto/ssh/transport.go:106 +0x67
code.google.com/p/go.crypto/ssh.(*handshakeTransport).readOnePacket(0xc208086000, 0x0, 0x0, 0x0, 0x0, 0x0)
    /home/patachou/goprojects/src/code.google.com/p/go.crypto/ssh/handshake.go:153 +0x105
code.google.com/p/go.crypto/ssh.(*handshakeTransport).readLoop(0xc208086000)
    /home/patachou/goprojects/src/code.google.com/p/go.crypto/ssh/handshake.go:133 +0x27
created by code.google.com/p/go.crypto/ssh.newClientTransport
    /home/patachou/goprojects/src/code.google.com/p/go.crypto/ssh/handshake.go:101 +0x101
metal3d commented 10 years ago

Found problem, fixed in commit 4e59463