From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-x22e.google.com (mail-wi0-x22e.google.com [IPv6:2a00:1450:400c:c05::22e]) by hurricane.the-brannons.com (Postfix) with ESMTPS id 4C8DA78495 for ; Wed, 19 Feb 2014 03:29:26 -0800 (PST) Received: by mail-wi0-f174.google.com with SMTP id f8so4543127wiw.7 for ; Wed, 19 Feb 2014 03:28:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=QI5nMDuZb5Ai+y7IeXsPfhigzdWTWnMbgziFl4dxT2A=; b=Ym4BcayZUtBRcGVF1L2/XllewWdq4pbN450QeXzmIWN/QfR2HRj7lnKbHmAwlq52V4 iVKctYmbpDRSJsnW04zAeB26RQ8FHJIVIxrkJsIZ6jVDHCwBRZ9tEJ4nJ/rlrRHG3GOd JSS5Rbw86DjlFem76Hvyz/qkkTiMTE6t6qPYTHXeN7vytfoyf05LnvJrIKhDB0s4pgJC 5U6e3P+EJaQYczLS1gbPVIj7vqfvYF4F02LVteiC2or2a6cPXPeR9H9ooTzgua52I18C mRXJeiUPXkru4SNmyAdPSTNMb+cnkNvM8F/P1vb8+Wrv42yuTTJ9uBMjjesuz0gIquEj fOBQ== X-Received: by 10.194.118.228 with SMTP id kp4mr390782wjb.94.1392809312704; Wed, 19 Feb 2014 03:28:32 -0800 (PST) Received: from toaster.adamthompson.me.uk (toaster.adamthompson.me.uk. [2001:8b0:1142:9042::2]) by mx.google.com with ESMTPSA id dd3sm53102525wjb.9.2014.02.19.03.28.30 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 19 Feb 2014 03:28:31 -0800 (PST) Date: Wed, 19 Feb 2014 11:28:28 +0000 From: Adam Thompson To: Karl Dahlke Message-ID: <20140219112828.GI28870@toaster.adamthompson.me.uk> References: <20140119042137.eklhad@comcast.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140119042137.eklhad@comcast.net> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Edbrowse-dev@lists.the-brannons.com Subject: Re: [Edbrowse-dev] segfault with small pool X-BeenThere: edbrowse-dev@lists.the-brannons.com X-Mailman-Version: 2.1.17 Precedence: list List-Id: Edbrowse Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Feb 2014 11:29:26 -0000 On Wed, Feb 19, 2014 at 04:21:37AM -0500, Karl Dahlke wrote: > I sometimes run with jspool = 2 just to test, > just to see what happens with a real world memory error. Good idea. [snip] > Set jspool = 2 and type or read in these two commands. > > b http://en.wikipedia.org/wiki/http > b http://en.wikipedia.org/wiki/https > > I get something like this. > > edbrowse ready > . > 180413 > . > 34837 Wow, mine explodes on this one. > . > 135113 > . > could not allocate memory for javascript operations. > out of memory Why haven't we stopped here? Anything from this point on is probably going to go wrong. > could not allocate memory for javascript operations. > out of memory > could not allocate memory for javascript operations. > out of memory > could not allocate memory for javascript operations. > out of memory > could not allocate memory for javascript operations. > out of memory > could not allocate memory for javascript operations. > out of memory > could not allocate memory for javascript operations. > out of memory > could not allocate memory for javascript operations. > out of memory > could not allocate memory for javascript operations. > out of memory > could not allocate memory for javascript operations. > out of memory > could not allocate memory for javascript operations. > out of memory > could not allocate memory for javascript operations. > out of memory > could not allocate memory for javascript operations. > out of memory > could not allocate memory for javascript operations. > out of memory > could not allocate memory for javascript operations. > out of memory > could not allocate memory for javascript operations. > out of memory > Unrecoverable JavaScript error in this session And it does. > *** glibc detected *** /home/eklhad/bin/edbrowse: free(): corrupted unsorted chunks: 0x0a4ca310 *** > ======= Backtrace: ========= Ugh, double free? Not sure, have switched javaSessionFail to use freeJavaContext in case. Thanks for the testing, I'm currently going thrpough jsloc.cpp trying to fix things. Cheers, Adam.