Damn.
Never use malloc() in a thread in a non-MTsafe (libc5,win32) environment.
Yuck.
Are you positive you can even call malloc in a thread in glibc? I
don’t know one way or the other, but I can imagine malloc being
restricted even there.
–Cliff
@Clifford_T_Matthews