Subject: Re: out of virtual memory
To: Evgeni Belin <ebelin@genuity.com>
From: Nigel Reed <nigel@nelgin.nu>
List: current-users
Date: 11/02/2001 14:44:32
I deleted the pthreads packages as suggested but I'm still getting
the same segmentation fault.
gmake[3]: Entering directory `/usr/pkgsrc/x11/kdebase2/work/kdebase-2.2.1/doc/kd
esu'
/usr/X11R6/bin/meinproc --check --cache index.cache.bz2 ./index.docbook
Segmentation fault - core dumped
gmake[3]: *** [index.cache.bz2] Error 139
Someone asked about a backtrace, so here it is.
(gdb) bt
#0 0x4912e069 in tcgetattr () from /usr/lib/libc.so.12
#1 0x4912e26f in tcgetattr () from /usr/lib/libc.so.12
#2 0x4912e999 in malloc () from /usr/lib/libc.so.12
#3 0x480a60fd in xmlStrndup () from /usr/pkg/lib/libxml2.so.6
#4 0x480a617b in xmlStrdup () from /usr/pkg/lib/libxml2.so.6
#5 0x480b70e1 in xmlNewNode () from /usr/pkg/lib/libxml2.so.6
#6 0x480b7134 in xmlNewDocNode () from /usr/pkg/lib/libxml2.so.6
#7 0x4809ba45 in startElement () from /usr/pkg/lib/libxml2.so.6
#8 0x480b05eb in xmlParseStartTag () from /usr/pkg/lib/libxml2.so.6
#9 0x480b11fb in xmlParseElement () from /usr/pkg/lib/libxml2.so.6
#10 0x480b105b in xmlParseContent () from /usr/pkg/lib/libxml2.so.6
#11 0x480b13b2 in xmlParseElement () from /usr/pkg/lib/libxml2.so.6
#12 0x480b105b in xmlParseContent () from /usr/pkg/lib/libxml2.so.6
#13 0x480b13b2 in xmlParseElement () from /usr/pkg/lib/libxml2.so.6
#14 0x480b105b in xmlParseContent () from /usr/pkg/lib/libxml2.so.6
#15 0x480b5125 in xmlParseExternalEntityPrivate ()
from /usr/pkg/lib/libxml2.so.6
#16 0x480aef0f in xmlParseReference () from /usr/pkg/lib/libxml2.so.6
#17 0x480b106b in xmlParseContent () from /usr/pkg/lib/libxml2.so.6
#18 0x480b13b2 in xmlParseElement () from /usr/pkg/lib/libxml2.so.6
#19 0x480b2a7c in xmlParseDocument () from /usr/pkg/lib/libxml2.so.6
#20 0x480b5809 in xmlSAXParseFileWithData () from /usr/pkg/lib/libxml2.so.6
#21 0x480b5870 in xmlSAXParseFile () from /usr/pkg/lib/libxml2.so.6
---Type <return> to continue, or q <return> to quit---
#22 0x480b58b8 in xmlParseFile () from /usr/pkg/lib/libxml2.so.6
#23 0x80602e3 in xsltXPathVariableLookup ()
#24 0x8068d7e in xsltDocumentFunction ()
#25 0x480ddcc4 in xmlXPathCompOpEval () from /usr/pkg/lib/libxml2.so.6
#26 0x480de419 in xmlXPathCompOpEval () from /usr/pkg/lib/libxml2.so.6
#27 0x480de6ff in xmlXPathRunEval () from /usr/pkg/lib/libxml2.so.6
#28 0x480de991 in xmlXPathCompiledEval () from /usr/pkg/lib/libxml2.so.6
#29 0x805d4f8 in xsltFreeCompMatchList ()
#30 0x480bc425 in xmlHashScanFull () from /usr/pkg/lib/libxml2.so.6
#31 0x480bc3c6 in xmlHashScan () from /usr/pkg/lib/libxml2.so.6
#32 0x805d723 in xsltFreeCompMatchList ()
#33 0x80665ed in xsltForEach ()
#34 0x806689c in xsltForEach ()
#35 0x8053991 in QArray<char>::detach ()
#36 0x8053864 in QArray<char>::detach ()
#37 0x80506c8 in dladdr ()
#38 0x804e550 in free ()
(gdb)
On Fri, Nov 02, 2001 at 10:17:04AM -0500, Evgeni Belin wrote:
> > Hmm, I am using -current with the new toolchain and lots kde
> > apps core dump. I have rebuilt everything with -O and the
> > same problem occurs. Has anyone else seen this?
>
> Yes. And the Problem is (surprise, surprise) -- threads.
> Clean up everything from the ground up:
>
> # pkg_delete -r ptl
> # pkg_delete -r pth
>
> In my case, I also cleaned up low-level color management and
> rendering, unlimit (I use zsh(1)-ed root), and rebuilt kde2.
> Should be fine thereafter. Except kdeinit, of course, which
> coredumps every time you logoff. In my case, I forced myself
> to play with it for a few days, but came back to fvwm2. You
> just cannot replace that beast...
>
> -Evgeni
>
> PS Oh, all that if you're sitting on i386, of course, --evb
--