This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: perl - segfault on "free unused scalar"


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@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]