🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
4 messages
4 total messages Started by Colin Rosenthal Wed, 05 Nov 1997 00:00
slrn: curious problem
#36898
Author: Colin Rosenthal
Date: Wed, 05 Nov 1997 00:00
23 lines
1453 bytes
My installation of slrn which was working fine yesterday is broken
today. I realise it's probably a server problem, but in case anyone 
has seen anything similar here are the details.

version no.: slrn 0.9.4.3, Solaris 2.5 + Common Desktop Environment
problem    : Slrn starts as normal. After one or two articles have
             been read it gets part way through reading the next 
             article, then gets (e.g. 11/60 read). There is then a 
             segmentation fault and a core dump and the terminal
             window is left frozen.
other relevant info: Other newsreaders (Netscape and knews) seem 
             unaffected. The problem also affects an old version
             of slrn I still have available. Removing the Scorefile
             does not help.

-- 
Colin Rosenthal
High Altitude Observatory
Boulder, Colorado
rosentha@hao.ucar.edu

Re: slrn: curious problem
#36912
Author: John E. Davis
Date: Thu, 06 Nov 1997 00:00
33 lines
1448 bytes
On 5 Nov 1997 22:28:15 GMT, Colin Rosenthal <rosentha@asp.hao.ucar.edu>
wrote:
>My installation of slrn which was working fine yesterday is broken
>today. I realise it's probably a server problem, but in case anyone 
>has seen anything similar here are the details.

slrn should not crash, even if the server has problems.  As far as I
am aware, there have been no major problems with 0.9.4.3.  Was your
system upgraded in any way recently?  For example, were new libraries
added?  Try recompiling slrn with the -g compiler option and run it
unde the debugger, e.g., in gdb do:

  # gdb slrn
  (gdb) run
    .
    .
    If slrn crashes, control will pass back the debugger
    .
  (gdb) where
  (gdb) list
  (gdb) up 
  (gdb) list

If you do not have gdb, dbx will do.  I think the commands are similar.
Please send me the output of this.

Thanks,
--John
    
  

Re: slrn: curious problem
#36928
Author: John E. Davis
Date: Fri, 07 Nov 1997 00:00
26 lines
1348 bytes
Here is a bug-fix for a potentially serious bug.  It should fix the
core dump that was reported.  The patch should be applied to the
function `display_article_line' in art.c.  Do not use a patch program
to apply the patch, just edit the file manually:

--- art.c~	Fri Nov  7 01:39:28 1997
+++ art.c	Fri Nov  7 12:52:13 1997
@@ -7408,13 +7408,14 @@
      {
 	if ((unsigned char)*lbuf > (unsigned char)' ')
 	  {
-	     lbuf = slrn_strchr (l->buf, ':');
+	     lbuf = slrn_strchr (lbuf, ':');
 	     if (lbuf != NULL)
 	       {
 		  lbuf++;
 		  slrn_set_color (SLRN_HEADER_KEYWORD_COLOR);
 		  smg_write_nchars (l->buf, lbuf - l->buf);
 	       }
+	     else lbuf = l->buf;
 	  }
 	slrn_set_color (HEADER_COLOR);
 	smg_write_string (lbuf);

Re: slrn: curious problem
#37020
Author: Colin Rosenthal
Date: Mon, 10 Nov 1997 00:00
38 lines
1799 bytes
On 7 Nov 1997 17:59:46 GMT, 
John E. Davis <davis@space.mit.edu> wrote:
>Here is a bug-fix for a potentially serious bug.  It should fix the
>core dump that was reported.  The patch should be applied to the
>function `display_article_line' in art.c.  Do not use a patch program
>to apply the patch, just edit the file manually:
>
>--- art.c~	Fri Nov  7 01:39:28 1997
>+++ art.c	Fri Nov  7 12:52:13 1997
>@@ -7408,13 +7408,14 @@
>      {
> 	if ((unsigned char)*lbuf > (unsigned char)' ')
> 	  {
>-	     lbuf = slrn_strchr (l->buf, ':');
>+	     lbuf = slrn_strchr (lbuf, ':');
> 	     if (lbuf != NULL)
> 	       {
> 		  lbuf++;
> 		  slrn_set_color (SLRN_HEADER_KEYWORD_COLOR);
> 		  smg_write_nchars (l->buf, lbuf - l->buf);
> 	       }
>+	     else lbuf = l->buf;
> 	  }
> 	slrn_set_color (HEADER_COLOR);
> 	smg_write_string (lbuf);

Having thanked you privately for sorting this bug out I'll now take the
opportunity to thank you again publicly. Keep up the good work and
I hope one day I live to see slrn version 1.0.0.0 :-)

-- 
Colin Rosenthal
High Altitude Observatory
Boulder, Colorado
rosentha@hao.ucar.edu

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