-
Notifications
You must be signed in to change notification settings - Fork 333
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
query_row segfaults #189
Comments
I added some println statements to see if maybe the db connection was null or if the statement length wasn't right. Nothing obvious is coming up. This is the query that is breaking. When I execute it from the sqlite CLI it returns nothing.
|
Here's the backtrace:
|
Do you know which version of SQLite you are using (the one rusqlite is linked to) ? |
I believe it's this:
|
Why |
I'm not sure if the problem is my FFI Ceph bindings I created or the sqlite bindings. Yeah the pWC->a null is very strange. It could be that my bindings are messing something up and sqlite is blowing up because of it or maybe my stuff isn't related. I can't tell yet. |
Ok we can close this issue. I tracked it down with valgrind. My library was using some bogus pointers and it was causing sqlite to blow up. There's no problem with the sqlite library :) |
query_row seems to segfault for me on the prepare line: https://github.com/jgallagher/rusqlite/blob/bf8c495b69859eea85a2e0b161b52dfe775a0641/src/lib.rs#L653. I'm walking through it with gdb and i'll have more info posted as I figure it out. I'm using the ~0.7 series of rusqlite
The text was updated successfully, but these errors were encountered: