ekinoguz / sprout-database

Database project of a graduate class.
0 stars 0 forks source link

test case O5 with 600k inserts exposes bug in rm #24

Closed diedthreetimes closed 11 years ago

diedthreetimes commented 11 years ago

seg fault with cache on double free with cache off.

We should pass it through valgrind sometime way later in the future.

For the curious here is the stack trace

0 0x00007fff887d4d46 in __kill ()

1 0x00007fff8520adf0 in abort ()

2 0x00007fff851e6905 in szone_error ()

3 0x00007fff851e743e in small_free_list_remove_ptr ()

4 0x00007fff851e510f in szone_free_definite_size ()

5 0x00007fff851de8f8 in free ()

6 0x000000010001baeb in RM_ScanFormattedIterator::~RM_ScanFormattedIterator (this=0x7fff5fbfee70) at rm.h:73

7 0x000000010001500d in RM::getAttributesFromCatalog () at rm.cc:411

8 0x0000000100015c9f in RM::insertTuple (this=0x10003ba20, tableName={static npos = , _M_dataplus \

= {<allocator> = {<__gnu_cxx::new_allocator> = {}, }, _M_p = 0x10030443\ 8 "emptestO5"}}, data=0x115f307b0, rid=@0x7fff5fbff050, useRid=false) at rm.cc:556

9 0x0000000100001269 in insertTuples (tablename={static npos = , _M_dataplus = {<allocator> \

= {<__gnu_cxx::new_allocator> = {}, }, _M_p = 0x100304438 "emptestO5"}}, rids\ =@0x7fff5fbff4e0, tuples=@0x7fff5fbff4c0, number=600000, uniq=true, dups=4) at ixtest.cc:127

10 0x00000001000073f7 in testCase_O5 () at ixtest.cc:1851

11 0x000000010000a63d in ourTests () at ixtest.cc:2366

12 0x000000010000a6ee in main () at ixtest.cc:2388