[Dovecot] memory allocation in new thread

2012-10-11 Thread . .
Hi! I have some problems with memory allocation. I create new thread in cidir storage and call malloc(), and it fails to allocate even 1 byte. What can cause this problem? Dovecot vesrion is: 2.1.10 (130563b592c9+) Sample code looks like this (I also link to pthread with: -pthread): #define

Re: [Dovecot] memory allocation in new thread

2012-10-11 Thread Timo Sirainen
On 11.10.2012, at 13.21, . . wrote: Hi! I have some problems with memory allocation. I create new thread in cidir storage and call malloc(), and it fails to allocate even 1 byte. What can cause this problem? No idea. Dovecot in general isn't designed to work with threads. Oct 11 12:56:15