Closed duritong closed 8 years ago
Same problem
OS: Qubes 3.0 AppVM: Debian 8 CoyIM: 0.3 Accounts are configure not to use TorProxy
Client crashes when I try to connect an account.
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x20 pc=0x7cc34c]
goroutine 53 [running]:
github.com/twstrike/coyim/net.(*defaultTorManager).IsConnectionOverTor.func1(0x100b510, 0x3, 0xc8201b4160, 0x18, 0x0, 0x0, 0x0, 0x0)
/home/travis/gopath/src/github.com/twstrike/coyim/net/tor.go:87 +0x7c
net/http.(*Transport).dial(0xc8201c6000, 0x100b510, 0x3, 0xc8201b4160, 0x18, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/net/http/transport.go:499 +0x79
net/http.(*Transport).dialConn(0xc8201c6000, 0x0, 0x1147020, 0x5, 0xc8201b4160, 0x18, 0x0, 0x0, 0x0)
/usr/local/go/src/net/http/transport.go:596 +0x19a9
net/http.(*Transport).getConn.func4(0xc8201c6000, 0x0, 0x1147020, 0x5, 0xc8201b4160, 0x18, 0xc8201be060)
/usr/local/go/src/net/http/transport.go:549 +0x66
created by net/http.(*Transport).getConn
/usr/local/go/src/net/http/transport.go:551 +0x265
goroutine 1 [runnable, locked to thread]:
github.com/twstrike/coyim/Godeps/_workspace/src/github.com/gotk3/gotk3/gtk._Cfunc_gtk_builder_add_from_string(0x308a1e0, 0x3126c00, 0x369, 0xc820082658, 0xc800000001)
??:0 +0x39
github.com/twstrike/coyim/Godeps/_workspace/src/github.com/gotk3/gotk3/gtk.(*Builder).AddFromString(0xc820082648, 0x122b260, 0x369, 0x0, 0x0)
/home/travis/gopath/src/github.com/twstrike/coyim/Godeps/_workspace/src/github.com/gotk3/gotk3/gtk/gtk.go:1282 +0xe2
github.com/twstrike/coyim/Godeps/_workspace/src/github.com/twstrike/gotk3adapter/gtka.(*builder).AddFromString(0xc8201b2e10, 0x122b260, 0x369, 0x0, 0x0)
/home/travis/gopath/src/github.com/twstrike/coyim/Godeps/_workspace/src/github.com/twstrike/gotk3adapter/gtka/builder.go:34 +0x45
github.com/twstrike/coyim/gui.builderForDefinition(0x10abbd0, 0x15, 0x0, 0x0)
/home/travis/gopath/src/github.com/twstrike/coyim/gui/ui_reader.go:54 +0xfb
github.com/twstrike/coyim/gui.newBuilder(0x10abbd0, 0x15, 0xc8200bc0b0)
/home/travis/gopath/src/github.com/twstrike/coyim/gui/ui_reader.go:87 +0x2f
github.com/twstrike/coyim/gui.(*account).buildNotification(0xc8201527e0, 0x10abbd0, 0x15, 0xc820077a10, 0x2e, 0xc8200ce180, 0x0, 0x0, 0x0)
/home/travis/gopath/src/github.com/twstrike/coyim/gui/account.go:386 +0x4f
github.com/twstrike/coyim/gui.(*account).buildConnectionNotification(0xc8201527e0, 0xc8200ce180, 0x0, 0x0)
/home/travis/gopath/src/github.com/twstrike/coyim/gui/account.go:417 +0x1ce
github.com/twstrike/coyim/gui.(*gtkUI).showConnectAccountNotification.func1()
/home/travis/gopath/src/github.com/twstrike/coyim/gui/notifications.go:14 +0x40
reflect.Value.call(0xb2dda0, 0xc8201b4020, 0x13, 0x1002fd8, 0x4, 0x1c192d8, 0x0, 0x0, 0x0, 0x0, ...)
/usr/local/go/src/reflect/value.go:432 +0x120a
reflect.Value.Call(0xb2dda0, 0xc8201b4020, 0x13, 0x1c192d8, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/reflect/value.go:300 +0xb1
github.com/twstrike/coyim/Godeps/_workspace/src/github.com/gotk3/gotk3/glib.sourceAttach.func1()
/home/travis/gopath/src/github.com/twstrike/coyim/Godeps/_workspace/src/github.com/gotk3/gotk3/glib/glib.go:310 +0x1d4
reflect.Value.call(0xb2dda0, 0xc8201b8050, 0x13, 0x1002fd8, 0x4, 0x1c192d8, 0x0, 0x0, 0x0, 0x0, ...)
/usr/local/go/src/reflect/value.go:432 +0x120a
reflect.Value.Call(0xb2dda0, 0xc8201b8050, 0x13, 0x1c192d8, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/reflect/value.go:300 +0xb1
github.com/twstrike/coyim/Godeps/_workspace/src/github.com/gotk3/gotk3/glib.goMarshal(0x7f28c80012c0, 0x7fff35708c70, 0x0, 0x0, 0x0, 0x0)
/home/travis/gopath/src/github.com/twstrike/coyim/Godeps/_workspace/src/github.com/gotk3/gotk3/glib/glib.go:215 +0xa33
github.com/twstrike/coyim/Godeps/_workspace/src/github.com/gotk3/gotk3/glib._Cfunc_g_application_run(0x2ce32b0, 0x0, 0x2c753f0, 0x0)
??:0 +0x39
github.com/twstrike/coyim/Godeps/_workspace/src/github.com/gotk3/gotk3/glib.(*Application).Run(0xc8200820a0, 0x1c192d8, 0x0, 0x0, 0x0)
/home/travis/gopath/src/github.com/twstrike/coyim/Godeps/_workspace/src/github.com/gotk3/gotk3/glib/application.go:199 +0x1c2
github.com/twstrike/coyim/gui.(*gtkUI).Loop(0xc8200ce180)
/home/travis/gopath/src/github.com/twstrike/coyim/gui/ui.go:277 +0x13b
main.runClient()
/home/travis/gopath/src/github.com/twstrike/coyim/gtk.go:24 +0x308
main.main()
/home/travis/gopath/src/github.com/twstrike/coyim/main.go:30 +0x3d
goroutine 17 [syscall, locked to thread]:
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1721 +0x1
goroutine 19 [chan receive]:
github.com/twstrike/coyim/gui.(*gtkUI).watchCommands(0xc8200ce180)
/home/travis/gopath/src/github.com/twstrike/coyim/gui/commands.go:58 +0x8b
created by github.com/twstrike/coyim/gui.(*gtkUI).Loop.func1
/home/travis/gopath/src/github.com/twstrike/coyim/gui/ui.go:266 +0x86
goroutine 20 [runnable]:
github.com/twstrike/coyim/Godeps/_workspace/src/github.com/gotk3/gotk3/glib.sourceAttach(0x7f28cc001a00, 0xb2dda0, 0xc8201ce000, 0x13, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/home/travis/gopath/src/github.com/twstrike/coyim/Godeps/_workspace/src/github.com/gotk3/gotk3/glib/glib.go:301 +0x1e3
github.com/twstrike/coyim/Godeps/_workspace/src/github.com/gotk3/gotk3/glib.IdleAdd(0xb2dda0, 0xc8201ce000, 0x0, 0x0, 0x0, 0x9f, 0x0, 0x0)
/home/travis/gopath/src/github.com/twstrike/coyim/Godeps/_workspace/src/github.com/gotk3/gotk3/glib/glib.go:259 +0x22a
github.com/twstrike/coyim/Godeps/_workspace/src/github.com/twstrike/gotk3adapter/gliba.(*RealGlib).IdleAdd(0x1c16a20, 0xb2dda0, 0xc8201ce000, 0x0, 0x0, 0x0, 0xc8200275b0, 0x0, 0x0)
/home/travis/gopath/src/github.com/twstrike/coyim/Godeps/_workspace/src/github.com/twstrike/gotk3adapter/gliba/real_glib.go:12 +0x5b
github.com/twstrike/coyim/gui.doInUIThread(0xc8201ce000)
/home/travis/gopath/src/github.com/twstrike/coyim/gui/ui_thread.go:10 +0x66
github.com/twstrike/coyim/gui.(*gtkUI).handleOneAccountEvent(0xc8200ce180, 0xe1e080, 0xc8201b40e0)
/home/travis/gopath/src/github.com/twstrike/coyim/gui/account_events.go:18 +0x40c
github.com/twstrike/coyim/gui.(*gtkUI).observeAccountEvents(0xc8200ce180)
/home/travis/gopath/src/github.com/twstrike/coyim/gui/account_events.go:46 +0x91
created by github.com/twstrike/coyim/gui.(*gtkUI).Loop.func1
/home/travis/gopath/src/github.com/twstrike/coyim/gui/ui.go:267 +0xa8
goroutine 8 [chan receive]:
github.com/twstrike/coyim/session.observe(0xc82015a500)
/home/travis/gopath/src/github.com/twstrike/coyim/session/session_observer.go:9 +0xa6
created by github.com/twstrike/coyim/session.Factory
/home/travis/gopath/src/github.com/twstrike/coyim/session/session.go:127 +0x530
goroutine 9 [chan receive]:
github.com/twstrike/coyim/session.checkReconnect(0xc82015a500)
/home/travis/gopath/src/github.com/twstrike/coyim/session/reconnect.go:11 +0x6a
created by github.com/twstrike/coyim/session.Factory
/home/travis/gopath/src/github.com/twstrike/coyim/session/session.go:128 +0x552
goroutine 10 [chan receive]:
github.com/twstrike/coyim/session.observe(0xc82015a640)
/home/travis/gopath/src/github.com/twstrike/coyim/session/session_observer.go:9 +0xa6
created by github.com/twstrike/coyim/session.Factory
/home/travis/gopath/src/github.com/twstrike/coyim/session/session.go:127 +0x530
goroutine 11 [chan receive]:
github.com/twstrike/coyim/session.checkReconnect(0xc82015a640)
/home/travis/gopath/src/github.com/twstrike/coyim/session/reconnect.go:11 +0x6a
created by github.com/twstrike/coyim/session.Factory
/home/travis/gopath/src/github.com/twstrike/coyim/session/session.go:128 +0x552
goroutine 12 [chan receive]:
github.com/twstrike/coyim/session.observe(0xc82015a780)
/home/travis/gopath/src/github.com/twstrike/coyim/session/session_observer.go:9 +0xa6
created by github.com/twstrike/coyim/session.Factory
/home/travis/gopath/src/github.com/twstrike/coyim/session/session.go:127 +0x530
goroutine 13 [chan receive]:
github.com/twstrike/coyim/session.checkReconnect(0xc82015a780)
/home/travis/gopath/src/github.com/twstrike/coyim/session/reconnect.go:11 +0x6a
created by github.com/twstrike/coyim/session.Factory
/home/travis/gopath/src/github.com/twstrike/coyim/session/session.go:128 +0x552
goroutine 14 [chan receive]:
github.com/twstrike/coyim/gui.(*gtkUI).listenToToggleConnectAllAutomatically(0xc8200ce180)
/home/travis/gopath/src/github.com/twstrike/coyim/gui/ui.go:515 +0x43
created by github.com/twstrike/coyim/gui.(*gtkUI).configLoaded
/home/travis/gopath/src/github.com/twstrike/coyim/gui/ui.go:213 +0x102
goroutine 15 [chan receive]:
github.com/twstrike/coyim/gui.(*gtkUI).listenToSetShowAdvancedSettings(0xc8200ce180)
/home/travis/gopath/src/github.com/twstrike/coyim/gui/ui.go:531 +0x43
created by github.com/twstrike/coyim/gui.(*gtkUI).configLoaded
/home/travis/gopath/src/github.com/twstrike/coyim/gui/ui.go:214 +0x124
goroutine 21 [chan receive]:
github.com/twstrike/coyim/gui.(*account).runSessionObserver(0xc8201527e0)
/home/travis/gopath/src/github.com/twstrike/coyim/gui/account.go:229 +0x6c
created by github.com/twstrike/coyim/gui.(*account).observeConnectionEvents
/home/travis/gopath/src/github.com/twstrike/coyim/gui/account.go:253 +0x118
goroutine 22 [chan receive]:
github.com/twstrike/coyim/gui.(*account).runSessionObserver(0xc820152990)
/home/travis/gopath/src/github.com/twstrike/coyim/gui/account.go:229 +0x6c
created by github.com/twstrike/coyim/gui.(*account).observeConnectionEvents
/home/travis/gopath/src/github.com/twstrike/coyim/gui/account.go:253 +0x118
goroutine 23 [chan receive]:
github.com/twstrike/coyim/gui.(*account).runSessionObserver(0xc820152ab0)
/home/travis/gopath/src/github.com/twstrike/coyim/gui/account.go:229 +0x6c
created by github.com/twstrike/coyim/gui.(*account).observeConnectionEvents
/home/travis/gopath/src/github.com/twstrike/coyim/gui/account.go:253 +0x118
goroutine 24 [select]:
net/http.(*Transport).getConn(0xc8201c6000, 0xc8201ca000, 0x0, 0x1147020, 0x5, 0xc8201b4160, 0x18, 0x0, 0x0, 0x0)
/usr/local/go/src/net/http/transport.go:554 +0x663
net/http.(*Transport).RoundTrip(0xc8201c6000, 0xc8201ca000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/http/transport.go:228 +0x4ac
net/http.send(0xc8201ca000, 0x7f28e1343e40, 0xc8201c6000, 0xc8201bc060, 0x0, 0x0)
/usr/local/go/src/net/http/client.go:220 +0x52c
net/http.(*Client).send(0xc82004bac0, 0xc8201ca000, 0x23, 0x0, 0x0)
/usr/local/go/src/net/http/client.go:143 +0x15a
net/http.(*Client).doFollowingRedirects(0xc82004bac0, 0xc8201ca000, 0x12199d0, 0x0, 0x0, 0x0)
/usr/local/go/src/net/http/client.go:380 +0xbc0
net/http.(*Client).Get(0xc82004bac0, 0x1147020, 0x23, 0xc8201b413a, 0x0, 0x0)
/usr/local/go/src/net/http/client.go:306 +0xaa
github.com/twstrike/coyim/net.(*defaultTorManager).IsConnectionOverTor(0xc8200702c0, 0x0, 0x0, 0x4)
/home/travis/gopath/src/github.com/twstrike/coyim/net/tor.go:90 +0x169
github.com/twstrike/coyim/config.(*ConnectionPolicy).buildDialerFor(0xc82004bea0, 0xc82015a140, 0x7f28daaec028, 0xc8201be000, 0x0, 0x0, 0x0, 0x0)
/home/travis/gopath/src/github.com/twstrike/coyim/config/connection_policy.go:126 +0x7ae
github.com/twstrike/coyim/config.(*ConnectionPolicy).Connect(0xc82004bea0, 0xc8200108d0, 0x28, 0xc82015a140, 0x7f28daaec028, 0xc8201be000, 0x0, 0x0, 0x0, 0x0)
/home/travis/gopath/src/github.com/twstrike/coyim/config/connection_policy.go:190 +0x70
github.com/twstrike/coyim/session.(*session).Connect(0xc82015a500, 0xc8200108d0, 0x28, 0x7f28daaec028, 0xc8201be000, 0x0, 0x0)
/home/travis/gopath/src/github.com/twstrike/coyim/session/session.go:816 +0x2dd
github.com/twstrike/coyim/gui.(*gtkUI).connectWithPassword(0xc8200ce180, 0xc8201527e0, 0xc8200108d0, 0x28, 0x0, 0x0)
/home/travis/gopath/src/github.com/twstrike/coyim/gui/connection.go:50 +0x150
created by github.com/twstrike/coyim/gui.(*gtkUI).connectAccount
/home/travis/gopath/src/github.com/twstrike/coyim/gui/connection.go:19 +0xbe
goroutine 51 [runnable]:
github.com/twstrike/coyim/session.(*session).publishEventTo(0xc82015a500, 0xc82006e480, 0xe1e080, 0xc8201b40e0)
/home/travis/gopath/src/github.com/twstrike/coyim/session/events.go:32
created by github.com/twstrike/coyim/session.(*session).publishEvent
/home/travis/gopath/src/github.com/twstrike/coyim/session/events.go:63 +0x107
goroutine 52 [runnable]:
github.com/twstrike/coyim/session.(*session).publishEventTo(0xc82015a500, 0xc82006e5a0, 0xe1e080, 0xc8201b40e0)
/home/travis/gopath/src/github.com/twstrike/coyim/session/events.go:32
created by github.com/twstrike/coyim/session.(*session).publishEvent
/home/travis/gopath/src/github.com/twstrike/coyim/session/events.go:63 +0x107
Sorry about that. Investigating.
Would you mind going in to "Edit..." on one of the accounts, choose "Display all settings" and then go to the Proxies tab - please tell me if there are any proxies defined. If there are no proxies there, you should add a tor-auto proxy.
If you imported from Pidgin, you will only get tor setup if you had Tor configured in Pidgin as well.
@olabini.
My accounts were manually added. I removed Tor auto proxy as I did not want to route this particular account over Tor.
Adding the Tor proxy back in and no crash happens.
Am I right in saying that the choices for the moment are, use v0.3 and route over Tor or v0.2 if I don't want to route over Tor?
Sorry about this. I've just pushed a 0.3.1 tag. It should be ready for download in less than an hour. It fixes this specific problem. Sorry about the inconvenience.
I'll update this issue when the 0.3.1 is deployed.
appreciate it!
OK, it's been released - you can get it at https://coy.im
The 0.3 link or should I be seeing a 0.3.1?
You should see a 0.3.1 link now - it took a few minutes for the site to refresh.
I see it now. I worked around it by changing the URL in the mean time.
awesome works fine now. thanks!
When I try to connect any or all accounts (I imported various from pidgin) coyim crashes with the following stacktrace:
I already have tor locally running.
I'm running it on Fedora 23, downloaded latest release from your coy.im