-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting better stack traces? #16
Comments
I noticed in couchbase/indexing@969f73a it is setting |
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. |
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.
The text was updated successfully, but these errors were encountered: