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

Home » Public Forums » archive » Re: BUG: How to crash IDL using !null
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: BUG: How to crash IDL using !null [message #75230] Mon, 21 February 2011 09:43
chris_torrence@NOSPAM is currently offline  chris_torrence@NOSPAM
Messages: 528
Registered: March 2007
Senior Member
I see the same crashes on both Mac & Windows here at ITTVIS. We'll try
to get a fix into IDL 8.1.

Thanks for catching it!

-Chris
ITTVIS
Re: BUG: How to crash IDL using !null [message #75234 is a reply to message #75230] Mon, 21 February 2011 03:32 Go to previous message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
This is what I get

IDL> print,!version
{ x86_64 linux unix linux 8.0.1 Oct 7 2010 64 64}
IDL> a={b:dindgen(10)}
IDL> help,(a.b)[!null]
<Expression> UNDEFINED = !NULL
% Temporary variables are still checked out - cleaning up...
IDL> help,a.b[!null]
Segmentation fault (core dumped)
Re: BUG: How to crash IDL using !null [message #75236 is a reply to message #75234] Mon, 21 February 2011 02:45 Go to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Am 20.02.2011 06:48, schrieb M. Katz:
> Here's a serious crash I found in IDL 8.0.1 (Mac) {not tested on other
> platforms yet} having to do with !null as an array index in a
> structure field that happens to be an array.
>
> THIS WORKS NORMALLY:
>
> a = fltarr(10)
> w = where(a EQ 99, /null) ;--- here w will be !null
> a[w] = 1. ;--- these two are interchangeable since w is !null
> a[!null] = 1.
>
> THIS CRASHES IDL:
>
> a = {b:fltarr(10)} ;--- create a structure with an array
> w = where(a.b EQ 99, /null) ;--- here w will be !null
> print, w ;--- show us that w is !null


IDL> f = {test:[1,2]}
IDL> print, f.test[!null]

crashes it too, looks like it is not consitantly for all types implementd

Reimar


> a.b[w] = 1 ;--- here it crashes for me.
> a.b[!null] = 1 ;--- this equivalent statement also crashes.
>
> I haven't yet tried this with all forms of lists and hashes, pointers
> etc.
> Anyone have any ideas besides, "Don't do that."
>
> M.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Error in reading large Fortran unformatted files
Next Topic: Efficient comparison of array location in two lists

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

Current Time: Wed Oct 08 15:17:30 PDT 2025

Total time taken to generate the page: 0.00497 seconds