v2ray-core icon indicating copy to clipboard operation
v2ray-core copied to clipboard

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

Open 4-FLOSS-Free-Libre-Open-Source-Software opened this issue 3 months ago • 0 comments

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