Opened 7 months ago

Closed 2 months ago

#30494 closed defect (wontfix)

Crazy snowflake-client segfault

Reported by: cypherpunks Owned by:
Priority: Medium Milestone:
Component: Circumvention/Snowflake Version:
Severity: Normal Keywords:
Cc: cohosh, dcf, arlolra Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Child Tickets

Attachments (1)

Change History (4)

comment:1 Changed 7 months ago by dcf

Cc: dcf added
Description: modified (diff)

Here's one of the panics extracted from the log.

fatal error: unexpected signal during runtime execution 
[signal SIGSEGV: segmentation violation code=0x1 addr=0xffffffffffffff83 pc=0x8bbd53] 
 
runtime stack: 
runtime.throw(0xdf0c50, 0x2a) 
	/var/tmp/dist/go/src/runtime/panic.go:608 +0x72 
runtime.sigpanic() 
	/var/tmp/dist/go/src/runtime/signal_unix.go:374 +0x2f2 
 
goroutine 21 [syscall]: 
runtime.cgocall(0x66f3b0, 0xc00004bc40, 0xc00007ccf0) 
	/var/tmp/dist/go/src/runtime/cgocall.go:128 +0x5e fp=0xc00004bc08 sp=0xc00004bbd0 pc=0x4440be 
github.com/keroserene/go-webrtc._Cfunc_CGO_InitializePeer(0x1, 0x0) 
	_cgo_gotypes.go:581 +0x4e fp=0xc00004bc40 sp=0xc00004bc08 pc=0x658bbe 
github.com/keroserene/go-webrtc.NewPeerConnection(0xc000094340, 0x0, 0x0, 0x0) 
	/var/tmp/dist/gopath/src/github.com/keroserene/go-webrtc/peerconnection.go:157 +0x97 fp=0xc00004bcb0 sp=0xc00004bc40 pc=0x65b487 
main.(*WebRTCPeer).preparePeerConnection(0xc000126000, 0x2, 0x2) 
	/var/tmp/build/snowflake-6077141f4aff/client/webrtc.go:157 +0x49 fp=0xc00004bd28 sp=0xc00004bcb0 pc=0x66bdf9 
main.(*WebRTCPeer).Connect(0xc000126000, 0xc00007cdb0, 0xc000126000) 
	/var/tmp/build/snowflake-6077141f4aff/client/webrtc.go:135 +0xa4 fp=0xc00004bd78 sp=0xc00004bd28 pc=0x66bca4 
main.WebRTCDialer.Catch(0xc00007cdb0, 0xc000094340, 0xc000016200, 0x37, 0x0, 0x0) 
	/var/tmp/build/snowflake-6077141f4aff/client/rendezvous.go:143 +0xb2 fp=0xc00004bda8 sp=0xc00004bd78 pc=0x668b22 
main.(*WebRTCDialer).Catch(0xc00007acf0, 0x2, 0x2, 0xc000024020, 0x2) 
	:1 +0x45 fp=0xc00004bde8 sp=0xc00004bda8 pc=0x66dee5 
main.(*Peers).Collect(0xc000094300, 0x0, 0x0, 0x0, 0x0) 
	/var/tmp/build/snowflake-6077141f4aff/client/peers.go:56 +0x306 fp=0xc00004bed8 sp=0xc00004bde8 pc=0x6678d6 
main.ConnectLoop(0xe2db80, 0xc000094300) 
	/var/tmp/build/snowflake-6077141f4aff/client/snowflake.go:38 +0x49 fp=0xc00004bfd0 sp=0xc00004bed8 pc=0x6692d9 
runtime.goexit() 
	/var/tmp/dist/go/src/runtime/asm_amd64.s:1333 +0x1 fp=0xc00004bfd8 sp=0xc00004bfd0 pc=0x498101 
created by main.main 
	/var/tmp/build/snowflake-6077141f4aff/client/snowflake.go:186 +0x66a 
 
goroutine 1 [runnable]: 
os/signal.signal_enable(0xd3d6a9540000000f) 
	/var/tmp/dist/go/src/runtime/sigqueue.go:207 +0x6f 
os/signal.enableSignal(0xf) 
	/var/tmp/dist/go/src/os/signal/signal_unix.go:50 +0x2a 
os/signal.Notify.func1(0xf) 
	/var/tmp/dist/go/src/os/signal/signal.go:135 +0x8d 
os/signal.Notify(0xc000092300, 0xc0000d5eb8, 0x1, 0x1) 
	/var/tmp/dist/go/src/os/signal/signal.go:147 +0x148 
main.main() 
	/var/tmp/build/snowflake-6077141f4aff/client/snowflake.go:219 +0x888 
 
goroutine 19 [syscall]: 
os/signal.signal_recv(0x0) 
	/var/tmp/dist/go/src/runtime/sigqueue.go:139 +0x9c 
os/signal.loop() 
	/var/tmp/dist/go/src/os/signal/signal_unix.go:23 +0x22 
created by os/signal.init.0 
	/var/tmp/dist/go/src/os/signal/signal_unix.go:29 +0x41 
 
goroutine 20 [select]: 
main.(*BytesSyncLogger).Log(0xc000094480) 
	/var/tmp/build/snowflake-6077141f4aff/client/util.go:59 +0x182 
created by main.main 
	/var/tmp/build/snowflake-6077141f4aff/client/snowflake.go:184 +0x639 
 
goroutine 22 [runnable]: 
main.socksAcceptLoop(0xc00007ad40, 0xe2db80, 0xc000094300, 0x0, 0x0) 
	/var/tmp/build/snowflake-6077141f4aff/client/snowflake.go:54 
created by main.main 
	/var/tmp/build/snowflake-6077141f4aff/client/snowflake.go:207 +0xbe8 

comment:2 Changed 6 months ago by arlolra

Cc: arlolra added

comment:3 Changed 2 months ago by arlolra

Resolution: wontfix
Status: newclosed

This looks like it was happening in cgo, which we are no longer using after #28942

Note: See TracTickets for help on using tickets.