Hyprspace: Crash on malformed(?) packet #31

Closed
opened 2023-06-05 20:57:12 +03:00 by max · 4 comments
max commented 2023-06-05 20:57:12 +03:00 (Migrated from git.privatevoid.net)

From https://monitoring.privatevoid.net/goto/yp-9WvlVg?orgId=1

2023-06-05 17:21:54.796	
	github.com/libp2p/go-libp2p@v0.26.4/p2p/host/basic/basic_host.go:434 +0x5f8
2023-06-05 17:21:54.796	
created by github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler

2023-06-05 17:21:54.796	
	github.com/libp2p/go-libp2p@v0.26.4/p2p/host/basic/basic_host.go:593 +0x70
2023-06-05 17:21:54.796	
github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).SetStreamHandler.func1({0x4001c80bd0, 0x10}, {0xffff840894d8?, 0x40054d1d00})
2023-06-05 17:21:54.796	
	github.com/hyprspace/hyprspace/cli/up.go:332 +0x450
2023-06-05 17:21:54.796	
github.com/hyprspace/hyprspace/cli.streamHandler({0xfbdc00, 0x40054d1d00})
2023-06-05 17:21:54.796	
goroutine 16808746 [running]:
2023-06-05 17:21:54.796	
panic: runtime error: slice bounds out of range [:24012] with capacity 1420
2023-06-05 17:21:54.835	
hyprspace.service: Main process exited, code=exited, status=2/INVALIDARGUMENT

Running d6caf48aed2b2283c61632f2a86dc7940d4d5067

From https://monitoring.privatevoid.net/goto/yp-9WvlVg?orgId=1 ``` 2023-06-05 17:21:54.796 github.com/libp2p/go-libp2p@v0.26.4/p2p/host/basic/basic_host.go:434 +0x5f8 2023-06-05 17:21:54.796 created by github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler 2023-06-05 17:21:54.796 github.com/libp2p/go-libp2p@v0.26.4/p2p/host/basic/basic_host.go:593 +0x70 2023-06-05 17:21:54.796 github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).SetStreamHandler.func1({0x4001c80bd0, 0x10}, {0xffff840894d8?, 0x40054d1d00}) 2023-06-05 17:21:54.796 github.com/hyprspace/hyprspace/cli/up.go:332 +0x450 2023-06-05 17:21:54.796 github.com/hyprspace/hyprspace/cli.streamHandler({0xfbdc00, 0x40054d1d00}) 2023-06-05 17:21:54.796 goroutine 16808746 [running]: 2023-06-05 17:21:54.796 panic: runtime error: slice bounds out of range [:24012] with capacity 1420 2023-06-05 17:21:54.835 hyprspace.service: Main process exited, code=exited, status=2/INVALIDARGUMENT ``` Running `d6caf48aed2b2283c61632f2a86dc7940d4d5067`
max commented 2023-06-05 21:03:35 +03:00 (Migrated from git.privatevoid.net)

changed the description

changed the description
max commented 2023-06-05 21:04:09 +03:00 (Migrated from git.privatevoid.net)

changed the description

changed the description
max commented 2023-06-05 21:07:30 +03:00 (Migrated from git.privatevoid.net)

Found 3 occurences of that error
https://monitoring.privatevoid.net/goto/Sl5ZMDlVR?orgId=1

2023-05-25 15:03:53.706	panic: runtime error: slice bounds out of range [:37479] with capacity 1420
2023-05-29 17:45:06.894	panic: runtime error: slice bounds out of range [:36988] with capacity 1420
2023-06-05 17:21:54.796	panic: runtime error: slice bounds out of range [:24012] with capacity 1420
Found 3 occurences of that error https://monitoring.privatevoid.net/goto/Sl5ZMDlVR?orgId=1 ``` 2023-05-25 15:03:53.706 panic: runtime error: slice bounds out of range [:37479] with capacity 1420 2023-05-29 17:45:06.894 panic: runtime error: slice bounds out of range [:36988] with capacity 1420 2023-06-05 17:21:54.796 panic: runtime error: slice bounds out of range [:24012] with capacity 1420 ```
max commented 2024-06-07 03:12:36 +03:00 (Migrated from git.privatevoid.net)

Race condition in packet sending. Fixed upstream.

Race condition in packet sending. Fixed upstream.
max (Migrated from git.privatevoid.net) closed this issue 2024-06-07 03:12:39 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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: privatevoid.net/depot#31
No description provided.