Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Tue, 5 Jul 2005 11:13:40 +0200 From: Thomas Baker To: cygwin AT cygwin DOT com Subject: Re: Memory error with PDKSH 5.2.14-3? Message-ID: <20050705091340.GA1652@Octavius> References: <20050605082204 DOT GA1664 AT Octavius> <20050606101735 DOT GA1920 AT Octavius> Mime-Version: 1.0 Content-Type: text/plain; charset=unknown-8bit Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.4.2.1i On Mon, Jun 06, 2005 at 10:26:26AM -0400, Igor Pechtchanski wrote: > On Mon, 6 Jun 2005, Thomas Baker wrote: > > Just wanted to report that I was seeing error messages such as the > > following in Korn shell scripts: > > > > /home/tbaker/u/bin/urlists[50]: internal error: alloc: freeing > > memory outside of block (corrupted?) > > > > By running the scripts in debug mode (set -x), I found that > > the problem seemed to occur when declared functions (i.e., > > declared within the script) were invoked multiple times. > > The functions would work at first, then stop working -- > > as if the functions somehow ate up the available memory. > > > > Since rolling back from 5.2.14-3 to 5.2.14-2, the problem > > seems to have gone away. > > > > I am not a programmer and do not have time to test this > > systematically but thought others on this list might want > > to hear about this. > > Thanks for the report. However: > > I have no hope of reproducing this, do I? If it happens again, I'll log my actions more carefully. > AFAICS, the few changes from 5.2.14-2 to 5.2.14-3 that could have possibly > caused this are the fixes in the autoconf files. I doubt the "struct > option" magic would matter, but it's possible, I guess, though by > eyeballing the code the two versions do look functionally equivalent. > > It would help to have a script that demonstrates the problem. I can't do > anything otherwise, sorry... By going back to previous versions I did try to reproduce the problem, but anyway it's working now.. -- even with 5.2.14-3! Thanks, Tom -- Dr. Thomas Baker baker AT sub DOT uni-goettingen DOT de SUB - Goettingen State +49-551-39-3883 and University Library +49-30-8109-9027 Papendiek 14, 37073 Göttingen -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/