NCOMPLEMENT Keyword Causes Seqmentation Fault

Name: JD Smith
E-mail Address: jdsmith@astro.cornell.edu
IDL version: 5.4 and 5.5
Platform and OS: All

Description of Behavior: This is from an article posted on
the IDL newsgroup 16 November 2001 by JD Smith.

Subject: IDL Bug: NCOMPLEMENT keyword to where
From: JD Smith 
Date: Fri, 16 Nov 2001 

I've found an ugly bug with the NCOMPLEMENT keyword to WHERE(), first
introduced in IDL v5.4.

IDL> wh=where(1,NCOMPLEMENT=ncnt)

causes a segfault, in v5.4 and v5.5, under Linux at least.  It only
occurs if NCOMPLEMENT is used, but the corresponding COMPLEMENT is not. 
A temporary workaround is always to specify COMPLEMENT, even if you
don't need it.

Example Code: IDL> wh=where(1,NCOMPLEMENT=ncnt)

Know Workarounds or Fixes: A temporary workaround is always to 
specify a COMPLEMENT keyword, even if you don't need it.


RSI Technical Support Response: Pending.

[Return to Table of Contents]

Last Updated 17 November 2001