Sudo-san reported me that GTM-Proxy fails with SEG-V. It runs normally in Ubuntu and without O2 build option, it also runs in CentOS too. Finally, I found that it only fails with O2 option at CentOS. It looks that entry to memory allocation handler is corrupted. I will look into it tomorrow.
---
It was caused by uninitialized thrinfo, which points to all the memory context. Just adding memset() fixed the problem.
I checked all the other malloc() in GTM-related code and found all the others are associated with proper initilization or written before read.
No comments:
Post a Comment