Welcome to iraf.net Friday, April 19 2024 @ 10:34 PM GMT


 Forum Index > Help Desk > Systems New Topic Post Reply
 Segmentation fault after installation of 2.16.1
   
jhargis
 04/08/2014 09:09PM (Read 4490 times)  
++---
Junior

Status: offline


Registered: 02/19/2007
Posts: 28
Hello - I have downloaded and attempted to install the 64-bit version 2.16.1 version on my iMac. Although the installer appears to run fine, when I try to run "cl" or "iraf", I get the following error:

$ cl
Segmentation fault: 11

and nothing happens. I installed the following binaries:
iraf.macx.x86_64.tar.gz

My machine parameters are:
$ uname -a
Darwin hcastronomy-12.local 11.4.2 Darwin Kernel Version 11.4.2: Thu Aug 23 16:25:48 PDT 2012; rootAngrynu-1699.32.7~1/RELEASE_X86_64 x86_64

Mac OS X Lion 10.7.5 (11G63)

Any help would be excellent! Thanks!

- Jonathan

 
Profile Email
 Quote
jhargis
 04/09/2014 04:18PM  
++---
Junior

Status: offline


Registered: 02/19/2007
Posts: 28
To follow up on this, I also get the following errors when I try to run "make latest" and "make check_update":

PHP Formatted Code

% make latest
Updating IRAF v2.16 to latest release.

Wed Apr  9 12:06:36 EDT 2014

(util/self_update)
Updating utility scripts ...../fget: line 151: 76030 Segmentation fault: 11  $iraf/bin.$arch/x_system.e urlget ${args} \$nargs=2 >> /dev/null 2>&1
tar: Error opening archive: Failed to open '/tmp/util.tgz'
Done
(util/iraf_update -all 2>&1 | egrep -v "unexpected end of file")
Updating IRAF system  ....
$iraf is /Users/jhargis/iraf/
Updating binaries:   macintel
Downloading: patch-src.tar.gz/Users/jhargis/iraf//util/fget: line 151: 76302 Segmentation fault: 11  $iraf/bin.$arch/x_system.e urlget ${args} \$nargs=2 >> /dev/null 2>&1

Error: file ftp://iraf.noao.edu/iraf/v216/REPO/patch-src.tar.gz not found, quitting
 


PHP Formatted Code

% make check_latest
(util/iraf_update -list)

/Users/jhargis/iraf//util/fget: line 151: 76462 Segmentation fault: 11  $iraf/bin.$arch/x_system.e urlget ${args} \$nargs=2 >> /dev/null 2>&1
/Users/jhargis/iraf//util/fget: line 151: 76530 Segmentation fault: 11  $iraf/bin.$arch/x_system.e urlget ${args} \$nargs=2 >> /dev/null 2>&1
cannot get rdate
IRAF is up to date
[code]

Also, here are my environment variables (the ones I think are relevant):

[code]
iraf=/Users/jhargis/iraf/
IRAFARCH=macintel
host=/Users/jhargis/iraf/unix/
hlib=/Users/jhargis/iraf/unix/hlib/
hbin=/Users/jhargis/iraf/unix/bin.macintel/
CC=gcc
F77=/Users/jhargis/iraf/unix/hlib//f77.sh
F2C=/Users/jhargis/iraf/unix/bin.macintel//f2c.e
HSI_CF=-I/Users/jhargis/.iraf/ -O -DMACOSX -DMACINTEL -DMACH64 -w -Wunused -m64 -g -DNOVOS
HSI_XF=-I/Users/jhargis/.iraf/ -Inolibc -/DMACOSX -/DMACINTEL -w -/Wunused -/DMACH64 -/m64
HSI_FF=-I/Users/jhargis/.iraf/ -O -m64 -DMACH64 -DBLD_KERNEL
HSI_LF=-I/Users/jhargis/.iraf/ -m64 -DMACH64
HSI_F77LIBS=
HSI_LFLAGS=
HSI_OSLIBS=
XC_CFLAGS=-I/Users/jhargis/.iraf/
HSI_LIBS=/Users/jhargis/iraf/unix/hlib/libboot.a /Users/jhargis/iraf/unix/hlib/libos.a
 


Note the double forward slash in the F77 and F2C variables.

 
Profile Email
 Quote
fitz
 04/09/2014 05:59PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
The segfault is happening because of an incompatibility between the new binaries and pre-10.8 versions of OSX. A set of 64-bit 'macintel' binaries built on a 10.6 machine is available from

ftp://iraf.noao.edu/pub/fitz/iraf.macx.x86_64-10.6-tar.gz

Simply download these in binary mode and unpack in your /Users/jhargis/iraf directory with the command

% tar zxf /path/iraf.macx.x86_64-10.6-tar.gz

This will replace the binaries you currently have for the core system, NOAO and VO packages and should get things working again.

For external packages you may need to relink the package after installing it if you see the same segfault error, most of the packages should work fine but post back if you have problems.

 
Profile Email
 Quote
jhargis
 04/10/2014 05:45PM  
++---
Junior

Status: offline


Registered: 02/19/2007
Posts: 28
Hi - Thanks so much for the new binaries. I installed these and IRAF will now load. However, I am having problems displaying images using mscdisplay. I did rebuild the mscdb, mscred, stsdas, tables, fitsutils packages after reinstalling IRAF.

When loading an MEF fits file using mscdisplay, the image does not load in ds9 (either version 7.1 or 7.2). No error message is given initially, but when I logout I get the error:

PHP Formatted Code

mscred> logout
Abnormal termination of child process 'mscbin$x_mscdisplay.e'
Fatal logout error.  CL dies.
 


The "display" routine appears to work fine and will display both normal FITS images and particular extensions of the MEF fits files. I have tried this with both MOSAIC fits files and new DECam fits files. The DECam images do give the warning:

PHP Formatted Code

Warning: Cannot open file (DEC14A_20140320_852bb39-r-20140321T053250_sd[tile13])
 


The errors/warnings occur regardless of whether I "set use_new_imt = no". This seems to make no difference. Could this be an issue with xgterm or ximtool not being the proper build for my OS? Can you provide a link to xgterm/ximtool for Lion?

 
Profile Email
 Quote
fitz
 04/10/2014 06:16PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
When you rebuilt the package binaries, did you first do an e.g.

% mkpkg -p mscred macintel

to reset the architecture? If not, the new binaries may have ended up in the mscred$bin.generic directory and so you are still using the original binaries, however if you get a parameter prompt and don't see a segfault then they may be working anyway. If the binaries are indeed in bin.generic you can simply move them to the bin.macintel directory or else delete them and reset the arch before compiling again. Note however that some of STSDAS (and parts of TABLES, I think) can't be compiled due to sources removed before distribution.

DS9 7.2 should not be used since it is known to be broken regarding reading cursor positions from IRAF, but I believe 7.1 worked. Otherwise, do you get any sort of error message (e.g. 'cannot open device') from the display or does it appear to work but no image appears? Since DISPLAY appears to work I think the connection is fine and the problem may be with the data itself, e.g. is there actually an extension having the EXTNAME="tile13" keyword? Do other tasks like MSCSTAT work on these files?

Lastly, if xgterm and ximtool start then there is no need for a different binary.

 
Profile Email
 Quote
jhargis
 04/10/2014 08:34PM  
++---
Junior

Status: offline


Registered: 02/19/2007
Posts: 28
Hi - Thanks for the response. The binaries were in the /extern/mscred/bin.macintel directory. However, I had not issued the mkpkg command. However, issuing that command gives a series of error messages. Just to clarify, here is what I did in the extern/ directory:

1) "make init" to start fresh
2) ./configure
3) "mkpkg -p mscred macintel", which gives the errors:

PHP Formatted Code

envinit: cannot open `/Users/jhargis/iraf/extern/mscredlib/zzsetenv.def'
Warning, mkpkg line 0: cannot open `mscred$lib/mkpkg.inc'

Warning, mkpkg line 1: cannot open `mkpkg'


4) Since the files didn't obviously exist, I issued the command "make mscred" which appeared to install properly.

5) Tried "mkpkg -p mscred macintel" but it gave the same errors.

The mscredlib directory does not exist. At what step is this supposed to be created?

Thanks,
Jonathan

 
Profile Email
 Quote
jhargis
 04/10/2014 08:58PM  
++---
Junior

Status: offline


Registered: 02/19/2007
Posts: 28
Hi - Just to follow-up on the MSCDISPLAY issue, I do not believe this is a problem with the data. I have tried loading raw MOSAIC data but it will not display (with no error message). Also, MSCSTAT will not run on these images either and gives no error message.

Thanks,
Jonathan

 
Profile Email
 Quote
fitz
 04/11/2014 03:03AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040

The "mscredlib" should actually read "mscred/lib", i.e. the expansion of the path mscred$lib is missing the trailing '/'. You can workaround this by setting the 'mscred' environment variable explicitly before compiling:

% setenv mscred /Users/jhargis/iraf/extern/mscred/ # remember trailing '/'
% mkpkg -p mscred macintel
% mkpkg -p mscred

The initial "make mscred" to install the package should define this but I'll double check that the trailing '/' is included.

If this successfully produces a new binary in the right place and you still have problems, please upload a sample image to the anonymous ftp at ftp://iraf.noao.edu/pub.

Regardless of the display issues, if you do an MSCSTAT of the image and then do a 'flpr', do you see the same 'abnormal termination' message?

 
Profile Email
 Quote
jhargis
 04/11/2014 01:09PM  
++---
Junior

Status: offline


Registered: 02/19/2007
Posts: 28
Hi - I have added the environment variable, but the mkpkg routine will still not run. I no longer get the error message for the incorrect path, but something still cannot find the mkpkg routine. Here is the full output of exactly what I am doing:

PHP Formatted Code

% pwd
/Users/jhargis/iraf/extern

% make init

% ./configure
Initializing repository data ....
Creating system makefile ....
Setup Complete.

% make fitsutil mscdb mscred ctio stsdas tables
Setting architecture: 'macintel' ....
Installing package 'fitsutil' ....  [OK]
Setting architecture: 'macintel' ....
Installing package 'mscdb' ....  [OK]
Setting architecture: 'macintel' ....
Adding dependency 'fitsutil' ....
Installing package 'fitsutil' ....  [OK]
Installing package 'mscred' ....  [OK]
Setting architecture: 'macintel' ....
Installing package 'ctio' ....  [OK]
Setting architecture: 'macintel' ....
Adding dependency 'tables' ....
Installing package 'tables' ....  [OK]
Installing package 'stsdas' ....  [OK]
Setting architecture: 'macintel' ....
Installing package 'tables' ....  [OK]

% setenv mscred /Users/jhargis/iraf/extern/mscred/

% setenv |grep mscred
mscred=/Users/jhargis/iraf/extern/mscred/

% mkpkg -p mscred macintel
Warning, mkpkg line 1: cannot open `mkpkg
 



 
Profile Email
 Quote
fitz
 04/11/2014 04:16PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
The "make mscred" command is issued from the iraf$extern directory.

The "mkpkg -p mscred macintel" command is issued from the MSCRED package directory, i.e. iraf$extern/mscred. I think you simply need to 'cd' into the package dir before giving the command.

 
Profile Email
 Quote
jhargis
 04/11/2014 04:45PM  
++---
Junior

Status: offline


Registered: 02/19/2007
Posts: 28
Hi - Ok, thanks for clarifying. This appeared to work. For the STSDAS and TABLES packages, however, it does not appear that all the binaries/libraries were built (if I compare the bin.macintel/ results to the bin.macos/ results). How do I build and install the STSDAS and TABLES packages?

 
Profile Email
 Quote
fitz
 04/11/2014 04:53PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040

The best you can do is "make stsdas" (TABLES will be installed automatically) to install the distributed version of the packages from STScI. Due to licensing issues some of the source is now removed from the package before distribution so building completely from source is no longer allowed. That said, a large number of binaries not affected by the removals will still build. Additionally, it may be that you can still relink the binaries using the libraries distributed with the package, although I haven't tried.

I believe STSDAS/TABLES are still built against an older v2.14 system (and are 32-bit anyway) so this may all be moot, I wouldn't worry about relinking/building these unless/until you have an actual problem. At that point, you might also want to mail help@stsci.edu

 
Profile Email
 Quote
jhargis
 04/11/2014 08:13PM  
++---
Junior

Status: offline


Registered: 02/19/2007
Posts: 28
Hi - Ok, sounds good. Thanks for your invaluable help in getting this up-and-running!

- Jonathan

 
Profile Email
 Quote
   
Content generated in: 0.58 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
Filtered HTML Allowed 
Censored Content 
dog allergies remedies cialis 20 mg chilblain remedies


Privacy Policy
Terms of Use

User Functions

Login