Skip to content

Segmentation Fault #1026

@markmitton

Description

@markmitton

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions