Skip to content

Bug: TestUnifiedClassifier_Initialize always fails on macOS #481

@carlory

Description

@carlory

Describe the bug

=== RUN   TestUnifiedClassifier_Initialize
=== RUN   TestUnifiedClassifier_Initialize/Already_initialized
=== RUN   TestUnifiedClassifier_Initialize/Initialization_attempt
SIGSEGV: segmentation violation
PC=0x19900aa44 m=10 sigcode=2 addr=0x0
signal arrived during cgo execution

goroutine 280 gp=0x14000405a40 m=10 mp=0x14000320008 [syscall]:
runtime.cgocall(0x103265a44, 0x14000086b08)
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/cgocall.go:167 +0x44 fp=0x14000086ad0 sp=0x14000086a90 pc=0x102c275f4
github.com/vllm-project/semantic-router/src/semantic-router/pkg/utils/classification._Cfunc_init_unified_classifier_c(0x600002464ea0, 0x600002464ec0, 0x600002464ee0, 0x600002464f00, 0x14000214230, 0xe, 0x140000341e0, 0xa, 0x140003b0660, 0x2, ...)
	_cgo_gotypes.go:255 +0x30 fp=0x14000086b00 sp=0x14000086ad0 pc=0x10321e660
github.com/vllm-project/semantic-router/src/semantic-router/pkg/utils/classification.(*UnifiedClassifier).Initialize.func8(...)
	/Users/kiki/workspace/semantic-router/src/semantic-router/pkg/utils/classification/unified_classifier.go:235
github.com/vllm-project/semantic-router/src/semantic-router/pkg/utils/classification.(*UnifiedClassifier).Initialize(0x140002141c0, {0x10327b745, 0x18}, {0x10327c5f2, 0x19}, {0x103279432, 0x16}, {0x10327e8cf, 0x1b}, {0x1400011a000, ...}, ...)
	/Users/kiki/workspace/semantic-router/src/semantic-router/pkg/utils/classification/unified_classifier.go:235 +0x548 fp=0x14000086e60 sp=0x14000086b00 pc=0x10321ed68
github.com/vllm-project/semantic-router/src/semantic-router/pkg/utils/classification.TestUnifiedClassifier_Initialize.func2(0x140002fa380)
	/Users/kiki/workspace/semantic-router/src/semantic-router/pkg/utils/classification/unified_classifier_test.go:32 +0xcc fp=0x14000086f60 sp=0x14000086e60 pc=0x10321b68c
testing.tRunner(0x140002fa380, 0x14000034140)
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/testing/testing.go:1934 +0xc8 fp=0x14000086fb0 sp=0x14000086f60 pc=0x102ceb088
testing.(*T).Run.gowrap1()
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/testing/testing.go:1997 +0x28 fp=0x14000086fd0 sp=0x14000086fb0 pc=0x102cebf08
runtime.goexit({})
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/asm_arm64.s:1268 +0x4 fp=0x14000086fd0 sp=0x14000086fd0 pc=0x102c33234
created by testing.(*T).Run in goroutine 278
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/testing/testing.go:1997 +0x364

goroutine 1 gp=0x140000041c0 m=nil [chan receive]:
runtime.gopark(0x102c34170?, 0x140002519b8?, 0x1?, 0x9b?, 0x104857488?)
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/proc.go:460 +0xc0 fp=0x14000251970 sp=0x14000251950 pc=0x102c2ab50
runtime.chanrecv(0x140000fe200, 0x14000251a77, 0x1)
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/chan.go:667 +0x428 fp=0x140002519f0 sp=0x14000251970 pc=0x102bc0ce8
runtime.chanrecv1(0x103bc76a0?, 0x1035ad1e0?)
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/chan.go:509 +0x14 fp=0x14000251a20 sp=0x140002519f0 pc=0x102bc0884
testing.(*T).Run(0x14000187180, {0x103284573?, 0x14000295b38?}, 0x103589688)
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/testing/testing.go:2005 +0x378 fp=0x14000251b00 sp=0x14000251a20 pc=0x102cebde8
testing.runTests.func1(0x14000187180)
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/testing/testing.go:2477 +0x38 fp=0x14000251b40 sp=0x14000251b00 pc=0x102cedbe8
testing.tRunner(0x14000187180, 0x14000295c68)
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/testing/testing.go:1934 +0xc8 fp=0x14000251b90 sp=0x14000251b40 pc=0x102ceb088
testing.runTests(0x140001a7410, {0x103ba1660, 0x11, 0x11}, {0x140002ee060?, 0xf?, 0x103bc8660?})
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/testing/testing.go:2475 +0x3b8 fp=0x14000251c90 sp=0x14000251b90 pc=0x102cedb08
testing.(*M).Run(0x140002cb220)
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/testing/testing.go:2337 +0x530 fp=0x14000251ec0 sp=0x14000251c90 pc=0x102cec9b0
main.main()
	_testmain.go:87 +0x80 fp=0x14000251f40 sp=0x14000251ec0 pc=0x103223200
runtime.main()
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/proc.go:285 +0x278 fp=0x14000251fd0 sp=0x14000251f40 pc=0x102bf5278
runtime.goexit({})
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/asm_arm64.s:1268 +0x4 fp=0x14000251fd0 sp=0x14000251fd0 pc=0x102c33234

goroutine 18 gp=0x14000102380 m=nil [force gc (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/proc.go:460 +0xc0 fp=0x1400006c790 sp=0x1400006c770 pc=0x102c2ab50
runtime.goparkunlock(...)
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/proc.go:466
runtime.forcegchelper()
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/proc.go:373 +0xb4 fp=0x1400006c7d0 sp=0x1400006c790 pc=0x102bf55c4
runtime.goexit({})
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/asm_arm64.s:1268 +0x4 fp=0x1400006c7d0 sp=0x1400006c7d0 pc=0x102c33234
created by runtime.init.7 in goroutine 1
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/proc.go:361 +0x24

goroutine 19 gp=0x14000102540 m=nil [GC sweep wait]:
runtime.gopark(0x1?, 0x0?, 0x0?, 0x0?, 0x0?)
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/proc.go:460 +0xc0 fp=0x1400006cf60 sp=0x1400006cf40 pc=0x102c2ab50
runtime.goparkunlock(...)
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/proc.go:466
runtime.bgsweep(0x14000112000)
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/mgcsweep.go:323 +0x104 fp=0x1400006cfb0 sp=0x1400006cf60 pc=0x102bdd804
runtime.gcenable.gowrap1()
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/mgc.go:212 +0x28 fp=0x1400006cfd0 sp=0x1400006cfb0 pc=0x102bd1468
runtime.goexit({})
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/asm_arm64.s:1268 +0x4 fp=0x1400006cfd0 sp=0x1400006cfd0 pc=0x102c33234
created by runtime.gcenable in goroutine 1
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/mgc.go:212 +0x6c

goroutine 20 gp=0x14000102700 m=nil [sleep]:
runtime.gopark(0x14000180000?, 0xc815728f3400?, 0x0?, 0x0?, 0x0?)
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/proc.go:460 +0xc0 fp=0x1400006d720 sp=0x1400006d700 pc=0x102c2ab50
runtime.goparkunlock(...)
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/proc.go:466
runtime.(*scavengerState).sleep(0x103bc8760, 0x40c28e0000000000)
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/mgcscavenge.go:504 +0x108 fp=0x1400006d790 sp=0x1400006d720 pc=0x102bdb508
runtime.bgscavenge(0x14000112000)
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/mgcscavenge.go:662 +0x9c fp=0x1400006d7b0 sp=0x1400006d790 pc=0x102bdb8bc
runtime.gcenable.gowrap2()
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/mgc.go:213 +0x28 fp=0x1400006d7d0 sp=0x1400006d7b0 pc=0x102bd1408
runtime.goexit({})
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/asm_arm64.s:1268 +0x4 fp=0x1400006d7d0 sp=0x1400006d7d0 pc=0x102c33234
created by runtime.gcenable in goroutine 1
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/mgc.go:213 +0xac

goroutine 34 gp=0x14000186380 m=nil [finalizer wait]:
runtime.gopark(0x8?, 0x102c37cac?, 0xc8?, 0x5?, 0x103e9c508?)
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/proc.go:460 +0xc0 fp=0x14000070580 sp=0x14000070560 pc=0x102c2ab50
runtime.runFinalizers()
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/mfinal.go:210 +0x104 fp=0x140000707d0 sp=0x14000070580 pc=0x102bd0454
runtime.goexit({})
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/asm_arm64.s:1268 +0x4 fp=0x140000707d0 sp=0x140000707d0 pc=0x102c33234
created by runtime.createfing in goroutine 1
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/mfinal.go:172 +0x78

goroutine 35 gp=0x14000186a80 m=nil [cleanup wait]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/proc.go:460 +0xc0 fp=0x140002a8740 sp=0x140002a8720 pc=0x102c2ab50
runtime.goparkunlock(...)
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/proc.go:466
runtime.(*cleanupQueue).dequeue(0x103bc8e60)
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/mcleanup.go:439 +0x110 fp=0x140002a8780 sp=0x140002a8740 pc=0x102bcd420
runtime.runCleanups()
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/mcleanup.go:635 +0x40 fp=0x140002a87d0 sp=0x140002a8780 pc=0x102bcdc30
runtime.goexit({})
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/asm_arm64.s:1268 +0x4 fp=0x140002a87d0 sp=0x140002a87d0 pc=0x102c33234
created by runtime.(*cleanupQueue).createGs in goroutine 1
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/mcleanup.go:589 +0x108

goroutine 49 gp=0x14000187500 m=nil [select, locked to thread]:
runtime.gopark(0x140002a8fa0?, 0x2?, 0xa8?, 0x8e?, 0x140002a8f90?)
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/proc.go:460 +0xc0 fp=0x140002a8e10 sp=0x140002a8df0 pc=0x102c2ab50
runtime.selectgo(0x140002a8fa0, 0x140002a8f8c, 0x0?, 0x0, 0x14000126618?, 0x1)
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/select.go:351 +0x6bc fp=0x140002a8f50 sp=0x140002a8e10 pc=0x102c08fec
runtime.ensureSigM.func1()
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/signal_unix.go:1085 +0x154 fp=0x140002a8fd0 sp=0x140002a8f50 pc=0x102c24f84
runtime.goexit({})
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/asm_arm64.s:1268 +0x4 fp=0x140002a8fd0 sp=0x140002a8fd0 pc=0x102c33234
created by runtime.ensureSigM in goroutine 48
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/signal_unix.go:1068 +0xcc

goroutine 12 gp=0x14000005340 m=5 mp=0x14000100008 [syscall]:
runtime.sigNoteSleep(0x0?)
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/os_darwin.go:133 +0x20 fp=0x14000070f90 sp=0x14000070f50 pc=0x102bef800
os/signal.signal_recv()
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/sigqueue.go:149 +0x2c fp=0x14000070fb0 sp=0x14000070f90 pc=0x102c2cdfc
os/signal.loop()
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/os/signal/signal_unix.go:23 +0x1c fp=0x14000070fd0 sp=0x14000070fb0 pc=0x102d493dc
runtime.goexit({})
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/asm_arm64.s:1268 +0x4 fp=0x14000070fd0 sp=0x14000070fd0 pc=0x102c33234
created by os/signal.Notify.func1.1 in goroutine 48
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/os/signal/signal.go:152 +0x28

goroutine 29 gp=0x14000102c40 m=nil [select]:
runtime.gopark(0x1400006df78?, 0x3?, 0x0?, 0x0?, 0x1400006df5a?)
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/proc.go:460 +0xc0 fp=0x1400006ddd0 sp=0x1400006ddb0 pc=0x102c2ab50
runtime.selectgo(0x1400006df78, 0x1400006df54, 0x0?, 0x0, 0x0?, 0x1)
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/select.go:351 +0x6bc fp=0x1400006df10 sp=0x1400006ddd0 pc=0x102c08fec
github.com/onsi/ginkgo/v2/internal/interrupt_handler.(*InterruptHandler).registerForInterrupts.func2(0x0?)
	/Users/kiki/workspace/golang/pkg/mod/github.com/onsi/ginkgo/[email protected]/internal/interrupt_handler/interrupt_handler.go:131 +0x70 fp=0x1400006dfb0 sp=0x1400006df10 pc=0x1031a69d0
github.com/onsi/ginkgo/v2/internal/interrupt_handler.(*InterruptHandler).registerForInterrupts.gowrap1()
	/Users/kiki/workspace/golang/pkg/mod/github.com/onsi/ginkgo/[email protected]/internal/interrupt_handler/interrupt_handler.go:158 +0x2c fp=0x1400006dfd0 sp=0x1400006dfb0 pc=0x1031a692c
runtime.goexit({})
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/asm_arm64.s:1268 +0x4 fp=0x1400006dfd0 sp=0x1400006dfd0 pc=0x102c33234
created by github.com/onsi/ginkgo/v2/internal/interrupt_handler.(*InterruptHandler).registerForInterrupts in goroutine 48
	/Users/kiki/workspace/golang/pkg/mod/github.com/onsi/ginkgo/[email protected]/internal/interrupt_handler/interrupt_handler.go:128 +0x154

goroutine 31 gp=0x14000103500 m=nil [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/proc.go:460 +0xc0 fp=0x1400006ef10 sp=0x1400006eef0 pc=0x102c2ab50
runtime.gcBgMarkWorker(0x1400012c070)
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/mgc.go:1463 +0xe0 fp=0x1400006efb0 sp=0x1400006ef10 pc=0x102bd3ae0
runtime.gcBgMarkStartWorkers.gowrap1()
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/mgc.go:1373 +0x28 fp=0x1400006efd0 sp=0x1400006efb0 pc=0x102bd39c8
runtime.goexit({})
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/asm_arm64.s:1268 +0x4 fp=0x1400006efd0 sp=0x1400006efd0 pc=0x102c33234
created by runtime.gcBgMarkStartWorkers in goroutine 48
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/mgc.go:1373 +0x140

goroutine 32 gp=0x140001036c0 m=nil [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/proc.go:460 +0xc0 fp=0x1400006f710 sp=0x1400006f6f0 pc=0x102c2ab50
runtime.gcBgMarkWorker(0x1400012c070)
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/mgc.go:1463 +0xe0 fp=0x1400006f7b0 sp=0x1400006f710 pc=0x102bd3ae0
runtime.gcBgMarkStartWorkers.gowrap1()
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/mgc.go:1373 +0x28 fp=0x1400006f7d0 sp=0x1400006f7b0 pc=0x102bd39c8
runtime.goexit({})
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/asm_arm64.s:1268 +0x4 fp=0x1400006f7d0 sp=0x1400006f7d0 pc=0x102c33234
created by runtime.gcBgMarkStartWorkers in goroutine 48
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/mgc.go:1373 +0x140

goroutine 33 gp=0x14000103880 m=nil [GC worker (idle)]:
runtime.gopark(0x103bf2a80?, 0x1?, 0xeb?, 0x22?, 0x0?)
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/proc.go:460 +0xc0 fp=0x1400006ff10 sp=0x1400006fef0 pc=0x102c2ab50
runtime.gcBgMarkWorker(0x1400012c070)
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/mgc.go:1463 +0xe0 fp=0x1400006ffb0 sp=0x1400006ff10 pc=0x102bd3ae0
runtime.gcBgMarkStartWorkers.gowrap1()
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/mgc.go:1373 +0x28 fp=0x1400006ffd0 sp=0x1400006ffb0 pc=0x102bd39c8
runtime.goexit({})
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/asm_arm64.s:1268 +0x4 fp=0x1400006ffd0 sp=0x1400006ffd0 pc=0x102c33234
created by runtime.gcBgMarkStartWorkers in goroutine 48
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/mgc.go:1373 +0x140

goroutine 66 gp=0x14000103a40 m=nil [GC worker (idle)]:
runtime.gopark(0xc8150d051dd5?, 0x3?, 0x5a?, 0xde?, 0x0?)
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/proc.go:460 +0xc0 fp=0x14000087f10 sp=0x14000087ef0 pc=0x102c2ab50
runtime.gcBgMarkWorker(0x1400012c070)
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/mgc.go:1463 +0xe0 fp=0x14000087fb0 sp=0x14000087f10 pc=0x102bd3ae0
runtime.gcBgMarkStartWorkers.gowrap1()
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/mgc.go:1373 +0x28 fp=0x14000087fd0 sp=0x14000087fb0 pc=0x102bd39c8
runtime.goexit({})
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/asm_arm64.s:1268 +0x4 fp=0x14000087fd0 sp=0x14000087fd0 pc=0x102c33234
created by runtime.gcBgMarkStartWorkers in goroutine 48
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/mgc.go:1373 +0x140

goroutine 67 gp=0x14000103c00 m=nil [GC worker (idle)]:
runtime.gopark(0xc8150d03e897?, 0x3?, 0xb1?, 0x8c?, 0x0?)
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/proc.go:460 +0xc0 fp=0x140000e3f10 sp=0x140000e3ef0 pc=0x102c2ab50
runtime.gcBgMarkWorker(0x1400012c070)
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/mgc.go:1463 +0xe0 fp=0x140000e3fb0 sp=0x140000e3f10 pc=0x102bd3ae0
runtime.gcBgMarkStartWorkers.gowrap1()
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/mgc.go:1373 +0x28 fp=0x140000e3fd0 sp=0x140000e3fb0 pc=0x102bd39c8
runtime.goexit({})
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/asm_arm64.s:1268 +0x4 fp=0x140000e3fd0 sp=0x140000e3fd0 pc=0x102c33234
created by runtime.gcBgMarkStartWorkers in goroutine 48
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/mgc.go:1373 +0x140

goroutine 68 gp=0x14000103dc0 m=nil [GC worker (idle)]:
runtime.gopark(0xc8150c4d41a3?, 0x3?, 0x17?, 0xe6?, 0x0?)
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/proc.go:460 +0xc0 fp=0x140002a5710 sp=0x140002a56f0 pc=0x102c2ab50
runtime.gcBgMarkWorker(0x1400012c070)
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/mgc.go:1463 +0xe0 fp=0x140002a57b0 sp=0x140002a5710 pc=0x102bd3ae0
runtime.gcBgMarkStartWorkers.gowrap1()
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/mgc.go:1373 +0x28 fp=0x140002a57d0 sp=0x140002a57b0 pc=0x102bd39c8
runtime.goexit({})
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/asm_arm64.s:1268 +0x4 fp=0x140002a57d0 sp=0x140002a57d0 pc=0x102c33234
created by runtime.gcBgMarkStartWorkers in goroutine 48
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/mgc.go:1373 +0x140

goroutine 69 gp=0x14000502000 m=nil [GC worker (idle)]:
runtime.gopark(0xc8150d03e81a?, 0x0?, 0x0?, 0x0?, 0x0?)
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/proc.go:460 +0xc0 fp=0x140002a5f10 sp=0x140002a5ef0 pc=0x102c2ab50
runtime.gcBgMarkWorker(0x1400012c070)
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/mgc.go:1463 +0xe0 fp=0x140002a5fb0 sp=0x140002a5f10 pc=0x102bd3ae0
runtime.gcBgMarkStartWorkers.gowrap1()
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/mgc.go:1373 +0x28 fp=0x140002a5fd0 sp=0x140002a5fb0 pc=0x102bd39c8
runtime.goexit({})
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/asm_arm64.s:1268 +0x4 fp=0x140002a5fd0 sp=0x140002a5fd0 pc=0x102c33234
created by runtime.gcBgMarkStartWorkers in goroutine 48
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/mgc.go:1373 +0x140

goroutine 70 gp=0x140005021c0 m=nil [GC worker (idle)]:
runtime.gopark(0xc8150d03a0a6?, 0x3?, 0xd4?, 0x1c?, 0x0?)
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/proc.go:460 +0xc0 fp=0x140000e9f10 sp=0x140000e9ef0 pc=0x102c2ab50
runtime.gcBgMarkWorker(0x1400012c070)
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/mgc.go:1463 +0xe0 fp=0x140000e9fb0 sp=0x140000e9f10 pc=0x102bd3ae0
runtime.gcBgMarkStartWorkers.gowrap1()
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/mgc.go:1373 +0x28 fp=0x140000e9fd0 sp=0x140000e9fb0 pc=0x102bd39c8
runtime.goexit({})
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/asm_arm64.s:1268 +0x4 fp=0x140000e9fd0 sp=0x140000e9fd0 pc=0x102c33234
created by runtime.gcBgMarkStartWorkers in goroutine 48
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/mgc.go:1373 +0x140

goroutine 278 gp=0x14000162540 m=nil [chan receive]:
runtime.gopark(0x102c34170?, 0x14000085dc8?, 0xb3?, 0xa1?, 0x104857488?)
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/proc.go:460 +0xc0 fp=0x14000085d80 sp=0x14000085d60 pc=0x102c2ab50
runtime.chanrecv(0x140000fe300, 0x14000085e87, 0x1)
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/chan.go:667 +0x428 fp=0x14000085e00 sp=0x14000085d80 pc=0x102bc0ce8
runtime.chanrecv1(0x103bc76a0?, 0x1035ad1e0?)
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/chan.go:509 +0x14 fp=0x14000085e30 sp=0x14000085e00 pc=0x102bc0884
testing.(*T).Run(0x140002fa000, {0x10327941c?, 0x2287189802ceaff4?}, 0x14000034140)
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/testing/testing.go:2005 +0x378 fp=0x14000085f10 sp=0x14000085e30 pc=0x102cebde8
github.com/vllm-project/semantic-router/src/semantic-router/pkg/utils/classification.TestUnifiedClassifier_Initialize(0x140002fa000)
	/Users/kiki/workspace/semantic-router/src/semantic-router/pkg/utils/classification/unified_classifier_test.go:28 +0x2e0 fp=0x14000085f60 sp=0x14000085f10 pc=0x10321b5a0
testing.tRunner(0x140002fa000, 0x103589688)
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/testing/testing.go:1934 +0xc8 fp=0x14000085fb0 sp=0x14000085f60 pc=0x102ceb088
testing.(*T).Run.gowrap1()
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/testing/testing.go:1997 +0x28 fp=0x14000085fd0 sp=0x14000085fb0 pc=0x102cebf08
runtime.goexit({})
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/runtime/asm_arm64.s:1268 +0x4 fp=0x14000085fd0 sp=0x14000085fd0 pc=0x102c33234
created by testing.(*T).Run in goroutine 1
	/opt/homebrew/Cellar/go/1.25.1/libexec/src/testing/testing.go:1997 +0x364

r0      0xb
r1      0x0
r2      0x0
r3      0x1
r4      0x7
r5      0xc8e277fb
r6      0x6b
r7      0x0
r8      0x31403e108
r9      0xfffffffffffffff1
r10     0x0
r11     0x3b10
r12     0x10
r13     0x1
r14     0xffffffb1
r15     0x7fb
r16     0x19900aa40
r17     0x3b1
r18     0x0
r19     0x140003b0680
r20     0x140000128d0
r21     0x1
r22     0xb
r23     0x31403e190
r24     0x3
r25     0xffffffff
r26     0x7000000050
r27     0x0
r28     0x0
r29     0x31403e170
lr      0x1049ba584
sp      0x31403e100
pc      0x19900aa44
fault   0x0
FAIL	github.com/vllm-project/semantic-router/src/semantic-router/pkg/utils/classification	3.355s

To Reproduce

Run make test on macOS.

Image

Expected behavior

The test should be ok

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

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