Open
Description
make bench
resulted in:
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x794138]
goroutine 550 [running]:
github.com/scylladb/go-reflectx.(*Mapper).TypeMap(0x0, {0x9f3230, 0x8f9420})
/home/dmitry.kropachev/go/pkg/mod/github.com/scylladb/go-reflectx@v1.0.1/reflect.go:107 +0x38
github.com/scylladb/go-reflectx.(*Mapper).TraversalsByNameFunc(0x0, {0x9f3230?, 0x8f9420?}, {0xc0000b2200, 0x4, 0x72dcde853de8?}, 0xc000094d98)
/home/dmitry.kropachev/go/pkg/mod/github.com/scylladb/go-reflectx@v1.0.1/reflect.go:188 +0x85
github.com/scylladb/gocqlx/v3.(*Queryx).bindStructArgs(0xc00021ae58, {0x8f9420, 0xc000230000}, 0x0)
/extra/scylladb/gocqlx/queryx.go:159 +0x219
github.com/scylladb/gocqlx/v3.(*Queryx).BindStruct(0xc000094e58, {0x8f9420?, 0xc000230000?})
/extra/scylladb/gocqlx/queryx.go:124 +0x28
github.com/scylladb/gocqlx/v3_test.BenchmarkQueryxBindStruct(0xc00023c508)
/extra/scylladb/gocqlx/queryx_bench_test.go:34 +0x199
testing.(*B).runN(0xc00023c508, 0x1)
/home/dmitry.kropachev/go/go1.24.0/src/testing/benchmark.go:202 +0x176
testing.(*B).run1.func1()
/home/dmitry.kropachev/go/go1.24.0/src/testing/benchmark.go:224 +0x48
created by testing.(*B).run1 in goroutine 1
/home/dmitry.kropachev/go/go1.24.0/src/testing/benchmark.go:217 +0x90
exit status 2