Article View: news.software.readers
Article #852Re: XRN exits with Caught signal 11, Sun 4, OS 4.1.1
From: Jim Rees
Date: Wed, 06 Nov 1991 19:58
Date: Wed, 06 Nov 1991 19:58
110 lines
4278 bytes
4278 bytes
In article <sherman.689246642@foster>, sherman@unx.sas.com (Chris Sherman) writes:
*************************************************************************
Can anyone tell me why xrn needs so much memory?
*************************************************************************
xrn 6.15 and before had a bug in the xref code. It was allocating an
article array for every group, not just those you subscribe to. Since
fixing this bug, my xrn starts out at 5 Mb and stays there. It used to grow
to about 25 Mb.
There is also another bug, apparently in the Athena text widget, that
sometimes makes space allocated to articles stick around.
I sent fixes for both of these to the xrn folks. I've just examined the
6.17 beta release, and they seem to have been fixed, but I haven't tried
running the new release yet.
Here are patches to xrn 6.15 for both of these bugs. There's also a patch
to make subject searches much faster. I've posted all these patches before,
but here they are again.
Note to xrn maintainers -- you forgot to credit me in the CHANGES file with
the subject search speedup.
% diff -cb internals.c.08.29 internals.c
*** internals.c.08.29 Thu Aug 29 19:46:32 1991
--- internals.c Thu Aug 29 19:48:11 1991
***************
*** 1708,1723 ****
newsgroup = (struct newsgroup *) gptr;
- #ifndef STUPIDMMU /* defer until we have to do this */
- SETARTICLES(newsgroup);
- #endif
-
if (IS_SUBSCRIBED(newsgroup) &&
(number >= newsgroup->first) && (number <= newsgroup->last)) {
- #ifdef STUPIDMMU
SETARTICLES(newsgroup);
- #endif
SET_READ(newsgroup->articles[INDEX(number)]);
--- 1708,1717 ----
% diff -cb buttons.c.08.26 buttons.c
*** buttons.c.08.26 Mon Aug 26 17:04:56 1991
--- buttons.c Wed Sep 18 10:24:18 1991
***************
*** 2344,2350 ****
cancelButton();
}
! if (abortP()) {
failedSearch();
ArtPosition = save;
cancelDestroy();
--- 2344,2350 ----
cancelButton();
}
! if (count >= app_resources.cancelCount && count % 10 == 0 && abortP()) {
failedSearch();
ArtPosition = save;
cancelDestroy();
***************
*** 2824,2830 ****
Arg args[5];
int fildes;
struct stat buf;
! char *olddata, *data;
if (filename != LastArticle) {
LastArticle = filename;
--- 2824,2831 ----
Arg args[5];
int fildes;
struct stat buf;
! char *data;
! static char *olddata;
if (filename != LastArticle) {
LastArticle = filename;
***************
*** 2850,2861 ****
XawTextSetSource(ArticleText, ArtSource, (XawTextPosition) 0);
XawTextSetSelectionArray(ArticleText, allSelectArray);
} else {
- XtVaGetValues(ArtSource,
- XtNstring, &olddata,
- NULL);
- XtFree(olddata);
XtSetValues(ArtSource, args, XtNumber(args));
}
#else
/* destroy the old text file window */
if (ArtSource != 0) {
--- 2851,2860 ----
XawTextSetSource(ArticleText, ArtSource, (XawTextPosition) 0);
XawTextSetSelectionArray(ArticleText, allSelectArray);
} else {
XtSetValues(ArtSource, args, XtNumber(args));
+ XtFree(olddata);
}
+ olddata = data;
#else
/* destroy the old text file window */
if (ArtSource != 0) {
Technical Details
Message-ID:
<55053c3b.15b0a@paris.citi.umich.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmdzi!zeus.ieee.org!europa.asd.contel.com!uunet!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!yale!umich!terminator!paris.citi.umich.edu!reesReferences:
<schwager.688325271@mike.cs.uiuc.edu> <1991Oct30.185507.20043@objy.com> <sherman.689246642@foster>Show Full Headers
Complete Article Headers
Message-ID: <55053c3b.15b0a@paris.citi.umich.edu> Subject: Re: XRN exits with Caught signal 11, Sun 4, OS 4.1.1 Date: Wed, 06 Nov 1991 19:58:59 +0000 From: rees@paris.citi.umich.edu (Jim Rees) References: <schwager.688325271@mike.cs.uiuc.edu> <1991Oct30.185507.20043@objy.com> <sherman.689246642@foster> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmdzi!zeus.ieee.org!europa.asd.contel.com!uunet!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!yale!umich!terminator!paris.citi.umich.edu!rees Newsgroups: news.software.readers Keywords: xrn Sender: usenet@terminator.cc.umich.edu (usenet news) Reply-To: Jim.Rees@umich.edu Organization: University of Michigan IFS Project Lines: 110