RE: thread leakage

From: Murray S. Kucherawy <msk_at_cloudmark.com>
Date: Mon, 14 Mar 2011 10:52:17 -0700

> -----Original Message-----
> From: Andreas Schulze [mailto:sca_at_andreasschulze.de]
> Sent: Monday, March 14, 2011 2:55 AM
> To: Murray S. Kucherawy
> Cc: opendkim-dev_at_lists.opendkim.org
> Subject: RE: thread leakage
>
> How do I do this in deatail ?
> do I need a binary with debug-symbols ?

Yes. Then:

% gdb opendkim
(gdb) attach <pid>
(gdb) thread apply all bt

That will give you a stack trace of all running threads.

Unfortunately libmilter automatically shuts down when thread_create() fails too many times in a row, so you have a finite window in which to capture this information.
Received on Mon Mar 14 2011 - 17:52:26 PST

This archive was generated by hypermail 2.3.0 : Mon Oct 29 2012 - 23:33:09 PST