Skip to content
New issue

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

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

Already on GitHub? # to your account

panic: runtime error: invalid memory address or nil pointer dereference 这个bug的原因应该就是函数调用时传了一个空值 #626

Closed
xybigboy opened this issue Sep 4, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@xybigboy
Copy link

xybigboy commented Sep 4, 2020

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x9ae328]

goroutine 62 [running]:
ehang.io/nps/server/proxy.(*httpServer).handleHttp.func2(0xc00016ec10, 0xc00016ebd7, 0xc0000e0c50, 0xc00015cb70, 0xc0003f3c50, 0xc0000d2b40, 0xc0003f3c58)
/go/src/ehang.io/nps/server/proxy/http.go:191 +0x278
created by ehang.io/nps/server/proxy.(*httpServer).handleHttp
/go/src/ehang.io/nps/server/proxy/http.go:169 +0xb12

@xybigboy xybigboy added the bug Something isn't working label Sep 4, 2020
@xybigboy
Copy link
Author

xybigboy commented Sep 4, 2020

看到了 之前有人提过 开启http_cache 导致的

@ffdfgdfg
Copy link
Contributor

ffdfgdfg commented Sep 9, 2020

是的拿到了个空指针,但是就没找到哪里出来的

kiririx pushed a commit to kiririx/nps that referenced this issue Jul 26, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants