🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
4 messages
4 total messages Started by Chris Green Wed, 22 Dec 1999 00:00
'w' causes segmentation fault in slrn
#55751
Author: Chris Green
Date: Wed, 22 Dec 1999 00:00
9 lines
995 bytes
If I hit 'w' when showing a newsgroup article list in slrn (0.9.6.0)
it crashes with a segmentation fault.  I hit 'w' by mistake for 'P'
(ex tin user) but it still shouldn't crash the program.  'w' from the
group list works OK.

-- 
Chris Green (chris@x-1.net)

Re: 'w' causes segmentation fault in slrn
#55728
Author: John E. Davis
Date: Wed, 22 Dec 1999 00:00
27 lines
1649 bytes
On 22 Dec 1999 11:43:45 GMT, Chris Green <cgreen@shell.x-1.net>
wrote:
>If I hit 'w' when showing a newsgroup article list in slrn (0.9.6.0)
>it crashes with a segmentation fault.  I hit 'w' by mistake for 'P'

Yep.  A patch to art.c:toggle_wrap is attached below.  I will probably
release 0.9.6.1 tomorrow before I leave for the holidays.

--- art.c~	Mon Dec 20 03:29:24 1999
+++ art.c	Wed Dec 22 12:07:29 1999
@@ -608,6 +608,9 @@
 {
    Slrn_Article_Type *a = Slrn_Current_Article;
    
+   if (a == NULL)
+     return;
+
    if (a->is_wrapped)
      unwrap_article ();
    else

-- 
John E. Davis                   Center for Space Research/AXAF Science Center
617-258-8119                    One Hampshire St., Building NE80-6019
http://space.mit.edu/~davis     Cambridge, MA  02139-4307

Re: 'w' causes segmentation fault in slrn
#55729
Author: Phil Boutros
Date: Wed, 22 Dec 1999 00:00
26 lines
1771 bytes
On 22 Dec 1999 11:43:45 GMT, Chris Green <cgreen@shell.x-1.net> wrote:
>If I hit 'w' when showing a newsgroup article list in slrn (0.9.6.0)
>it crashes with a segmentation fault.  I hit 'w' by mistake for 'P'
>(ex tin user) but it still shouldn't crash the program.  'w' from the
>group list works OK.

	Yes, I noticed this too with 0.9.6.0. (hit "w" instead of "q").

	However, I also noticed that it *only* does it if you haven't
opened up an article yet.  If you open up an article, and then hide the
article window again (thus bringing you back to the article list in
full-screen mode), if you hit "w" again, it doesn't segfault...

	All in all, a pretty minor bug, as far as I'm concerned, but I
already erased 0.9.5.7, so I can't see if it did it too...

	John?


Phil
-- 
AH#61  Wolf#14  bs#89  bus#1  KoB/CoT#75        philb@total.net
http://www.total.net/~philb                 http://eddiekieger.com 
"Power To The People" - BPP              EKIII will ride with me again.

Re: 'w' causes segmentation fault in slrn
#55836
Author: Phil Boutros
Date: Thu, 23 Dec 1999 00:00
23 lines
1496 bytes
On 22 Dec 1999 17:12:01 GMT, John E. Davis <davis@space.mit.edu> wrote:
>
>Yep.  A patch to art.c:toggle_wrap is attached below. 

	Cool.  That fixed the minor problem.

> I will probably
>release 0.9.6.1 tomorrow before I leave for the holidays.

	Oh well.  I was impatient, and since slrn is the fastest compiling
program I use, I figured that it was worth the few minutes to download the
source again and re-compile!

	Will 0.9.6.1 include other changes?


Phil
-- 
AH#61  Wolf#14  bs#89  bus#1  KoB/CoT#75        philb@total.net
http://www.total.net/~philb                 http://eddiekieger.com 
"Power To The People" - BPP              EKIII will ride with me again.

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