lineinfo units, valgrind and heaptrace unit woes : Access violation occurs when freeing memory space belonging to another
Original Reporter info from Mantis: Cyrax
-
Reporter name:
Original Reporter info from Mantis: Cyrax
- Reporter name:
Description:
lineinfo units uses dynamic arrays (especially lnfodwrf) during their operation. Due to this, when cmem unit is added to mix (when user wants to use valgrind features), its early finalization related to lineinfo units will cause memory deallocation bugs to happen. This is because old memory manager tries to release memory belong to another one.
Thus move cmem unit before line info units and make that when user uses heaptrace with valgrind, do not add heaptrace unit to mix, too.
Mantis conversion info:
- Mantis ID: 36529
- OS: Arch
- OS Build: 3.17.4-1
- Build: r43868
- Platform: Linux x86_64
- Version: 3.3.1
- Fixed in revision: 47390 (#d9784412)