-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
According to a user, lexicmap search reports runtime errors for some queries. But when I check the queries with my ATB index, it couldn't reproduce.
Case 1:
panic: runtime error: slice bounds out of range [-14:]
goroutine 10890015 [running]:
github.com/shenwei356/LexicMap/lexicmap/cmd.extendMatch({0xc085580000, 0x4035000000000000?, 0x28000}, {0xceaa280000, 0x4070c00000000000?, 0x19000}, 0x20ae9, 0x20d06?, 0x24, 0x241, ...)
/opt/gensoft/src/LexicMap/LexicMap-0.8.0/lexicmap/cmd/lib-index-search-util.go:87 +0x4a6
github.com/shenwei356/LexicMap/lexicmap/cmd.(*Index).Search.func11(0xc12a1804b0)
/opt/gensoft/src/LexicMap/LexicMap-0.8.0/lexicmap/cmd/lib-index-search.go:2228 +0x1ac8
created by github.com/shenwei356/LexicMap/lexicmap/cmd.(*Index).Search in goroutine 1321
/opt/gensoft/src/LexicMap/LexicMap-0.8.0/lexicmap/cmd/lib-index-search.go:2448 +0x272f
Case 2:
panic: runtime error: slice bounds out of range [-1:]
goroutine 1091818 [running]:
github.com/shenwei356/LexicMap/lexicmap/cmd.trimOps(...)
/opt/gensoft/src/LexicMap/LexicMap-0.8.0/lexicmap/cmd/lib-index-search-util.go:245
github.com/shenwei356/LexicMap/lexicmap/cmd.scoreAndEvalue.func1(0xc367c6d770?, 0xc1aa8f3d48?)
/opt/gensoft/src/LexicMap/LexicMap-0.8.0/lexicmap/cmd/lib-index-search-util.go:254 +0x1c5
github.com/shenwei356/LexicMap/lexicmap/cmd.(*Index).Search.func11(0xc09d5145a0)
/opt/gensoft/src/LexicMap/LexicMap-0.8.0/lexicmap/cmd/lib-index-search.go:2240 +0x1c12
created by github.com/shenwei356/LexicMap/lexicmap/cmd.(*Index).Search in goroutine 709569
/opt/gensoft/src/LexicMap/LexicMap-0.8.0/lexicmap/cmd/lib-index-search.go:2448 +0x272f
Metadata
Metadata
Assignees
Labels
No labels