There are no known issues with APALL and no recent changes to indicate something was fixed, so we'll need more information in order to be able to reproduce the problem. Could you upload the data files used as well as the parameter setting (e.g. "dpar apall") to the anonftp at ftp://iraf.noao.edu/pub so we can have a look?
I can reproduce the error, but only on 64-bit linux. It appears to be some sort of memory corruption:
Code:
#0 0x00002b188fc0afb5 in *__GI_raise (sig=<value optimized out>)
at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1 0x00002b188fc0cbc3 in *__GI_abort () at abort.c:88
#2 0x00002b188fc4fd10 in malloc_printerr (action=2,
str=0x2b188fd11ae6 "free(): invalid pointer", ptr=0x6587) at malloc.c:5999
#3 0x00000000005403e4 in zmfree_ (buf=0x955568, status=0x955d88)
at zmfree.c:21
#4 0x0000000000516704 in xmfree_ (ptr=0xa2f3a8, dtype=0x8fb078) at mfree.x:126
#5 0x00000000005177d2 in sfree_ (oldsp=0x904808) at salloc.x:113
#6 0x000000000042477a in apmarh_ (im=0x3f000000, dbuf=0x12, nc=0x902fb0,
nl=0xffffffffffffffff, c1=0x903030, l1=0x8de750, spec=0x0, sbuf=0x903070,
svar=0x903090, reject=0x2b188f636f90, profie=0x4d368f4, nx=0x902fe0,
ny=0x902fb8, xs=0x4ceb800, ys=0x8de750, x1=0x4d052e4, x2=0x4d063fc)
at approfile.x:992
#7 0x000000000042193a in approe_ (im=0x902fc8, ap=0x902fc0, dbuf=0x903028,
nc=0x902fb0, nl=0x902fb8, c1=0x903030, l1=0x8de750, sbuf=0x903070,
svar=0x903090, profie=0x4d368f4, nx=0x902fe0, ny=0x902fb8, xs=0x4ceb800,
ys=0x8de750, asi=0x902ff0) at approfile.x:299
#8 0x000000000040f8fc in apextt_ (input=0x4cd855e, output=0x4cd8966,
format=0x4cd9176, profis=0x9bd2fc, aps=0x17, naps=0x9bd2f8)
at apextract.x:576
#9 0x0000000000408acb in apall_ (ltask=0x9bd2fe) at t_apall.x:757
#10 0x00000000004078cb in tapall_ () at t_apall.x:51
#11 0x0000000000407429 in sysruk_ (task=0x94e41e, cmd=0x94bfbe,
rukarf=0x94e408, rukint=0x94e468) at x_apextract.x:143
#12 0x000000000050f4cb in irafmn_ (acmd=0x4cc134e, ainchn=0x7fff321a8f00,
aoutcn=0x7fff321a8f08, aerrcn=0x7fff321a8f10, adrivr=0x7fff321a8f28,
adevte=0x7fff321a8f18, prtype=0x90a920, bkgfie=0x90a71e,
jobcoe=0x7fff321a8f20, sysruk=0x407120 <sysruk_>,
onenty=0x510858 <onenty_>) at main.x:311
#13 0x0000000000456d07 in main (argc=2, argv=0x7fff321a9138) at zmain.c:192
Note that in the ap_marsh() call the value of 'dbuf' changes to 0x12 from the parent ap_profile procedure's value. I'll have to punt to Frank to take a look.
Thanks for looking at this for us - as I mentioned in the first post, it works perfectly under 32-bit linux: it's only under 64-bit linux that it has a problem...
I was able to reproduce this and track the source down. Below is the bug report. So it will be fixed in the next release. If you need something sooner let us know and we can provide a special patch to you.
Regards,
Frank Valdes
Quote:
NUMBER: 583
MODULE: apall,
SYSTEM: V2.15
DATE: Mon Mar 5 08:51:03 MST 2012
FROM: valdes
BUG: The optimal extraction for significantly tilted spectra, the Marsh
algorithm, has bug which manifests only under 64-bit architectures.
The symptom is a crash, usually a memory or segmentation panic.
The only workarounds are 1) go to an 32-bit system or 2) don't
use the optimal extraction option.
Thanks Mike - I've put in the new binary, but there is now another problem
apextract> apall
List of input images: WUma-010.fit
Find apertures for WUma-010? (yes):
Number of apertures to be found automatically: 1
Resize apertures for WUma-010? (yes):
Edit apertures for WUma-010? (yes):
ERROR: segmentation violation
called as: `apall ()'
at which point the graphics window should appear and doesn't and then I get kicked back to the "apextract>" prompt. It doesn't seem to make any difference if I change any apall parameters or if I run from a clean directory.
and install it the usual place renaming it to the usual name (i.e. x_apextract.e). This binary is the one I built on a different linux64 platform and have not had a problem. Please let us know whether it works or not. If not, just to be sure, return the result of
Code:
cl> dir noaobin$x_apextract.e l+
to double check the binary that is actually being run.
Posted: Mon Jun 11, 2012 11:45 am Post subject: Segmentation violation when using sections
Hi
I updated from V2.15 to V2.16 last week. Since then I get the same kind of error as described below for my x64 system. Sometimes the PANIC turns up, but mostly it only gives the segmentation violation. The few times that the PANIC protocol did show and displayed a back-trace, it seemed that it originates in x_images.e.... ....which seems right because sections is a subtask of images->imutil->sections.
Could you please have a look, because I use the sections task in a lot of in-house scripts.
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