From owner-freebsd-questions Wed Jul 21 19:32:27 1999 Delivered-To: freebsd-questions@freebsd.org Received: from smtp3.erols.com (smtp3.erols.com [207.172.3.236]) by hub.freebsd.org (Postfix) with ESMTP id 9444E14C48 for ; Wed, 21 Jul 1999 19:32:24 -0700 (PDT) (envelope-from jobaldwi@vt.edu) Received: from john.baldwin.cx (207-172-143-225.s34.as3.hgt.md.dialup.rcn.com [207.172.143.225]) by smtp3.erols.com (8.8.8/8.8.5) with ESMTP id WAA22166; Wed, 21 Jul 1999 22:29:26 -0400 (EDT) Message-Id: <199907220229.WAA22166@smtp3.erols.com> X-Mailer: XFMail 1.3 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <199907211114.HAA01699@lakes.dignus.com> Date: Wed, 21 Jul 1999 22:29:24 -0400 (EDT) From: John Baldwin To: Thomas David Rivers Subject: Re: Wine breakage... Cc: jobaldwi@erols.com, glewis@ares.maths.adelaide.edu.au, freebsd-questions@FreeBSD.ORG, jobaldwi@smtp3.erols.com Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 21-Jul-99 Thomas David Rivers wrote: >> >> That's 344 Meg, not Kilobytes.. I have asmem running in my toolbar, and >> when I >> start wine up, I just watch my swap progress from 80% free or so down until >> it >> gets to 10% free at which point I kill it. I'm just using XFree 3.3.3.1 >> with >> the SVGA server, if that was broken I would think a lot more people would be >> complaining. >> > > Oops - you're right - (sorry - I guess its too early in the morning; :-) ) > > In situations like this, I've done the following (which takes advantage > of the fact that it takes just a few seconds to fill up all the swap...) > > 1) Run big-monster-swap-consuming program > > 2) Get its PID > > 3) Get it to start consuming swap. > > 4) Kill it in such a way that it dumps core. > > 5) Run gdb on the program and the core image to get a traceback > and see where it is.... (often, there is a loop allocating > memory over-and-over which is easy to find.) > > This quick approach has worked for me in the past... Well, I compiled all of wine with -ggdb (came out to 29MB :) and found out that it was stuck trying to read the registry file I specified in my wine.conf. Apparently, those registries cannot be Win95 registries. Once I took those entries out, it worked like a charm. One potential bug of wine's is that when they are reading in the file, they don't check for eof and thus terminate then and assume it's an invalid file. Instead, it was asking for 344 meg to read in a 207k file! > - Dave Rivers - > > p.s. you're right - why wasn't Wine the one killed? Because X has the largest chunk of memory that is resident, and I guess that's the number used to determine who's the biggest. --- John Baldwin -- http://members.freedomnet.com/~jbaldwin/ PGP Key: http://members.freedomnet.com/~jbaldwin/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message