[sqlite] Segment fault when running a query

2016-02-05 Thread Fredrik Gustafsson
Thank you very much for your help. Richard was correct in that it was a memory error earlier. /Fredrik 2016-02-04 16:53 GMT+01:00 Simon Slavin : > > On 3 Feb 2016, at 4:21pm, Fredrik Gustafsson wrote: > > > 223 rc = sqlite3_exec(db, "SELECT id, date, text FROM events > WHERE

[sqlite] Segment fault when running a query

2016-02-04 Thread Simon Slavin
On 3 Feb 2016, at 4:21pm, Fredrik Gustafsson wrote: > 223 rc = sqlite3_exec(db, "SELECT id, date, text FROM events WHERE > account_id=1 ORDER BY date DESC LIMIT 10" , NULL, NULL, ); To help debug this, insert two lines before this one. One checks to see that $zErrMsg is a real

[sqlite] Segment fault when running a query

2016-02-04 Thread Richard Hipp
On 2/3/16, Fredrik Gustafsson wrote: > Hi, > I've a reproduceable error in my code, running a simple SQL question > gives me a segment fault. Running the program i gdb and doing backtrace > gives me this: > > (gdb) backtrace > #0 malloc_consolidate (av=av at entry=0x776be620 ) at >

[sqlite] Segment fault when running a query

2016-02-03 Thread Fredrik Gustafsson
Hi, I've a reproduceable error in my code, running a simple SQL question gives me a segment fault. Running the program i gdb and doing backtrace gives me this: (gdb) backtrace #0 malloc_consolidate (av=av at entry=0x776be620 ) at malloc.c:4149 #1 0x77394ee8 in _int_malloc

[sqlite] Segment fault when running a query

2016-02-03 Thread Fredrik Gustafsson
Hi, I've a reproduceable error in my code, running a simple SQL question gives me a segment fault. Running the program i gdb and doing backtrace gives me this: (gdb) backtrace #0 malloc_consolidate (av=av at entry=0x776be620 ) at malloc.c:4149 #1 0x77394ee8 in _int_malloc

[sqlite] Segment fault when running a query

2016-02-03 Thread Fredrik Gustafsson
Hi, I've a reproduceable error in my code, running a simple SQL question gives me a segment fault. Running the program i gdb and doing backtrace gives me this: (gdb) backtrace #0 malloc_consolidate (av=av at entry=0x776be620 ) at malloc.c:4149 #1 0x77394ee8 in _int_malloc