comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: heap_free fatal error
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: heap_free fatal error [message #61845] Fri, 08 August 2008 04:14 Go to next message
Wox is currently offline  Wox
Messages: 184
Registered: August 2006
Senior Member
Thanks guys. I reported the problem to ITTVIS.
Re: heap_free fatal error [message #61855 is a reply to message #61845] Thu, 07 August 2008 09:04 Go to previous messageGo to next message
Jean H. is currently offline  Jean H.
Messages: 472
Registered: July 2006
Senior Member
> Add
> x86 Win32 Windows Microsoft Windows 6.4 Mar 23 2007 32 64
>
> to the list of versions with this bug.
> So far it looks like it's only Windows systems affected...

as well as
IDL> print, !version
{ x86 Win32 Windows Microsoft Windows 6.3 Mar 23 2006 32 64}

Jean
Re: heap_free fatal error [message #61858 is a reply to message #61855] Thu, 07 August 2008 08:11 Go to previous messageGo to next message
Bob[3] is currently offline  Bob[3]
Messages: 60
Registered: December 2006
Member
On Aug 7, 10:30 am, Wox <nom...@hotmail.com> wrote:
>> Did anyone observed heap_free crashing the IDL process and what was
>> the cause in your case?
>
> I managed to extract the critical code:
>
> n=30000l
> p0=ptr_new({i:0l,next:ptr_new()})
> p=p0
> for i=1l,n do begin
>         (*p).next=ptr_new({i:i,next:ptr_new()})
>         p=(*p).next
> endfor
> heap_free,p0 ; FATAL ERROR
>
> Is this a known bug?

Add
x86 Win32 Windows Microsoft Windows 6.4 Mar 23 2007 32 64

to the list of versions with this bug.
So far it looks like it's only Windows systems affected...
Re: heap_free fatal error [message #61859 is a reply to message #61858] Thu, 07 August 2008 08:03 Go to previous messageGo to next message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
Seg faulted on Mac:

IDL> print, !version
{ i386 darwin unix Mac OS X 7.0 Oct 25 2007 32 64}

But runs OK on Linux:

IDL> print, !version
{ x86 linux unix linux 7.0 Oct 25 2007 32 64}

Mike
--
www.michaelgalloy.com
Tech-X Corporation
Software Developer II

Wox wrote:
>> Did anyone observed heap_free crashing the IDL process and what was
>> the cause in your case?
>
> I managed to extract the critical code:
>
> n=30000l
> p0=ptr_new({i:0l,next:ptr_new()})
> p=p0
> for i=1l,n do begin
> (*p).next=ptr_new({i:i,next:ptr_new()})
> p=(*p).next
> endfor
> heap_free,p0 ; FATAL ERROR
>
>
> Is this a known bug?
Re: heap_free fatal error [message #61860 is a reply to message #61859] Thu, 07 August 2008 07:38 Go to previous messageGo to next message
Wox is currently offline  Wox
Messages: 184
Registered: August 2006
Senior Member
On Thu, 07 Aug 2008 16:30:32 +0200, Wox <nomail@hotmail.com> wrote:

>> Did anyone observed heap_free crashing the IDL process and what was
>> the cause in your case?
>
> I managed to extract the critical code:
>
> n=30000l
> p0=ptr_new({i:0l,next:ptr_new()})
> p=p0
> for i=1l,n do begin
> (*p).next=ptr_new({i:i,next:ptr_new()})
> p=(*p).next
> endfor
> heap_free,p0 ; FATAL ERROR
>
>
> Is this a known bug?

I tried with IDL 6.2 on a Linux machine: no Fatal error
{ x86 linux unix linux 6.2 Jun 20 2005 32 64}
Re: heap_free fatal error [message #61861 is a reply to message #61860] Thu, 07 August 2008 07:34 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Wox writes:

> I managed to extract the critical code:
>
> n=30000l
> p0=ptr_new({i:0l,next:ptr_new()})
> p=p0
> for i=1l,n do begin
> (*p).next=ptr_new({i:i,next:ptr_new()})
> p=(*p).next
> endfor
> heap_free,p0 ; FATAL ERROR
>
>
> Is this a known bug?

Now it is. :-)

It sure does ruin my day, IDL 7.0.1 on Windows 32-bit.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: heap_free fatal error [message #61862 is a reply to message #61861] Thu, 07 August 2008 07:30 Go to previous messageGo to next message
Wox is currently offline  Wox
Messages: 184
Registered: August 2006
Senior Member
> Did anyone observed heap_free crashing the IDL process and what was
> the cause in your case?

I managed to extract the critical code:

n=30000l
p0=ptr_new({i:0l,next:ptr_new()})
p=p0
for i=1l,n do begin
(*p).next=ptr_new({i:i,next:ptr_new()})
p=(*p).next
endfor
heap_free,p0 ; FATAL ERROR


Is this a known bug?
Re: heap_free fatal error [message #62137 is a reply to message #61845] Tue, 26 August 2008 15:26 Go to previous message
lambda.knight is currently offline  lambda.knight
Messages: 1
Registered: August 2008
Junior Member
Hey, guys,

This problem is due to a stack overflow in the code that cleans up the
heap. I submitted a fix and it should show up in a future version. A
quick band-aid until then is to increase the stack size for IDL. On
*nix systems, that's usually done with the "ulimit" command. On
Windows, I think you can do it with "editbin.exe". Here's a webpage
that has a little bit more detail on how to increase the stack size:
http://www.cs.nyu.edu/exact/core/doc/stackOverflow.txt

Unfortunately, this work around isn't a complete fix. You can still
run into this problem, but it will take a much larger object to hit
it. On OS X, setting the stack size to the maximum let me run the
OP's code with n=149000l.

Mark Eret
ITT Visual Information Solutions
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Having trouble stopping a loop (or loop de loop de loop)
Next Topic: CONTOUR problem

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:18:03 PDT 2025

Total time taken to generate the page: 0.00686 seconds