Openging gdl an typing :
print, where(a eq 1)
... generates a segmentation fault.
For the same code, IDL prints '% Variable is undefined: A.'.
thanks you for this important bug report.
Unfortunately, it is more tricky and more fundamental :(
GDL> print, a eq 0
Erreur de segmentation
This bug was introduced along with !NULL. Thanks for reporting.