Hi Leon,
I have an experimental fix to plug the handle leak.
If you are able to compile a new executable from the CVS, you can apply
the attached patch.
Please let me know if it makes a difference, because I can't reproduce the leak
here.
Thanks,
Jan
Leon Li wrote:
> Thanks Jan,
>
> Regards,
> Leon
>
>
> -----Original Message-----
> From: Jan Willamowius [mailto:j...@willamowius.de]
> Sent: Thursday, 6 December 2012 10:10 PM
> To: openh323gk-users@lists.sourceforge.net
> Subject: Re: [Openh323gk-users] Gnugk hang
>
> Hi Leon,
>
> what you are seeing is that GnuGk runs out of file handles.
> This issue has already been reported in the "FIFO gnugk 3.1" thread.
>
> I believe this is caused by a bug in PTLib 2.10.x where threads marked as
> auto-delete aren't deleted at all.
>
> Currently there is no real fix availabe, but I'm on it. In the meantime, you
> can simply raise the number of file handles available to GnuGk so the leakage
> won't cause a crash (eg. "ulimit -n 32768 before starting GnuGk").
>
> Regards,
> Jan
>
> Leon Li wrote:
> > Hi,
> >
> > Our gnugk died this morning with the following errors repeatly.
> >
> > 2012/12/05 17:26:27.544 1 osutil.cxx(191) PWLib
> > File handle high water mark within 5% of maximum: 974 Thread unblock pipe
> > 2012/12/05 17:30:35.906 0 assert.cxx(108)
> > PWLib Assertion fail: Operating System error, file
> > ptlib/unix/tlibthrd.cxx, line 416, Error=24
> >
> > 2012/12/05 17:30:46.540 0 assert.cxx(108)
> > PWLib Assertion fail: Operating System error, file
> > ptlib/unix/tlibthrd.cxx, line 416, Error=24
> > 2012/12/05 17:30:46.540 1 osutil.cxx(191) PWLib
> > File handle high water mark within 5% of maximum: 9514960 Thread unblock
> > pipe
> >
> > Wondering what this means. Thanks in advance.
> >
> > We are using v3.1.0.
> >
> > Regards,
> > Leon
>
>
> --
> Jan Willamowius, j...@willamowius.de, http://www.gnugk.org/
--
Jan Willamowius, j...@willamowius.de, http://www.gnugk.org/
Index: gk.cxx
===================================================================
RCS file: /cvsroot/openh323gk/openh323gk/gk.cxx,v
retrieving revision 1.201
diff -u -r1.201 gk.cxx
--- gk.cxx 26 Nov 2012 06:38:28 -0000 1.201
+++ gk.cxx 7 Dec 2012 11:14:51 -0000
@@ -940,6 +940,10 @@
GetArguments().SetArgs("-d -p " + pidfile);
#endif
#endif
+#if (PTLIB_VER >= 2100) && (PTLIB_VER < 2120)
+ // work around a bug in PTLib 2.10.x that doesn't start the housekeeping thread to delete auto-delete threads
+ SignalTimerChange();
+#endif
}
#ifdef COMPILE_AS_SERVICE
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________________
Posting: mailto:Openh323gk-users@lists.sourceforge.net
Archive:
http://sourceforge.net/mailarchive/forum.php?forum_name=openh323gk-users
Unsubscribe: http://lists.sourceforge.net/lists/listinfo/openh323gk-users
Homepage: http://www.gnugk.org/