On 11/13/2016 01:58 AM, Jan Berkel wrote:
Got a crash in the FTS5 code which only happens on a specific search
query (int the form of: "ab cd" OR "ab cd" *)
The crash occurs In fts5MultiIterNext(), on the following line:
pSeg->xNext(p, pSeg, &bNewTerm);
Debugger shows that pSeg is set, but xNext is null.
There are items which match the query. This is with 3.15.1.
Are you able to share the database that this crashes when querying?
Dan
Jan
[excerpt from stack trace]
* frame #1: 0x00000001110c4e6d
sqlite3`fts5MultiIterNext(p=0x0000608000303cc0,
pIter=0x00007fa892722500, bFrom=1, iFrom=43) + 157 at sqlite3.c:189370
frame #2: 0x00000001110cb07a
sqlite3`fts5MultiIterNextFrom(p=0x0000608000303cc0,
pIter=0x00007fa892722500, iMatch=43) + 42 at sqlite3.c:190046
frame #3: 0x00000001110cb03d
sqlite3`sqlite3Fts5IterNextFrom(pIndexIter=0x00007fa892722500,
iMatch=43) + 45 at sqlite3.c:191953
frame #4: 0x00000001110cad7e
sqlite3`fts5ExprAdvanceto(pIter=0x00007fa892722500, bDesc=0,
piLast=0x00007fff5030f908, pRc=0x00007fff5030f914,
pbEof=0x0000600000251764) + 110 at sqlite3.c:183952
frame #5: 0x00000001110ca620
sqlite3`fts5ExprNodeTest_STRING(pExpr=0x0000600000251370,
pNode=0x0000600000251760) + 432 at sqlite3.c:184224
frame #6: 0x00000001110c3610
sqlite3`fts5ExprNodeTest(pExpr=0x0000600000251370,
pNode=0x0000600000251760) + 96 at sqlite3.c:184528
frame #7: 0x00000001110c3278
sqlite3`fts5ExprNodeFirst(pExpr=0x0000600000251370,
pNode=0x0000600000251760) + 424 at sqlite3.c:184602
frame #8: 0x00000001110c31b1
sqlite3`fts5ExprNodeFirst(pExpr=0x0000600000251370,
pNode=0x0000600000679400) + 225 at sqlite3.c:184579
frame #9: 0x00000001110c2ff5
sqlite3`sqlite3Fts5ExprFirst(p=0x0000600000251370,
pIdx=0x0000608000303cc0, iFirst=-9223372036854775808, bDesc=0) + 69
at sqlite3.c:184629
frame #10: 0x00000001110c283b
sqlite3`fts5CursorFirst(pTab=0x0000600000462300,
pCsr=0x0000600000383b50, bDesc=0) + 59 at sqlite3.c:193947
frame #11: 0x00000001110bb87c
sqlite3`fts5FilterMethod(pCursor=0x0000600000383b50, idxNum=1,
zUnused=0x0000000000000000, nVal=1, apVal=0x00007fa892721fa0) + 988
at sqlite3.c:194218
frame #12: 0x000000011104a1a8
sqlite3`sqlite3VdbeExec(p=0x00007fa892720d20) + 37640 at
sqlite3.c:83865
_______________________________________________
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
_______________________________________________
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users