delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/07/28/01:33:16

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: Thu, 28 Jul 2005 01:33:02 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Krzysztof Duleba <krzysan AT skrzynka DOT pl>
cc: cygwin AT cygwin DOT com
Subject: Re: perl - segfault on "free unused scalar"
In-Reply-To: <dc9miu$6vi$1@sea.gmane.org>
Message-ID: <Pine.GSO.4.61.0507280131420.27026@slinky.cs.nyu.edu>
References: <dc7n8k$m72$1 AT sea DOT gmane DOT org> <42E76865 DOT 4000301 AT familiehaase DOT de> <dc82t0$r0a$1 AT sea DOT gmane DOT org> <42E7B413 DOT 8040203 AT familiehaase DOT de> <dc8ebq$36m$1 AT sea DOT gmane DOT org> <Pine DOT GSO DOT 4 DOT 61 DOT 0507271350010 DOT 21789 AT slinky DOT cs DOT nyu DOT edu> <dc926n$tko$1 AT sea DOT gmane DOT org> <Pine DOT GSO DOT 4 DOT 61 DOT 0507271847340 DOT 21789 AT slinky DOT cs DOT nyu DOT edu> <dc9miu$6vi$1 AT sea DOT gmane DOT org>
MIME-Version: 1.0

On Thu, 28 Jul 2005, Krzysztof Duleba wrote:

> Igor Pechtchanski wrote:
>
> > > After setting heap_chunk_in_mb to 2048, all those tests passed.
> > > Thanks! But I still don't understand why C isn't bound by
> > > heap_chunk_in_mb and perl is.
> >
> > I think you're confused.  All Cygwin programs, including those written
> > in C, are bound by heap_chunk_in_mb.  Unless you are somehow
> > generating a pure Windows program from your C source (e.g., using "gcc
> > -mno-cygwin")...
>
> I am not. I understand that this is how it should work theoretically,
> but I've _checked_ that on a couple of Cygwin boxes with different
> versions of cygwin1.dll and gcc. All of them didn't really care that
> heap_chunk_in_mb was undefined in the registry. Perl, on the other hand,
> do care.

Actually, you're right.  Perhaps it depends on what kind of malloc the
program uses (i.e., whether it uses the Cygwin builtin malloc, or
something else).
	Igor
-- 
				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!

If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA

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