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

Home » Public Forums » archive » Hard crash
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Hard crash [message #89895 is a reply to message #89894] Thu, 18 December 2014 08:08 Go to previous messageGo to previous message
chris_torrence@NOSPAM is currently offline  chris_torrence@NOSPAM
Messages: 528
Registered: March 2007
Senior Member
On Thursday, December 18, 2014 8:20:49 AM UTC-7, Helder wrote:
> Ok, I've done it again. After the dictionary() bug here is a new one.
>
> *disclaimer: don't do this at home. Your pc might go in flames and your cat might bite your nose. I take no responsibility for any losses, damages or whatsoever.
>
>
> Create a new file, name it "testObj.pro"
> Put the following code in it:
>
> pro testObj::crash, res
> ;This is bad:
> print, res.test[self.refPos]
> end
>
> function testObj::init
> self.refPos = 0l
> return,1
> end
>
> pro testObj__Define, class
> class = {testObj, refPos:0}
> end
>
> pro testObj
> o = obj_new('testObj')
> o.crash, -1l
> end
>
> Save the file and run it.
> IDL window , in my case, closes. No warnings. Nothing. Bang.
>
> I ran a few tests. The following options in the method crash, will not make it crash:
>
> print, res.test[0]
>
> void = self.refPos
> print, res.test[void]
>
> IDL> !version
> {
> "ARCH": "x86_64",
> "OS": "Win32",
> "OS_FAMILY": "Windows",
> "OS_NAME": "MicrosoftWindows",
> "RELEASE": "8.4",
> "BUILD_DATE": "Sep272014",
> "MEMORY_BITS": 64,
> "FILE_OFFSET_BITS": 64
> }
>
> Any explanations? Also on previous builds (<8.4)?
>
> Cheers,
> Helder

Here's an even simpler reproduce:

IDL Version 8.4, Mac OS X (darwin x86_64 m64)
IDL> foo = {bar:0}
IDL> (-1).test[foo.bar]
Segmentation fault: 11

I'm at home today, but I'll log a bug when I get back to work, and try to fix it for the next service pack.

Thanks for catching it!

-Chris
Exelis
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Exelis Purchased by Harris Corp
Next Topic: Reopen HDF5 file to add more data?

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

Current Time: Wed Oct 08 20:07:36 PDT 2025

Total time taken to generate the page: 0.02974 seconds