New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Mac OS X] Panic when building tunnel #105

Closed
Soulou opened this Issue Apr 22, 2015 · 0 comments

Comments

Projects
None yet
1 participant
@Soulou
Member

Soulou commented Apr 22, 2015

./scalingo -a <app> db-tunnel postgres://<rest of url>
Building tunnel to <db>
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x529f0]
goroutine 1 [running]:
github.com/Scalingo/cli/cmd.newSysinfo(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/Users/leo/gopath/src/github.com/Scalingo/cli/cmd/error.go:96 +0xa0
github.com/Scalingo/cli/cmd.newReportError(0x306a5cb8, 0x1069b2c0, 0x1069b2c0)
/Users/leo/gopath/src/github.com/Scalingo/cli/cmd/error.go:84 +0x7e
github.com/Scalingo/cli/cmd.errorQuit(0x306a5cb8, 0x1069b2c0)
/Users/leo/gopath/src/github.com/Scalingo/cli/cmd/error.go:70 +0x1b8
github.com/Scalingo/cli/cmd.func·009(0x106d88c0)
/Users/leo/gopath/src/github.com/Scalingo/cli/cmd/db-tunnel.go:66 +0x177
github.com/Scalingo/cli/Godeps/_workspace/src/github.com/Scalingo/codegangsta-cli.Command.Run(0x34a938, 0x9, 0x0, 0x0, 0x3b04e8, 0x36, 0x3f0508, 0x533, 0x354cf8, 0xe, ...)
/Users/leo/gopath/src/github.com/Scalingo/cli/Godeps/_workspace/src/github.com/Scalingo/codegangsta-cli/command.go:105 +0xb49
github.com/Scalingo/cli/Godeps/_workspace/src/github.com/Scalingo/codegangsta-cli.(*App).Run(0x106d8460, 0x1069a000, 0x5, 0x5, 0x0, 0x0)
/Users/leo/gopath/src/github.com/Scalingo/cli/Godeps/_workspace/src/github.com/Scalingo/codegangsta-cli/app.go:165 +0xbab
main.main()
/Users/leo/gopath/src/github.com/Scalingo/cli/scalingo/main.go:93 +0x759
goroutine 5 [chan receive]:
github.com/Scalingo/cli/Godeps/_workspace/src/github.com/stvp/rollbar.func·001()
/Users/leo/gopath/src/github.com/Scalingo/cli/Godeps/_workspace/src/github.com/stvp/rollbar/rollbar.go:74 +0x44
created by github.com/Scalingo/cli/Godeps/_workspace/src/github.com/stvp/rollbar.init·1
/Users/leo/gopath/src/github.com/Scalingo/cli/Godeps/_workspace/src/github.com/stvp/rollbar/rollbar.go:78 +0x53
goroutine 22 [select]:
net/http.(*persistConn).writeLoop(0x106ea9c0)
/usr/local/Cellar/go/1.4/libexec/src/net/http/transport.go:945 +0x314
created by net/http.(*Transport).dialConn
/usr/local/Cellar/go/1.4/libexec/src/net/http/transport.go:661 +0xa54
goroutine 7 [syscall]:
os/signal.loop()
/usr/local/Cellar/go/1.4/libexec/src/os/signal/signal_unix.go:21 +0x1b
created by os/signal.init·1
/usr/local/Cellar/go/1.4/libexec/src/os/signal/signal_unix.go:27 +0x2e
goroutine 21 [IO wait]:
net.(*pollDesc).Wait(0x1072ab38, 0x72, 0x0, 0x0)
/usr/local/Cellar/go/1.4/libexec/src/net/fd_poll_runtime.go:84 +0x3c
net.(*pollDesc).WaitRead(0x1072ab38, 0x0, 0x0)
/usr/local/Cellar/go/1.4/libexec/src/net/fd_poll_runtime.go:89 +0x3a
net.(*netFD).Read(0x1072ab00, 0x106d4800, 0x400, 0x400, 0x0, 0x306a3dd0, 0x10748688)
/usr/local/Cellar/go/1.4/libexec/src/net/fd_unix.go:242 +0x2ea
net.(*conn).Read(0x106ac9f8, 0x106d4800, 0x400, 0x400, 0x0, 0x0, 0x0)
/usr/local/Cellar/go/1.4/libexec/src/net/net.go:121 +0xb4
crypto/tls.(*block).readFromUntil(0x10729dc0, 0x306a5638, 0x106ac9f8, 0x5, 0x0, 0x0)
/usr/local/Cellar/go/1.4/libexec/src/crypto/tls/conn.go:454 +0xaf
crypto/tls.(*Conn).readRecord(0x1071a1a0, 0x17, 0x0, 0x0)
/usr/local/Cellar/go/1.4/libexec/src/crypto/tls/conn.go:539 +0x269
crypto/tls.(*Conn).Read(0x1071a1a0, 0x1074f000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/Cellar/go/1.4/libexec/src/crypto/tls/conn.go:904 +0x118
net/http.noteEOFReader.Read(0x306a5a08, 0x1071a1a0, 0x106ea9ec, 0x1074f000, 0x1000, 0x1000, 0x1072a500, 0x0, 0x0)
/usr/local/Cellar/go/1.4/libexec/src/net/http/transport.go:1270 +0x56
net/http.(*noteEOFReader).Read(0x10748360, 0x1074f000, 0x1000, 0x1000, 0x106d0c80, 0x0, 0x0)
<autogenerated>:125 +0x99
bufio.(*Reader).fill(0x1069af60)
/usr/local/Cellar/go/1.4/libexec/src/bufio/bufio.go:97 +0x156
bufio.(*Reader).Peek(0x1069af60, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/Cellar/go/1.4/libexec/src/bufio/bufio.go:132 +0xcc
net/http.(*persistConn).readLoop(0x106ea9c0)
/usr/local/Cellar/go/1.4/libexec/src/net/http/transport.go:842 +0x81
created by net/http.(*Transport).dialConn
/usr/local/Cellar/go/1.4/libexec/src/net/http/transport.go:660 +0xa3f
goroutine 13 [sleep]:
net.func·019()
/usr/local/Cellar/go/1.4/libexec/src/net/dnsclient_unix.go:240 +0x4e
created by net.loadConfig
/usr/local/Cellar/go/1.4/libexec/src/net/dnsclient_unix.go:269 +0x1a4
goroutine 14 [chan receive]:
github.com/Scalingo/cli/signals.Handle()
/Users/leo/gopath/src/github.com/Scalingo/cli/signals/handler.go:17 +0x1bd
created by main.main
/Users/leo/gopath/src/github.com/Scalingo/cli/scalingo/main.go:81 +0x654
goroutine 19 [select]:
net/http.(*persistConn).writeLoop(0x106ea240)
/usr/local/Cellar/go/1.4/libexec/src/net/http/transport.go:945 +0x314
created by net/http.(*Transport).dialConn
/usr/local/Cellar/go/1.4/libexec/src/net/http/transport.go:661 +0xa54
goroutine 18 [IO wait]:
net.(*pollDesc).Wait(0x1072a8f8, 0x72, 0x0, 0x0)
/usr/local/Cellar/go/1.4/libexec/src/net/fd_poll_runtime.go:84 +0x3c
net.(*pollDesc).WaitRead(0x1072a8f8, 0x0, 0x0)
/usr/local/Cellar/go/1.4/libexec/src/net/fd_poll_runtime.go:89 +0x3a
net.(*netFD).Read(0x1072a8c0, 0x106fb000, 0x1000, 0x1000, 0x0, 0x306a3dd0, 0x107486dc)
/usr/local/Cellar/go/1.4/libexec/src/net/fd_unix.go:242 +0x2ea
net.(*conn).Read(0x106ac978, 0x106fb000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/Cellar/go/1.4/libexec/src/net/net.go:121 +0xb4
net/http.noteEOFReaer.Read(0x306a5638, 0x106ac978, 0x106ea26c, 0x106fb000, 0x1000, 0x1000, 0x106de300, 0x0, 0x0)
/usr/local/Cellar/go/1.4/libexec/src/net/http/transport.go:1270 +0x56
net/http.(*noteEOFReader).Read(0x10748620, 0x106fb000, 0x1000, 0x1000, 0x10728ae0, 0x0, 0x0)
<autogenerated>:125 +0x99
bufio.(*Reader).fill(0x1069b020)
/usr/local/Cellar/go/1.4/libexec/src/bufio/bufio.go:97 +0x156
bufio.(*Reader).Peek(0x1069b020, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/Cellar/go/1.4/libexec/src/bufio/bufio.go:132 +0xcc
net/http.(*persistConn).readLoop(0x106ea240)
/usr/local/Cellar/go/1.4/libexec/src/net/http/transport.go:842 +0x81
created by net/http.(*Transport).dialConn

@Soulou Soulou closed this in 5e72462 May 6, 2015

Soulou added a commit that referenced this issue May 6, 2015

Merge pull request #114 from Scalingo/fix_mac_os_x_error
Fix rollbar report when username is not defined, Fixes #105
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment