[<<] [<] Page 1 of 1 [>] [>>] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: Newscache on Freebsd
From: Tilman Linneweh ####@####.#### Date: 28 Jul 2003 16:27:03 -0000 Message-Id: <1059412032.77066.109.camel@sauna.arved.de> Hi Derkjan, I am CCing your mail to the NewsCache Mailinglist. On Mon, 2003-07-28 at 18:15, Derkjan de Haan wrote: > In the past, I have run NewsCache on Linux, and most of the time it works > fine. However, I am experiencing difficulties in using NewsCache on FreeBSD > 5.1. > I have installed the latest NewsCache from the ports, configured it, created > the spool directory, and started it. The problem is that the main process > starts, but the worker processes (as soon as clients connect) die with SIG > 11. Is this a known problem, and/or are there things I can do to diagnose, > of assist in fixing this ? > I have attached the config file > > This is output from syslog, news.* > > Jul 28 18:10:10 bsdtest NewsCache[9433]: NewsCache Server Start > Jul 28 18:10:22 bsdtest NewsCache[9435]: 192.168.2.1 [192.168.2.1] connect > Jul 28 18:10:22 bsdtest NewsCache[9435]: NServer::NServer() hostname set to: > bsdtest.badmuts.org > Jul 28 18:10:22 bsdtest NewsCache[9435]: 192.168.2.1 [192.168.2.1] MODE > READER > Jul 28 18:10:22 bsdtest NewsCache[9435]: 192.168.2.1 [192.168.2.1] LIST > Jul 28 18:10:22 bsdtest NewsCache[9435]: active database timed out > Jul 28 18:10:22 bsdtest NewsCache[9433]: 9435 caught signal 11 I have no idea, and nearly no time at the moment for newscache. Has anyone else seen this problem with Newscache 1.1.12 and libsocket++ 1.12.10, or runs NewsCache successfully under FreeBSD? You can try to recompile with debugging symbols. cd /usr/ports/news/newscache/ && make install CFLAGS="-g" STRIP= Then you can try to get a backtrace with gdb. Perhaps I can try to setup a NewsCache next weekend. regards tilman | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: Newscache on Freebsd
From: Herbert Straub ####@####.#### Date: 3 Aug 2003 04:07:28 -0000 Message-Id: <3F2C91E6.7000107@aon.at> Tilman Linneweh wrote: >You can try to recompile with debugging symbols. >cd /usr/ports/news/newscache/ && make install CFLAGS="-g" STRIP= >Then you can try to get a backtrace with gdb. > > You can also expand the configure command with: --enable-debug This options creates more Debug Output in the news.debug file and compile the program with the -g compiler option. Regards Herbert | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: Newscache on Freebsd
From: Steve Ames ####@####.#### Date: 3 Aug 2003 18:47:40 -0000 Message-Id: <20030803192736.GA98459@energistic.com> On Sun, Aug 03, 2003 at 06:39:02AM +0200, Herbert Straub wrote: > You can also expand the configure command with: --enable-debug This > options creates more Debug Output in the news.debug file and compile the > program with the -g compiler option. With --enable-debug I now get this: Aug 3 14:25:13 energistic NewsCache[76883]: NewsCache Server Start Aug 3 14:25:16 energistic NewsCache[77974]: localhost [127.0.0.1] connect Aug 3 14:25:16 energistic NewsCache[77974]: NServer::NServer() Aug 3 14:25:16 energistic NewsCache[77974]: NServer::NServer() hostname set to:energistic.com Aug 3 14:25:16 energistic NewsCache[77974]: CServer::CServer(/var/cache/newscache,*serverlist) Aug 3 14:25:16 energistic NewsCache[77974]: LServer::init(/var/cache/newscache) Aug 3 14:25:16 energistic NewsCache[77974]: ArtSpooler::ArtSpooler (/var/cache/newscache) Aug 3 14:25:16 energistic NewsCache[77974]: RServer::init/1 Aug 3 14:25:20 energistic NewsCache[77974]: localhost [127.0.0.1] group alt.test Aug 3 14:25:20 energistic NewsCache[77974]: NewsCache selectgroup (alt.test) Aug 3 14:25:20 energistic NewsCache[77974]: CServer::groupinfo(alt.test) Aug 3 14:25:20 energistic NewsCache[77974]: NVActiveDB::get(alt.test,&gi) Aug 3 14:25:20 energistic NewsCache[77974]: RServer::selectgroup(alt.test) Aug 3 14:25:20 energistic NewsCache[77974]: RServer::setserver({news.verizon.net,nntp}) Aug 3 14:25:20 energistic NewsCache[77974]: RServer::issue: issue group alt.test Aug 3 14:25:20 energistic NewsCache[76883]: 77974 caught signal 11 e I don't know how to use gdb to get a good backtrace... if someone would give me the 10 second overview I'm sure I could get one... -Steve | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: Newscache on Freebsd
From: Herbert Straub ####@####.#### Date: 3 Aug 2003 19:45:49 -0000 Message-Id: <3F2D6DD6.4020907@aon.at> Steve Ames wrote: >With --enable-debug I now get this: > >Aug 3 14:25:13 energistic NewsCache[76883]: NewsCache Server Start >Aug 3 14:25:16 energistic NewsCache[77974]: localhost [127.0.0.1] connect >Aug 3 14:25:16 energistic NewsCache[77974]: NServer::NServer() >Aug 3 14:25:16 energistic NewsCache[77974]: NServer::NServer() hostname set to:energistic.com >Aug 3 14:25:16 energistic NewsCache[77974]: CServer::CServer(/var/cache/newscache,*serverlist) >Aug 3 14:25:16 energistic NewsCache[77974]: LServer::init(/var/cache/newscache) >Aug 3 14:25:16 energistic NewsCache[77974]: ArtSpooler::ArtSpooler (/var/cache/newscache) >Aug 3 14:25:16 energistic NewsCache[77974]: RServer::init/1 >Aug 3 14:25:20 energistic NewsCache[77974]: localhost [127.0.0.1] group alt.test >Aug 3 14:25:20 energistic NewsCache[77974]: NewsCache selectgroup (alt.test) >Aug 3 14:25:20 energistic NewsCache[77974]: CServer::groupinfo(alt.test) >Aug 3 14:25:20 energistic NewsCache[77974]: NVActiveDB::get(alt.test,&gi) >Aug 3 14:25:20 energistic NewsCache[77974]: RServer::selectgroup(alt.test) >Aug 3 14:25:20 energistic NewsCache[77974]: RServer::setserver({news.verizon.net,nntp}) >Aug 3 14:25:20 energistic NewsCache[77974]: RServer::issue: issue group alt.test > --> and now RServer::connect() should be displayed! >Aug 3 14:25:20 energistic NewsCache[76883]: 77974 caught signal 11 >e > I think the error occours in the class RServer::issue (). The object variable _pServerStream is not initialized in the Contructor call and therefore the is_connected() returns 1. After this the connect() method is not called and *_pServerStream << command << flush crashes. >I don't know how to use gdb to get a good backtrace... if someone would >give me the 10 second overview I'm sure I could get one... > I read the backtrace, but i can't see the line, which is the reason... Anyway, please try the following patch and check, if the error is gone: diff -u NServer.h.orig NServer.h --- NServer.h.orig 2003-08-03 22:00:37.000000000 +0200 +++ NServer.h 2003-08-03 22:01:00.000000000 +0200 @@ -243,6 +243,7 @@ RServer():NServer() { _ServerList = NULL; _CurrentServer = NULL; + _pServerStream = NULL; } void init(MPList * serverlist); /** NServer.h is in the subdirectory NServer-0.9.1. Herbert | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: Newscache on Freebsd
From: Tilman Linneweh ####@####.#### Date: 4 Aug 2003 12:22:17 -0000 Message-Id: <1060002126.33652.7.camel@sauna.arved.de> On Sun, 2003-08-03 at 23:02, Steve Ames wrote: > > I read the backtrace, but i can't see the line, which is the reason... > > Anyway, please try the following patch and check, if the error is gone: > > diff -u NServer.h.orig NServer.h > > > > --- NServer.h.orig 2003-08-03 22:00:37.000000000 +0200 > > +++ NServer.h 2003-08-03 22:01:00.000000000 +0200 > > @@ -243,6 +243,7 @@ > > RServer():NServer() { > > _ServerList = NULL; > > _CurrentServer = NULL; > > + _pServerStream = NULL; > > } void init(MPList * serverlist); > > > > /** > > > > NServer.h is in the subdirectory NServer-0.9.1. > > Applied this patch and everything seems to be working again! Ok, I have added the patch to the FreeBSD port. Thanks Herbert for the quick response. regards tilman | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: Newscache on Freebsd
From: "Derkjan de Haan" ####@####.#### Date: 4 Aug 2003 15:07:24 -0000 Message-Id: <001f01c35a9f$ab158500$0102a8c0@badmuts.org> ----- Original Message ----- From: "Tilman Linneweh" ####@####.#### To: "Steve Ames" ####@####.#### Cc: "Herbert Straub" ####@####.#### "Derkjan de Haan" ####@####.#### ####@####.#### Sent: Monday, August 04, 2003 3:02 PM Subject: Re: Newscache on Freebsd > On Sun, 2003-08-03 at 23:02, Steve Ames wrote: > > > I read the backtrace, but i can't see the line, which is the reason... > > > Anyway, please try the following patch and check, if the error is gone: > > > diff -u NServer.h.orig NServer.h > > > > > > --- NServer.h.orig 2003-08-03 22:00:37.000000000 +0200 > > > +++ NServer.h 2003-08-03 22:01:00.000000000 +0200 > > > @@ -243,6 +243,7 @@ > > > RServer():NServer() { > > > _ServerList = NULL; > > > _CurrentServer = NULL; > > > + _pServerStream = NULL; > > > } void init(MPList * serverlist); > > > > > > /** > > > > > > NServer.h is in the subdirectory NServer-0.9.1. > > > > Applied this patch and everything seems to be working again! > > Ok, > I have added the patch to the FreeBSD port. > > Thanks Herbert for the quick response. > > regards > tilman I have updated my ports collection to include this patch, recompiled nntpcache and all is well. Many thanks to all involved ! regards, Derkjan | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: Newscache on Freebsd
From: "Derkjan de Haan" ####@####.#### Date: 5 Aug 2003 04:56:04 -0000 Message-Id: <4066.195.109.189.2.1060061721.squirrel@haanjdj.xs4all.nl> > I have updated my ports collection to include this patch, recompiled > nntpcache and all is well. Many thanks to all involved ! Hmmm. Excuse me, I meant newscache of course. *reaches for brown paper bag* regards, Derkjan | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[<<] [<] Page 1 of 1 [>] [>>] |