superfastmatch icon indicating copy to clipboard operation
superfastmatch copied to clipboard

Backtrace from superfastmatch search client when using quoted text

Open dvogel opened this issue 12 years ago • 1 comments

I've loaded a bunch of documents. Searched for one of the loaded documents and I get these matches:

$ ./superfastmatch-linux search 111/s/s62-111-is.txt
Doc:s999-111-is.txt (1,1)   Left:      857  Right:     1096 Length:      170    Text: Be it enacted by the Senate and House of Representatives ...
Doc:s999-111-is.txt (1,1)   Left:        1  Right:        1 Length:       81    Text: Congressional Bills 111th Congress] [From the U.S. Govern...
Doc:s999-111-is.txt (1,1)   Left:       87  Right:       88 Length:       56    Text: Introduced in Senate (IS)]  111th CONGRESS   1st Session
Doc:s999-111-is.txt (1,1)   Left:      491  Right:      627 Length:       55    Text: introduced the following bill; which was read twice and
Doc:s999-111-is.txt (1,1)   Left:      397  Right:      489 Length:       34    Text: IN THE SENATE OF THE UNITED STATES

Successes: 0     Failures:0

However, I get a backtrace when I search for the first match as quoted text:

$ ./superfastmatch-linux search "Be it enacted by the Senate and House of Representatives"
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x20 pc=0x425918]

goroutine 1 [running]:
api.func·007(0x7ff59c5b7d70, 0x7ff59c5b7da0, 0x4a3d49, 0x7fff045cf28b, 0x38, ...)
    /usr/local/code/superfastmatch-go/src/api/file.go:80 +0xb8
path/filepath.Walk(0x7fff045cf28b, 0x38, 0xc200147800, 0x7ff59c5b7da0, 0xc200147800, ...)
    /usr/local/src/go/src/pkg/path/filepath/path.go:380 +0x79
api.startWalk(0x7fff045cf28b, 0x38, 0x4248e0, 0x1, 0x0, ...)
    /usr/local/code/superfastmatch-go/src/api/file.go:94 +0x10a
api.searchCommand(0xc2000ac020, 0x1, 0x1, 0xc200145c00, 0xc200144a01, ...)
    /usr/local/code/superfastmatch-go/src/api/client.go:101 +0x1fb
api.Execute(0xc2000f25a0, 0xc2000ac000, 0x3, 0x3)
    /usr/local/code/superfastmatch-go/src/api/client.go:57 +0x2a5
main.main()
    /usr/local/code/superfastmatch-go/src/superfastmatch/main.go:23 +0x102

goroutine 2 [syscall]:
created by runtime.main
    /usr/local/src/go/src/pkg/runtime/proc.c:225

goroutine 3 [syscall]:
os/signal.loop()
    /usr/local/src/go/src/pkg/os/signal/signal_unix.go:20 +0x1c
created by os/signal.init·1
    /usr/local/src/go/src/pkg/os/signal/signal_unix.go:26 +0x2f

goroutine 6 [sleep]:
time.Sleep(0x1dcd6500, 0x0)
    /usr/local/src/go/src/pkg/runtime/ztime_linux_amd64.c:20 +0x2f
labix.org/v2/mgo.(*mongoCluster).syncServersLoop(0xc2000d0700, 0x0)
    /usr/local/src/go/src/pkg/labix.org/v2/mgo/cluster.go:291 +0x1ec
created by labix.org/v2/mgo.newCluster
    /usr/local/src/go/src/pkg/labix.org/v2/mgo/cluster.go:66 +0xdf

goroutine 10 [syscall]:
created by addtimer
    /usr/local/src/go/src/pkg/runtime/ztime_linux_amd64.c:73

goroutine 8 [syscall]:
syscall.Syscall6()
    /usr/local/src/go/src/pkg/syscall/asm_linux_amd64.s:40 +0x5
syscall.EpollWait(0x6, 0xc2000fe170, 0xa, 0xa, 0xffffffffffffffff, ...)
    /usr/local/src/go/src/pkg/syscall/zerrors_linux_amd64.go:1871 +0x98
net.(*pollster).WaitFD(0xc2000fe160, 0xc20016e750, 0x0, 0x0, 0x0, ...)
    /usr/local/src/go/src/pkg/net/fd_linux.go:146 +0x12a
net.(*pollServer).Run(0xc20016e750, 0x0)
    /usr/local/src/go/src/pkg/net/fd_unix.go:205 +0x10d
created by net.newPollServer
    /usr/local/src/go/src/pkg/net/newpollserver_unix.go:33 +0x307

goroutine 11 [chan receive]:
api.func·006(0xc2000cf880, 0xc2000b81a0, 0xc2000b81c0, 0xc2000cf878, 0x0, ...)
    /usr/local/code/superfastmatch-go/src/api/client.go:188 +0x4f
created by api.PollQueue
    /usr/local/code/superfastmatch-go/src/api/client.go:216 +0x165

dvogel avatar Feb 11 '13 20:02 dvogel

Here are the two files mentioned: s62-111-is.txt s999-111-is.txt

dvogel avatar Feb 11 '13 20:02 dvogel