Skip to content

Instantly share code, notes, and snippets.

@mschoch
Created January 3, 2018 15:15
Show Gist options
  • Save mschoch/f2623861ab3183ecc5c0b134e92b5e5a to your computer and use it in GitHub Desktop.
Save mschoch/f2623861ab3183ecc5c0b134e92b5e5a to your computer and use it in GitHub Desktop.
➜ beer-search git:(master) ✗ rm -rf beer-search.bleve
➜ beer-search git:(master) ✗ go build
➜ beer-search git:(master) ✗ ./beer-search
2018/01/03 10:14:37 GOMAXPROCS: 4
2018/01/03 10:14:37 Creating new index...
2018/01/03 10:14:37 Listening on :8094
2018/01/03 10:14:37 Indexing...
^\SIGQUIT: quit
PC=0x105b1bb m=0 sigcode=0
goroutine 0 [idle]:
runtime.mach_semaphore_wait(0xe03, 0x0, 0x1743420, 0x0, 0xc421195800, 0x17430e0, 0x7fff5fbff7d0, 0x10559e3, 0xffffffffffffffff, 0xc400000000, ...)
/Users/mschoch/Documents/research/gosrc/src/runtime/sys_darwin_amd64.s:445 +0xb
runtime.semasleep1(0xffffffffffffffff, 0xc400000000)
/Users/mschoch/Documents/research/gosrc/src/runtime/os_darwin.go:413 +0x52
runtime.semasleep.func1()
/Users/mschoch/Documents/research/gosrc/src/runtime/os_darwin.go:432 +0x33
runtime.systemstack(0x7fff5fbff7f8)
/Users/mschoch/Documents/research/gosrc/src/runtime/asm_amd64.s:360 +0xab
runtime.semasleep(0xffffffffffffffff, 0xc400000000)
/Users/mschoch/Documents/research/gosrc/src/runtime/os_darwin.go:431 +0x44
runtime.notesleep(0x17436f0)
/Users/mschoch/Documents/research/gosrc/src/runtime/lock_sema.go:167 +0xe9
runtime.stopm()
/Users/mschoch/Documents/research/gosrc/src/runtime/proc.go:1680 +0xe5
runtime.findrunnable(0xc420023900, 0x0)
/Users/mschoch/Documents/research/gosrc/src/runtime/proc.go:2135 +0x4d2
runtime.schedule()
/Users/mschoch/Documents/research/gosrc/src/runtime/proc.go:2255 +0x12c
runtime.park_m(0xc42005f080)
/Users/mschoch/Documents/research/gosrc/src/runtime/proc.go:2318 +0xb6
runtime.mcall(0x7fff5fbff9e0)
/Users/mschoch/Documents/research/gosrc/src/runtime/asm_amd64.s:286 +0x5b
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x18a3148, 0x72, 0xffffffffffffffff)
/Users/mschoch/Documents/research/gosrc/src/runtime/netpoll.go:173 +0x57
internal/poll.(*pollDesc).wait(0xc420218098, 0x72, 0x0, 0x0, 0x0)
/Users/mschoch/Documents/research/gosrc/src/internal/poll/fd_poll_runtime.go:85 +0xae
internal/poll.(*pollDesc).waitRead(0xc420218098, 0xffffffffffffff00, 0x0, 0x0)
/Users/mschoch/Documents/research/gosrc/src/internal/poll/fd_poll_runtime.go:90 +0x3d
internal/poll.(*FD).Accept(0xc420218080, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/Users/mschoch/Documents/research/gosrc/src/internal/poll/fd_unix.go:335 +0x1e2
net.(*netFD).accept(0xc420218080, 0x183b458, 0x0, 0x14d0f20)
/Users/mschoch/Documents/research/gosrc/src/net/fd_unix.go:238 +0x42
net.(*TCPListener).accept(0xc4201e4060, 0xc42004dc78, 0x1012ad8, 0x30)
/Users/mschoch/Documents/research/gosrc/src/net/tcpsock_posix.go:136 +0x2e
net.(*TCPListener).AcceptTCP(0xc4201e4060, 0xc4201de8d0, 0xc4201de8d0, 0x1426740)
/Users/mschoch/Documents/research/gosrc/src/net/tcpsock.go:234 +0x49
net/http.tcpKeepAliveListener.Accept(0xc4201e4060, 0xc420082040, 0x1426740, 0x1737200, 0x14a7fc0)
/Users/mschoch/Documents/research/gosrc/src/net/http/server.go:3120 +0x2f
net/http.(*Server).Serve(0xc4201da0d0, 0x16d5480, 0xc4201e4060, 0x0, 0x0)
/Users/mschoch/Documents/research/gosrc/src/net/http/server.go:2695 +0x1b2
net/http.(*Server).ListenAndServe(0xc4201da0d0, 0xc4201da0d0, 0x0)
/Users/mschoch/Documents/research/gosrc/src/net/http/server.go:2636 +0xa9
net/http.ListenAndServe(0x14b813e, 0x5, 0x0, 0x0, 0x1, 0xc420210310)
/Users/mschoch/Documents/research/gosrc/src/net/http/server.go:2882 +0x7f
main.main()
/Users/mschoch/go/src/github.com/blevesearch/beer-search/main.go:109 +0x6da
goroutine 19 [select]:
github.com/blevesearch/bleve/index.AnalysisWorker(0xc42006c120, 0xc42006c180)
/Users/mschoch/go/src/github.com/blevesearch/bleve/index/analysis.go:83 +0x127
created by github.com/blevesearch/bleve/index.NewAnalysisQueue
/Users/mschoch/go/src/github.com/blevesearch/bleve/index/analysis.go:75 +0xcd
goroutine 20 [select]:
github.com/blevesearch/bleve/index.AnalysisWorker(0xc42006c120, 0xc42006c180)
/Users/mschoch/go/src/github.com/blevesearch/bleve/index/analysis.go:83 +0x127
created by github.com/blevesearch/bleve/index.NewAnalysisQueue
/Users/mschoch/go/src/github.com/blevesearch/bleve/index/analysis.go:75 +0xcd
goroutine 21 [select]:
github.com/blevesearch/bleve/index.AnalysisWorker(0xc42006c120, 0xc42006c180)
/Users/mschoch/go/src/github.com/blevesearch/bleve/index/analysis.go:83 +0x127
created by github.com/blevesearch/bleve/index.NewAnalysisQueue
/Users/mschoch/go/src/github.com/blevesearch/bleve/index/analysis.go:75 +0xcd
goroutine 22 [select]:
github.com/blevesearch/bleve/index.AnalysisWorker(0xc42006c120, 0xc42006c180)
/Users/mschoch/go/src/github.com/blevesearch/bleve/index/analysis.go:83 +0x127
created by github.com/blevesearch/bleve/index.NewAnalysisQueue
/Users/mschoch/go/src/github.com/blevesearch/bleve/index/analysis.go:75 +0xcd
goroutine 23 [select]:
github.com/blevesearch/bleve/index/scorch.(*Scorch).mainLoop(0xc4201a8000)
/Users/mschoch/go/src/github.com/blevesearch/bleve/index/scorch/introducer.go:51 +0x398
created by github.com/blevesearch/bleve/index/scorch.(*Scorch).Open
/Users/mschoch/go/src/github.com/blevesearch/bleve/index/scorch/scorch.go:198 +0x2ec
goroutine 24 [runnable]:
github.com/RoaringBitmap/roaring.(*Bitmap).Contains(0xc42307b180, 0x1f4, 0x40)
/Users/mschoch/go/src/github.com/RoaringBitmap/roaring/roaring.go:304 +0x77
github.com/blevesearch/bleve/index/scorch/segment/mem.(*PostingsIterator).Next(0xc4210a7040, 0xc420e23338, 0x1d1, 0xc4207a88d0, 0x21)
/Users/mschoch/go/src/github.com/blevesearch/bleve/index/scorch/segment/mem/posting.go:100 +0x121
github.com/blevesearch/bleve/index/scorch/segment/zap.persistDocValues(0xc422341040, 0xc4231bfe60, 0x400, 0x0, 0x0, 0xc425694000)
/Users/mschoch/go/src/github.com/blevesearch/bleve/index/scorch/segment/zap/build.go:465 +0x20c
github.com/blevesearch/bleve/index/scorch/segment/zap.persistFieldDocValues(0xc4231bfe60, 0xc400000400, 0xc422341040, 0x59b7, 0x6000, 0xc424bd6000)
/Users/mschoch/go/src/github.com/blevesearch/bleve/index/scorch/segment/zap/build.go:511 +0x4d
github.com/blevesearch/bleve/index/scorch/segment/zap.PersistSegment(0xc422341040, 0xc421c98000, 0x28, 0x400, 0x1, 0xc4231745b0)
/Users/mschoch/go/src/github.com/blevesearch/bleve/index/scorch/segment/zap/build.go:85 +0x387
github.com/blevesearch/bleve/index/scorch.(*Scorch).persistSnapshot(0xc4201a8000, 0xc422384e40, 0x0, 0x0)
/Users/mschoch/go/src/github.com/blevesearch/bleve/index/scorch/persister.go:186 +0xb86
github.com/blevesearch/bleve/index/scorch.(*Scorch).persisterLoop(0xc4201a8000)
/Users/mschoch/go/src/github.com/blevesearch/bleve/index/scorch/persister.go:70 +0x3f3
created by github.com/blevesearch/bleve/index/scorch.(*Scorch).Open
/Users/mschoch/go/src/github.com/blevesearch/bleve/index/scorch/scorch.go:202 +0x36b
goroutine 25 [select]:
github.com/blevesearch/bleve/index/scorch.(*Scorch).mergerLoop(0xc4201a8000)
/Users/mschoch/go/src/github.com/blevesearch/bleve/index/scorch/merge.go:95 +0x4e8
created by github.com/blevesearch/bleve/index/scorch.(*Scorch).Open
/Users/mschoch/go/src/github.com/blevesearch/bleve/index/scorch/scorch.go:204 +0x3aa
goroutine 34 [chan receive]:
github.com/blevesearch/bleve/index/scorch.(*Scorch).prepareSegment(0xc4201a8000, 0x16d8ec0, 0xc422341040, 0xc4206ec000, 0x3e8, 0x400, 0xc420075b30, 0x400, 0x0)
/Users/mschoch/go/src/github.com/blevesearch/bleve/index/scorch/scorch.go:359 +0x3c8
github.com/blevesearch/bleve/index/scorch.(*Scorch).Batch(0xc4201a8000, 0xc4201ea010, 0x0, 0x0)
/Users/mschoch/go/src/github.com/blevesearch/bleve/index/scorch/scorch.go:306 +0x6f0
github.com/blevesearch/bleve.(*indexImpl).Batch(0xc4201a0070, 0xc42007a0e0, 0x0, 0x0)
/Users/mschoch/go/src/github.com/blevesearch/bleve/index_impl.go:304 +0x9f
main.indexBeer(0x16da7a0, 0xc4201a0070, 0x0, 0x0)
/Users/mschoch/go/src/github.com/blevesearch/beer-search/main.go:146 +0x50b
main.main.func1(0xc42006f020, 0x16da7a0, 0xc4201a0070)
/Users/mschoch/go/src/github.com/blevesearch/beer-search/main.go:69 +0x39
created by main.main
/Users/mschoch/go/src/github.com/blevesearch/beer-search/main.go:68 +0xb03
rax 0xe
rbx 0x17435e0
rcx 0x7fff5fbff770
rdx 0x7fff5fbff7f8
rdi 0xe03
rsi 0x1
rbp 0x7fff5fbff7a8
rsp 0x7fff5fbff770
r8 0x1
r9 0x17430e0
r10 0x0
r11 0x286
r12 0x0
r13 0x0
r14 0x1058aa0
r15 0x0
rip 0x105b1bb
rflags 0x286
cs 0x7
fs 0x0
gs 0x0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment