letting bine handle bundled tor doesn't seem to work #32

Closed
opened 2018-12-19 18:08:59 +00:00 by erinn · 2 comments
Owner
  • when starting the app up for the first time, tor was already running in a zombied process?? caused a crash (also btw it seems to leave tor hanging every single run??)

2018/12/18 10:52:32 [!!!] Could not start Tor: Error on start: read tcp 127.0.0.1:47160->127.0.0.1:42847: read: connection reset by peer (also got error trying to close: Process wait failed: exit status 1)
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x678de3]

goroutine 6 [running]:
github.com/cretz/bine/control.(*Conn).debugEnabled(...)
/home/erinn/go/src/github.com/cretz/bine/control/conn.go:91
github.com/cretz/bine/control.(*Conn).SendRequest(0x0, 0xc4200260a0, 0x9e, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/home/erinn/go/src/github.com/cretz/bine/control/conn.go:56 +0x43
github.com/cretz/bine/control.(*Conn).AddOnion(0x0, 0xc420049be8, 0x0, 0x0, 0x1)
/home/erinn/go/src/github.com/cretz/bine/control/cmd_onion.go:173 +0x3b3
github.com/cretz/bine/tor.(*Tor).Listen(0xc4200cc180, 0x8e40a0, 0xc420094050, 0xc420049d58, 0x8, 0x18, 0xc42000c040)
/home/erinn/go/src/github.com/cretz/bine/tor/listen.go:227 +0xbfc
git.openprivacy.ca/openprivacy/libricochet-go/connectivity.(*torProvider).Listen(0xc42009a140, 0x838640, 0xc42000c040, 0x2696, 0x0, 0x0, 0x0, 0x0)
/home/erinn/go/src/git.openprivacy.ca/openprivacy/libricochet-go/connectivity/torProvider.go:103 +0x14e
cwtch.im/cwtch/peer.(*cwtchPeer).listenFn(0xc420112120, 0x0, 0x0)
/home/erinn/go/src/cwtch.im/cwtch/peer/cwtch_peer.go:320 +0xbf
cwtch.im/cwtch/peer.(*cwtchPeer).Listen.func1(0xc420112120)
/home/erinn/go/src/cwtch.im/cwtch/peer/cwtch_peer.go:306 +0x53
created by cwtch.im/cwtch/peer.(*cwtchPeer).Listen
/home/erinn/go/src/cwtch.im/cwtch/peer/cwtch_peer.go:304 +0x3f
erinn@water:~/go/src/cwtch.im/ui$ deploy/linux/ui.sh

- when starting the app up for the first time, tor was already running in a zombied process?? caused a crash (also btw it seems to leave tor hanging every single run??) 2018/12/18 10:52:32 [!!!] Could not start Tor: Error on start: read tcp 127.0.0.1:47160->127.0.0.1:42847: read: connection reset by peer (also got error trying to close: Process wait failed: exit status 1) panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x678de3] goroutine 6 [running]: github.com/cretz/bine/control.(*Conn).debugEnabled(...) /home/erinn/go/src/github.com/cretz/bine/control/conn.go:91 github.com/cretz/bine/control.(*Conn).SendRequest(0x0, 0xc4200260a0, 0x9e, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0) /home/erinn/go/src/github.com/cretz/bine/control/conn.go:56 +0x43 github.com/cretz/bine/control.(*Conn).AddOnion(0x0, 0xc420049be8, 0x0, 0x0, 0x1) /home/erinn/go/src/github.com/cretz/bine/control/cmd_onion.go:173 +0x3b3 github.com/cretz/bine/tor.(*Tor).Listen(0xc4200cc180, 0x8e40a0, 0xc420094050, 0xc420049d58, 0x8, 0x18, 0xc42000c040) /home/erinn/go/src/github.com/cretz/bine/tor/listen.go:227 +0xbfc git.openprivacy.ca/openprivacy/libricochet-go/connectivity.(*torProvider).Listen(0xc42009a140, 0x838640, 0xc42000c040, 0x2696, 0x0, 0x0, 0x0, 0x0) /home/erinn/go/src/git.openprivacy.ca/openprivacy/libricochet-go/connectivity/torProvider.go:103 +0x14e cwtch.im/cwtch/peer.(*cwtchPeer).listenFn(0xc420112120, 0x0, 0x0) /home/erinn/go/src/cwtch.im/cwtch/peer/cwtch_peer.go:320 +0xbf cwtch.im/cwtch/peer.(*cwtchPeer).Listen.func1(0xc420112120) /home/erinn/go/src/cwtch.im/cwtch/peer/cwtch_peer.go:306 +0x53 created by cwtch.im/cwtch/peer.(*cwtchPeer).Listen /home/erinn/go/src/cwtch.im/cwtch/peer/cwtch_peer.go:304 +0x3f erinn@water:~/go/src/cwtch.im/ui$ deploy/linux/ui.sh
Owner

Updating this as a must for alpha. App needs to shutdown properly, currently leaves tor hanging / doesn't shutdown tor which means I can't restart without killing tor.

Updating this as a must for alpha. App needs to shutdown properly, currently leaves tor hanging / doesn't shutdown tor which means I can't restart without killing tor.
Owner

Fixed!

Fixed!
sarah closed this issue 2019-02-04 23:20:03 +00:00
This repo is archived. You cannot comment on issues.
No Milestone
No Assignees
2 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cwtch.im/ui#32
No description provided.