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 #128

noao.digiphot.photcal crashes on 64 bit

closed closed olebole opened this issue on 2018-01-31


olebole commented on 2018-01-31

This issue is created on base of a forum post in 2013, taking the (shortened) data from there: x_photcal.e does not work correctly on 64 bit machines. Let’s take the following minimal observation list: File: sobs.dat

# FIELD FILTER OTIME AIRMASS XCENTER YCENTER MAG MERR  
RU149-E B 8:07:10.0 1.201 417.528 1653.830 12.833 0.002  
* V 8:10:18.0 1.204 421.144 1660.505 12.384 0.002  
* R 8:13:11.0 1.207 418.403 1658.680 11.850 0.001  
* I 8:15:47.0 1.209 419.745 1658.474 11.829 0.001  

The following catalog:
File: stds.dat

# CATALOG: stds  
# NCOLS: 9  
# HDRLENGTH: 111  
#  
# ID V error(V) BV error(BV) VR error(VR) VI error(VI)  
# 15 10 10 10 10 10 10 10 10  
RU149-E 13.718 0.0064 0.522 0.0049 0.321 0.0064 0.637 0.0087  

This configuration file:
File: config.dat

catalog  
  
V 2  
error(V) 3  
BV 4  
error(BV) 5  
VR 6  
error(VR) 7  
VI 8  
error(VI) 9  
  
observations  
  
TB 3 # time of observation in filter B  
XB 4 # airmass in filter B  
xB 5 # x coordinate in filter B  
yB 6 # y coordinate in filter B  
mB 7 # instrumental magnitude in filter B  
error(mB ) 8 # magnitude error in filter B  
  
TV 10 # time of observation in filter V  
XV 11 # airmass in filter V  
xV 12 # x coordinate in filter V  
yV 13 # y coordinate in filter V  
mV 14 # instrumental magnitude in filter V  
error(mV) 15 # magnitude error in filter V  
  
mV 14 # instrumental magnitude in filter V  
error(mV) 15 # magnitude error in filter V  
  
TR 17 # time of observation in filter R  
XR 18 # airmass in filter R  
xR 19 # x coordinate in filter R  
yR 20 # y coordinate in filter R  
mR 21 # instrumental magnitude in filter R  
error(mR) 22 # magnitude error in filter R  
  
TI 24 # time of observation in filter I  
XI 25 # airmass in filter I  
xI 26 # x coordinate in filter I  
yI 27 # y coordinate in filter I  
mI 28 # instrumental magnitude in filter I  
error(mI) 29 # magnitude error in filter I  
  
transformation  
  
fit b1=0.0, b2=0.35, b3=0.000  
const b4=0.0  
BFIT : mB = (BV + V) + b1 + b2 * XB + b3 * BV + b4 * BV * XB  
  
fit v1=0.0, v2=0.17, v3=0.000  
const v4=0.0  
VFIT : mV = V + v1 + v2 * XV + v3 * BV + v4 * BV * XV  
  
fit r1=0.0, r2=0.08, r3=0.000  
const r4=0.0  
RFIT : mR = (V - VR) + r1 + r2 * XR + r3 * VR + r4 * VR * XR  
  
fit i1=0.0, i2=0.03, i3=0.000  
const i4=0.0  
IFIT : mI = (V - VI) + i1 + i2 * XI + i3 * VI + i4 * VI * XI  

Running this gives a segmentation violation on 64-bit platforms:

cl> noao  
cl> digiphot  
cl> photcal  
cl> fitparams sobs.dat stds.dat config.dat outpar.txt interactive=no  
  
  
#WED 13:44:48 31-JAN-2018  
  
#UNMATCHED OBJECTS  
  
  
ERROR: segmentation violation  

Here is the backtrace (executable is x_photcal.e):

 [#0](https://iraf-community.github.io/iraf-v216/issues/0)  0x000055c46e72c811 in prevs_ (code=code@entry=0x55c46e9f22e0 <code>,   
    vdata=0x55c46f249fec, pdata=<optimized out>, pdata@entry=0x55c46ee277dc)  
    at preval.x:99  
 [#1](https://iraf-community.github.io/iraf-v216/issues/1)  0x000055c46e72c9bb in preval_ (code=code@entry=0x55c46e9f22e0 <code>,   
    vdata=<optimized out>, pdata=0x55c46ee277d8, pdata@entry=0x55c46ee277dc)  
    at preval.x:25  
 [#2](https://iraf-community.github.io/iraf-v216/issues/2)  0x000055c46e73d8c3 in ftindo_ (sym=sym@entry=0x55c46e9eab20 <sym>,   
    otable=otable@entry=0x55c46e9eab60 <totabe>,   
    wtable=wtable@entry=0x55c46e9eab50 <wtable>) at ftindef.x:162  
 [#3](https://iraf-community.github.io/iraf-v216/issues/3)  0x000055c46e73da2a in ftindf_ (sym=sym@entry=0x55c46e9eab20 <sym>,   
    otable=otable@entry=0x55c46e9eab60 <totabe>,   
    rtable=rtable@entry=0x55c46e9eab58 <rtable>,   
    wtable=wtable@entry=0x55c46e9eab50 <wtable>) at ftindef.x:32  
 [#4](https://iraf-community.github.io/iraf-v216/issues/4)  0x000055c46e7339d6 in fttrns_ (output=0x55c46f219d4e,   
    logfie=0x55c46f21a15e, graphs=<optimized out>,   
    otable=otable@entry=0x55c46e9e2788 <otable>,   
    ntable=ntable@entry=0x55c46e9e27b0 <ntable>,   
    wtflag=wtflag@entry=0x55c46e9e27f8 <wtflag>,   
    addscr=0x55c46e9e27f0 <addscr>, tol=0x55c46e9e27e8 <tol>,   
    itmax=0x55c46e9e27e0 <itmax>, intere=0x55c46e9e27c0 <intere>,   
    high=0x55c46e9e27d8 <high>, low=0x55c46e9e27dc <low>,   
    nitere=0x55c46e9e27d0 <nitere>, grow=0x55c46e9e27c8 <grow>,   
    logfit=0x7ffcbc321c68, logres=0x7ffcbc321c70) at fttrneq.x:145  
 [#5](https://iraf-community.github.io/iraf-v216/issues/5)  0x000055c46e702a96 in tfitps_ () at t_fitparams.x:186  
 [#6](https://iraf-community.github.io/iraf-v216/issues/6)  0x000055c46e6f9e99 in sysruk_ (task=0x55c46e9fbefe <arglit+6>,   
    cmd=0x55c46e9fbf7e, rukarf=0x55c46e9fbef8 <arglit>,   
    rukint=0x55c46e9fdf80 <intere>) at x_photcal.x:158  
 [#7](https://iraf-community.github.io/iraf-v216/issues/7)  0x000055c46e777166 in irafmn_ (acmd=<optimized out>, ainchn=0x7ffcbc321d90,   
    aoutcn=0x7ffcbc321d98, aerrcn=0x7ffcbc321da0, adrivr=0x7ffcbc321da8,   
    adevte=<optimized out>, prtype=0x55c46e9f7180 <prtype>,   
    bkgfie=0x55c46e9f719e <ipc_in+6>, jobcoe=0x7ffcbc321db8,   
    sysruk=0x55c46e6f9a50 <sysruk_>, onenty=0x55c46e777970 <onenty_>)  
    at main.x:394  
 [#8](https://iraf-community.github.io/iraf-v216/issues/8)  0x000055c46e6f9694 in main (argc=2, argv=0x7ffcbc321fe8) at zmain.c:187  

This works fine for on 32 bit platforms (and the executable in the binary linux64 distribution 2.16.1 was silently replaced by the 32-bit version).

Travis CI run with this problem, with this test.


Fixed in #130


Last updated on 2018-02-01