Re: Memory leak with timer

2008-10-08 Thread Christopher Faylor
On Wed, Oct 08, 2008 at 11:07:05PM +0200, Bob van Loosen wrote: >Larry Hall (Cygwin) wrote: >>Bob van Loosen wrote: >>>Christopher Faylor wrote: On Wed, Oct 08, 2008 at 02:45:55AM +0200, Bob van Loosen wrote: >Christopher Faylor wrote: >>This should be fixed in the next snapshot.

Re: Memory leak with timer

2008-10-08 Thread Bob van Loosen
Larry Hall (Cygwin) wrote: Bob van Loosen wrote: Christopher Faylor wrote: On Wed, Oct 08, 2008 at 02:45:55AM +0200, Bob van Loosen wrote: Christopher Faylor wrote: This should be fixed in the next snapshot. If you are looking for a workaround, specifically set the sigev_notify_attribut

Re: Memory leak with timer

2008-10-08 Thread Larry Hall (Cygwin)
Bob van Loosen wrote: Christopher Faylor wrote: On Wed, Oct 08, 2008 at 02:45:55AM +0200, Bob van Loosen wrote: Christopher Faylor wrote: This should be fixed in the next snapshot. If you are looking for a workaround, specifically set the sigev_notify_attributes to PTHREAD_CREATE_DETACH

Re: Memory leak with timer

2008-10-08 Thread Bob van Loosen
Christopher Faylor wrote: On Wed, Oct 08, 2008 at 02:45:55AM +0200, Bob van Loosen wrote: Christopher Faylor wrote: This should be fixed in the next snapshot. If you are looking for a workaround, specifically set the sigev_notify_attributes to PTHREAD_CREATE_DETACHED. Thanks, t

Re: Memory leak with timer

2008-10-07 Thread Christopher Faylor
On Wed, Oct 08, 2008 at 02:45:55AM +0200, Bob van Loosen wrote: > Christopher Faylor wrote: >> This should be fixed in the next snapshot. If you are looking for a >> workaround, specifically set the sigev_notify_attributes to >> PTHREAD_CREATE_DETACHED. > > Thanks, that fixed it. > Shouldn't PTHRE

Re: Memory leak with timer

2008-10-07 Thread Bob van Loosen
Christopher Faylor wrote: On Wed, Oct 08, 2008 at 12:08:52AM +0200, Bob van Loosen wrote: Hi all, When using a timer I seem to be getting a memory leak. It eats up about 8 kilobyte per second. Here's some example code: #include #include #include #include #include void nothing(){} voi

Re: Memory leak with timer

2008-10-07 Thread Christopher Faylor
On Wed, Oct 08, 2008 at 12:08:52AM +0200, Bob van Loosen wrote: > Hi all, > > When using a timer I seem to be getting a memory leak. > It eats up about 8 kilobyte per second. > > Here's some example code: > > #include > #include > #include > #include > #include > > void nothing(){} > void Die(

RE: Memory leak with timer

2008-10-07 Thread Dave Korn
Bob van Loosen wrote on 07 October 2008 23:09: > Hi all, > > When using a timer I seem to be getting a memory leak. > It eats up about 8 kilobyte per second. Mmmm, yeah, how interesting. Confirmed: the WS just keeps getting bigger and there's a constant rate of pagefaults per second. Somethi

Memory leak with timer

2008-10-07 Thread Bob van Loosen
Hi all, When using a timer I seem to be getting a memory leak. It eats up about 8 kilobyte per second. Here's some example code: #include #include #include #include #include void nothing(){} void Die(char *error){perror(error); exit(1);} int main() { struct itimerspec itimer; struc