MetaCubeX / mihomo

A simple Python Pydantic model for Honkai: Star Rail parsed data from the Mihomo API.
https://wiki.metacubex.one
MIT License
16.94k stars 2.67k forks source link

[Bug] v1.18.10 fatal error: runtime: cannot allocate memory #1636

Closed abcfy2 closed 3 weeks ago

abcfy2 commented 3 weeks ago

验证步骤

操作系统

Linux

系统版本

Linux TUF-AX5400-0368 4.1.52 #1 SMP PREEMPT Sun Aug 4 21:30:07 UTC 2024 armv7l ASUSWRT-Merlin

Mihomo 版本

v1.18.10

配置文件

{}

描述

最新版本 v1.18.10 在华硕路由器 (armv7l) 运行报错 fatal error: runtime: cannot allocate memory,尝试了 armv5,v6,v7三个版本,都是同样的错误

日志如下:

# ./mihomo-linux-armv5-v1.18.10 --version
fatal error: runtime: cannot allocate memory

runtime stack:
runtime.throw({0xf62840, 0x1f})
    runtime/panic.go:1067 +0x34 fp=0xbecb0bb4 sp=0xbecb0ba0 pc=0x92d6c
runtime.persistentalloc1(0x3ff0, 0x0, 0x1d153c8)
    runtime/malloc.go:1609 +0x274 fp=0xbecb0be0 sp=0xbecb0bb4 pc=0x1d268
runtime.persistentalloc.func1()
    runtime/malloc.go:1562 +0x34 fp=0xbecb0bf8 sp=0xbecb0be0 pc=0x1cfd8
runtime.persistentalloc(0x3ff0, 0x0, 0x1d153c8)
    runtime/malloc.go:1561 +0x4c fp=0xbecb0c18 sp=0xbecb0bf8 pc=0x1cf84
runtime.(*fixalloc).alloc(0x1a014e8)
    runtime/mfixalloc.go:90 +0x98 fp=0xbecb0c34 sp=0xbecb0c18 pc=0x2793c
runtime.addfinalizer(0x24b0000, 0xfb2bd8, 0x8, 0xdbab18, 0xdbab18)
    runtime/mheap.go:1964 +0x30 fp=0xbecb0c5c sp=0xbecb0c34 pc=0x3e54c
runtime.SetFinalizer.func2()
    runtime/mfinal.go:512 +0x44 fp=0xbecb0c78 sp=0xbecb0c5c pc=0x276b8
runtime.systemstack(0x9e7d28)
    runtime/asm_arm.s:317 +0x60 fp=0xbecb0c7c sp=0xbecb0c78 pc=0x98dfc

goroutine 1 gp=0x2402128 m=0 mp=0x19e8978 [running, locked to thread]:
runtime.systemstack_switch()
    runtime/asm_arm.s:274 +0x4 fp=0x2494da8 sp=0x2494da4 pc=0x98d90
runtime.SetFinalizer({0xdbab18, 0x24b0000}, {0xd7fe20, 0xfb2bd8})
    runtime/mfinal.go:511 +0x40c fp=0x2494e18 sp=0x2494da8 pc=0x272dc
os.newFile(0x0, {0xf3dc9b, 0xa}, 0x0, 0x0)
    os/file_unix.go:243 +0x210 fp=0x2494e3c sp=0x2494e18 pc=0x128738
os.NewFile(0x0, {0xf3dc9b, 0xa})
    os/file_unix.go:116 +0x94 fp=0x2494e5c sp=0x2494e3c pc=0x1284f8
os.init()
    os/file.go:71 +0x20c fp=0x2494e88 sp=0x2494e5c pc=0x122680
runtime.doInit1(0x1913fe8)
    runtime/proc.go:7290 +0xd4 fp=0x2494fa8 sp=0x2494e88 pc=0x63750
runtime.doInit(...)
    runtime/proc.go:7257
runtime.main()
    runtime/proc.go:254 +0x3ec fp=0x2494fec sp=0x2494fa8 pc=0x52c9c
runtime.goexit({})
    runtime/asm_arm.s:884 +0x4 fp=0x2494fec sp=0x2494fec pc=0x9a960

goroutine 2 gp=0x2402488 m=nil [force gc (idle)]:
runtime.gopark(0xfb2dc8, 0x19e5b88, 0x11, 0xa, 0x1)
    runtime/proc.go:424 +0x104 fp=0x2458fd4 sp=0x2458fc0 pc=0x92eac
runtime.goparkunlock(...)
    runtime/proc.go:430
runtime.forcegchelper()
    runtime/proc.go:337 +0xe4 fp=0x2458fec sp=0x2458fd4 pc=0x53008
runtime.goexit({})
    runtime/asm_arm.s:884 +0x4 fp=0x2458fec sp=0x2458fec pc=0x9a960
created by runtime.init.6 in goroutine 1
    runtime/proc.go:325 +0x1c

goroutine 3 gp=0x24027e8 m=nil [GC sweep wait]:
runtime.gopark(0xfb2dc8, 0x19e66b0, 0xc, 0x9, 0x1)
    runtime/proc.go:424 +0x104 fp=0x24597c4 sp=0x24597b0 pc=0x92eac
runtime.goparkunlock(...)
    runtime/proc.go:430
runtime.bgsweep(0x2440040)
    runtime/mgcsweep.go:277 +0xa8 fp=0x24597e4 sp=0x24597c4 pc=0x38a64
runtime.gcenable.gowrap1()
    runtime/mgc.go:203 +0x28 fp=0x24597ec sp=0x24597e4 pc=0x27c5c
runtime.goexit({})
    runtime/asm_arm.s:884 +0x4 fp=0x24597ec sp=0x24597ec pc=0x9a960
created by runtime.gcenable in goroutine 1
    runtime/mgc.go:203 +0x74

goroutine 4 gp=0x2402908 m=nil [GC scavenge wait]:
runtime.gopark(0xfb2dc8, 0x19e7608, 0xd, 0xa, 0x2)
    runtime/proc.go:424 +0x104 fp=0x2459fb4 sp=0x2459fa0 pc=0x92eac
runtime.goparkunlock(...)
    runtime/proc.go:430
runtime.(*scavengerState).park(0x19e7608)
    runtime/mgcscavenge.go:425 +0x68 fp=0x2459fc8 sp=0x2459fb4 pc=0x35830
runtime.bgscavenge(0x2440040)
    runtime/mgcscavenge.go:653 +0x3c fp=0x2459fe4 sp=0x2459fc8 pc=0x360f0
runtime.gcenable.gowrap2()
    runtime/mgc.go:204 +0x28 fp=0x2459fec sp=0x2459fe4 pc=0x27c08
runtime.goexit({})
    runtime/asm_arm.s:884 +0x4 fp=0x2459fec sp=0x2459fec pc=0x9a960
created by runtime.gcenable in goroutine 1
    runtime/mgc.go:204 +0xbc

goroutine 17 gp=0x24b2008 m=nil [runnable]:
runtime.runfinq()
    runtime/mfinal.go:176 fp=0x24587ec sp=0x24587ec pc=0x26910
runtime.goexit({})
    runtime/asm_arm.s:884 +0x4 fp=0x24587ec sp=0x24587ec pc=0x9a960
created by runtime.createfing in goroutine 1
    runtime/mfinal.go:163 +0x5c
ASUS-router@TUF-AX5400-0368:/tmp# ./mihomo-linux-armv5-v1.18.10 version
fatal error: runtime: cannot allocate memory

runtime stack:
runtime.throw({0xf62840, 0x1f})
    runtime/panic.go:1067 +0x34 fp=0xbef02c44 sp=0xbef02c30 pc=0x92d6c
runtime.persistentalloc1(0x3ffc, 0x0, 0x1d153c0)
    runtime/malloc.go:1609 +0x274 fp=0xbef02c70 sp=0xbef02c44 pc=0x1d268
runtime.persistentalloc.func1()
    runtime/malloc.go:1562 +0x34 fp=0xbef02c88 sp=0xbef02c70 pc=0x1cfd8
runtime.systemstack(0x9e7d28)
    runtime/asm_arm.s:317 +0x60 fp=0xbef02c8c sp=0xbef02c88 pc=0x98dfc

goroutine 1 gp=0x3002128 m=0 mp=0x19e8978 [running, locked to thread]:
runtime.systemstack_switch()
    runtime/asm_arm.s:274 +0x4 fp=0x308cd48 sp=0x308cd44 pc=0x98d90
runtime.persistentalloc(0x3ffc, 0x0, 0x1d153c0)
    runtime/malloc.go:1561 +0x4c fp=0x308cd68 sp=0x308cd48 pc=0x1cf84
runtime.(*fixalloc).alloc(0x1a01588)
    runtime/mfixalloc.go:90 +0x98 fp=0x308cd84 sp=0x308cd68 pc=0x2793c
runtime.getOrAddWeakHandle(0x31080d0)
    runtime/mheap.go:2106 +0x48 fp=0x308cda4 sp=0x308cd84 pc=0x3e880
internal/weak.runtime_registerWeakPointer(0x31080d0)
    runtime/mheap.go:2045 +0x1c fp=0x308cdb0 sp=0x308cda4 pc=0x91604
internal/weak.Make[...](0x31080d0)
    internal/weak/pointer.go:62 +0x8c fp=0x308cdbc sp=0x308cdb0 pc=0x15265c
unique.Make[...].func1()
    unique/handle.go:57 +0x20c fp=0x308ce14 sp=0x308cdbc pc=0x152574
unique.Make[...]({0x0, {0x0, 0x0}})
    unique/handle.go:67 +0x190 fp=0x308ce70 sp=0x308ce14 pc=0x1522c0
net/netip.init()
    net/netip/netip.go:70 +0x34 fp=0x308ce88 sp=0x308ce70 pc=0x1495e4
runtime.doInit1(0x1912d68)
    runtime/proc.go:7290 +0xd4 fp=0x308cfa8 sp=0x308ce88 pc=0x63750
runtime.doInit(...)
    runtime/proc.go:7257
runtime.main()
    runtime/proc.go:254 +0x3ec fp=0x308cfec sp=0x308cfa8 pc=0x52c9c
runtime.goexit({})
    runtime/asm_arm.s:884 +0x4 fp=0x308cfec sp=0x308cfec pc=0x9a960

goroutine 2 gp=0x3002488 m=nil [force gc (idle)]:
runtime.gopark(0xfb2dc8, 0x19e5b88, 0x11, 0xa, 0x1)
    runtime/proc.go:424 +0x104 fp=0x3058fd4 sp=0x3058fc0 pc=0x92eac
runtime.goparkunlock(...)
    runtime/proc.go:430
runtime.forcegchelper()
    runtime/proc.go:337 +0xe4 fp=0x3058fec sp=0x3058fd4 pc=0x53008
runtime.goexit({})
    runtime/asm_arm.s:884 +0x4 fp=0x3058fec sp=0x3058fec pc=0x9a960
created by runtime.init.6 in goroutine 1
    runtime/proc.go:325 +0x1c

goroutine 3 gp=0x30027e8 m=nil [GC sweep wait]:
runtime.gopark(0xfb2dc8, 0x19e66b0, 0xc, 0x9, 0x1)
    runtime/proc.go:424 +0x104 fp=0x30597c4 sp=0x30597b0 pc=0x92eac
runtime.goparkunlock(...)
    runtime/proc.go:430
runtime.bgsweep(0x3040040)
    runtime/mgcsweep.go:277 +0xa8 fp=0x30597e4 sp=0x30597c4 pc=0x38a64
runtime.gcenable.gowrap1()
    runtime/mgc.go:203 +0x28 fp=0x30597ec sp=0x30597e4 pc=0x27c5c
runtime.goexit({})
    runtime/asm_arm.s:884 +0x4 fp=0x30597ec sp=0x30597ec pc=0x9a960
created by runtime.gcenable in goroutine 1
    runtime/mgc.go:203 +0x74

goroutine 4 gp=0x3002908 m=nil [GC scavenge wait]:
runtime.gopark(0xfb2dc8, 0x19e7608, 0xd, 0xa, 0x2)
    runtime/proc.go:424 +0x104 fp=0x3059fb4 sp=0x3059fa0 pc=0x92eac
runtime.goparkunlock(...)
    runtime/proc.go:430
runtime.(*scavengerState).park(0x19e7608)
    runtime/mgcscavenge.go:425 +0x68 fp=0x3059fc8 sp=0x3059fb4 pc=0x35830
runtime.bgscavenge(0x3040040)
    runtime/mgcscavenge.go:653 +0x3c fp=0x3059fe4 sp=0x3059fc8 pc=0x360f0
runtime.gcenable.gowrap2()
    runtime/mgc.go:204 +0x28 fp=0x3059fec sp=0x3059fe4 pc=0x27c08
runtime.goexit({})
    runtime/asm_arm.s:884 +0x4 fp=0x3059fec sp=0x3059fec pc=0x9a960
created by runtime.gcenable in goroutine 1
    runtime/mgc.go:204 +0xbc

goroutine 5 gp=0x3002c68 m=nil [finalizer wait]:
runtime.gopark(0xfb2c70, 0x1d0b2cc, 0x10, 0xa, 0x1)
    runtime/proc.go:424 +0x104 fp=0x305878c sp=0x3058778 pc=0x92eac
runtime.runfinq()
    runtime/mfinal.go:193 +0x110 fp=0x30587ec sp=0x305878c pc=0x26a20
runtime.goexit({})
    runtime/asm_arm.s:884 +0x4 fp=0x30587ec sp=0x30587ec pc=0x9a960
created by runtime.createfing in goroutine 1
    runtime/mfinal.go:163 +0x5c

goroutine 6 gp=0x30030e8 m=nil [chan receive]:
runtime.gopark(0xfb2c50, 0x3040134, 0xe, 0x7, 0x2)
    runtime/proc.go:424 +0x104 fp=0x305a724 sp=0x305a710 pc=0x92eac
runtime.chanrecv(0x3040100, 0x305a7c8, 0x1)
    runtime/chan.go:639 +0x4e0 fp=0x305a760 sp=0x305a724 pc=0x16044
runtime.chanrecv2(0x3040100, 0x305a7c8)
    runtime/chan.go:494 +0x20 fp=0x305a774 sp=0x305a760 pc=0x15b58
github.com/metacubex/mihomo/common/observable.(*Observable[...]).process(0x11294b0)
    github.com/metacubex/mihomo/common/observable/observable.go:16 +0x58 fp=0x305a7e0 sp=0x305a774 pc=0x21ff54
github.com/metacubex/mihomo/common/observable.NewObservable[...].gowrap1()
    github.com/metacubex/mihomo/common/observable/observable.go:63 +0x30 fp=0x305a7ec sp=0x305a7e0 pc=0x21f934
runtime.goexit({})
    runtime/asm_arm.s:884 +0x4 fp=0x305a7ec sp=0x305a7ec pc=0x9a960
created by github.com/metacubex/mihomo/common/observable.NewObservable[...] in goroutine 1
    github.com/metacubex/mihomo/common/observable/observable.go:63 +0xe8

goroutine 17 gp=0x312c248 m=nil [chan receive]:
runtime.gopark(0xfb2c50, 0x312e034, 0xe, 0x7, 0x2)
    runtime/proc.go:424 +0x104 fp=0x305478c sp=0x3054778 pc=0x92eac
runtime.chanrecv(0x312e000, 0x0, 0x1)
    runtime/chan.go:639 +0x4e0 fp=0x30547c8 sp=0x305478c pc=0x16044
runtime.chanrecv1(0x312e000, 0x0)
    runtime/chan.go:489 +0x20 fp=0x30547dc sp=0x30547c8 pc=0x15b34
runtime.unique_runtime_registerUniqueMapCleanup.func1(...)
    runtime/mgc.go:1732
runtime.unique_runtime_registerUniqueMapCleanup.gowrap1()
    runtime/mgc.go:1735 +0x40 fp=0x30547ec sp=0x30547dc pc=0x2bd20
runtime.goexit({})
    runtime/asm_arm.s:884 +0x4 fp=0x30547ec sp=0x30547ec pc=0x9a960
created by unique.runtime_registerUniqueMapCleanup in goroutine 1
    runtime/mgc.go:1730 +0xa4

重现方式

华硕路由器直接运行

日志

fatal error: runtime: cannot allocate memory

runtime stack:
runtime.throw({0xf62840, 0x1f})
    runtime/panic.go:1067 +0x34 fp=0xbecb0bb4 sp=0xbecb0ba0 pc=0x92d6c
runtime.persistentalloc1(0x3ff0, 0x0, 0x1d153c8)
    runtime/malloc.go:1609 +0x274 fp=0xbecb0be0 sp=0xbecb0bb4 pc=0x1d268
runtime.persistentalloc.func1()
    runtime/malloc.go:1562 +0x34 fp=0xbecb0bf8 sp=0xbecb0be0 pc=0x1cfd8
runtime.persistentalloc(0x3ff0, 0x0, 0x1d153c8)
    runtime/malloc.go:1561 +0x4c fp=0xbecb0c18 sp=0xbecb0bf8 pc=0x1cf84
runtime.(*fixalloc).alloc(0x1a014e8)
    runtime/mfixalloc.go:90 +0x98 fp=0xbecb0c34 sp=0xbecb0c18 pc=0x2793c
runtime.addfinalizer(0x24b0000, 0xfb2bd8, 0x8, 0xdbab18, 0xdbab18)
    runtime/mheap.go:1964 +0x30 fp=0xbecb0c5c sp=0xbecb0c34 pc=0x3e54c
runtime.SetFinalizer.func2()
    runtime/mfinal.go:512 +0x44 fp=0xbecb0c78 sp=0xbecb0c5c pc=0x276b8
runtime.systemstack(0x9e7d28)
    runtime/asm_arm.s:317 +0x60 fp=0xbecb0c7c sp=0xbecb0c78 pc=0x98dfc

goroutine 1 gp=0x2402128 m=0 mp=0x19e8978 [running, locked to thread]:
runtime.systemstack_switch()
    runtime/asm_arm.s:274 +0x4 fp=0x2494da8 sp=0x2494da4 pc=0x98d90
runtime.SetFinalizer({0xdbab18, 0x24b0000}, {0xd7fe20, 0xfb2bd8})
    runtime/mfinal.go:511 +0x40c fp=0x2494e18 sp=0x2494da8 pc=0x272dc
os.newFile(0x0, {0xf3dc9b, 0xa}, 0x0, 0x0)
    os/file_unix.go:243 +0x210 fp=0x2494e3c sp=0x2494e18 pc=0x128738
os.NewFile(0x0, {0xf3dc9b, 0xa})
    os/file_unix.go:116 +0x94 fp=0x2494e5c sp=0x2494e3c pc=0x1284f8
os.init()
    os/file.go:71 +0x20c fp=0x2494e88 sp=0x2494e5c pc=0x122680
runtime.doInit1(0x1913fe8)
    runtime/proc.go:7290 +0xd4 fp=0x2494fa8 sp=0x2494e88 pc=0x63750
runtime.doInit(...)
    runtime/proc.go:7257
runtime.main()
    runtime/proc.go:254 +0x3ec fp=0x2494fec sp=0x2494fa8 pc=0x52c9c
runtime.goexit({})
    runtime/asm_arm.s:884 +0x4 fp=0x2494fec sp=0x2494fec pc=0x9a960

goroutine 2 gp=0x2402488 m=nil [force gc (idle)]:
runtime.gopark(0xfb2dc8, 0x19e5b88, 0x11, 0xa, 0x1)
    runtime/proc.go:424 +0x104 fp=0x2458fd4 sp=0x2458fc0 pc=0x92eac
runtime.goparkunlock(...)
    runtime/proc.go:430
runtime.forcegchelper()
    runtime/proc.go:337 +0xe4 fp=0x2458fec sp=0x2458fd4 pc=0x53008
runtime.goexit({})
    runtime/asm_arm.s:884 +0x4 fp=0x2458fec sp=0x2458fec pc=0x9a960
created by runtime.init.6 in goroutine 1
    runtime/proc.go:325 +0x1c

goroutine 3 gp=0x24027e8 m=nil [GC sweep wait]:
runtime.gopark(0xfb2dc8, 0x19e66b0, 0xc, 0x9, 0x1)
    runtime/proc.go:424 +0x104 fp=0x24597c4 sp=0x24597b0 pc=0x92eac
runtime.goparkunlock(...)
    runtime/proc.go:430
runtime.bgsweep(0x2440040)
    runtime/mgcsweep.go:277 +0xa8 fp=0x24597e4 sp=0x24597c4 pc=0x38a64
runtime.gcenable.gowrap1()
    runtime/mgc.go:203 +0x28 fp=0x24597ec sp=0x24597e4 pc=0x27c5c
runtime.goexit({})
    runtime/asm_arm.s:884 +0x4 fp=0x24597ec sp=0x24597ec pc=0x9a960
created by runtime.gcenable in goroutine 1
    runtime/mgc.go:203 +0x74

goroutine 4 gp=0x2402908 m=nil [GC scavenge wait]:
runtime.gopark(0xfb2dc8, 0x19e7608, 0xd, 0xa, 0x2)
    runtime/proc.go:424 +0x104 fp=0x2459fb4 sp=0x2459fa0 pc=0x92eac
runtime.goparkunlock(...)
    runtime/proc.go:430
runtime.(*scavengerState).park(0x19e7608)
    runtime/mgcscavenge.go:425 +0x68 fp=0x2459fc8 sp=0x2459fb4 pc=0x35830
runtime.bgscavenge(0x2440040)
    runtime/mgcscavenge.go:653 +0x3c fp=0x2459fe4 sp=0x2459fc8 pc=0x360f0
runtime.gcenable.gowrap2()
    runtime/mgc.go:204 +0x28 fp=0x2459fec sp=0x2459fe4 pc=0x27c08
runtime.goexit({})
    runtime/asm_arm.s:884 +0x4 fp=0x2459fec sp=0x2459fec pc=0x9a960
created by runtime.gcenable in goroutine 1
    runtime/mgc.go:204 +0xbc

goroutine 17 gp=0x24b2008 m=nil [runnable]:
runtime.runfinq()
    runtime/mfinal.go:176 fp=0x24587ec sp=0x24587ec pc=0x26910
runtime.goexit({})
    runtime/asm_arm.s:884 +0x4 fp=0x24587ec sp=0x24587ec pc=0x9a960
created by runtime.createfing in goroutine 1
    runtime/mfinal.go:163 +0x5c
ASUS-router@TUF-AX5400-0368:/tmp# ./mihomo-linux-armv5-v1.18.10 version
fatal error: runtime: cannot allocate memory

runtime stack:
runtime.throw({0xf62840, 0x1f})
    runtime/panic.go:1067 +0x34 fp=0xbef02c44 sp=0xbef02c30 pc=0x92d6c
runtime.persistentalloc1(0x3ffc, 0x0, 0x1d153c0)
    runtime/malloc.go:1609 +0x274 fp=0xbef02c70 sp=0xbef02c44 pc=0x1d268
runtime.persistentalloc.func1()
    runtime/malloc.go:1562 +0x34 fp=0xbef02c88 sp=0xbef02c70 pc=0x1cfd8
runtime.systemstack(0x9e7d28)
    runtime/asm_arm.s:317 +0x60 fp=0xbef02c8c sp=0xbef02c88 pc=0x98dfc

goroutine 1 gp=0x3002128 m=0 mp=0x19e8978 [running, locked to thread]:
runtime.systemstack_switch()
    runtime/asm_arm.s:274 +0x4 fp=0x308cd48 sp=0x308cd44 pc=0x98d90
runtime.persistentalloc(0x3ffc, 0x0, 0x1d153c0)
    runtime/malloc.go:1561 +0x4c fp=0x308cd68 sp=0x308cd48 pc=0x1cf84
runtime.(*fixalloc).alloc(0x1a01588)
    runtime/mfixalloc.go:90 +0x98 fp=0x308cd84 sp=0x308cd68 pc=0x2793c
runtime.getOrAddWeakHandle(0x31080d0)
    runtime/mheap.go:2106 +0x48 fp=0x308cda4 sp=0x308cd84 pc=0x3e880
internal/weak.runtime_registerWeakPointer(0x31080d0)
    runtime/mheap.go:2045 +0x1c fp=0x308cdb0 sp=0x308cda4 pc=0x91604
internal/weak.Make[...](0x31080d0)
    internal/weak/pointer.go:62 +0x8c fp=0x308cdbc sp=0x308cdb0 pc=0x15265c
unique.Make[...].func1()
    unique/handle.go:57 +0x20c fp=0x308ce14 sp=0x308cdbc pc=0x152574
unique.Make[...]({0x0, {0x0, 0x0}})
    unique/handle.go:67 +0x190 fp=0x308ce70 sp=0x308ce14 pc=0x1522c0
net/netip.init()
    net/netip/netip.go:70 +0x34 fp=0x308ce88 sp=0x308ce70 pc=0x1495e4
runtime.doInit1(0x1912d68)
    runtime/proc.go:7290 +0xd4 fp=0x308cfa8 sp=0x308ce88 pc=0x63750
runtime.doInit(...)
    runtime/proc.go:7257
runtime.main()
    runtime/proc.go:254 +0x3ec fp=0x308cfec sp=0x308cfa8 pc=0x52c9c
runtime.goexit({})
    runtime/asm_arm.s:884 +0x4 fp=0x308cfec sp=0x308cfec pc=0x9a960

goroutine 2 gp=0x3002488 m=nil [force gc (idle)]:
runtime.gopark(0xfb2dc8, 0x19e5b88, 0x11, 0xa, 0x1)
    runtime/proc.go:424 +0x104 fp=0x3058fd4 sp=0x3058fc0 pc=0x92eac
runtime.goparkunlock(...)
    runtime/proc.go:430
runtime.forcegchelper()
    runtime/proc.go:337 +0xe4 fp=0x3058fec sp=0x3058fd4 pc=0x53008
runtime.goexit({})
    runtime/asm_arm.s:884 +0x4 fp=0x3058fec sp=0x3058fec pc=0x9a960
created by runtime.init.6 in goroutine 1
    runtime/proc.go:325 +0x1c

goroutine 3 gp=0x30027e8 m=nil [GC sweep wait]:
runtime.gopark(0xfb2dc8, 0x19e66b0, 0xc, 0x9, 0x1)
    runtime/proc.go:424 +0x104 fp=0x30597c4 sp=0x30597b0 pc=0x92eac
runtime.goparkunlock(...)
    runtime/proc.go:430
runtime.bgsweep(0x3040040)
    runtime/mgcsweep.go:277 +0xa8 fp=0x30597e4 sp=0x30597c4 pc=0x38a64
runtime.gcenable.gowrap1()
    runtime/mgc.go:203 +0x28 fp=0x30597ec sp=0x30597e4 pc=0x27c5c
runtime.goexit({})
    runtime/asm_arm.s:884 +0x4 fp=0x30597ec sp=0x30597ec pc=0x9a960
created by runtime.gcenable in goroutine 1
    runtime/mgc.go:203 +0x74

goroutine 4 gp=0x3002908 m=nil [GC scavenge wait]:
runtime.gopark(0xfb2dc8, 0x19e7608, 0xd, 0xa, 0x2)
    runtime/proc.go:424 +0x104 fp=0x3059fb4 sp=0x3059fa0 pc=0x92eac
runtime.goparkunlock(...)
    runtime/proc.go:430
runtime.(*scavengerState).park(0x19e7608)
    runtime/mgcscavenge.go:425 +0x68 fp=0x3059fc8 sp=0x3059fb4 pc=0x35830
runtime.bgscavenge(0x3040040)
    runtime/mgcscavenge.go:653 +0x3c fp=0x3059fe4 sp=0x3059fc8 pc=0x360f0
runtime.gcenable.gowrap2()
    runtime/mgc.go:204 +0x28 fp=0x3059fec sp=0x3059fe4 pc=0x27c08
runtime.goexit({})
    runtime/asm_arm.s:884 +0x4 fp=0x3059fec sp=0x3059fec pc=0x9a960
created by runtime.gcenable in goroutine 1
    runtime/mgc.go:204 +0xbc

goroutine 5 gp=0x3002c68 m=nil [finalizer wait]:
runtime.gopark(0xfb2c70, 0x1d0b2cc, 0x10, 0xa, 0x1)
    runtime/proc.go:424 +0x104 fp=0x305878c sp=0x3058778 pc=0x92eac
runtime.runfinq()
    runtime/mfinal.go:193 +0x110 fp=0x30587ec sp=0x305878c pc=0x26a20
runtime.goexit({})
    runtime/asm_arm.s:884 +0x4 fp=0x30587ec sp=0x30587ec pc=0x9a960
created by runtime.createfing in goroutine 1
    runtime/mfinal.go:163 +0x5c

goroutine 6 gp=0x30030e8 m=nil [chan receive]:
runtime.gopark(0xfb2c50, 0x3040134, 0xe, 0x7, 0x2)
    runtime/proc.go:424 +0x104 fp=0x305a724 sp=0x305a710 pc=0x92eac
runtime.chanrecv(0x3040100, 0x305a7c8, 0x1)
    runtime/chan.go:639 +0x4e0 fp=0x305a760 sp=0x305a724 pc=0x16044
runtime.chanrecv2(0x3040100, 0x305a7c8)
    runtime/chan.go:494 +0x20 fp=0x305a774 sp=0x305a760 pc=0x15b58
github.com/metacubex/mihomo/common/observable.(*Observable[...]).process(0x11294b0)
    github.com/metacubex/mihomo/common/observable/observable.go:16 +0x58 fp=0x305a7e0 sp=0x305a774 pc=0x21ff54
github.com/metacubex/mihomo/common/observable.NewObservable[...].gowrap1()
    github.com/metacubex/mihomo/common/observable/observable.go:63 +0x30 fp=0x305a7ec sp=0x305a7e0 pc=0x21f934
runtime.goexit({})
    runtime/asm_arm.s:884 +0x4 fp=0x305a7ec sp=0x305a7ec pc=0x9a960
created by github.com/metacubex/mihomo/common/observable.NewObservable[...] in goroutine 1
    github.com/metacubex/mihomo/common/observable/observable.go:63 +0xe8

goroutine 17 gp=0x312c248 m=nil [chan receive]:
runtime.gopark(0xfb2c50, 0x312e034, 0xe, 0x7, 0x2)
    runtime/proc.go:424 +0x104 fp=0x305478c sp=0x3054778 pc=0x92eac
runtime.chanrecv(0x312e000, 0x0, 0x1)
    runtime/chan.go:639 +0x4e0 fp=0x30547c8 sp=0x305478c pc=0x16044
runtime.chanrecv1(0x312e000, 0x0)
    runtime/chan.go:489 +0x20 fp=0x30547dc sp=0x30547c8 pc=0x15b34
runtime.unique_runtime_registerUniqueMapCleanup.func1(...)
    runtime/mgc.go:1732
runtime.unique_runtime_registerUniqueMapCleanup.gowrap1()
    runtime/mgc.go:1735 +0x40 fp=0x30547ec sp=0x30547dc pc=0x2bd20
runtime.goexit({})
    runtime/asm_arm.s:884 +0x4 fp=0x30547ec sp=0x30547ec pc=0x9a960
created by unique.runtime_registerUniqueMapCleanup in goroutine 1
    runtime/mgc.go:1730 +0xa4
abcfy2 commented 3 weeks ago

After I stop the old mihomo service then it works.