I get a really confusing bug while using malloc, It raises segmentation fault. It\'s not a small project so I can\'t paste my code. The bug disappears in debug mode using gd