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

运行中途崩溃退出 #64

Open
badboycxcc opened this issue Apr 21, 2022 · 0 comments
Open

运行中途崩溃退出 #64

badboycxcc opened this issue Apr 21, 2022 · 0 comments

Comments

@badboycxcc
Copy link

Success:9551 Sent:4427942 Recved:78909 Faild:0fatal error: runtime: out of memory

runtime stack:
runtime.throw(0x996322, 0x16)
/usr/local/go/src/runtime/panic.go:1116 +0x72
runtime.sysMap(0xc04c000000, 0x14000000, 0x1b79778)
/usr/local/go/src/runtime/mem_linux.go:169 +0xc6
runtime.(*mheap).sysAlloc(0x1659a80, 0x14000000, 0x42f037, 0x1659a88)
/usr/local/go/src/runtime/malloc.go:727 +0x1e5
runtime.(*mheap).grow(0x1659a80, 0x9f9f, 0x0)
/usr/local/go/src/runtime/mheap.go:1344 +0x85
runtime.(*mheap).allocSpan(0x1659a80, 0x9f9f, 0x7ffd13c70000, 0x1b79788, 0x33)
/usr/local/go/src/runtime/mheap.go:1160 +0x6b6
runtime.(*mheap).alloc.func1()
/usr/local/go/src/runtime/mheap.go:907 +0x65
runtime.(*mheap).alloc(0x1659a80, 0x9f9f, 0x7ffd13c70100, 0x7ffd13cb7d00)
/usr/local/go/src/runtime/mheap.go:901 +0x85
runtime.largeAlloc(0x13f3e000, 0x1, 0xc0001998c8)
/usr/local/go/src/runtime/malloc.go:1177 +0x92
runtime.mallocgc.func1()
/usr/local/go/src/runtime/malloc.go:1071 +0x46
runtime.systemstack(0x46bbf4)
/usr/local/go/src/runtime/asm_amd64.s:370 +0x66
runtime.mstart()
/usr/local/go/src/runtime/proc.go:1116

goroutine 1 [running]:
runtime.systemstack_switch()
/usr/local/go/src/runtime/asm_amd64.s:330 fp=0xc000199788 sp=0xc000199780 pc=0x46bd20
runtime.mallocgc(0x13f3e000, 0x868780, 0x1617c01, 0x7f9dd719e108)
/usr/local/go/src/runtime/malloc.go:1070 +0x938 fp=0xc000199828 sp=0xc000199788 pc=0x411098
runtime.growslice(0x868780, 0xc038291480, 0x3fd92e, 0x3fd92e, 0x3fd92f, 0xc0137afbd0, 0xb, 0x0)
/usr/local/go/src/runtime/slice.go:230 +0x1e9 fp=0xc000199890 sp=0xc000199828 pc=0x44fa49
ksubdomain/core.(*LocalStruct).Append(0x1616ba0, 0xc000199970, 0x17140)
/media/psf/Home/GolandProjects/ksubdomain/core/localStruct.go:44 +0x1a5 fp=0xc000199940 sp=0xc000199890 pc=0x7e49c5
ksubdomain/core.(*SendDog).BuildStatusTable(0xc000202000, 0xc0137afbd0, 0xb, 0x931dc7, 0x9, 0x1, 0x0)
/media/psf/Home/GolandProjects/ksubdomain/core/send.go:83 +0x1f2 fp=0xc0001999c8 sp=0xc000199940 pc=0x7ead52
ksubdomain/core.Start(0xc0000c8280)
/media/psf/Home/GolandProjects/ksubdomain/core/start.go:200 +0xf1c fp=0xc000199f68 sp=0xc0001999c8 pc=0x7ed01c
main.main()
/media/psf/Home/GolandProjects/ksubdomain/cmd/ksubdomain.go:45 +0x38 fp=0xc000199f88 sp=0xc000199f68 pc=0x7f2078
runtime.main()
/usr/local/go/src/runtime/proc.go:204 +0x209 fp=0xc000199fe0 sp=0xc000199f88 pc=0x43b7a9
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1374 +0x1 fp=0xc000199fe8 sp=0xc000199fe0 pc=0x46db01

goroutine 7 [syscall, 10 minutes]:
github.com/google/gopacket/pcap._Cfunc_pcap_next_ex_escaping(0x7f9da4000c90, 0xc00005eac8, 0xc00005ead0, 0x0)
_cgo_gotypes.go:551 +0x4d
github.com/google/gopacket/pcap.(*Handle).pcapNextPacketEx.func1(0xc00005ea80, 0x0)
/home/parallels/go/pkg/mod/github.com/google/gopacket@v1.1.18/pcap/pcap_unix.go:398 +0x7c
github.com/google/gopacket/pcap.(*Handle).pcapNextPacketEx(0xc00005ea80, 0x5dc)
/home/parallels/go/pkg/mod/github.com/google/gopacket@v1.1.18/pcap/pcap_unix.go:398 +0x2b
github.com/google/gopacket/pcap.(*Handle).getNextBufPtrLocked(0xc00005ea80, 0xc00004ed98, 0x4435ca, 0xc00002c000)
/home/parallels/go/pkg/mod/github.com/google/gopacket@v1.1.18/pcap/pcap.go:312 +0x65
github.com/google/gopacket/pcap.(*Handle).ReadPacketData(0xc00005ea80, 0xc000001e00, 0xc00002c000, 0xc00004edc8, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/home/parallels/go/pkg/mod/github.com/google/gopacket@v1.1.18/pcap/pcap.go:252 +0x8b
github.com/google/gopacket.(*PacketSource).NextPacket(0xc00004eef8, 0xc0000701e0, 0x400, 0xffffffffc4653600, 0xc00005ea80)
/home/parallels/go/pkg/mod/github.com/google/gopacket@v1.1.18/packet.go:801 +0x48
ksubdomain/core.AutoGetDevices.func1(0xc00007b920, 0xc00016a168, 0x7, 0xc000024520, 0x14, 0xc0000700c0, 0xfe2f00, 0xc00005c980)
/media/psf/Home/GolandProjects/ksubdomain/core/device.go:61 +0x165
created by ksubdomain/core.AutoGetDevices
/media/psf/Home/GolandProjects/ksubdomain/core/device.go:36 +0x2dc

goroutine 100 [runnable]:
sync.runtime_Semrelease(0x1616bbc, 0x1401010101, 0x1)
/usr/local/go/src/runtime/sema.go:66 +0x3e
sync.(*Mutex).unlockSlow(0x1616bb8, 0xc)
/usr/local/go/src/sync/mutex.go:224 +0xb5
sync.(*Mutex).Unlock(...)
/usr/local/go/src/sync/mutex.go:190
sync.(*RWMutex).Unlock(0x1616bb8)
/usr/local/go/src/sync/rwmutex.go:136 +0xab
ksubdomain/core.(*LocalStruct).Append(0x1616ba0, 0xc00004aee8, 0xc000012d88)
/media/psf/Home/GolandProjects/ksubdomain/core/localStruct.go:45 +0x14b
ksubdomain/core.Start.func1(0xc0000c8280, 0xc0001fa3c0, 0xfe2f40, 0xc0000220a8, 0xc000202000, 0xc0001cdce0)
/media/psf/Home/GolandProjects/ksubdomain/core/start.go:163 +0x2cb
created by ksubdomain/core.Start
/media/psf/Home/GolandProjects/ksubdomain/core/start.go:140 +0xd28

goroutine 99 [runnable]:
sync.runtime_Semrelease(0x1616bbc, 0x1, 0x1)
/usr/local/go/src/runtime/sema.go:66 +0x3e
sync.(*Mutex).unlockSlow(0x1616bb8, 0x14)
/usr/local/go/src/sync/mutex.go:224 +0xb5
sync.(*Mutex).Unlock(...)
/usr/local/go/src/sync/mutex.go:190
sync.(*RWMutex).Unlock(0x1616bb8)
/usr/local/go/src/sync/rwmutex.go:136 +0xab
ksubdomain/core.(*LocalStruct).SearchFromIndexAndDelete(0x1616ba0, 0x13c12, 0xc0015d6f60, 0xc, 0x931dd0, 0x9, 0x626116b5, 0x0, 0x1, 0x13c12, ...)
/media/psf/Home/GolandProjects/ksubdomain/core/localStruct.go:56 +0x27a
ksubdomain/core.Recv(0xc00016a128, 0x4, 0xc0000c8280, 0xc0000e0229, 0xc0001cdce0)
/media/psf/Home/GolandProjects/ksubdomain/core/recv.go:93 +0x4f4
created by ksubdomain/core.Start
/media/psf/Home/GolandProjects/ksubdomain/core/start.go:37 +0x225

goroutine 101 [chan receive]:
ksubdomain/core.Start.func2(0xc0001cdce0, 0xc000202000, 0xc0001fa3c0, 0xfe2f40, 0xc0000220a8)
/media/psf/Home/GolandProjects/ksubdomain/core/start.go:175 +0xe6
created by ksubdomain/core.Start
/media/psf/Home/GolandProjects/ksubdomain/core/start.go:173 +0xd85

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant