🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
5 messages
5 total messages Started by Andrew Brennan Wed, 04 Dec 1996 00:00
SLRN & VMS (again)
#28086
Author: Andrew Brennan
Date: Wed, 04 Dec 1996 00:00
19 lines
1286 bytes
   Well, I'm a little closer to this problem ... but still not exactly 
   there.  It always appears to have hung while "Writing 'newsrc'..."
   (whatever the newsrc file is for this session).  

   Occasionally, something goes wrong while opening a new newsgroup - 
   I see a message displaying the number of headers read and it will 
   lock up for a bit, then the "Writing 'newsrc'..." message appears
   and it's hung for good.  Usually, I have to STOP/ID the process as
   it ignores ^Y and ^C activity.

   This doesn't appear to happen with the Linux client (or I haven't 
   had it happen yet) and I'm looking for ties with writing the backup
   NEWSRC file ... I'm guessing wildly, though.

   andrew.  (brennan@allegheny.edu)


Re: SLRN & VMS (again)
#28103
Author: Sunil S Patel
Date: Thu, 05 Dec 1996 00:00
32 lines
1890 bytes
I'll third the problem below! Exactly the same. Unfortunately my VMS
knowledge of programming/debugging is nil.

	-Sunil

On 5 Dec 1996 04:59:06 GMT, Matthew Schnierle <schnarlz@voicenet.com> wrote:
>In article <slrn5abrvk.vht.brennan@crashprone.allegheny.edu>, 
>Andrew Brennan <brennan@crashprone.allegheny.edu> wrote:
>>   Well, I'm a little closer to this problem ... but still not exactly 
>>   there.  It always appears to have hung while "Writing 'newsrc'..."
>>   (whatever the newsrc file is for this session).  
>>
>>   Occasionally, something goes wrong while opening a new newsgroup - 
>>   I see a message displaying the number of headers read and it will 
>>   lock up for a bit, then the "Writing 'newsrc'..." message appears
>>   and it's hung for good.  Usually, I have to STOP/ID the process as
>>   it ignores ^Y and ^C activity.
>
>I have experienced the same events on a VAX 7000-730 running OpenVMS V6.1
>(slrn/slang compiled with VAX C).  However, I have been able to ^Y the darn
>thing while opening a group, but not during the hang produced while writing
>the .newsrc.
>

-- 

Sunil S. Patel
sunil@drycas.club.cc.cmu.edu
http://drycas.club.cc.cmu.edu/~sunil

Re: SLRN & VMS (again)
#28291
Author: John E. Davis
Date: Tue, 10 Dec 1996 00:00
60 lines
2088 bytes
What TCP/IP implementation are you using?  NETLIB? MULTINET?

About all I can think of is that slrn_exit_error is getting called
recursively when using VMS (e.g., by the cancel_read function in
clientlib.c.  Hmmm... it appears that the cancel_read function should
not call slrn_exit_error at all; rather, it should call slrn_error and
simply return back to its caller.  So, in clientlib.c, change the
cancel_read function to call slrn_error instead.)

To avoid the possibility or of slrn_exit_error being called
recursively, in slrn.c, replace slrn_exit_error by the following
TWO functions:

static void perform_cleanup (void)
{
   if (Slrn_Groups_Dirty)
     slrn_write_newsrc ();
      
   if (Slrn_Server_Obj != NULL)
     Slrn_Server_Obj->sv_close ();
   
#if SLRN_HAS_GROUPLENS
   slrn_close_grouplens ();
#endif

   lock_file (0);
}

void slrn_exit_error (char *fmt, ...)
{
   va_list ap;
   static int trying_to_exit;

   if (trying_to_exit == 0)
     {
	trying_to_exit = 1;
	slrn_set_display_state (0);
	perform_cleanup ();
     }
   
   if (fmt != NULL)
     {
	fprintf (stderr, "slrn fatal error:\n");

	va_start (ap, fmt);
	vfprintf (stderr, fmt, ap);
	va_end(ap);
     }
   putc ('\n', stderr);
   exit (1);
}


-- 
John E. Davis                   Center for Space Research/AXAF Science Center
617-258-8119                    MIT 37-662c, Cambridge, MA 02139
http://space.mit.edu/~davis

Re: SLRN & VMS (again)
#28307
Author: A. Andrew Brennan
Date: Wed, 11 Dec 1996 00:00
37 lines
2143 bytes
On 10 Dec 1996 20:33:03 GMT, John E. Davis <davis@space.mit.edu> wrote:
>What TCP/IP implementation are you using?  NETLIB? MULTINET?

   MultiNet V4.0 Rev A-X, AlphaServer 2000 5/300, OpenVMS AXP V6.2-1H3

>About all I can think of is that slrn_exit_error is getting called
>recursively when using VMS (e.g., by the cancel_read function in
>clientlib.c.  Hmmm... it appears that the cancel_read function should
>not call slrn_exit_error at all; rather, it should call slrn_error and
>simply return back to its caller.  So, in clientlib.c, change the
>cancel_read function to call slrn_error instead.)

   Replaced these (the patches, etc.) but we still have a variant of
   the problem.  The most recent occurrence was as follows:

      [a] read a local newsgroup,
      [b] post a simple test note to the group, 
      [c] leave the article display,
      [d] attempt to re-enter the group and "Selecting group..."
          appears, but we never actually see the article display.

   At this point, we're hung and I am forced to STOP/ID the process
   from another window.

>To avoid the possibility or of slrn_exit_error being called
>recursively, in slrn.c, replace slrn_exit_error by the following
>TWO functions:

   I'll ask the question that has me puzzled ... if it were calling
   anything recursively, wouldn't there be some process activity or
   some increase in CPU time??  I'm seeing absolutely nothing here.

   andrew.  (brennan@allegheny.edu)


Re: SLRN & VMS (again)
#28333
Author: John E. Davis
Date: Thu, 12 Dec 1996 00:00
48 lines
2547 bytes
On 11 Dec 96 23:52:22 GMT, A. Andrew Brennan <BRENNAN@allegheny.edu>
wrote:
>      [a] read a local newsgroup,
>      [b] post a simple test note to the group, 
>      [c] leave the article display,
>      [d] attempt to re-enter the group and "Selecting group..."
>          appears, but we never actually see the article display.

   Is there a time delay between steps b and d?  That is, do you wait
long enough for the server to timeout or does it occur immediately?

>>To avoid the possibility or of slrn_exit_error being called
>>recursively, in slrn.c, replace slrn_exit_error by the following
>>TWO functions:
>
>   I'll ask the question that has me puzzled ... if it were calling
>   anything recursively, wouldn't there be some process activity or
>   some increase in CPU time??  I'm seeing absolutely nothing here.

   It looks like it might be sitting some sort of wait state while
trying to gather information from the server.  The slrn unix code
allows one to ^G to drop the connection without leaving the
newsreader.  Is there a way of killing the process from another window
to force a traceback?  Other than that, all I can suggest is that you
put it in the debugger to find out where the problem is.

   Another thing: the VMS version uses the TCP/IP code that is in the
clientlib.c file whereas Unix and OS/2 use the code in sltcp.c.  I
would have ported that part to VMS but there does not seem to be a
consistent VMS TCP/IP socket implementation; that's the reason that the
clientlib.c code is such a mess.

   Incidently, did you make this change to cancel_read in clientlib.c:
   
static void cancel_read (int sig_unused)
{
#if 1
   slrn_error ("CANCEL_READ: NNTP read failed.");
#else
   slrn_exit_error("CANCEL_READ: NNTP read failed.");
#endif
}

Thanks,
--John

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads