Re: NNTPC: Problem with NNTP Cache 2.3.3b3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Mike Wade writes...
>Aug  5 16:35:20 news1 nntpcache-client[28770]: sockets.c:446: <- ARTICLE
>1740260Aug  5 16:35:20 news1 nntpcache-client[28770]: sockets.c:482: =>
>[library.airnews.net.] ARTICLE 1740260
>Aug  5 16:35:20 news1 nntpcache-client[28817]: sockets.c:345 failed
>assertion: scfg
>Aug  5 16:35:20 news1 nntpcache-client[28817]: nntpcache.c:281: SIGSEGV!
>
>Any ideas?

It's possible the server went away.  I wrote a patch that might help with 
this, article.c does a write of the "ARTICLE 1740260" blindly and doesn't
notice if the server died until much later.  I've had this cause some
really cool error messages. (how does "fatal: /dev/zero: mmap failed: Resource 
temporarily unavailable" grab ya?)

See if this clears them up...

*** ../../nntpcache-2.3.3b2/src/article.c	Mon Aug 03 10:49:19 1998
--- article.c	Wed Aug 05 14:08:27 1998
***************
*** 617,629 ****
  				else
  					sprintf (args, "body %d", artno);
  			}
! 			Cemitrn (args);
! 			Cflush ();
  		}
  	} else /* not cached */
  	{
! 		Cemitrn (args);
! 		Cflush ();
  	}
  	if (fd<0)		/* cache off or request not in cache */
  	{
--- 623,645 ----
  				else
  					sprintf (args, "body %d", artno);
  			}
! 			if (Cemitrn (args) <= 0 || Cflush () != 0) {
! 				logd (("couldn't send command to host (down?)"));
! 				if (art_stack)
! 					strStackFree (art_stack);
! 				emitrn (NNTP_SERVERTEMPDOWN);
! 				return FALSE;
! 			}
  		}
  	} else /* not cached */
  	{
! 		if (Cemitrn (args) <= 0 || Cflush () != 0) {
! 			logd (("couldn't send command to host (down?)"));
! 			if (art_stack)
! 				strStackFree (art_stack);
! 			emitrn (NNTP_SERVERTEMPDOWN);
! 			return FALSE;
! 		}
  	}
  	if (fd<0)		/* cache off or request not in cache */
  	{

-- 
Aaron Nabil


[Index of Archives]     [Yosemite]     [Yosemite Campsites]     [Bugtraq]     [Linux]     [Trn]

Powered by Linux