mterry / 321db

Project II for 60-321: A RDBMS built using C and CURSES
1 stars 0 forks source link

All malloc calls to crel_t, crel_attr_t, and crel_attr_constraints_t are circumspect #20

Closed mterry closed 13 years ago

mterry commented 13 years ago

All of the sizeof() parts of each malloc call need to be changed to the struct definitions of the structures, as opposed to the pointer definitions. Using the pointer definitions, the code won't work.

mterry commented 13 years ago

Changing the malloc() calls hasn't fixed anything. The bug has been narrowed down to a heap corruption though, so a malloc() call somewhere is causing the issue. The SIGABRT is being caught now, though.

mterry commented 13 years ago

Deprecated the old crel.h and crel.c, and moved them to old_crel.h and old_crel.c, respectively. Rewrote crel.h and crel.c from scratch, in a more efficient and easier to debug method. Closed by cba125b93ffc7565f130c406674a5496ed986e0a.