A NOTE has been added to this issue. ====================================================================== http://www.dbmail.org/mantis/view.php?id=260 ====================================================================== Reported By: mavetju Assigned To: ====================================================================== Project: DBMail Issue ID: 260 Category: General Reproducibility: always Severity: crash Priority: normal Status: new ====================================================================== Date Submitted: 23-Aug-05 02:27 CEST Last Modified: 30-Aug-05 00:33 CEST ====================================================================== Summary: pop3/imap daemon dies in stress test Description: The suggested patch in http://www.dbmail.org/mantis/view.php?id=258 is that we use a static string instead of a dynamically allocated one in trace(). Unfortunately, trace() itself still uses syslog() which calls vsyslog() which calls fprintf() which calls [....] which calls malloc().
Solution? Don't call trace() from a signal handler. ====================================================================== ---------------------------------------------------------------------- paul - 24-Aug-05 13:38 ---------------------------------------------------------------------- I've changed the signal handler code in server.c and serverchild.c removing all unsafe code (hopefully). Would you mind testing again? ---------------------------------------------------------------------- mavetju - 24-Aug-05 13:53 ---------------------------------------------------------------------- Of course, but can you tell me which revisions of code I should compare to get a patch? (I'm sorry my SVN skills aren't as good as my CVS ones) ---------------------------------------------------------------------- kouta - 30-Aug-05 00:33 ---------------------------------------------------------------------- svn diff -r 1861:1871 server.c svn diff -r 1757:1873 serverchild.c Issue History Date Modified Username Field Change ====================================================================== 23-Aug-05 02:27 mavetju New Issue 24-Aug-05 13:38 paul Note Added: 0000877 24-Aug-05 13:53 mavetju Note Added: 0000878 30-Aug-05 00:33 kouta Note Added: 0000892 ======================================================================