Description of problem: The wcstools task "imwcs" returns segmentation fault Version-Release number of selected component (if applicable): wcstools-3.6.7-1.fc6 How reproducible: Always Steps to Reproduce: 1. download the image (http://legolax.fis.ucm.es/~gbc/test.fits) 2. run "imwcs -c sdss -v -w test.fits" 3. Enjoy your segmentation fault Actual results: Segmentation fault Expected results: Image header updated with new wcs solution Additional info: download test.fits from http://legolax.fis.ucm.es/~gbc/test.fits (~1M)
The test FITS file can be downloaded from here. http://t-rex.fis.ucm.es/~spr/test.fits.gz Additionally, I have tested that the file is valid (http://fits.gsfc.nasa.gov/fits_verify.html) and that the problem appears also in wcstools 3.6.8
Created attachment 150469 [details] Proposed patch
This patch seems to fix the problem. Anyway I will comminicate the problem upstream.