View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum ↗

iraf-v216 · Code · Issues (50) · Pull requests (81)

iraf.net Issue #59

[linux] Invoking rpp.e hangs

closed closed olebole opened this issue on 2017-05-15


olebole commented on 2017-05-15

When compiing for “linux” (32 bit), the created rpp.e hangs by endlessly looping in unix/boot/spp/rpp/ratlibf/stlu.f. Compilation was done on a 64-bit machine with a complete 32-bit userland installation in a chroot using Debian Stretch.This is the loop in stlu.r:

   hash = mod (hash, ST_HTABSIZE) + 1  
  
   pred = st + hash  
   node = Mem (pred)  
   while (node != LAMBDA) {  
      i = 1  
      j = node + ST_DATA + nodsiz  
      while (symbol (i) == Mem (j)) {  
	 if (symbol (i) == EOS)  
	    return (YES)  
	 i = i + 1  
	 j = j + 1  
	 }  
      pred = node  
      node = Mem (pred + ST_LINK)  
      }  

The hash is set to the same value here as on 64 bit (hash=40), but st is different (32 bit: st=59957, 64 bit: st=59851), and also node is different (32 bit: node=-2, 64 bit: node=59818).


Fixed in #60


Last updated on 2017-05-15