Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

panic: runtime error: slice bounds out of range #297

Closed
5dxj8 opened this issue Jan 17, 2023 · 10 comments
Closed

panic: runtime error: slice bounds out of range #297

5dxj8 opened this issue Jan 17, 2023 · 10 comments
Labels
🐞 bug Something isn't working

Comments

@5dxj8
Copy link

5dxj8 commented Jan 17, 2023

gobin模式

panic: runtime error: slice bounds out of range [:24958] with length 4096

goroutine 16 [running]:
ecapture/user/event.(*GoSSLEvent).String(0xc0001da690)
/home/runner/work/ecapture/ecapture/user/event/event_gossl.go:29 +0x12d
ecapture/user/module.(*Module).Dispatcher(0xc0000c0630, {0x97a1b8, 0xc000bd5300})
/home/runner/work/ecapture/ecapture/user/module/imodule.go:298 +0xfd
ecapture/user/module.(*Module).perfEventReader.func1()
/home/runner/work/ecapture/ecapture/user/module/imodule.go:231 +0x2eb
created by ecapture/user/module.(*Module).perfEventReader
/home/runner/work/ecapture/ecapture/user/module/imodule.go:199 +0x1a5

@cfc4n cfc4n added the 🐞 bug Something isn't working label Jan 18, 2023
@cfc4n
Copy link
Member

cfc4n commented Jan 18, 2023

what's the reproduce steps, what's your env?

cfc4n added a commit that referenced this issue Jan 18, 2023
cfc4n added a commit that referenced this issue Jan 19, 2023
@cfc4n
Copy link
Member

cfc4n commented Jan 19, 2023

@5dxj8 fixed, please try again. but not released yet.

@5dxj8
Copy link
Author

5dxj8 commented Jan 20, 2023

panic: runtime error: slice bounds out of range [:2904] with capacity 0

goroutine 66 [running]:
ecapture/user/event.(*GoSSLEvent).StringHex(0x0?)
/root/ecapture/user/event/event_gossl.go:44 +0x1af
ecapture/user/module.(*Module).Dispatcher(0xc00011a630, {0x9e09a0, 0xc0000a03c0})
/root/ecapture/user/module/imodule.go:296 +0xb4
ecapture/user/module.(*Module).perfEventReader.func1()
/root/ecapture/user/module/imodule.go:231 +0x2da
created by ecapture/user/module.(*Module).perfEventReader
/root/ecapture/user/module/imodule.go:199 +0x19e

@5dxj8
Copy link
Author

5dxj8 commented Jan 20, 2023

panic: runtime error: slice bounds out of range [:31] with capacity 0

goroutine 51 [running]:
ecapture/user/event.(*GoSSLEvent).String(0x0?)
/root/ecapture/user/event/event_gossl.go:38 +0x119
ecapture/user/module.(*Module).Dispatcher(0xc000112840, {0x9e09a0, 0xc00020abc0})
/root/ecapture/user/module/imodule.go:298 +0xfd
ecapture/user/module.(*Module).perfEventReader.func1()
/root/ecapture/user/module/imodule.go:231 +0x2da
created by ecapture/user/module.(*Module).perfEventReader
/root/ecapture/user/module/imodule.go:199 +0x19e

@cfc4n
Copy link
Member

cfc4n commented Jan 20, 2023

Could you give the step to reproduce the behavio?

@5dxj8
Copy link
Author

5dxj8 commented Jan 20, 2023

#https://github.com/ginuerzh/gost
gost -L=tls://:8080
ecapture tls --hex --gobin=./gost

@cfc4n
Copy link
Member

cfc4n commented Jan 28, 2023

cannot reproduce.

@5dxj8
Copy link
Author

5dxj8 commented Feb 1, 2023

#server
gost -L=:8080
ecapture tls --hex --gobin=./gost

#client browser setting proxy server:8080
request https website

@cfc4n
Copy link
Member

cfc4n commented Feb 1, 2023

client browser setting proxy server:8080

is it a socks5 proxy?

and what's the app used to request https website? chrome ? curl ?

@cfc4n
Copy link
Member

cfc4n commented Feb 7, 2023

ping?

@cfc4n cfc4n closed this as completed Feb 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants