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 

iraf 2.16 fxheader problem

 
Post new topic   Reply to topic    iraf.net Forum Index -> General IRAF
View previous topic :: View next topic  
Author Message
rji
Active IRAF User


Joined: 21 Apr 2007
Posts: 87

PostPosted: Sun Jun 10, 2012 3:19 pm    Post subject: iraf 2.16 fxheader problem Reply with quote

I run the command:
Code:
fxheader *.fz lo+ > z

and everything is going well except one file (which is a correct one in DS9):
Code:
Warning: Cannot open file (q1186.fits.f)

The file "q1186.fits.fz" exists and I can make:
Code:
fitsutil> fxheader q1186.fits.fz lo+

with no problem.
Back to top
View user's profile Send private message
fitz
Site Admin


Joined: 30 Sep 2005
Posts: 3255
Location: Tucson

PostPosted: Sun Jun 10, 2012 7:28 pm    Post subject: Reply with quote

How many images does the template "*.fz" turn out to be? I noticed the warning message prints the image name as "...fits.f" and not "...fits.fz" so I'm wondering whether the template expansion may be truncating the name in list somehow.

One way to test this is to set

Code:

    cl> reset use_new_imt = no
    cl> flpr 0                            # zero, not oh


This will use the older template code and if it then works would help confirm the truncation. OTOH, it could be something like unitialized code in the task, but I'm not able to reproduce the problem myself. If you still have problems, could you tell me what IRAF version and platform you're using? If its v2.16, are you sure you're running the latest update?
Back to top
View user's profile Send private message
rji
Active IRAF User


Joined: 21 Apr 2007
Posts: 87

PostPosted: Tue Jun 12, 2012 8:02 am    Post subject: Reply with quote

As we can see from the pattern fxheader *.fz lo+ > z there must be a bug in the task. There is a file number (1186) in the file name, so the template list is rather big.
Back to top
View user's profile Send private message
rji
Active IRAF User


Joined: 21 Apr 2007
Posts: 87

PostPosted: Wed Jun 13, 2012 2:18 pm    Post subject: Reply with quote

I updated today the iraf 2.16 to:
Code:
NOAO/IRAF PC-IRAF Revision 2.16 EXPORT Thu May 24 15:41:17 MST 2012

and the the situation is the same:
Code:
fitsutil> fxheader *.fz lo+ > zz
Warning: Cannot open file (q1186.fits.f)
fitsutil> reset use_new_imt = no
fitsutil> flpr 0
fitsutil> del zz
fitsutil> fxheader *.fz lo+ > zz
fitsutil>

As we can see, there is no problem when I reset use_new_imt.
Back to top
View user's profile Send private message
fitz
Site Admin


Joined: 30 Sep 2005
Posts: 3255
Location: Tucson

PostPosted: Thu Jun 14, 2012 7:42 pm    Post subject: Reply with quote

I do remember fixing a bug with long-template expansion recently and it appears this was done in the dev system after the last binary release of the external packages. The extpkg distros have just been updated so I'd suggest doing

Code:

    % cd $iraf/extern
    % make fitsutil


to reinstall the FITSUTIL package binaries. A "cd $iraf ; make latest" will also make sure the core IRAF system and remaining packages are updated as well.
Back to top
View user's profile Send private message
rji
Active IRAF User


Joined: 21 Apr 2007
Posts: 87

PostPosted: Fri Jun 15, 2012 7:58 am    Post subject: Reply with quote

I did today:
Code:
cd $iraf
make latest

and after starting it I got:
Code:
fitsutil> fxheader *.fz lo+ > zz
*** glibc detected *** /iraf/iraf/extern/fitsutil/bin.linux/x_fitsutil.e: realloc(): invalid next size: 0x0b855008 ***
======= Backtrace: =========
/lib/i686/cmov/libc.so.6(+0x6b381)[0x400dd381]
/lib/i686/cmov/libc.so.6(+0x70aad)[0x400e2aad]
/lib/i686/cmov/libc.so.6(realloc+0xdd)[0x400e2d8d]
/iraf/iraf/extern/fitsutil/bin.linux/x_fitsutil.e[0x810efe9]
/iraf/iraf/extern/fitsutil/bin.linux/x_fitsutil.e[0x80f0154]
/iraf/iraf/extern/fitsutil/bin.linux/x_fitsutil.e[0x80f13de]
/iraf/iraf/extern/fitsutil/bin.linux/x_fitsutil.e[0x80d62ed]
/iraf/iraf/extern/fitsutil/bin.linux/x_fitsutil.e[0x80595a5]
/iraf/iraf/extern/fitsutil/bin.linux/x_fitsutil.e[0x80587f4]
/iraf/iraf/extern/fitsutil/bin.linux/x_fitsutil.e[0x804f4f2]
/iraf/iraf/extern/fitsutil/bin.linux/x_fitsutil.e[0x804d6b9]
/iraf/iraf/extern/fitsutil/bin.linux/x_fitsutil.e[0x80ed052]
/iraf/iraf/extern/fitsutil/bin.linux/x_fitsutil.e[0x8056eed]
/lib/i686/cmov/libc.so.6(__libc_start_main+0xe6)[0x40088ca6]
/iraf/iraf/extern/fitsutil/bin.linux/x_fitsutil.e[0x804d3a1]
======= Memory map: ========
08048000-082c1000 r-xp 00000000 08:07 408861     /iraf/iraf/extern/fitsutil/bin.linux/x_fitsutil.e
082c1000-082d5000 rwxp 00279000 08:07 408861     /iraf/iraf/extern/fitsutil/bin.linux/x_fitsutil.e
082d5000-0a895000 rwxp 00000000 00:00 0
0b827000-0b86d000 rwxp 00000000 00:00 0          [heap]
40000000-4001b000 r-xp 00000000 08:07 484544     /lib/ld-2.11.3.so
4001b000-4001c000 r-xp 0001b000 08:07 484544     /lib/ld-2.11.3.so
4001c000-4001d000 rwxp 0001c000 08:07 484544     /lib/ld-2.11.3.so
4001d000-4001e000 r-xp 00000000 00:00 0          [vdso]
4001e000-40020000 rwxp 00000000 00:00 0
40032000-40056000 r-xp 00000000 08:07 499135     /lib/i686/cmov/libm-2.11.3.so
40056000-40057000 r-xp 00023000 08:07 499135     /lib/i686/cmov/libm-2.11.3.so
40057000-40058000 rwxp 00024000 08:07 499135     /lib/i686/cmov/libm-2.11.3.so
40058000-4006d000 r-xp 00000000 08:07 499143     /lib/i686/cmov/libpthread-2.11.3.so
4006d000-4006e000 r-xp 00014000 08:07 499143     /lib/i686/cmov/libpthread-2.11.3.so
4006e000-4006f000 rwxp 00015000 08:07 499143     /lib/i686/cmov/libpthread-2.11.3.so
4006f000-40072000 rwxp 00000000 00:00 0
40072000-401b2000 r-xp 00000000 08:07 499153     /lib/i686/cmov/libc-2.11.3.so
401b2000-401b3000 ---p 00140000 08:07 499153     /lib/i686/cmov/libc-2.11.3.so
401b3000-401b5000 r-xp 00140000 08:07 499153     /lib/i686/cmov/libc-2.11.3.so
401b5000-401b6000 rwxp 00142000 08:07 499153     /lib/i686/cmov/libc-2.11.3.so
401b6000-401ba000 rwxp 00000000 00:00 0
401ba000-401d7000 r-xp 00000000 08:07 482387     /lib/libgcc_s.so.1
401d7000-401d8000 rwxp 0001c000 08:07 482387     /lib/libgcc_s.so.1
40200000-40221000 rwxp 00000000 00:00 0
40221000-40300000 ---p 00000000 00:00 0
bfa82000-bfa97000 rwxp 00000000 00:00 0          [stack]

The Ctrl-C brakes it with: PANIC in `/iraf/iraf/extern/fitsutil/bin.linux/x_fitsutil.e': software terminate (interrupt) and then lo gives: Abnormal termination of child process 'fitsutilbin$x_fitsutil.e'
Fatal logout error. CL dies.
.
Anyway when I start IRAF again:
Code:
cl
vocl> fitsutil
fitsutil> fxheader b0001.fits.fz lo+

I get a correct answer and NO IRAF PANIC.
Back to top
View user's profile Send private message
fitz
Site Admin


Joined: 30 Sep 2005
Posts: 3255
Location: Tucson

PostPosted: Thu Jun 21, 2012 7:31 pm    Post subject: Reply with quote

I can confirm there's still a problem in the template code for very long strings and will fix it for the next update. Until then, use the workaround. I'll let you know when the update is available.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    iraf.net Forum Index -> General IRAF 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.10 seconds