Andrzej Polanski
|
qdb from official All_SRA1072 crashes on db_prepared_init()
|
Andrzej Polanski
01/15/2018 6:32 AM
post118379
|
qdb from official All_SRA1072 crashes on db_prepared_init()
As simple application as:
static const char *select_cmd = "SELECT 2+2;";
qdb_hdl_t *mdbh = qdb_connect("/dev/qdb/test", QDB_CONN_DFLT_SHARE);
...
int read_stmt_id = qdb_stmt_init(mdbh, select_cmd, std::strlen(select_cmd)+1);
leads to sigseg in qdb process:
(gdb) target qnx 192.168.130.2:8000
Remote debugging using 192.168.130.2:8000
Remote target is little-endian
(gdb) run /usb1/qdb -o tempstore=/home
Starting program: /usb1/qdb -o tempstore=/home
...
Program received signal SIGSEGV, Segmentation fault.
[Switching to pid 565258 tid 8]
0x0804f6da in ?? ()
(gdb) symbol-file /opt/qnx660/target/qnx6/armle-v7/usr/sbin/qdb.sym
Reading symbols from /opt/qnx660/target/qnx6/armle-v7/usr/sbin/qdb.sym...done.
(gdb) bt
#0 0x0804f6da in db_prepared_init (db=db@entry=0x8076e88, ocb=ocb@entry=0x8077020, sql=sql@entry=0x8066428 "SELECT 2+2;
", stmtid=stmtid@entry=0x7eefec8)
at /builds/workspace/PSP_qdb-sqlite3-icu59_br660_be660/svn/services/qdb/qdb/database.c:1208
#1 0x080542e8 in stmt_devctl (ctp=0x8073978, msg=0x80739dc, ocb=0x8077020) at /builds/workspace/PSP_qdb-sqlite3-
icu59_br660_be660/svn/services/qdb/qdb/resmgr.c:805
#2 0x01059b24 in ?? ()
#3 0x01059b24 in ?? ()
Note: there is no crash with former version of sqlite (i.e. 3.9.2). In All_SRA1072 sqlite 3.20.1 was introduced.
|
|
|