Skip to content

[Bug] kernel panic #2467

@Ham3D

Description

@Ham3D

Verify steps

  • I have read the documentation and understand the meaning of all the configuration items I have written, rather than just piling up seemingly useful options or default values.
  • I have carefully reviewed the documentation and have not resolved the issue.
  • I have searched the Issue Tracker for the issue I want to raise and did not find it.
  • I am a non-Chinese user.
  • I have tested with the latest Alpha branch version, and the issue still persists.
  • I have provided the server and client configuration files and processes that can reproduce the issue locally, rather than a sanitized complex client configuration file.
  • I provided the simplest configuration that can be used to reproduce the errors in my report, rather than relying on remote servers or piling on a lot of unnecessary configurations for reproduction.
  • I have provided complete logs, rather than just the parts I think are useful out of confidence in my own intelligence.
  • I have directly reproduced the error using the Mihomo command-line program, rather than using other tools or scripts.

Operating System

Linux

System Version

Alpine 3.22.0

Mihomo Version

Mihomo Meta v1.19.18 linux amd64 with go1.25.5 Sun Dec 21 13:16:02 UTC 2025
Use tags: with_gvisor

Configuration File

noting special here

Description

I was using it normally, and suddenly it just crashed!

Reproduction Steps

I'm not sure; this happened once in some months of usage on my server.

Logs

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

goroutine 32 [running]:
github.com/metacubex/gvisor/pkg/tcpip/transport/tcp.(*Endpoint).onICMPError(0xc0008c2008, {0x19a1540, 0x2b05aa0}, {0x19a7ce0, 0x2b05aa0}, 0xc001e0e640)
        github.com/metacubex/[email protected]/pkg/tcpip/transport/tcp/endpoint.go:2928 +0x202
github.com/metacubex/gvisor/pkg/tcpip/transport/tcp.(*Endpoint).HandleError(0xc0008c2008, {0x19a7ce0, 0x2b05aa0}, 0xc001e0e640)
        github.com/metacubex/[email protected]/pkg/tcpip/transport/tcp/endpoint.go:2970 +0x9e
github.com/metacubex/gvisor/pkg/tcpip/stack.(*endpointsByNIC).handleError(0xc0049a8b10, 0xc000146008, {0x1bb, {{0xc6, 0x12, 0x0, 0x9, 0x0, 0x0, 0x0, ...}, ...}, ...}, ...)
        github.com/metacubex/[email protected]/pkg/tcpip/stack/transport_demuxer.go:213 +0x122
github.com/metacubex/gvisor/pkg/tcpip/stack.(*transportDemuxer).deliverError(0xc000363758?, 0xc000146008, 0x106968c?, 0x0?, {0x19a7ce0, 0x2b05aa0}, 0xc001e0e640, {0x1bb, {{0xc6, 0x12, ...}, ...}, ...})
        github.com/metacubex/[email protected]/pkg/tcpip/stack/transport_demuxer.go:655 +0x11d
github.com/metacubex/gvisor/pkg/tcpip/stack.(*nic).DeliverTransportError(0xc000146008, {{0xc6, 0x12, 0x0, 0x9, 0x0, 0x0, 0x0, 0x0, 0x0, ...}, ...}, ...)
        github.com/metacubex/[email protected]/pkg/tcpip/stack/nic.go:932 +0x198
github.com/metacubex/gvisor/pkg/tcpip/network/ipv4.(*endpoint).handleControl(0xc000133208, {0x19a7ce0, 0x2b05aa0}, 0xc001e0e640)
        github.com/metacubex/[email protected]/pkg/tcpip/network/ipv4/icmp.go:279 +0x272
github.com/metacubex/gvisor/pkg/tcpip/network/ipv4.(*endpoint).handleICMP(0xc000133208, 0xc001e0e640)
        github.com/metacubex/[email protected]/pkg/tcpip/network/ipv4/icmp.go:491 +0x5dd
github.com/metacubex/gvisor/pkg/tcpip/network/ipv4.(*endpoint).deliverPacketLocally(0xc000133208, {0xc0013de000, 0x14, 0x10000}, 0xc001e0e640, {0x0?, 0x4?})
        github.com/metacubex/[email protected]/pkg/tcpip/network/ipv4/ipv4.go:1300 +0x8f6
github.com/metacubex/gvisor/pkg/tcpip/network/ipv4.(*endpoint).handleValidatedPacket(0xc000133208, {0xc0013de000, 0x14, 0x10000}, 0xc001e0e640, {0x0, 0x0})
        github.com/metacubex/[email protected]/pkg/tcpip/network/ipv4/ipv4.go:1157 +0x667
github.com/metacubex/gvisor/pkg/tcpip/network/ipv4.(*endpoint).HandlePacket(0xc000133208, 0xc001e0e640)
        github.com/metacubex/[email protected]/pkg/tcpip/network/ipv4/ipv4.go:880 +0x3e8
github.com/metacubex/gvisor/pkg/tcpip/stack.(*nic).DeliverNetworkPacket(0xc000146008, 0x800, 0xc001e0e640)
        github.com/metacubex/[email protected]/pkg/tcpip/stack/nic.go:788 +0x10c
github.com/metacubex/sing-tun.(*networkDispatcherFilter).DeliverNetworkPacket(0xc000304380, 0x800, 0xc001e0e640)
        github.com/metacubex/[email protected]/stack_gvisor_filter.go:53 +0x116
github.com/metacubex/gvisor/pkg/tcpip/stack/gro.(*GRO).handlePacket(...)
        github.com/metacubex/[email protected]/pkg/tcpip/stack/gro/gro.go:561
github.com/metacubex/gvisor/pkg/tcpip/stack/gro.(*GRO).Enqueue(0xc000114308?, 0xc0005f1f48?)
        github.com/metacubex/[email protected]/pkg/tcpip/stack/gro/gro.go:336 +0x72
github.com/metacubex/gvisor/pkg/tcpip/link/fdbased.(*processor).deliverPackets(0xc000112a08)
        github.com/metacubex/[email protected]/pkg/tcpip/link/fdbased/processors.go:78 +0xd4
github.com/metacubex/gvisor/pkg/tcpip/link/fdbased.(*processor).start(0xc000112a08, 0xc0005ad7d0?)
        github.com/metacubex/[email protected]/pkg/tcpip/link/fdbased/processors.go:53 +0xc5
created by github.com/metacubex/gvisor/pkg/tcpip/link/fdbased.(*processorManager).start in goroutine 1
        github.com/metacubex/[email protected]/pkg/tcpip/link/fdbased/processors.go:125 +0xa7

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions