Skip to content

intra/core/async.go:159: panic: nil pointer dereference #244

Description

@hussainmohd-a

sync/atomic: store of inconsistently typed value into Value
panic: runtime error: invalid memory address or nil pointer dereference

Details
doh.dialctx [11] sync/atomic: store of inconsistently typed value into Value [gobind@v20260802091139-dd1d3b4] (#0)panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x7e45be0cc0]

goroutine 9375 gp=0x7dec45e960 m=4 mp=0x7dfbf5f808 [running]:
panic({0x7e45dc1f20?, 0x7e45f90280?})
	runtime/panic.go:879 +0x15c fp=0x7dec5eb7f0 sp=0x7dec5eb740 pc=0x7e456952fc
runtime.panicmem(...)
	runtime/panic.go:336
runtime.sigpanic()
	runtime/signal_unix.go:931 +0x2f0 fp=0x7dec5eb850 sp=0x7dec5eb7f0 pc=0x7e45697b90
github.com/celzero/firestack/intra/core.Gre[...]({0x7e44f55a4f, 0xb}, 0x7ded4cc8a0, {0x7e45f0a9e8, 0x7decec8be0})
	github.com/celzero/firestack@v0.0.0-00010101000000-000000000000/intra/core/async.go:159 +0x130 fp=0x7dec5eb8e0 sp=0x7dec5eb860 pc=0x7e45be0cc0
github.com/celzero/firestack/intra/doh.(*transport).httpClientsFor.h2.asDialContext.func3({0x7e45f0a9e8, 0x7decec8be0}, {0x7e44f5170e, 0x3}, {0x7dec5d2780, 0x16})
	github.com/celzero/firestack@v0.0.0-00010101000000-000000000000/intra/doh/doh.go:299 +0xbc fp=0x7dec5eb930 sp=0x7dec5eb8e0 pc=0x7e45bd9d0c
net/http.(*Transport).dial(0x7dec5eb9c8?, {0x7e45f0a9e8?, 0x7decec8be0?}, {0x7e44f5170e?, 0x7dec5eb9f8?}, {0x7dec5d2780?, 0x7dfbff84e0?})
	net/http/transport.go:1307 +0xd8 fp=0x7dec5eb9a0 sp=0x7dec5eb930 pc=0x7e459c4fe8
net/http.(*Transport).dialConn(0x7dec1a31e0, {0x7e45f0a9e8, 0x7decec8be0}, {{}, 0x0, {0x7dec17c030, 0x5}, {0x7dec5d2780, 0x16}, 0x0}, ...)
	net/http/transport.go:1815 +0x5f0 fp=0x7dec5ebec0 sp=0x7dec5eb9a0 pc=0x7e459c7850
net/http.(*Transport).dialConnFor(0x7dec1a31e0, 0x7dec4c0a50)
	net/http/transport.go:1648 +0x8c fp=0x7dec5ebf80 sp=0x7dec5ebec0 pc=0x7e459c67ac
net/http.(*Transport).startDialConnForLocked.func1()
	net/http/transport.go:1629 +0x30 fp=0x7dec5ebfd0 sp=0x7dec5ebf80 pc=0x7e459c65c0
runtime.goexit({})
	runtime/asm_arm64.s:1447 +0x4 fp=0x7dec5ebfd0 sp=0x7dec5ebfd0 pc=0x7e4569d344
created by net/http.(*Transport).startDialConnForLocked in goroutine 9373
	net/http/transport.go:1628 +0x100

goroutine 17 gp=0x7dfbefc780 m=1 mp=0x7dfbf5e008 [syscall, 12 minutes, locked to thread]:
runtime.goexit({})
	runtime/asm_arm64.s:1447 +0x4 fp=0x7dec3ccfe0 sp=0x7dec3ccfe0 pc=0x7e4569d344

goroutine 2 gp=0x7dfbefcd20 m=nil [force gc (idle), 13 minutes]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
	runtime/proc.go:462 +0xbc fp=0x7dfbf5af90 sp=0x7dfbf5af70 pc=0x7e4569578c
runtime.goparkunlock(...)
	runtime/proc.go:468
runtime.forcegchelper()
	runtime/proc.go:375 +0xb4 fp=0x7dfbf5afd0 sp=0x7dfbf5af90 pc=0x7e45661464
runtime.goexit({})
	runtime/asm_arm64.s:1447 +0x4 fp=0x7dfbf5afd0 sp=0x7dfbf5afd0 pc=0x7e4569d344
created by runtime.init.7 in goroutine 1
	runtime/proc.go:363 +0x24

goroutine 3 gp=0x7dfbefd2c0 m=nil [GC sweep wait]:
runtime.gopark(0x1?, 0x0?, 0x0?, 0x0?, 0x0?)
	runtime/proc.go:462 +0xbc fp=0x7dfbf5b770 sp=0x7dfbf5b750 pc=0x7e4569578c
runtime.goparkunlock(...)
	runtime/proc.go:468
runtime.bgsweep(0x7dfbf7c000)
	runtime/mgcsweep.go:324 +0x178 fp=0x7dfbf5b7b0 sp=0x7dfbf5b770 pc=0x7e4564a648
runtime.gcenable.gowrap1()
	runtime/mgc.go:214 +0x20 fp=0x7dfbf5b7d0 sp=0x7dfbf5b7b0 pc=0x7e4563b910
runtime.goexit({})
	runtime/asm_arm64.s:1447 +0x4 fp=0x7dfbf5b7d0 sp=0x7dfbf5b7d0 pc=0x7e4569d344
created by runtime.gcenable in goroutine 1
	runtime/mgc.go:214 +0x6c

goroutine 4 gp=0x7dfbefd4a0 m=nil [GC scavenge wait]:
runtime.gopark(0x10000?, 0x6555aa?, 0x0?, 0x0?, 0x0?)
	runtime/proc.go:462 +0xbc fp=0x7dfbf5bf60 sp=0x7dfbf5bf40 pc=0x7e4569578c
runtime.goparkunlock(...)
	runtime/proc.go:468
runtime.(*scavengerState).park(0x7e45fb3200)
	runtime/mgcscavenge.go:425 +0x5c fp=0x7dfbf5bf90 sp=0x7dfbf5bf60 pc=0x7e4564817c
runtime.bgscavenge(0x7dfbf7c000)
	runtime/mgcscavenge.go:658 +0xac fp=0x7dfbf5bfb0 sp=0x7dfbf5bf90 pc=0x7e456486fc
runtime.gcenable.gowrap2()
	runtime/mgc.go:215 +0x20 fp=0x7dfbf5bfd0 sp=0x7dfbf5bfb0 pc=0x7e4563b8d0
runtime.goexit({})
	runtime/asm_arm64.s:1447 +0x4 fp=0x7dfbf5bfd0 sp=0x7dfbf5bfd0 pc=0x7e4569d344
created by runtime.gcenable in goroutine 1
	runtime/mgc.go:215 +0xac

goroutine 5 gp=0x7dfbefda40 m=nil [GOMAXPROCS updater (idle), 1 minutes]:
runtime.gopark(0x7e45fb6f09?, 0x0?, 0x0?, 0x0?, 0x0?)
	runtime/proc.go:462 +0xbc fp=0x7dfbf5c770 sp=0x7dfbf5c750 pc=0x7e4569578c
runtime.goparkunlock(...)
	runtime/proc.go:468
runtime.updateMaxProcsGoroutine()
	runtime/proc.go:7095 +0xf4 fp=0x7dfbf5c7d0 sp=0x7dfbf5c770 pc=0x7e4566fda4
runtime.goexit({})
	runtime/asm_arm64.s:1447 +0x4 fp=0x7dfbf5c7d0 sp=0x7dfbf5c7d0 pc=0x7e4569d344
created by runtime.defaultGOMAXPROCSUpdateEnable in goroutine 1
	runtime/proc.go:7083 +0x48

goroutine 6 gp=0x7dfbf9e1e0 m=nil [finalizer wait, 1 minutes]:
runtime.gopark(0x0?, 0x7dec280ab0?, 0xa0?, 0xa1?, 0x1000000010?)
	runtime/proc.go:462 +0xbc fp=0x7dfbf5a580 sp=0x7dfbf5a560 pc=0x7e4569578c
runtime.runFinalizers()
	runtime/mfinal.go:210 +0x100 fp=0x7dfbf5a7d0 sp=0x7dfbf5a580 pc=0x7e4563a930
runtime.goexit({})
	runtime/asm_arm64.s:1447 +0x4 fp=0x7dfbf5a7d0 sp=0x7dfbf5a7d0 pc=0x7e4569d344
created by runtime.createfing in goroutine 1
	runtime/mfinal.go:172 +0x78

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions