kuzu
kuzu copied to clipboard
Segmentation Fault Caused by free() of Invalid Pointer
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.