kuzu icon indicating copy to clipboard operation
kuzu copied to clipboard

Segmentation Fault Caused by free() of Invalid Pointer

Open mxwli opened this issue 1 year ago • 3 comments

By changing line 130 of create_tinysnb.test MATCH (a:person) WHERE a.ID > 8 RETURN a.ID, a.workedHours,a.usedNames

to MATCH (a:person) WHERE a.ID > -1 RETURN a.ID, a.workedHours,a.usedNames

you can reliably cause a segmentation fault from the freeing an invalid pointer. The test case itself is TinySnbCreateNodeTest.InsertNodeWithListTest

It's possible this bug has something to do with the fact that during the transaction in this test case, after the new node is created, it assumes that the new node is already compressed. A result that I noticed is that a call to CompressionAlg::decompressFromPage is made attempting to read one more value than there actually exists.

mxwli avatar Oct 24 '23 18:10 mxwli