Submit a Story  :  IRAF Links  :  Past Polls  :  Calendar  :  Advanced Search  
     iraf.net
FAQ
 Forum FAQForum FAQ   Forum SearchForum Search   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

FITSUTIL task gives segmentation fault

 
Post new topic   Reply to topic    iraf.net Forum Index -> Applications
View previous topic :: View next topic  
Author Message
drupke



Joined: 23 Aug 2007
Posts: 13
Location: Rhodes College

PostPosted: Wed Feb 02, 2011 11:13 pm    Post subject: FITSUTIL task gives segmentation fault Reply with quote

Hello,

I have installed the new 2.15.1 release, which solved some other issues I was having with the initial 2.15 release. However, it has not solved a "segmentation fault" I keep getting when I try to run FXHEADER on the following image:

http://dl.dropbox.com/u/9601016/mrk231rb3.fits [30 Mb]

This was not a problem with v2.14 of IRAF, and I am at a loss.

I am running IRAF 2.15.1 on Mac OS 10.6, with the external packages installed using the new methods.

Thanks,
Dave Rupke
Back to top
View user's profile Send private message
fitz
Site Admin


Joined: 30 Sep 2005
Posts: 3256
Location: Tucson

PostPosted: Thu Feb 03, 2011 7:20 am    Post subject: Reply with quote

I can reproduce the problem on 32-bit maosx systems, it appears to be a side-effect of cross-compiling on a 64-bit system. I'll post a solution shortly.
Back to top
View user's profile Send private message
fitz
Site Admin


Joined: 30 Sep 2005
Posts: 3256
Location: Tucson

PostPosted: Thu Feb 03, 2011 7:33 pm    Post subject: Reply with quote

Dave,

First, thanks for the report. From what I've been able to tell, some binaries for the 'macosx' architecture were built using the 64-bit compiler tools, meaning that some macros to dereference pointers were wrong in the final compiled code. This probably happened when I set the environment manually rather than by sourcing an env file.

Since there is no reliable way to determine which binaries might have this problem, and since you say it happened with the original v2.15 as well, I rebuilt all of the macosx binaries for the core system and external packages just to be sure.

To fix the external packages, simply go to the $iraf/extern directory and do a "make update" and you'll update all installed packages. If you notice similar problems in core system tasks, download and reapply the patch1.macx.uni.gz file by untarring in the iraf root directory with a command such as:

Code:
cd $iraf ; tar zxf /path/patch1.macx.uni.gz


Again, this ONLY applies to the 'macosx' architecture. If you still hav e problems or notice other issues, please let me know.

Cheers,
-Mike
Back to top
View user's profile Send private message
drupke



Joined: 23 Aug 2007
Posts: 13
Location: Rhodes College

PostPosted: Thu Feb 03, 2011 9:09 pm    Post subject: Reply with quote

Mike, thanks. That seems to have fixed the problem. My machine is in principle capable of 64-bit, but I haven't switched kernels yet, hence the "macosx" architecture.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    iraf.net Forum Index -> Applications All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2009 phpBB Group
 Copyright © 2005-2011 iraf.net
 All trademarks and copyrights on this page are owned by their respective owners.
Powered By Geeklog 
Created this page in 0.22 seconds