🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
2 messages
2 total messages Started by Steven M. Schultz Fri, 02 Dec 1994 17:22
'k', 'U', 't' coredumps trn3.6
#13326
Author: Steven M. Schultz
Date: Fri, 02 Dec 1994 17:22
48 lines
2389 bytes
	Ever since installing trn (first 3.5 and last night 3.6) on the BSDI
	1.1 systems as a replacement for 'rn' a couple users here have been 
	experiencing coredumps when Unreading killed subjects.

	The scenario I have been able to reproduce the problem with is:

		rn  # which is a hard link to trn 3.6
		(enter a group)
		=
		read an article
		k   # to kill the subject
		U   # oops, I changed my mind
		(get the "+tasn" prompt)
		t
		B**M

	The "SIGSEGV, restoring .newsrc" message is given.  The stack back
	trace looks like this:


Script started on Fri Dec  2 09:17:39 1994
Core was generated by `rn'.
#0  0x43ac5 in kill (0x00000400, 0x00000000, 0x00000004, 0x00000000)
(gdb) where
#0  0x43ac5 in kill (0x00000400, 0x00000000, 0x00000004, 0x00000000)
#1  0x4304c in abort (0x00000400, 0x00000000, 0x00000004, 0x00000000)
#2  0x701c in finalize (status=-11) at final.c:105
#3  0x7207 in sig_catcher (signo=11) at final.c:213
#4  0xefbfdfde in decb (0x00000000, 0x00122028, 0x00000000, 0x0000fa34)
#5  0x10f88 in art_switch () at ng.c:538
#6  0x1059e in do_newsgroup (start_command=0x0) at ng.c:395
#7  0x2ad88 in main (argc=2, argv=0xefbfde1c) at trn.c:561
(gdb) quit

Script done on Fri Dec  2 09:17:57 1994

	There's no such routine 'decb', so it would appear that there's
	a stack or malloc-arena curdling going on.

	Is 'U' then 't' illegal in "rn" mode?  The older 4.4.x version of
	rn apparently handled unkilling subjects differently ('better' was
	the word used to me)...

	I'd appreciate any hints/tips.  I'd rather not here "don't do that"
	as the answer but if that's the case I don't have much choice do I? ;-)

	Steven Schultz
	sms@wlv.iipo.gtegsc.com
Re: 'k', 'U', 't' coredumps trn3.6
#13598
Author: Wayne Davison
Date: Fri, 09 Dec 1994 01:32
52 lines
2441 bytes
According to Steven M. Schultz <sms@WLV.IIPO.GTEGSC.COM>:
> 		k   # to kill the subject
> 		U   # oops, I changed my mind
> 		(get the "+tasn" prompt)
> 		t
> 		B**M

The "Ut" command erroneously assumes that the group is threaded.  Tell
your rn users to be brave and start running "rn -X -x" or "rn -X +x" and
all will be well.  :-)

Alternately, the following patch should fix the problem (the line number
may well be wrong -- this is based on something newer than 3.6):

Index:ng.c
@@ -540,5 +540,8 @@
 	    return AS_ASK;
 	else if (*buf == 't' && u_help_thread != nullstr) {
-	    unkill_thread(artp->subj->thread);
+	    if (artp->subj->thread)
+		unkill_thread(artp->subj->thread);
+	    else
+		unkill_subject(artp->subj);
 	    if ((artp = first_art(artp->subj)) != NULL)
 		art = article_num(artp);


> There's no such routine 'decb', so it would appear that there's
> a stack or malloc-arena curdling going on.

This is the traditional stack-mangling that happens on many systems when a
signal-handler decides to go ahead an core dump -- the backtrace is all
messed up.  If you want to get a better dump, try running trn with the -D2
option and it should dump right away instead of trying to handle the signal
itself.  Better yet, run trn under a debugger and get the back trace when
the signal gets generated from the debugger without resorting to a core
file.

> 	Is 'U' then 't' illegal in "rn" mode?

Apparently so (until patched).

> The older 4.4.x version of rn apparently handled unkilling subjects
> differently ('better' was the word used to me)...

Better?!  The old, rn-ways still work, so I don't understand this comment.
Rn didn't have any way to do this without typing the subject, like this:

	/subject/m
-- 
Wayne Davison
davison@borland.com
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