Here attached is a patch to fix the segfault when logging is enabled.
The deadlock problem persists.

Thanks,
Ludovico
#! /bin/sh /usr/share/dpatch/dpatch-run
## 20_logfile_reinit.dpatch by  <ludovico.cave...@gmail.com>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: logfile reinit

@DPATCH@

--- nspr-4.7.1.orig/mozilla/nsprpub/pr/src/io/prlog.c   2009-03-21 
17:50:15.000000000 -0700
+++ nspr-4.7.1/mozilla/nsprpub/pr/src/io/prlog.c        2009-03-21 
17:52:08.000000000 -0700
@@ -304,8 +304,8 @@
 #else
     if (logFile && logFile != _pr_stdout && logFile != _pr_stderr) {
         PR_Close(logFile);
-        logFile = NULL;
     }
+    logFile = NULL;
 #endif
 
     if (logBuf)

Reply via email to