-
-
Notifications
You must be signed in to change notification settings - Fork 815
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
Segmentation Fault #1026
Comments
Some more info from gdb ... Program terminated with signal SIGSEGV, Segmentation fault. warning: Source file is more recent than executable.
|
What node-sqlite3 version are you running/experiencing this crash with? If you are running v4.0.2 can you check if downgrading to 4.0.0 fixes the sporadic crash? Asking since 4.0.1 upgraded the internal sqlite library version to 3.24.0: https://github.com/mapbox/node-sqlite3/blob/master/CHANGELOG.md#401 |
@springmeyer thanks for your reply. The crash was occurring in node-sqlite 3.1.9 with bundled sqlite library version 3.15. I since then installed node-sqlite 4.0.2 with bundled sqlite library version 3.24, ran for almost 2 hours under heavy load and also crashed. Cored info below looks the same. . Program terminated with signal SIGSEGV, Segmentation fault. warning: Source file is more recent than executable.
|
I may just attempt to edit the makefile to build with SQLITE_ENABLE_API_ARMOR defined. Offending code snippet below. /* |
I got this error today:
|
The DB was closed before an insert finished, hence the crash. An error message would be nice. |
Hi,
We have been using sqlite3 module successfully for quite some time in an embedded application. Recent updates to the app make more heavily use of the database and the node VM now gets a segmentation fault.
The error happens sporadically and sometimes even when the app is not writing to the database and just idling.
Any help would be appreciated.
Node: 6.10.3
Npm: 3.10.10
Architecture: armv7l
OS: GNU/Linux
Program terminated with signal SIGSEGV, Segmentation fault.
#0 sqlite3_db_mutex (db=0x0) at Release/obj/gen/sqlite-autoconf-3150000/sqlite3.c:138532
warning: Source file is more recent than executable.
138532 }
[Current thread is 1 (LWP 25481)]
(gdb) list
138527 (void)SQLITE_MISUSE_BKPT;
138528 return 0;
138529 }
138530 #endif
138531 return db->mutex;
138532 }
138533
138534 /*
138535 ** Free up as much memory as we can from the given database
138536 ** connection.
(gdb) bt
#0 sqlite3_db_mutex (db=0x0) at Release/obj/gen/sqlite-autoconf-3150000/sqlite3.c:138532
#1 0xb481a668 in node_sqlite3::Statement::Work_Prepare (req=) at ../src/statement.cc:128
#2 0x00866d44 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
Regards
Mark
The text was updated successfully, but these errors were encountered: