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 #89900 is a reply to message #89899] Fri, 19 December 2014 20:52 Go to previous messageGo to previous message
Jim  Pendleton is currently offline  Jim Pendleton
Messages: 165
Registered: November 2011
Senior Member
On Friday, December 19, 2014 2:34:17 PM UTC-7, Matt Haffner wrote:
> Chris,
>
> There seems to be something "magic" about a variable name "test" and implied print. Perhaps related:
>
> IDL> !version
> {
> "ARCH": "x86_64",
> "OS": "darwin",
> "OS_FAMILY": "unix",
> "OS_NAME": "MacOSX",
> "RELEASE": "8.4",
> "BUILD_DATE": "Sep272014",
> "MEMORY_BITS": 64,
> "FILE_OFFSET_BITS": 64
> }
> IDL> test = 1
> IDL> test
>
> Crashes IDL.
>
> - mh
>
> On Thursday, December 18, 2014 10:08:24 AM UTC-6, Chris Torrence wrote:
>> 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

Matt,

Is there any chance you have a DLM in your path that includes a routine named "test", one that perhaps needs to be recompiled for IDL 8.4? I can't repeat this behavior on Win7-64 and IDL 8.4.

IDL> where(strcmp(routine_info(/system), 'TEST'))

Jim P.
[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: Sat Oct 11 09:43:17 PDT 2025

Total time taken to generate the page: 1.59924 seconds