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

runtime.SetFinalizer: second argument is *interp.node, not a function #1503

Closed
ldez opened this issue Jan 20, 2023 · 0 comments · Fixed by #1509
Closed

runtime.SetFinalizer: second argument is *interp.node, not a function #1503

ldez opened this issue Jan 20, 2023 · 0 comments · Fixed by #1509
Labels
area/core bug Something isn't working
Milestone

Comments

@ldez
Copy link
Contributor

ldez commented Jan 20, 2023

The following program sample.go triggers an unexpected result

https://github.com/darkweak/souin

Expected result

-

Got

fatal error: runtime.SetFinalizer: second argument is *interp.node, not a function

goroutine 1 [running]:
runtime.throw({0x4001dc9090?, 0xc4f72f?})
/usr/local/golang/1.19.5/go/src/runtime/panic.go:1047 +0x40 fp=0x40038809d0 sp=0x40038809a0 pc=0x4c280
runtime.SetFinalizer({0x4003ca2580, 0x40019bfd48}, {0xbc7c20, 0x4003a97440})
/usr/local/golang/1.19.5/go/src/runtime/mfinal.go:407 +0x418 fp=0x4003880ab0 sp=0x40038809d0 pc=0x2cc48
runtime.call32(0x4001b37320, 0xc87370, 0x0, 0x0, 0x0, 0x20, 0x4003881000)
/usr/local/golang/1.19.5/go/src/runtime/asm_arm64.s:479 +0x78 fp=0x4003880ae0 sp=0x4003880ab0 pc=0x7f628
runtime.reflectcall(0xbc7c20?, 0x4003a97440?, 0x4?, 0xc2dce4?, 0x0?, 0x12?, 0xaa04e0?)
<autogenerated>:1 +0x34 fp=0x4003880b20 sp=0x4003880ae0 pc=0x82fa4
reflect.Value.call({0xa80a20?, 0xc87370?, 0x4003881218?}, {0xc1192a, 0x4}, {0x4001b372f0, 0x2, 0x0?})
/usr/local/golang/1.19.5/go/src/reflect/value.go:584 +0x688 fp=0x4003881190 sp=0x4003880b20 pc=0xff0d8
reflect.Value.Call({0xa80a20?, 0xc87370?, 0x30?}, {0x4001b372f0?, 0x1?, 0x4000be2f20?})
/usr/local/golang/1.19.5/go/src/reflect/value.go:368 +0x90 fp=0x4003881210 sp=0x4003881190 pc=0xfe860
github.com/traefik/yaegi/interp.callBin.func2({0xa80a20?, 0xc87370?, 0x0?}, {0x4001b372f0?, 0x4003ca2580?, 0x4003db2510?})
/home/semaphore/go/pkg/mod/github.com/traefik/yaegi@v0.14.3/interp/run.go:1483 +0x28 fp=0x4003881250 sp=0x4003881210 pc=0x5f9658
github.com/traefik/yaegi/interp.callBin.func11(0x4000be2f20)
/home/semaphore/go/pkg/mod/github.com/traefik/yaegi@v0.14.3/interp/run.go:1658 +0x13c fp=0x4003881350 sp=0x4003881250 pc=0x5fac6c
github.com/traefik/yaegi/interp.runCfg(0x4003aa2900, 0x4000be2f20, 0x4003881448?, 0x4003827680?)
/home/semaphore/go/pkg/mod/github.com/traefik/yaegi@v0.14.3/interp/run.go:200 +0x21c fp=0x4003881400 sp=0x4003881350 pc=0x5edc9c
github.com/traefik/yaegi/interp.call.func9(0x4000be2e70)
/home/semaphore/go/pkg/mod/github.com/traefik/yaegi@v0.14.3/interp/run.go:1419 +0x744 fp=0x40038815d0 sp=0x4003881400 pc=0x5f82d4
github.com/traefik/yaegi/interp.runCfg(0x4003aa8000, 0x4000be2e70, 0x4003884de8?, 0xb9f560?)
/home/semaphore/go/pkg/mod/github.com/traefik/yaegi@v0.14.3/interp/run.go:200 +0x21c fp=0x4003881680 sp=0x40038815d0 pc=0x5edc9c
github.com/traefik/yaegi/interp.call.func9(0x4000be2d10)
/home/semaphore/go/pkg/mod/github.com/traefik/yaegi@v0.14.3/interp/run.go:1419 +0x744 fp=0x4003881850 sp=0x4003881680 pc=0x5f82d4
github.com/traefik/yaegi/interp.runCfg(0x40038107e0, 0x4000be2d10, 0x4003884bc8?, 0xb2b740?)
/home/semaphore/go/pkg/mod/github.com/traefik/yaegi@v0.14.3/interp/run.go:200 +0x21c fp=0x4003881900 sp=0x4003881850 pc=0x5edc9c
github.com/traefik/yaegi/interp.call.func9(0x4000be2c60)
/home/semaphore/go/pkg/mod/github.com/traefik/yaegi@v0.14.3/interp/run.go:1419 +0x744 fp=0x4003881ad0 sp=0x4003881900 pc=0x5f82d4
github.com/traefik/yaegi/interp.runCfg(0x4003724b40, 0x4000be2c60, 0x0?, 0xb2b740?)
/home/semaphore/go/pkg/mod/github.com/traefik/yaegi@v0.14.3/interp/run.go:200 +0x21c fp=0x4003881b80 sp=0x4003881ad0 pc=0x5edc9c
github.com/traefik/yaegi/interp.call.func9(0x4000b671e0)
/home/semaphore/go/pkg/mod/github.com/traefik/yaegi@v0.14.3/interp/run.go:1419 +0x744 fp=0x4003881d50 sp=0x4003881b80 pc=0x5f82d4
github.com/traefik/yaegi/interp.runCfg(0x4000f545a0, 0x4000b671e0, 0x40034dbe98?, 0xb2b740?)
/home/semaphore/go/pkg/mod/github.com/traefik/yaegi@v0.14.3/interp/run.go:200 +0x21c fp=0x4003881e00 sp=0x4003881d50 pc=0x5edc9c
github.com/traefik/yaegi/interp.call.func9(0x4000b66c60)
/home/semaphore/go/pkg/mod/github.com/traefik/yaegi@v0.14.3/interp/run.go:1419 +0x744 fp=0x4003881fd0 sp=0x4003881e00 pc=0x5f82d4
github.com/traefik/yaegi/interp.runCfg(0x400309d320, 0x4000b66c60, 0x2?, 0xa6c0a0?)
/home/semaphore/go/pkg/mod/github.com/traefik/yaegi@v0.14.3/interp/run.go:200 +0x21c fp=0x4003882080 sp=0x4003881fd0 pc=0x5edc9c
github.com/traefik/yaegi/interp.genFunctionWrapper.func1.1({0x4001a75e60, 0x4, 0x8?})
/home/semaphore/go/pkg/mod/github.com/traefik/yaegi@v0.14.3/interp/run.go:1002 +0x3cc fp=0x40038821b0 sp=0x4003882080 pc=0x5f533c
reflect.callReflect(0x4001b32270, 0x4003882788, 0x40038825e8, 0x40038825f0)
/usr/local/golang/1.19.5/go/src/reflect/value.go:770 +0x3f4 fp=0x4003882590 sp=0x40038821b0 pc=0x1003b4
reflect.callReflect(0x4001b32270, 0x400029e788, 0x400029e5e8, 0x400029e5f0)
<autogenerated>:1 +0x28 fp=0x40038825c0 sp=0x4003882590 pc=0x10bdf8
reflect.makeFuncStub()
/usr/local/golang/1.19.5/go/src/reflect/asm_arm64.s:48 +0x58 fp=0x4003882780 sp=0x40038825c0 pc=0x10bd08
runtime.call64(0x4001b32210, 0x4001b32270, 0x0, 0x0, 0x0, 0x38, 0x4003882cf0)
/usr/local/golang/1.19.5/go/src/runtime/asm_arm64.s:480 +0x78 fp=0x40038827d0 sp=0x4003882780 pc=0x7f708
runtime.reflectcall(0xa6c0a0?, 0x40027b4370?, 0x8?, 0xc2dce4?, 0x0?, 0x12?, 0xa6c0a0?)
<autogenerated>:1 +0x34 fp=0x4003882810 sp=0x40038827d0 pc=0x82fa4
reflect.Value.call({0x400008bc80?, 0x4001b32270?, 0xadd1c0?}, {0xc1192a, 0x4}, {0x400029f170, 0x4, 0xe40538?})
/usr/local/golang/1.19.5/go/src/reflect/value.go:584 +0x688 fp=0x4003882e80 sp=0x4003882810 pc=0xff0d8
reflect.Value.Call({0x400008bc80?, 0x4001b32270?, 0xc960?}, {0x400029f170?, 0xffffb5181108?, 0x10?})
/usr/local/golang/1.19.5/go/src/reflect/value.go:368 +0x90 fp=0x4003882f00 sp=0x4003882e80 pc=0xfe860
github.com/traefik/piceus/pkg/core.safeFnCall({0x400008bc80?, 0x4001b32270?, 0x4000ae5680?}, {0x400029f170?, 0x40012dbba0?, 0x1?})
/home/semaphore/go/src/github.com/traefik/piceus/pkg/core/scrapper.go:805 +0x68 fp=0x4003882f90 sp=0x4003882f00 pc=0x9aef88
github.com/traefik/piceus/pkg/core.yaegiMiddlewareCheck({0x4000657320, 0x21}, {{0x40007e655b, 0x5}, {0x40007e6570, 0xa}, {0x40006567e0, 0x29}, {0x0, 0x0}, ...}, ...)
/home/semaphore/go/src/github.com/traefik/piceus/pkg/core/scrapper.go:780 +0x6d0 fp=0x40038831e0 sp=0x4003882f90 pc=0x9aeba0
github.com/traefik/piceus/pkg/core.(*Scrapper).yaegiCheck(0x40003e02d0, {{0x40007e655b, 0x5}, {0x40007e6570, 0xa}, {0x40006567e0, 0x29}, {0x0, 0x0}, {0x0, ...}, ...}, ...)
/home/semaphore/go/src/github.com/traefik/piceus/pkg/core/scrapper.go:722 +0x168 fp=0x40038832e0 sp=0x40038831e0 pc=0x9ae318
github.com/traefik/piceus/pkg/core.(*Scrapper).process(0x40003e02d0, {0xe382c8, 0x40006ddaa0}, 0x40000b1180)
/home/semaphore/go/src/github.com/traefik/piceus/pkg/core/scrapper.go:320 +0x674 fp=0x4003883680 sp=0x40038832e0 pc=0x9aa5b4
github.com/traefik/piceus/pkg/core.(*Scrapper).Run(0x40003e02d0, {0xe38258?, 0x4000114000?})
/home/semaphore/go/src/github.com/traefik/piceus/pkg/core/scrapper.go:131 +0x4a8 fp=0x4003883a40 sp=0x4003883680 pc=0x9a9288
github.com/traefik/piceus/cmd/run.run({0xe38258, 0x4000114000}, {{0x400003800d, 0x28}, {0x400003a00b, 0x1f}, {{0x4000034061, 0x3b}, {0xc1570e, 0x6}, ...}})
/home/semaphore/go/src/github.com/traefik/piceus/cmd/run/run.go:43 +0x3c0 fp=0x4003883b20 sp=0x4003883a40 pc=0x9d84e0
github.com/traefik/piceus/cmd/run.Command.func1(0x400033ef80)
/home/semaphore/go/src/github.com/traefik/piceus/cmd/run/command.go:53 +0xf0 fp=0x4003883c50 sp=0x4003883b20 pc=0x9d7580
github.com/urfave/cli/v2.(*Command).Run(0x40001a1680, 0x400033ed00)
/home/semaphore/go/pkg/mod/github.com/urfave/cli/v2@v2.10.3/command.go:169 +0x54c fp=0x4003883d70 sp=0x4003883c50 pc=0x22de2c
github.com/urfave/cli/v2.(*App).RunContext(0x4000111ba0, {0xe38258?, 0x4000114000}, {0x4000108060, 0x3, 0x3})
/home/semaphore/go/pkg/mod/github.com/urfave/cli/v2@v2.10.3/app.go:341 +0x8c4 fp=0x4003883f10 sp=0x4003883d70 pc=0x22adf4
github.com/urfave/cli/v2.(*App).Run(...)
/home/semaphore/go/pkg/mod/github.com/urfave/cli/v2@v2.10.3/app.go:247
main.main()
/home/semaphore/go/src/github.com/traefik/piceus/main.go:20 +0xfc fp=0x4003883f70 sp=0x4003883f10 pc=0x9d8a0c
runtime.main()
/usr/local/golang/1.19.5/go/src/runtime/proc.go:250 +0x254 fp=0x4003883fd0 sp=0x4003883f70 pc=0x4e914
runtime.goexit()
/usr/local/golang/1.19.5/go/src/runtime/asm_arm64.s:1172 +0x4 fp=0x4003883fd0 sp=0x4003883fd0 pc=0x81564

goroutine 2 [force gc (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
/usr/local/golang/1.19.5/go/src/runtime/proc.go:363 +0xe4 fp=0x4000054fa0 sp=0x4000054f80 pc=0x4ece4
runtime.goparkunlock(...)
/usr/local/golang/1.19.5/go/src/runtime/proc.go:369
runtime.forcegchelper()
/usr/local/golang/1.19.5/go/src/runtime/proc.go:302 +0xb4 fp=0x4000054fd0 sp=0x4000054fa0 pc=0x4eb74
runtime.goexit()
/usr/local/golang/1.19.5/go/src/runtime/asm_arm64.s:1172 +0x4 fp=0x4000054fd0 sp=0x4000054fd0 pc=0x81564
created by runtime.init.6
/usr/local/golang/1.19.5/go/src/runtime/proc.go:290 +0x24

goroutine 3 [GC sweep wait]:
runtime.gopark(0x1?, 0x0?, 0x0?, 0x0?, 0x0?)
/usr/local/golang/1.19.5/go/src/runtime/proc.go:363 +0xe4 fp=0x4000055770 sp=0x4000055750 pc=0x4ece4
runtime.goparkunlock(...)
/usr/local/golang/1.19.5/go/src/runtime/proc.go:369
runtime.bgsweep(0x0?)
/usr/local/golang/1.19.5/go/src/runtime/mgcsweep.go:297 +0x10c fp=0x40000557b0 sp=0x4000055770 pc=0x390cc
runtime.gcenable.func1()
/usr/local/golang/1.19.5/go/src/runtime/mgc.go:178 +0x28 fp=0x40000557d0 sp=0x40000557b0 pc=0x2d318
runtime.goexit()
/usr/local/golang/1.19.5/go/src/runtime/asm_arm64.s:1172 +0x4 fp=0x40000557d0 sp=0x40000557d0 pc=0x81564
created by runtime.gcenable
/usr/local/golang/1.19.5/go/src/runtime/mgc.go:178 +0x70

goroutine 4 [GC scavenge wait]:
runtime.gopark(0x4515a7b9d39e?, 0x213e79?, 0x0?, 0x0?, 0x0?)
/usr/local/golang/1.19.5/go/src/runtime/proc.go:363 +0xe4 fp=0x4000055f50 sp=0x4000055f30 pc=0x4ece4
runtime.goparkunlock(...)
/usr/local/golang/1.19.5/go/src/runtime/proc.go:369
runtime.(*scavengerState).park(0x14a48a0)
/usr/local/golang/1.19.5/go/src/runtime/mgcscavenge.go:389 +0x5c fp=0x4000055f80 sp=0x4000055f50 pc=0x3704c
runtime.bgscavenge(0x0?)
/usr/local/golang/1.19.5/go/src/runtime/mgcscavenge.go:622 +0xac fp=0x4000055fb0 sp=0x4000055f80 pc=0x3761c
runtime.gcenable.func2()
/usr/local/golang/1.19.5/go/src/runtime/mgc.go:179 +0x28 fp=0x4000055fd0 sp=0x4000055fb0 pc=0x2d2b8
runtime.goexit()
/usr/local/golang/1.19.5/go/src/runtime/asm_arm64.s:1172 +0x4 fp=0x4000055fd0 sp=0x4000055fd0 pc=0x81564
created by runtime.gcenable
/usr/local/golang/1.19.5/go/src/runtime/mgc.go:179 +0xb4

goroutine 17 [finalizer wait]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
/usr/local/golang/1.19.5/go/src/runtime/proc.go:363 +0xe4 fp=0x4000050580 sp=0x4000050560 pc=0x4ece4
runtime.goparkunlock(...)
/usr/local/golang/1.19.5/go/src/runtime/proc.go:369
runtime.runfinq()
/usr/local/golang/1.19.5/go/src/runtime/mfinal.go:180 +0x128 fp=0x40000507d0 sp=0x4000050580 pc=0x2c4b8
runtime.goexit()
/usr/local/golang/1.19.5/go/src/runtime/asm_arm64.s:1172 +0x4 fp=0x40000507d0 sp=0x40000507d0 pc=0x81564
created by runtime.createfing
/usr/local/golang/1.19.5/go/src/runtime/mfinal.go:157 +0x94

goroutine 19 [select]:
runtime.gopark(0x4000050f50?, 0x3?, 0x38?, 0x1?, 0x4000050f1a?)
/usr/local/golang/1.19.5/go/src/runtime/proc.go:363 +0xe4 fp=0x4000050d90 sp=0x4000050d70 pc=0x4ece4
runtime.selectgo(0x4000050f50, 0x4000050f14, 0x4000050e01?, 0x0, 0x4000050f88?, 0x1)
/usr/local/golang/1.19.5/go/src/runtime/select.go:328 +0x6b4 fp=0x4000050ea0 sp=0x4000050d90 pc=0x5f954
go.opentelemetry.io/otel/sdk/trace.(*BatchSpanProcessor).processQueue(0x40001c65a0)
/home/semaphore/go/pkg/mod/go.opentelemetry.io/otel/sdk@v0.18.0/trace/batch_span_processor.go:203 +0xa8 fp=0x4000050f90 sp=0x4000050ea0 pc=0x9ca0a8
go.opentelemetry.io/otel/sdk/trace.NewBatchSpanProcessor.func1()
/home/semaphore/go/pkg/mod/go.opentelemetry.io/otel/sdk@v0.18.0/trace/batch_span_processor.go:107 +0x58 fp=0x4000050fd0 sp=0x4000050f90 pc=0x9c99c8
runtime.goexit()
/usr/local/golang/1.19.5/go/src/runtime/asm_arm64.s:1172 +0x4 fp=0x4000050fd0 sp=0x4000050fd0 pc=0x81564
created by go.opentelemetry.io/otel/sdk/trace.NewBatchSpanProcessor
/home/semaphore/go/pkg/mod/go.opentelemetry.io/otel/sdk@v0.18.0/trace/batch_span_processor.go:105 +0x21c

goroutine 35 [IO wait]:
runtime.gopark(0x4000240ad8?, 0x7df50?, 0x0?, 0x0?, 0x0?)
/usr/local/golang/1.19.5/go/src/runtime/proc.go:363 +0xe4 fp=0x4000240aa0 sp=0x4000240a80 pc=0x4ece4
runtime.netpollblock(0x0?, 0xffffffff?, 0xff?)
/usr/local/golang/1.19.5/go/src/runtime/netpoll.go:526 +0x160 fp=0x4000240ae0 sp=0x4000240aa0 pc=0x47720
internal/poll.runtime_pollWait(0xffff8db8f778, 0x72)
/usr/local/golang/1.19.5/go/src/runtime/netpoll.go:305 +0xa0 fp=0x4000240b10 sp=0x4000240ae0 pc=0x7ace0
internal/poll.(*pollDesc).wait(0x400008aa80?, 0x4000460000?, 0x0)
/usr/local/golang/1.19.5/go/src/internal/poll/fd_poll_runtime.go:84 +0x28 fp=0x4000240b40 sp=0x4000240b10 pc=0xbe1b8
internal/poll.(*pollDesc).waitRead(...)
/usr/local/golang/1.19.5/go/src/internal/poll/fd_poll_runtime.go:89
internal/poll.(*FD).Read(0x400008aa80, {0x4000460000, 0x1000, 0x1000})
/usr/local/golang/1.19.5/go/src/internal/poll/fd_unix.go:167 +0x1e8 fp=0x4000240bc0 sp=0x4000240b40 pc=0xbf558
net.(*netFD).Read(0x400008aa80, {0x4000460000?, 0x4000240c58?, 0x154bc?})
/usr/local/golang/1.19.5/go/src/net/fd_posix.go:55 +0x28 fp=0x4000240c10 sp=0x4000240bc0 pc=0x13fc28
net.(*conn).Read(0x400010c1a0, {0x4000460000?, 0x0?, 0x0?})
/usr/local/golang/1.19.5/go/src/net/net.go:183 +0x34 fp=0x4000240c60 sp=0x4000240c10 pc=0x154e24
net/http.(*persistConn).Read(0x400060e360, {0x4000460000?, 0x15560?, 0x40002cafc0?})
/usr/local/golang/1.19.5/go/src/net/http/transport.go:1929 +0x50 fp=0x4000240cc0 sp=0x4000240c60 pc=0x3b1620
bufio.(*Reader).fill(0x400010fec0)
/usr/local/golang/1.19.5/go/src/bufio/bufio.go:106 +0xfc fp=0x4000240d00 sp=0x4000240cc0 pc=0x31a18c
bufio.(*Reader).Peek(0x400010fec0, 0x1)
/usr/local/golang/1.19.5/go/src/bufio/bufio.go:144 +0x68 fp=0x4000240d20 sp=0x4000240d00 pc=0x31a318
net/http.(*persistConn).readLoop(0x400060e360)
/usr/local/golang/1.19.5/go/src/net/http/transport.go:2093 +0x15c fp=0x4000240fb0 sp=0x4000240d20 pc=0x3b24fc
net/http.(*Transport).dialConn.func5()
/usr/local/golang/1.19.5/go/src/net/http/transport.go:1751 +0x28 fp=0x4000240fd0 sp=0x4000240fb0 pc=0x3b0cb8
runtime.goexit()
/usr/local/golang/1.19.5/go/src/runtime/asm_arm64.s:1172 +0x4 fp=0x4000240fd0 sp=0x4000240fd0 pc=0x81564
created by net/http.(*Transport).dialConn
/usr/local/golang/1.19.5/go/src/net/http/transport.go:1751 +0x11e8

goroutine 36 [select]:
runtime.gopark(0x400023ef80?, 0x2?, 0xe8?, 0xed?, 0x400023ef14?)
/usr/local/golang/1.19.5/go/src/runtime/proc.go:363 +0xe4 fp=0x400023eda0 sp=0x400023ed80 pc=0x4ece4
runtime.selectgo(0x400023ef80, 0x400023ef10, 0x4000462000?, 0x0, 0x4000719530?, 0x1)
/usr/local/golang/1.19.5/go/src/runtime/select.go:328 +0x6b4 fp=0x400023eeb0 sp=0x400023eda0 pc=0x5f954
net/http.(*persistConn).writeLoop(0x400060e360)
/usr/local/golang/1.19.5/go/src/net/http/transport.go:2392 +0xa0 fp=0x400023efb0 sp=0x400023eeb0 pc=0x3b3f30
net/http.(*Transport).dialConn.func6()
/usr/local/golang/1.19.5/go/src/net/http/transport.go:1752 +0x28 fp=0x400023efd0 sp=0x400023efb0 pc=0x3b0c58
runtime.goexit()
/usr/local/golang/1.19.5/go/src/runtime/asm_arm64.s:1172 +0x4 fp=0x400023efd0 sp=0x400023efd0 pc=0x81564
created by net/http.(*Transport).dialConn
/usr/local/golang/1.19.5/go/src/net/http/transport.go:1752 +0x1234

goroutine 27 [IO wait]:
runtime.gopark(0x40000c0658?, 0x400023f628?, 0x38?, 0xf6?, 0x422?)
/usr/local/golang/1.19.5/go/src/runtime/proc.go:363 +0xe4 fp=0x400023f5a0 sp=0x400023f580 pc=0x4ece4
runtime.netpollblock(0x0?, 0xffffffff?, 0xff?)
/usr/local/golang/1.19.5/go/src/runtime/netpoll.go:526 +0x160 fp=0x400023f5e0 sp=0x400023f5a0 pc=0x47720
internal/poll.runtime_pollWait(0xffff8db8f868, 0x72)
/usr/local/golang/1.19.5/go/src/runtime/netpoll.go:305 +0xa0 fp=0x400023f610 sp=0x400023f5e0 pc=0x7ace0
internal/poll.(*pollDesc).wait(0x40003fa280?, 0x40002d4000?, 0x0)
/usr/local/golang/1.19.5/go/src/internal/poll/fd_poll_runtime.go:84 +0x28 fp=0x400023f640 sp=0x400023f610 pc=0xbe1b8
internal/poll.(*pollDesc).waitRead(...)
/usr/local/golang/1.19.5/go/src/internal/poll/fd_poll_runtime.go:89
internal/poll.(*FD).Read(0x40003fa280, {0x40002d4000, 0x1300, 0x1300})
/usr/local/golang/1.19.5/go/src/internal/poll/fd_unix.go:167 +0x1e8 fp=0x400023f6c0 sp=0x400023f640 pc=0xbf558
net.(*netFD).Read(0x40003fa280, {0x40002d4000?, 0x0?, 0x399?})
/usr/local/golang/1.19.5/go/src/net/fd_posix.go:55 +0x28 fp=0x400023f710 sp=0x400023f6c0 pc=0x13fc28
net.(*conn).Read(0x400000e048, {0x40002d4000?, 0x400023f798?, 0xa0000000028bf8?})
/usr/local/golang/1.19.5/go/src/net/net.go:183 +0x34 fp=0x400023f760 sp=0x400023f710 pc=0x154e24
crypto/tls.(*atLeastReader).Read(0x40006d8cc0, {0x40002d4000?, 0x0?, 0x2e2a28?})
/usr/local/golang/1.19.5/go/src/crypto/tls/conn.go:787 +0x40 fp=0x400023f7b0 sp=0x400023f760 pc=0x2e2890
bytes.(*Buffer).ReadFrom(0x40000b0278, {0xe2fbe0, 0x40006d8cc0})
/usr/local/golang/1.19.5/go/src/bytes/buffer.go:202 +0x90 fp=0x400023f810 sp=0x400023f7b0 pc=0x16d1d0
crypto/tls.(*Conn).readFromUntil(0x40000b0000, {0xe30f20?, 0x400000e048}, 0x3?)
/usr/local/golang/1.19.5/go/src/crypto/tls/conn.go:809 +0xd4 fp=0x400023f850 sp=0x400023f810 pc=0x2e2a94
crypto/tls.(*Conn).readRecordOrCCS(0x40000b0000, 0x0)
/usr/local/golang/1.19.5/go/src/crypto/tls/conn.go:616 +0xd8 fp=0x400023fbe0 sp=0x400023f850 pc=0x2e0768
crypto/tls.(*Conn).readRecord(...)
/usr/local/golang/1.19.5/go/src/crypto/tls/conn.go:582
crypto/tls.(*Conn).Read(0x40000b0000, {0x4000249000, 0x1000, 0x368fd8?})
/usr/local/golang/1.19.5/go/src/crypto/tls/conn.go:1287 +0x178 fp=0x400023fc50 sp=0x400023fbe0 pc=0x2e5568
bufio.(*Reader).Read(0x40002385a0, {0x40000d1c40, 0x9, 0x15bc0?})
/usr/local/golang/1.19.5/go/src/bufio/bufio.go:237 +0x1e8 fp=0x400023fc90 sp=0x400023fc50 pc=0x31a7d8
io.ReadAtLeast({0xe2fa00, 0x40002385a0}, {0x40000d1c40, 0x9, 0x9}, 0x9)
/usr/local/golang/1.19.5/go/src/io/io.go:332 +0xa8 fp=0x400023fce0 sp=0x400023fc90 pc=0xb5308
io.ReadFull(...)
/usr/local/golang/1.19.5/go/src/io/io.go:351
net/http.http2readFrameHeader({0x40000d1c40?, 0x9?, 0x400023fd88?}, {0xe2fa00?, 0x40002385a0?})
/usr/local/golang/1.19.5/go/src/net/http/h2_bundle.go:1565 +0x58 fp=0x400023fd30 sp=0x400023fce0 pc=0x35fd48
net/http.(*http2Framer).ReadFrame(0x40000d1c00)
/usr/local/golang/1.19.5/go/src/net/http/h2_bundle.go:1829 +0x84 fp=0x400023fde0 sp=0x400023fd30 pc=0x360544
net/http.(*http2clientConnReadLoop).run(0x400023ff88)
/usr/local/golang/1.19.5/go/src/net/http/h2_bundle.go:8874 +0xfc fp=0x400023ff40 sp=0x400023fde0 pc=0x380f2c
net/http.(*http2ClientConn).readLoop(0x40003f2300)
/usr/local/golang/1.19.5/go/src/net/http/h2_bundle.go:8770 +0x5c fp=0x400023ffb0 sp=0x400023ff40 pc=0x3803ec
net/http.(*http2Transport).newClientConn.func1()
/usr/local/golang/1.19.5/go/src/net/http/h2_bundle.go:7477 +0x28 fp=0x400023ffd0 sp=0x400023ffb0 pc=0x3795f8
runtime.goexit()
/usr/local/golang/1.19.5/go/src/runtime/asm_arm64.s:1172 +0x4 fp=0x400023ffd0 sp=0x400023ffd0 pc=0x81564
created by net/http.(*http2Transport).newClientConn
/usr/local/golang/1.19.5/go/src/net/http/h2_bundle.go:7477 +0x8f4

goroutine 25 [GC worker (idle)]:
runtime.gopark(0x4515ee9fc644?, 0x3?, 0x15?, 0x73?, 0x0?)
/usr/local/golang/1.19.5/go/src/runtime/proc.go:363 +0xe4 fp=0x4000056740 sp=0x4000056720 pc=0x4ece4
runtime.gcBgMarkWorker()
/usr/local/golang/1.19.5/go/src/runtime/mgc.go:1235 +0xec fp=0x40000567d0 sp=0x4000056740 pc=0x2f79c
runtime.goexit()
/usr/local/golang/1.19.5/go/src/runtime/asm_arm64.s:1172 +0x4 fp=0x40000567d0 sp=0x40000567d0 pc=0x81564
created by runtime.gcBgMarkStartWorkers
/usr/local/golang/1.19.5/go/src/runtime/mgc.go:1159 +0x28

goroutine 14 [GC worker (idle)]:
runtime.gopark(0x4515eeb71e2d?, 0x3?, 0x3d?, 0xaf?, 0x81564?)
/usr/local/golang/1.19.5/go/src/runtime/proc.go:363 +0xe4 fp=0x4000056f40 sp=0x4000056f20 pc=0x4ece4
runtime.gcBgMarkWorker()
/usr/local/golang/1.19.5/go/src/runtime/mgc.go:1235 +0xec fp=0x4000056fd0 sp=0x4000056f40 pc=0x2f79c
runtime.goexit()
/usr/local/golang/1.19.5/go/src/runtime/asm_arm64.s:1172 +0x4 fp=0x4000056fd0 sp=0x4000056fd0 pc=0x81564
created by runtime.gcBgMarkStartWorkers
/usr/local/golang/1.19.5/go/src/runtime/mgc.go:1159 +0x28

goroutine 98 [select]:
runtime.gopark(0x4001b38120?, 0x3?, 0x0?, 0x40?, 0x400209402a?)
/usr/local/golang/1.19.5/go/src/runtime/proc.go:363 +0xe4 fp=0x4004018c40 sp=0x4004018c20 pc=0x4ece4
runtime.selectgo(0x4001b38120, 0x4002094024, 0x38?, 0x0, 0x10000c749?, 0x1)
/usr/local/golang/1.19.5/go/src/runtime/select.go:328 +0x6b4 fp=0x4004018d50 sp=0x4004018c40 pc=0x5f954
reflect.rselect({0x4004018ed8, 0x3, 0x4004018e48?})
/usr/local/golang/1.19.5/go/src/runtime/select.go:590 +0x1e0 fp=0x4004018df0 sp=0x4004018d50 pc=0x7c9b0
reflect.Select({0x4003db4370?, 0x3, 0x4004018fe8?})
/usr/local/golang/1.19.5/go/src/reflect/value.go:2952 +0xa4 fp=0x4004018f60 sp=0x4004018df0 pc=0x108194
github.com/traefik/yaegi/interp._select.func4(0x4000b56000)
/home/semaphore/go/pkg/mod/github.com/traefik/yaegi@v0.14.3/interp/run.go:3783 +0x438 fp=0x4004019060 sp=0x4004018f60 pc=0x613dc8
github.com/traefik/yaegi/interp.runCfg(0x4003a94ea0, 0x4000b56000, 0xffff8d80a780?, 0x4003ad0680?)
/home/semaphore/go/pkg/mod/github.com/traefik/yaegi@v0.14.3/interp/run.go:200 +0x21c fp=0x4004019110 sp=0x4004019060 pc=0x5edc9c
github.com/traefik/yaegi/interp.genFunctionWrapper.func1.1({0x4003572000, 0x1, 0x1?})
/home/semaphore/go/pkg/mod/github.com/traefik/yaegi@v0.14.3/interp/run.go:1002 +0x3cc fp=0x4004019240 sp=0x4004019110 pc=0x5f533c
reflect.callReflect(0x4001b37290, 0x4004019818, 0x4004019678, 0x4004019680)
/usr/local/golang/1.19.5/go/src/reflect/value.go:770 +0x3f4 fp=0x4004019620 sp=0x4004019240 pc=0x1003b4
reflect.callReflect(0x4001b37290, 0x40020bb818, 0x40020bb678, 0x40020bb680)
<autogenerated>:1 +0x28 fp=0x4004019650 sp=0x4004019620 pc=0x10bdf8
reflect.makeFuncStub()
/usr/local/golang/1.19.5/go/src/reflect/asm_arm64.s:48 +0x58 fp=0x4004019810 sp=0x4004019650 pc=0x10bd08
runtime.call16(0x4001b37230, 0x4001b37290, 0x0, 0x0, 0x0, 0x8, 0x4004019d50)
/usr/local/golang/1.19.5/go/src/runtime/asm_arm64.s:478 +0x78 fp=0x4004019830 sp=0x4004019810 pc=0x7f548
runtime.reflectcall(0x4003ad0680?, 0x40019bfd70?, 0x1?, 0xc2dce4?, 0x0?, 0x12?, 0x4003ad0680?)
<autogenerated>:1 +0x34 fp=0x4004019870 sp=0x4004019830 pc=0x82fa4
reflect.Value.call({0x4003c994a0?, 0x4001b37290?, 0x4?}, {0xc1192a, 0x4}, {0x40034678c0, 0x1, 0x4002072120?})
/usr/local/golang/1.19.5/go/src/reflect/value.go:584 +0x688 fp=0x4004019ee0 sp=0x4004019870 pc=0xff0d8
reflect.Value.Call({0x4003c994a0?, 0x4001b37290?, 0x4000290fa8?}, {0x40034678c0?, 0x0?, 0x100000000081568?})
/usr/local/golang/1.19.5/go/src/reflect/value.go:368 +0x90 fp=0x4004019f60 sp=0x4004019ee0 pc=0xfe860
github.com/traefik/yaegi/interp.call.func9.2({0x40034678c0?, 0x40027b4110?, 0x40005cd2c0?})
/home/semaphore/go/pkg/mod/github.com/traefik/yaegi@v0.14.3/interp/run.go:1288 +0x44 fp=0x4004019fa0 sp=0x4004019f60 pc=0x5f8d24
github.com/traefik/yaegi/interp.call.func9.3()
/home/semaphore/go/pkg/mod/github.com/traefik/yaegi@v0.14.3/interp/run.go:1300 +0x38 fp=0x4004019fd0 sp=0x4004019fa0 pc=0x5f8ca8
runtime.goexit()
/usr/local/golang/1.19.5/go/src/runtime/asm_arm64.s:1172 +0x4 fp=0x4004019fd0 sp=0x4004019fd0 pc=0x81564
created by github.com/traefik/yaegi/interp.call.func9
/home/semaphore/go/pkg/mod/github.com/traefik/yaegi@v0.14.3/interp/run.go:1300 +0xf48

goroutine 80 [IO wait]:
runtime.gopark(0x400034c018?, 0x40005dd628?, 0x38?, 0xd6?, 0x55b?)
/usr/local/golang/1.19.5/go/src/runtime/proc.go:363 +0xe4 fp=0x40005dd5a0 sp=0x40005dd580 pc=0x4ece4
runtime.netpollblock(0x0?, 0xffffffff?, 0xff?)
/usr/local/golang/1.19.5/go/src/runtime/netpoll.go:526 +0x160 fp=0x40005dd5e0 sp=0x40005dd5a0 pc=0x47720
internal/poll.runtime_pollWait(0xffff8db8f688, 0x72)
/usr/local/golang/1.19.5/go/src/runtime/netpoll.go:305 +0xa0 fp=0x40005dd610 sp=0x40005dd5e0 pc=0x7ace0
internal/poll.(*pollDesc).wait(0x400013a800?, 0x4000022800?, 0x0)
/usr/local/golang/1.19.5/go/src/internal/poll/fd_poll_runtime.go:84 +0x28 fp=0x40005dd640 sp=0x40005dd610 pc=0xbe1b8
internal/poll.(*pollDesc).waitRead(...)
/usr/local/golang/1.19.5/go/src/internal/poll/fd_poll_runtime.go:89
internal/poll.(*FD).Read(0x400013a800, {0x4000022800, 0x4800, 0x4800})
/usr/local/golang/1.19.5/go/src/internal/poll/fd_unix.go:167 +0x1e8 fp=0x40005dd6c0 sp=0x40005dd640 pc=0xbf558
net.(*netFD).Read(0x400013a800, {0x4000022800?, 0x40000258f0?, 0x5?})
/usr/local/golang/1.19.5/go/src/net/fd_posix.go:55 +0x28 fp=0x40005dd710 sp=0x40005dd6c0 pc=0x13fc28
net.(*conn).Read(0x400010c818, {0x4000022800?, 0x40002d3a18?, 0x8?})
/usr/local/golang/1.19.5/go/src/net/net.go:183 +0x34 fp=0x40005dd760 sp=0x40005dd710 pc=0x154e24
crypto/tls.(*atLeastReader).Read(0x4000747c20, {0x4000022800?, 0x0?, 0x2e2a28?})
/usr/local/golang/1.19.5/go/src/crypto/tls/conn.go:787 +0x40 fp=0x40005dd7b0 sp=0x40005dd760 pc=0x2e2890
bytes.(*Buffer).ReadFrom(0x40002d3af8, {0xe2fbe0, 0x4000747c20})
/usr/local/golang/1.19.5/go/src/bytes/buffer.go:202 +0x90 fp=0x40005dd810 sp=0x40005dd7b0 pc=0x16d1d0
crypto/tls.(*Conn).readFromUntil(0x40002d3880, {0xe30f20?, 0x400010c818}, 0x40000258f5?)
/usr/local/golang/1.19.5/go/src/crypto/tls/conn.go:809 +0xd4 fp=0x40005dd850 sp=0x40005dd810 pc=0x2e2a94
crypto/tls.(*Conn).readRecordOrCCS(0x40002d3880, 0x0)
/usr/local/golang/1.19.5/go/src/crypto/tls/conn.go:616 +0xd8 fp=0x40005ddbe0 sp=0x40005dd850 pc=0x2e0768
crypto/tls.(*Conn).readRecord(...)
/usr/local/golang/1.19.5/go/src/crypto/tls/conn.go:582
crypto/tls.(*Conn).Read(0x40002d3880, {0x400068d000, 0x1000, 0x384068?})
/usr/local/golang/1.19.5/go/src/crypto/tls/conn.go:1287 +0x178 fp=0x40005ddc50 sp=0x40005ddbe0 pc=0x2e5568
bufio.(*Reader).Read(0x4000076600, {0x40003144a0, 0x9, 0x383a14?})
/usr/local/golang/1.19.5/go/src/bufio/bufio.go:237 +0x1e8 fp=0x40005ddc90 sp=0x40005ddc50 pc=0x31a7d8
io.ReadAtLeast({0xe2fa00, 0x4000076600}, {0x40003144a0, 0x9, 0x9}, 0x9)
/usr/local/golang/1.19.5/go/src/io/io.go:332 +0xa8 fp=0x40005ddce0 sp=0x40005ddc90 pc=0xb5308
io.ReadFull(...)
/usr/local/golang/1.19.5/go/src/io/io.go:351
net/http.http2readFrameHeader({0x40003144a0?, 0x9?, 0x40007480f0?}, {0xe2fa00?, 0x4000076600?})
/usr/local/golang/1.19.5/go/src/net/http/h2_bundle.go:1565 +0x58 fp=0x40005ddd30 sp=0x40005ddce0 pc=0x35fd48
net/http.(*http2Framer).ReadFrame(0x4000314460)
/usr/local/golang/1.19.5/go/src/net/http/h2_bundle.go:1829 +0x84 fp=0x40005ddde0 sp=0x40005ddd30 pc=0x360544
net/http.(*http2clientConnReadLoop).run(0x40005ddf88)
/usr/local/golang/1.19.5/go/src/net/http/h2_bundle.go:8874 +0xfc fp=0x40005ddf40 sp=0x40005ddde0 pc=0x380f2c
net/http.(*http2ClientConn).readLoop(0x400025e300)
/usr/local/golang/1.19.5/go/src/net/http/h2_bundle.go:8770 +0x5c fp=0x40005ddfb0 sp=0x40005ddf40 pc=0x3803ec
net/http.(*http2Transport).newClientConn.func1()
/usr/local/golang/1.19.5/go/src/net/http/h2_bundle.go:7477 +0x28 fp=0x40005ddfd0 sp=0x40005ddfb0 pc=0x3795f8
runtime.goexit()
/usr/local/golang/1.19.5/go/src/runtime/asm_arm64.s:1172 +0x4 fp=0x40005ddfd0 sp=0x40005ddfd0 pc=0x81564
created by net/http.(*http2Transport).newClientConn
/usr/local/golang/1.19.5/go/src/net/http/h2_bundle.go:7477 +0x8f4

Yaegi Version

v0.14.3

Additional Notes

related to e003140

@ldez ldez added the bug Something isn't working label Jan 20, 2023
@mpl mpl added the area/core label Jan 20, 2023
mvertes added a commit to mvertes/yaegi that referenced this issue Feb 8, 2023
It allows to use interpreter functions as parameters in the runtime,
even for defered callbacks, or when passed as empty interfaces,
as for runtime.SetFinalizer.

Fixes traefik#1503
traefiker pushed a commit that referenced this issue Feb 8, 2023
It allows to use interpreter functions as parameters in the runtime, even for defered callbacks, or when passed as empty interfaces, as for runtime.SetFinalizer.

Fixes #1503
@traefiker traefiker added this to the v0.15.x milestone Feb 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/core bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants