On Fri, 10 Sep 2004, David Berry wrote:
> Tim,
> You've missed the whole business of "handles" for objects in object.c.
> The "pointers" that are converted by astP2I and astI2P are not in fact
> genuine pointers, they are "ID"s for objects which are guaranteed to fit
> into 4 bytes. These identifiers are generated by the astMakeId function is
> object.c.
Okay. Thanks for the clarification. Pointers aren't pointers...deep juju.
Anyway, I still get the core dump. It seems to happen when I'm using
Native encoding. The file is at
http://www.jach.hawaii.edu/test.sdf
If I convert it to fits using NATIVE and then convert back to NDF,
it core dumps in DSSToStore. (see below)
Running this same command on 32bit works but if I run through with
valgrind it also goes through DSS and warns vociferously about it.
Especially about fitschan.c:6601 in a strncpy.
I think that fixing these warnings will make the core dump go away.
Tim
> > #0 DSSToStore (this=0x754bf0, store=0x76b940, method=0x2a96f1030e
> > "astRead", class=0x2a96f1016d "FitsChan") at string2.h:982
> > #1 0x0000002a96de08bf in FitsToStore (this=0x754bf0, encoding=2,
> > method=0x2a96f1030e "astRead", class=0x2a96f1016d "FitsChan")
> > at fitschan.c:8342
> > #2 0x0000002a96ded75f in Read (this_channel=0x2) at fitschan.c:19155
> > #3 0x0000002a96dc6aeb in astRead_ (this=0x754bf0) at channel.c:4847
> > #4 0x0000002a96dd24e1 in ast_read_ (THIS=0x7fbfffc754,
> > STATUS=0x7fbfffe36c) at fchannel.c:420
> > #5 0x00000000004380c6 in cof_wcsim_ (fc=0x7fbfffcb3c, indf=0x7fbfffcf24,
> > nencod=0x7fbfffd3b4, encods=0x7fbfffda00, status=0x7fbfffe36c,
> > __g77_length_encods=6662835) at cof_wcsim.f:259
> > #6 0x0000000000436c31 in cof_ftwcs_ (funit=0x7fbfffcf9c,
> > indf=0x7fbfffcf24, nencod=0x7fbfffd3b4, encods=0x7fbfffda00,
> > file=0x7fbfffd900,
> > wcsatt=0xffffffff, status=0x7fbfffe36c, __g77_length_encods=255,
> > __g77_length_file=255, __g77_length_wcsatt=255) at cof_ftwcs.f:198
> > #7 0x000000000041efe1 in cof_f2ndf_ (filnam=0x7fbfffd900,
> > ndf=0x7fbfffd3a8, loghdr=0x7fbfffd3a4, fdl=0x7fbfffd41c,
> > fmtcnv=0x7fbfffd3cc,
> > profit=0x7fbfffd3c4, proxti=0x0, contnr=0x7fbfffd3bc,
> > nencod=0x7fbfffd3b4, encods=0x7fbfffda00, wcsatt=0x7fbfffd420,
> > status=0x7fbfffe36c, __g77_length_filnam=255, __g77_length_encods=255,
> > __g77_length_wcsatt=255) at cof_f2ndf.f:1191
> > #8 0x000000000040f067 in fits2ndf_ (status=0x7fbfffe36c) at
> > fits2ndf.f:1411
> > #9 0x000000000040c3aa in convert_mon_ (status=0x7fbfffe36c) at
> > convert_mon.f:78
> > #10 0x000000000040c19b in dtask_applic_ (context=0x754bf0, actcode=0x20,
> > aname=0x0, actptr=0x22, seq=0x7fbfffe10c, value=0x7fbfffe170,
> > schedtime=0x7fbfffe110, request=0x7fbfffe114, status=0x7fbfffe36c,
> > __g77_length_aname=0, __g77_length_value=444) at dtask_applic.f:66
> > #11 0x0000002a979c7b78 in dtask_obeydcl_ (dtask_applic_=0x40c110
> > <dtask_applic_>, name=0x0, value=0x7fbfffe170, status=0x7fbfffe36c,
> > __g77_length_name=0, __g77_length_value=444) at dts_obeydcl.f:106
> > #12 0x0000002a979c6503 in dtask_dcltask_ (devinit=0x7fbfffe170,
> > dtask_applic_=0x40c110 <dtask_applic_>, status=0x7fbfffe36c)
> > at dts_dcltask.f:98
> > #13 0x000000000040c098 in MAIN__ () at dtask_main.f:116
> > #14 0x0000000000524d82 in main ()
> >
> >
> > --
> > Tim Jenness
> > JAC software
> > http://www.jach.hawaii.edu/~timj
> >
>
--
Tim Jenness
JAC software
http://www.jach.hawaii.edu/~timj
|