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

Crash report: panic: runtime error: invalid memory address or nil pointer dereference V2Ray 5.15.1 #2972

Open
4-FLOSS-Free-Libre-Open-Source-Software opened this issue Apr 14, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@4-FLOSS-Free-Libre-Open-Source-Software
Copy link
Contributor

What version of V2Ray are you using?

V2Ray 5.15.1 (V2Fly, a community-driven edition of V2Ray.) Custom (go1.22.1 linux/amd64)

What's your scenario of using V2Ray?

fakedns client

What problems have you encountered?

crash

What's your expectation?

Avoid crash.

Please attach your configuration here

Server configuration:

// Please attach your server configuration here.

Client configuration:

// Please attach your client configuration here.

Please attach error logs here

V2Ray 5.15.1 (V2Fly, a community-driven edition of V2Ray.) Custom (go1.22.1 linux/amd64)
A unified platform for anti-censorship.
Using confdir from env: /etc/v2ray
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x6e2f60]

goroutine 97 [running]:
net.networkNumberAndMask(0x8?)
        net/ip.go:425
net.(*IPNet).Contains(0xc000c16004?, {0xc000c16044, 0x4, 0x8852e5?})
        net/ip.go:449 +0x25
github.com/v2fly/v2ray-core/v5/app/dns/fakedns.(*Holder).GetDomainFromFakeDNS(0xc000a99b30, {0x17eb6e0, 0xc000c16004})
        github.com/v2fly/v2ray-core/v5/app/dns/fakedns/fake.go:139 +0x65
github.com/v2fly/v2ray-core/v5/app/dns/fakedns.(*HolderMulti).GetDomainFromFakeDNS(...)
        github.com/v2fly/v2ray-core/v5/app/dns/fakedns/fake.go:182
github.com/v2fly/v2ray-core/v5/app/dns.(*FakeDNSEngine).GetDomainFromFakeDNS(0xc000c0a2a0?, {0x17eb6e0, 0xc000c16004})
        github.com/v2fly/v2ray-core/v5/app/dns/fakedns.go:61 +0x65
github.com/v2fly/v2ray-core/v5/app/dispatcher.newFakeDNSSniffer.func1({0x17eb5c8, 0xc000c0a2a0}, {0x18?, 0x1452a60?, 0x1452a60?})
        github.com/v2fly/v2ray-core/v5/app/dispatcher/fakednssniffer.go:34 +0x92
github.com/v2fly/v2ray-core/v5/app/dispatcher.(*Sniffer).SniffMetadata(0xc000c1c168, {0x17eb5c8, 0xc000c0a2a0})
        github.com/v2fly/v2ray-core/v5/app/dispatcher/sniffer.go:94 +0x14c
github.com/v2fly/v2ray-core/v5/app/dispatcher.sniffer({0x17eb5c8, 0xc000c0a2a0}, 0xc000c0a330, 0x1, 0x2)
        github.com/v2fly/v2ray-core/v5/app/dispatcher/default.go:247 +0x126
github.com/v2fly/v2ray-core/v5/app/dispatcher.(*DefaultDispatcher).Dispatch.func1()
        github.com/v2fly/v2ray-core/v5/app/dispatcher/default.go:223 +0x110
created by github.com/v2fly/v2ray-core/v5/app/dispatcher.(*DefaultDispatcher).Dispatch in goroutine 64
        github.com/v2fly/v2ray-core/v5/app/dispatcher/default.go:218 +0x32b

Server error log:

// Please attach your server error log here.

Client error log:

// Please attach your client error log here.

Please attach access log here

// Please attach your server access log here.

Other configurations (such as Nginx) and logs here

If V2Ray cannot start up, please attach output from --test command

If V2Ray service is abnormal, please attach journal log here

@AkinoKaede AkinoKaede added the bug Something isn't working label Apr 17, 2024
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