segfault loading profile #312

Closed
opened 2020-07-01 15:46:24 +00:00 by hephu · 2 comments

Hi I cloned and ran the latest cwtch and I'm seeing segfault errors.

Welcome to Cwtch!
If this if your first time you should create a profile by running /new-profile
/load-profiles will prompt you for a password and load profiles from storage
/help will show you other available commands
There is full [TAB] completion support

cwtch> /new-profile test
** WARNING: PASSWORDS CANNOT BE RECOVERED! **
Enter a password to encrypt the profile:
Re-enter password: 2020/07/01 15:11:33 app/app.go [DBUG] CreatePeer(test)
cwtch> 2020/07/01 15:11:33 v1/profile_store.go [DBUG] eventHandler()!
2020/07/01 15:11:33 app/applets.go [DBUG] appletPeers LaunchPeers
2020/07/01 15:11:33 app/applets.go [DBUG] Launching bww2tawnt2kpkc2ns4kh3b42mkcdttvjdq6pod3r5cszo672fabgznid
2020/07/01 15:11:33 peer/cwtch_peer.go [DBUG] cwtchPeer Listen sending ProtocolEngineStartListen
2020/07/01 15:11:33 app/applets.go [DBUG] done Listen() for bww2tawnt2kpkc2ns4kh3b42mkcdttvjdq6pod3r5cszo672fabgznid
2020/07/01 15:11:33 app/applets.go [DBUG] done StartPeersConnections() for bww2tawnt2kpkc2ns4kh3b42mkcdttvjdq6pod3r5cszo672fabgznid
2020/07/01 15:11:33 app/applets.go [DBUG] done StartGroupConnections() for bww2tawnt2kpkc2ns4kh3b42mkcdttvjdq6pod3r5cszo672fabgznid

Loaded profile test (bww2tawnt2kpkc2ns4kh3b42mkcdttvjdq6pod3r5cszo672fabgznid)

1 profiles active now
You should run select-profile to use a profile or list-profiles to view loaded profiles
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x58 pc=0x662e34]

goroutine 22 [running]:
git.openprivacy.ca/openprivacy/connectivity/tor.(*torProvider).Listen(0xc0000887e0, 0x72aec0, 0xc00000eae0, 0x2696, 0x0, 0x0, 0x0, 0x0)
/home/user/go/pkg/mod/git.openprivacy.ca/openprivacy/connectivity@v1.1.2/tor/torProvider.go:176 +0x424
cwtch.im/tapir/networks/tor.(*BaseOnionService).Listen(0xc000088310, 0x7e7c80, 0xc000092480, 0x0, 0x0)
/home/user/go/pkg/mod/cwtch.im/tapir@v0.1.18/networks/tor/BaseOnionService.go:129 +0xb2
cwtch.im/cwtch/protocol/connections.(*engine).listenFn(0xc0004ca0c0)
/home/user/go/src/cwtch.im/cwtch/protocol/connections/engine.go:206 +0x76
created by cwtch.im/cwtch/protocol/connections.(*engine).eventHandler
/home/user/go/src/cwtch.im/cwtch/protocol/connections/engine.go:167 +0xe46
exit status

Hi I cloned and ran the latest cwtch and I'm seeing segfault errors. > Welcome to Cwtch! > If this if your first time you should create a profile by running `/new-profile` > `/load-profiles` will prompt you for a password and load profiles from storage > `/help` will show you other available commands > There is full [TAB] completion support > > cwtch> /new-profile test > ** WARNING: PASSWORDS CANNOT BE RECOVERED! ** > Enter a password to encrypt the profile: > Re-enter password: 2020/07/01 15:11:33 app/app.go [DBUG] CreatePeer(test) > cwtch> 2020/07/01 15:11:33 v1/profile_store.go [DBUG] eventHandler()! > 2020/07/01 15:11:33 app/applets.go [DBUG] appletPeers LaunchPeers > 2020/07/01 15:11:33 app/applets.go [DBUG] Launching bww2tawnt2kpkc2ns4kh3b42mkcdttvjdq6pod3r5cszo672fabgznid > 2020/07/01 15:11:33 peer/cwtch_peer.go [DBUG] cwtchPeer Listen sending ProtocolEngineStartListen > 2020/07/01 15:11:33 app/applets.go [DBUG] done Listen() for bww2tawnt2kpkc2ns4kh3b42mkcdttvjdq6pod3r5cszo672fabgznid > 2020/07/01 15:11:33 app/applets.go [DBUG] done StartPeersConnections() for bww2tawnt2kpkc2ns4kh3b42mkcdttvjdq6pod3r5cszo672fabgznid > 2020/07/01 15:11:33 app/applets.go [DBUG] done StartGroupConnections() for bww2tawnt2kpkc2ns4kh3b42mkcdttvjdq6pod3r5cszo672fabgznid > > Loaded profile test (bww2tawnt2kpkc2ns4kh3b42mkcdttvjdq6pod3r5cszo672fabgznid) > > 1 profiles active now > You should run `select-profile` to use a profile or `list-profiles` to view loaded profiles > panic: runtime error: invalid memory address or nil pointer dereference > [signal SIGSEGV: segmentation violation code=0x1 addr=0x58 pc=0x662e34] > > goroutine 22 [running]: > git.openprivacy.ca/openprivacy/connectivity/tor.(*torProvider).Listen(0xc0000887e0, 0x72aec0, 0xc00000eae0, 0x2696, 0x0, 0x0, 0x0, 0x0) > /home/user/go/pkg/mod/git.openprivacy.ca/openprivacy/connectivity@v1.1.2/tor/torProvider.go:176 +0x424 > cwtch.im/tapir/networks/tor.(*BaseOnionService).Listen(0xc000088310, 0x7e7c80, 0xc000092480, 0x0, 0x0) > /home/user/go/pkg/mod/cwtch.im/tapir@v0.1.18/networks/tor/BaseOnionService.go:129 +0xb2 > cwtch.im/cwtch/protocol/connections.(*engine).listenFn(0xc0004ca0c0) > /home/user/go/src/cwtch.im/cwtch/protocol/connections/engine.go:206 +0x76 > created by cwtch.im/cwtch/protocol/connections.(*engine).eventHandler > /home/user/go/src/cwtch.im/cwtch/protocol/connections/engine.go:167 +0xe46 > exit status
sarah added the
bug
label 2020-07-01 22:53:33 +00:00
Owner

Thanks for reporting!

Background: The CLI application is pretty outdated at this point with much of the refactoring being pushed by the UI https://git.openprivacy.ca/cwtch.im/ui

That being said, I really do want a functioning CLI app so this likely needs a design revisit to work out if it's worth saving or whether it's worth breaking this out into a new tool built on the library.

Thanks for reporting! Background: The CLI application is pretty outdated at this point with much of the refactoring being pushed by the UI https://git.openprivacy.ca/cwtch.im/ui That being said, I really do want a functioning CLI app so this likely needs a design revisit to work out if it's worth saving or whether it's worth breaking this out into a new tool built on the library.
sarah added the
design
label 2020-07-01 22:55:51 +00:00
Owner

This code has been removed, closing in favour of #445

This code has been removed, closing in favour of https://git.openprivacy.ca/cwtch.im/cwtch/issues/445
sarah closed this issue 2022-07-05 23:23:52 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
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/cwtch#312
No description provided.