Open tleyden opened 9 years ago
I noticed in https://github.com/couchbase/indexing/commit/969f73ab35591ecd08e30a2e83f8346f21b6e8e5 it is setting #cgo CFLAGS: -O0
, but I haven't tried that yet.
Well stating the obvious it appears to be a null pointer exception in fdb_kvs_close().
Getting reliable stack trace or core file has been a major nightmare so far. As you observed the indexing team has some tricks, BUT last I heard they are not always working. One thing I heard was that using gccgo produces core dumps without any additional drama... But I recommend you talk to the indexing team to get the latest info.
it appears to be a null pointer exception in fdb_kvs_close().
I believe you, but can you elaborate on how you arrived at that from the stacktrace?
Sure that last readable line in the stack trace was:
/Users/tleyden/Development/sync_gateway/src/github.com/couchbaselabs/goforestdb/forestdb.go:26
Assuming you're using the latest commit, this is:
https://github.com/couchbase/goforestdb/blob/master/forestdb.go#L26
Also, you can see the text: goforestdb._Cfunc_fdb_kvs_close in the trace too.
Thanks, makes sense. Looks like there is a way to add tracing, which will be useful for debugging.
I somehow managed to cause a panic (I'm still trying to dig into the root cause), and I'm seeing a stack trace:
it's a bit cryptic, and I was wondering if there was a way to get a better error message.