delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/06/06/10:39:32

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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: Mon, 6 Jun 2005 10:26:26 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Thomas Baker <thomas DOT baker AT bi DOT fhg DOT de>
cc: cygwin AT cygwin DOT com
Subject: Re: Memory error with PDKSH 5.2.14-3?
In-Reply-To: <20050606101735.GA1920@Octavius>
Message-ID: <Pine.GSO.4.61.0506061013220.15703@slinky.cs.nyu.edu>
References: <20050605082204 DOT GA1664 AT Octavius> <20050606101735 DOT GA1920 AT Octavius>
MIME-Version: 1.0

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?

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...

Igor Pechtchanski, the Cygwin pdksh volunteer maintainer
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019