I'm quite new to IDL/GDL but not to programming. Anyway, I'm stuck with a segmentation fault error that seems strange to me: I've a program that is made of 27 identical loops (only the ranges of the indexes change). Each one of them works fine alone, but if I put them togheter (i.e. one after the other), I get a SIGSEGV error "0x000000000067a576 in GDLDelete(BaseGDL*) ()".
Moreover, this happens even if a put a label + goto,label in order to skip the first 26 loops, but if I delete the first 26 loops, the last one works fine.
I use GDL 0.9.4 on Ubuntu 12.04LTS 64bit
The program is the following:
...definition of all the variables needed...
for m=0,mtot-1 do begin
for n=0,ntot-1 do begin
for l=0,ltot-1 do begin
...26 3-nested-loops like the one below...
for m1=-1,1,2 do begin
for n1=-1,1,2 do begin
for l1=-1,1,2 do begin
if (...conditions...) then begin
if string_array(m+m1,n+n1,l+l1) ne 'l' then goto,exit27
endif else goto,exit27
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.