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 #89952 is a reply to message #89902] Thu, 08 January 2015 13:45 Go to previous messageGo to previous message
Matt Haffner is currently offline  Matt Haffner
Messages: 34
Registered: October 2000
Member
(sorry for the delay--holidays...)

Well, I guess it's good it's just me--thought it was a pretty odd one. But I don't see any obvious rouge routine.

IDL> where(strmatch(routine_info(/system), '*test*', /fold_case))
-1

IDL> .run test
% Error opening file. File: test

I run a pretty vanilla IDL other than Astro routines and my library, which has no DLM--only routines and macros written in IDL.

I'll try it on my other machines...

- mh

On Saturday, December 20, 2014 at 4:34:33 PM UTC-6, Chris Torrence wrote:
> On Friday, December 19, 2014 9:52:08 PM UTC-7, Jim P wrote:
>> 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.
>
> I agree with Jim. I think you have something strange going on with your IDL installation or path. I can't get it to crash either, and there's no reason that the two issues should be related.
>
> Cheers,
> Chris
[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 16:07:49 PDT 2025

Total time taken to generate the page: 0.00254 seconds