Skip to content

Instantly share code, notes, and snippets.

@bbrks
Created January 5, 2018 14:49
Show Gist options
  • Save bbrks/22a5fc543bfb7a9f52d227cc38fad402 to your computer and use it in GitHub Desktop.
Save bbrks/22a5fc543bfb7a9f52d227cc38fad402 to your computer and use it in GitHub Desktop.
unexpected fault address 0xb01dfacedebac1e
unexpected fault address 0xb01dfacedebac1e
fatal error: fault
[signal SIGSEGV: segmentation violation code=0x1 addr=0xb01dfacedebac1e pc=0x103518f]
goroutine 1332 [running]:
runtime.throw(0x1950cd3, 0x5)
/usr/local/Cellar/go/1.9.2/libexec/src/runtime/panic.go:605 +0x95 fp=0xc4209e0870 sp=0xc4209e0850 pc=0x105a925
runtime.sigpanic()
/usr/local/Cellar/go/1.9.2/libexec/src/runtime/signal_unix.go:374 +0x227 fp=0xc4209e08c0 sp=0xc4209e0870 pc=0x1073147
runtime.hashGrow(0x193ac80, 0xc4209e2181)
/usr/local/Cellar/go/1.9.2/libexec/src/runtime/hashmap.go:965 +0xef fp=0xc4209e0920 sp=0xc4209e08c0 pc=0x103518f
runtime.mapassign_faststr(0x193ac80, 0xc4209e2181, 0x194f281, 0x3, 0x1f83cc0)
/usr/local/Cellar/go/1.9.2/libexec/src/runtime/hashmap_fast.go:666 +0x3dd fp=0xc4209e09c0 sp=0xc4209e0920 pc=0x103924d
github.com/couchbase/sync_gateway/db.RevTree.addRevision(0xc4209e2181, 0x19500aa, 0x4, 0x194f281, 0x3, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/Users/benbrooks/dev/sg/godeps/src/github.com/couchbase/sync_gateway/db/revtree.go:354 +0x4f7 fp=0xc4209e0b20 sp=0xc4209e09c0 pc=0x174ef77
github.com/couchbase/sync_gateway/db.(*Database).PutExistingRev.func1(0xc420dca780, 0xc420d4f000, 0x1a, 0x400, 0x1a, 0x0)
/Users/benbrooks/dev/sg/godeps/src/github.com/couchbase/sync_gateway/db/crud.go:706 +0x663 fp=0xc4209e0d80 sp=0xc4209e0b20 pc=0x17e50e3
github.com/couchbase/sync_gateway/db.(*Database).updateAndReturnDoc.func1(0xc420dca780, 0x1, 0xc4202384e0, 0xca, 0xca, 0xc420dca780, 0x0, 0x0)
/Users/benbrooks/dev/sg/godeps/src/github.com/couchbase/sync_gateway/db/crud.go:775 +0x120 fp=0xc4209e1220 sp=0xc4209e0d80 pc=0x17e5ac0
github.com/couchbase/sync_gateway/db.(*Database).updateAndReturnDoc.func2(0xc4202384e0, 0xca, 0xca, 0xc420238340, 0xca, 0xca, 0x1, 0xca, 0x3, 0xa)
/Users/benbrooks/dev/sg/godeps/src/github.com/couchbase/sync_gateway/db/crud.go:1008 +0x170 fp=0xc4209e1320 sp=0xc4209e1220 pc=0x17e90f0
github.com/couchbaselabs/walrus.(*WalrusBucket).WriteUpdate(0xc420becfc0, 0x19500aa, 0x4, 0xc400000000, 0xc420ba0bc0, 0x40, 0x1907aa0)
/Users/benbrooks/dev/sg/godeps/src/github.com/couchbaselabs/walrus/crud.go:479 +0x15a fp=0xc4209e1430 sp=0xc4209e1320 pc=0x15d383a
github.com/couchbase/sync_gateway/base.(*LeakyBucket).WriteUpdate(0xc420ba0380, 0x19500aa, 0x4, 0x0, 0xc420ba0bc0, 0xc4206c46b0, 0x73)
/Users/benbrooks/dev/sg/godeps/src/github.com/couchbase/sync_gateway/base/leaky_bucket.go:84 +0x7f fp=0xc4209e1488 sp=0xc4209e1430 pc=0x167eeaf
github.com/couchbase/sync_gateway/db.(*Database).updateAndReturnDoc(0xc4203c47e0, 0x19500aa, 0x4, 0x2a5b600, 0x0, 0xc4209d9800, 0xc4209e18d8, 0x17475cc, 0xc4209e20c0, 0xc4209e18d8, ...)
/Users/benbrooks/dev/sg/godeps/src/github.com/couchbase/sync_gateway/db/crud.go:1003 +0x264c fp=0xc4209e1860 sp=0xc4209e1488 pc=0x16fcf4c
github.com/couchbase/sync_gateway/db.(*Database).updateDoc(0xc4203c47e0, 0x19500aa, 0x4, 0x0, 0xc4209d9800, 0xc4200bf788, 0x6c4209e19b8, 0x18, 0x20)
/Users/benbrooks/dev/sg/godeps/src/github.com/couchbase/sync_gateway/db/crud.go:733 +0x8d fp=0xc4209e18e8 sp=0xc4209e1860 pc=0x16fa87d
github.com/couchbase/sync_gateway/db.(*Database).PutExistingRev(0xc4203c47e0, 0x19500aa, 0x4, 0xc4209e20c0, 0xc4203c4880, 0x2, 0x2, 0x0, 0x0)
/Users/benbrooks/dev/sg/godeps/src/github.com/couchbase/sync_gateway/db/crud.go:655 +0x47e fp=0xc4209e19c8 sp=0xc4209e18e8 pc=0x16fa63e
github.com/couchbase/sync_gateway/db.TestRevisionStorageConflictAndTombstones(0xc4202a80f0)
/Users/benbrooks/dev/sg/godeps/src/github.com/couchbase/sync_gateway/db/crud_test.go:74 +0x5d0 fp=0xc4209e1f78 sp=0xc4209e19c8 pc=0x178c030
testing.tRunner(0xc4202a80f0, 0x19b46c0)
/usr/local/Cellar/go/1.9.2/libexec/src/testing/testing.go:746 +0x16d fp=0xc4209e1fd0 sp=0xc4209e1f78 pc=0x11549ad
runtime.goexit()
/usr/local/Cellar/go/1.9.2/libexec/src/runtime/asm_amd64.s:2337 +0x1 fp=0xc4209e1fd8 sp=0xc4209e1fd0 pc=0x108d8f1
created by testing.(*T).Run
/usr/local/Cellar/go/1.9.2/libexec/src/testing/testing.go:789 +0x569
goroutine 1 [chan receive]:
testing.(*T).Run(0xc42018c0f0, 0x19660bf, 0x28, 0x19b46c0, 0xc42016bc01)
/usr/local/Cellar/go/1.9.2/libexec/src/testing/testing.go:790 +0x59b
testing.runTests.func1(0xc42018c0f0)
/usr/local/Cellar/go/1.9.2/libexec/src/testing/testing.go:1004 +0xa8
testing.tRunner(0xc42018c0f0, 0xc42016bd90)
/usr/local/Cellar/go/1.9.2/libexec/src/testing/testing.go:746 +0x16d
testing.runTests(0xc42013b740, 0x1f5b040, 0x93, 0x93, 0x64)
/usr/local/Cellar/go/1.9.2/libexec/src/testing/testing.go:1002 +0x522
testing.(*M).Run(0xc420057f20, 0x3018608)
/usr/local/Cellar/go/1.9.2/libexec/src/testing/testing.go:921 +0x207
main.main()
github.com/couchbase/sync_gateway/db/_test/_testmain.go:384 +0x1d4
goroutine 24 [chan receive]:
github.com/couchbase/sync_gateway/db.(*changeListener).StartMutationFeed.func1(0xc4200d0e70)
/Users/benbrooks/dev/sg/godeps/src/github.com/couchbase/sync_gateway/db/change_listener.go:83 +0x168
created by github.com/couchbase/sync_gateway/db.(*changeListener).StartMutationFeed
/Users/benbrooks/dev/sg/godeps/src/github.com/couchbase/sync_gateway/db/change_listener.go:76 +0x42e
goroutine 31 [chan receive]:
github.com/couchbase/sync_gateway/db.(*changeListener).StartMutationFeed.func1(0xc4200d1130)
/Users/benbrooks/dev/sg/godeps/src/github.com/couchbase/sync_gateway/db/change_listener.go:83 +0x168
created by github.com/couchbase/sync_gateway/db.(*changeListener).StartMutationFeed
/Users/benbrooks/dev/sg/godeps/src/github.com/couchbase/sync_gateway/db/change_listener.go:76 +0x42e
goroutine 55 [chan receive]:
github.com/couchbase/sync_gateway/db.(*changeListener).StartMutationFeed.func1(0xc4200d16b0)
/Users/benbrooks/dev/sg/godeps/src/github.com/couchbase/sync_gateway/db/change_listener.go:83 +0x168
created by github.com/couchbase/sync_gateway/db.(*changeListener).StartMutationFeed
/Users/benbrooks/dev/sg/godeps/src/github.com/couchbase/sync_gateway/db/change_listener.go:76 +0x42e
goroutine 62 [chan receive]:
github.com/couchbase/sync_gateway/db.(*changeListener).StartMutationFeed.func1(0xc4200d1970)
/Users/benbrooks/dev/sg/godeps/src/github.com/couchbase/sync_gateway/db/change_listener.go:83 +0x168
created by github.com/couchbase/sync_gateway/db.(*changeListener).StartMutationFeed
/Users/benbrooks/dev/sg/godeps/src/github.com/couchbase/sync_gateway/db/change_listener.go:76 +0x42e
goroutine 69 [chan receive]:
github.com/couchbase/sync_gateway/db.(*changeListener).StartMutationFeed.func1(0xc4200d1c30)
/Users/benbrooks/dev/sg/godeps/src/github.com/couchbase/sync_gateway/db/change_listener.go:83 +0x168
created by github.com/couchbase/sync_gateway/db.(*changeListener).StartMutationFeed
/Users/benbrooks/dev/sg/godeps/src/github.com/couchbase/sync_gateway/db/change_listener.go:76 +0x42e
goroutine 216 [chan receive]:
github.com/couchbase/sync_gateway/db.(*changeListener).StartMutationFeed.func1(0xc42023a0b0)
/Users/benbrooks/dev/sg/godeps/src/github.com/couchbase/sync_gateway/db/change_listener.go:83 +0x168
created by github.com/couchbase/sync_gateway/db.(*changeListener).StartMutationFeed
/Users/benbrooks/dev/sg/godeps/src/github.com/couchbase/sync_gateway/db/change_listener.go:76 +0x42e
goroutine 102 [chan receive]:
github.com/couchbase/sync_gateway/db.(*changeListener).StartMutationFeed.func1(0xc4200d00b0)
/Users/benbrooks/dev/sg/godeps/src/github.com/couchbase/sync_gateway/db/change_listener.go:83 +0x168
created by github.com/couchbase/sync_gateway/db.(*changeListener).StartMutationFeed
/Users/benbrooks/dev/sg/godeps/src/github.com/couchbase/sync_gateway/db/change_listener.go:76 +0x42e
goroutine 366 [chan receive]:
github.com/couchbase/sync_gateway/db.(*changeListener).StartMutationFeed.func1(0xc42023a370)
/Users/benbrooks/dev/sg/godeps/src/github.com/couchbase/sync_gateway/db/change_listener.go:83 +0x168
created by github.com/couchbase/sync_gateway/db.(*changeListener).StartMutationFeed
/Users/benbrooks/dev/sg/godeps/src/github.com/couchbase/sync_gateway/db/change_listener.go:76 +0x42e
goroutine 262 [chan receive]:
github.com/couchbase/sync_gateway/db.(*changeListener).StartMutationFeed.func1(0xc4204de630)
/Users/benbrooks/dev/sg/godeps/src/github.com/couchbase/sync_gateway/db/change_listener.go:83 +0x168
created by github.com/couchbase/sync_gateway/db.(*changeListener).StartMutationFeed
/Users/benbrooks/dev/sg/godeps/src/github.com/couchbase/sync_gateway/db/change_listener.go:76 +0x42e
goroutine 148 [chan receive]:
github.com/couchbase/sync_gateway/db.(*changeListener).StartMutationFeed.func1(0xc4204de0b0)
/Users/benbrooks/dev/sg/godeps/src/github.com/couchbase/sync_gateway/db/change_listener.go:83 +0x168
created by github.com/couchbase/sync_gateway/db.(*changeListener).StartMutationFeed
/Users/benbrooks/dev/sg/godeps/src/github.com/couchbase/sync_gateway/db/change_listener.go:76 +0x42e
goroutine 239 [chan receive]:
github.com/couchbase/sync_gateway/base.(*LeakyBucket).wrapFeed.func1(0x1ddd9e0, 0xc4205a4540, 0xc42053c1a0, 0xc4205a4560)
/Users/benbrooks/dev/sg/godeps/src/github.com/couchbase/sync_gateway/base/leaky_bucket.go:210 +0xb7
created by github.com/couchbase/sync_gateway/base.(*LeakyBucket).wrapFeed
/Users/benbrooks/dev/sg/godeps/src/github.com/couchbase/sync_gateway/base/leaky_bucket.go:209 +0x17c
goroutine 1121 [chan receive]:
github.com/couchbase/sync_gateway/db.(*changeListener).StartMutationFeed.func1(0xc4205a0bb0)
/Users/benbrooks/dev/sg/godeps/src/github.com/couchbase/sync_gateway/db/change_listener.go:83 +0x168
created by github.com/couchbase/sync_gateway/db.(*changeListener).StartMutationFeed
/Users/benbrooks/dev/sg/godeps/src/github.com/couchbase/sync_gateway/db/change_listener.go:76 +0x42e
goroutine 240 [chan receive]:
github.com/couchbase/sync_gateway/db.(*changeListener).StartMutationFeed.func1(0xc4205e20b0)
/Users/benbrooks/dev/sg/godeps/src/github.com/couchbase/sync_gateway/db/change_listener.go:83 +0x168
created by github.com/couchbase/sync_gateway/db.(*changeListener).StartMutationFeed
/Users/benbrooks/dev/sg/godeps/src/github.com/couchbase/sync_gateway/db/change_listener.go:76 +0x42e
goroutine 203 [chan receive]:
github.com/couchbase/sync_gateway/db.(*changeListener).StartMutationFeed.func1(0xc4204de370)
/Users/benbrooks/dev/sg/godeps/src/github.com/couchbase/sync_gateway/db/change_listener.go:83 +0x168
created by github.com/couchbase/sync_gateway/db.(*changeListener).StartMutationFeed
/Users/benbrooks/dev/sg/godeps/src/github.com/couchbase/sync_gateway/db/change_listener.go:76 +0x42e
goroutine 349 [chan receive]:
github.com/couchbase/sync_gateway/db.(*changeListener).StartMutationFeed.func1(0xc4205e2370)
/Users/benbrooks/dev/sg/godeps/src/github.com/couchbase/sync_gateway/db/change_listener.go:83 +0x168
created by github.com/couchbase/sync_gateway/db.(*changeListener).StartMutationFeed
/Users/benbrooks/dev/sg/godeps/src/github.com/couchbase/sync_gateway/db/change_listener.go:76 +0x42e
goroutine 348 [chan receive]:
github.com/couchbase/sync_gateway/base.(*LeakyBucket).wrapFeed.func1(0x1ddd9e0, 0xc420260240, 0xc42027d530, 0xc420260260)
/Users/benbrooks/dev/sg/godeps/src/github.com/couchbase/sync_gateway/base/leaky_bucket.go:210 +0xb7
created by github.com/couchbase/sync_gateway/base.(*LeakyBucket).wrapFeed
/Users/benbrooks/dev/sg/godeps/src/github.com/couchbase/sync_gateway/base/leaky_bucket.go:209 +0x17c
goroutine 1282 [chan receive]:
github.com/couchbase/sync_gateway/db.(*changeListener).StartMutationFeed.func1(0xc4205e2630)
/Users/benbrooks/dev/sg/godeps/src/github.com/couchbase/sync_gateway/db/change_listener.go:83 +0x168
created by github.com/couchbase/sync_gateway/db.(*changeListener).StartMutationFeed
/Users/benbrooks/dev/sg/godeps/src/github.com/couchbase/sync_gateway/db/change_listener.go:76 +0x42e
goroutine 1299 [chan receive]:
github.com/couchbase/sync_gateway/db.(*changeListener).StartMutationFeed.func1(0xc4204debb0)
/Users/benbrooks/dev/sg/godeps/src/github.com/couchbase/sync_gateway/db/change_listener.go:83 +0x168
created by github.com/couchbase/sync_gateway/db.(*changeListener).StartMutationFeed
/Users/benbrooks/dev/sg/godeps/src/github.com/couchbase/sync_gateway/db/change_listener.go:76 +0x42e
goroutine 1250 [chan receive]:
github.com/couchbase/sync_gateway/db.(*changeListener).StartMutationFeed.func1(0xc4205a0370)
/Users/benbrooks/dev/sg/godeps/src/github.com/couchbase/sync_gateway/db/change_listener.go:83 +0x168
created by github.com/couchbase/sync_gateway/db.(*changeListener).StartMutationFeed
/Users/benbrooks/dev/sg/godeps/src/github.com/couchbase/sync_gateway/db/change_listener.go:76 +0x42e
goroutine 1335 [semacquire]:
sync.runtime_notifyListWait(0xc420ba0b10, 0xc400000002)
/usr/local/Cellar/go/1.9.2/libexec/src/runtime/sema.go:507 +0x11f
sync.(*Cond).Wait(0xc420ba0b00)
/usr/local/Cellar/go/1.9.2/libexec/src/sync/cond.go:56 +0x8e
github.com/couchbaselabs/walrus.(*queue).pull(0xc4206c4430, 0x0, 0x0)
/Users/benbrooks/dev/sg/godeps/src/github.com/couchbaselabs/walrus/queue.go:38 +0x109
github.com/couchbaselabs/walrus.(*tapFeedImpl).run(0xc420ba0b40)
/Users/benbrooks/dev/sg/godeps/src/github.com/couchbaselabs/walrus/tap.go:85 +0x121
created by github.com/couchbaselabs/walrus.(*WalrusBucket).StartTapFeed
/Users/benbrooks/dev/sg/godeps/src/github.com/couchbaselabs/walrus/tap.go:38 +0x3c2
goroutine 1289 [chan receive]:
github.com/couchbase/sync_gateway/db.(*changeListener).StartMutationFeed.func1(0xc4204de8f0)
/Users/benbrooks/dev/sg/godeps/src/github.com/couchbase/sync_gateway/db/change_listener.go:83 +0x168
created by github.com/couchbase/sync_gateway/db.(*changeListener).StartMutationFeed
/Users/benbrooks/dev/sg/godeps/src/github.com/couchbase/sync_gateway/db/change_listener.go:76 +0x42e
goroutine 1334 [select]:
github.com/couchbase/sync_gateway/db.(*changeCache).Init.func2(0xc4202a8870)
/Users/benbrooks/dev/sg/godeps/src/github.com/couchbase/sync_gateway/db/change_cache.go:141 +0x166
created by github.com/couchbase/sync_gateway/db.(*changeCache).Init
/Users/benbrooks/dev/sg/godeps/src/github.com/couchbase/sync_gateway/db/change_cache.go:139 +0x3ff
goroutine 1337 [chan receive]:
github.com/couchbase/sync_gateway/db.(*changeListener).StartMutationFeed.func1(0xc4204df3f0)
/Users/benbrooks/dev/sg/godeps/src/github.com/couchbase/sync_gateway/db/change_listener.go:83 +0x168
created by github.com/couchbase/sync_gateway/db.(*changeListener).StartMutationFeed
/Users/benbrooks/dev/sg/godeps/src/github.com/couchbase/sync_gateway/db/change_listener.go:76 +0x42e
goroutine 1236 [chan receive]:
github.com/couchbase/sync_gateway/db.(*changeListener).StartMutationFeed.func1(0xc4204dee70)
/Users/benbrooks/dev/sg/godeps/src/github.com/couchbase/sync_gateway/db/change_listener.go:83 +0x168
created by github.com/couchbase/sync_gateway/db.(*changeListener).StartMutationFeed
/Users/benbrooks/dev/sg/godeps/src/github.com/couchbase/sync_gateway/db/change_listener.go:76 +0x42e
goroutine 1168 [chan receive]:
github.com/couchbase/sync_gateway/db.(*changeListener).StartMutationFeed.func1(0xc42047c370)
/Users/benbrooks/dev/sg/godeps/src/github.com/couchbase/sync_gateway/db/change_listener.go:83 +0x168
created by github.com/couchbase/sync_gateway/db.(*changeListener).StartMutationFeed
/Users/benbrooks/dev/sg/godeps/src/github.com/couchbase/sync_gateway/db/change_listener.go:76 +0x42e
goroutine 1336 [chan receive]:
github.com/couchbase/sync_gateway/base.(*LeakyBucket).StartTapFeed.func2(0x1dddb20, 0xc420ba0b40, 0xc4203c47c0)
/Users/benbrooks/dev/sg/godeps/src/github.com/couchbase/sync_gateway/base/leaky_bucket.go:171 +0x199
created by github.com/couchbase/sync_gateway/base.(*LeakyBucket).StartTapFeed
/Users/benbrooks/dev/sg/godeps/src/github.com/couchbase/sync_gateway/base/leaky_bucket.go:170 +0x34c
goroutine 1333 [select]:
github.com/couchbase/sync_gateway/db.(*changeCache).Init.func1(0xc4202a8870)
/Users/benbrooks/dev/sg/godeps/src/github.com/couchbase/sync_gateway/db/change_cache.go:129 +0x166
created by github.com/couchbase/sync_gateway/db.(*changeCache).Init
/Users/benbrooks/dev/sg/godeps/src/github.com/couchbase/sync_gateway/db/change_cache.go:127 +0x3da
goroutine 1318 [chan receive]:
github.com/couchbase/sync_gateway/db.(*changeListener).StartMutationFeed.func1(0xc4205a08f0)
/Users/benbrooks/dev/sg/godeps/src/github.com/couchbase/sync_gateway/db/change_listener.go:83 +0x168
created by github.com/couchbase/sync_gateway/db.(*changeListener).StartMutationFeed
/Users/benbrooks/dev/sg/godeps/src/github.com/couchbase/sync_gateway/db/change_listener.go:76 +0x42e
exit status 2
FAIL github.com/couchbase/sync_gateway/db 25.215s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment