> Try running valgrind with --track-fds so that it will report open files on
> exit.
The o/p follows. File globally is the redirtrection file to store the
o/p. There's no sign of GLOBAL.sdf in the open files.
I'm not overly worried. Just thought that you HDS pundits might like to
be aware of it. I must have run an HDS3 task.
My only concern is that now we don't have a segv, the error message
could be less cryptic, and suggesting the likely cause enabling the user
to remove or repair GLOBAL.sdf. It would also help to know the name of
the offending object.
Malcolm
==13159== Memcheck, a memory error detector.
==13159== Copyright (C) 2002-2005, and GNU GPL'd, by Julian Seward et al.
==13159== Using LibVEX rev 1575, a library for dynamic binary translation.
==13159== Copyright (C) 2004-2005, and GNU GPL'd, by OpenWorks LLP.
==13159== Using valgrind-3.1.1, a dynamic binary instrumentation framework.
==13159== Copyright (C) 2000-2005, and GNU GPL'd, by Julian Seward et al.
==13159==
--13159-- Command line
--13159-- /export/soft/mjc/classic/bin/kappa/nomagic
--13159-- in=/export/soft/mjc/classic/bin/kappa/m31
--13159-- out=crap
--13159-- repval=0
--13159-- Startup, with flags:
--13159-- --track-fds=yes
--13159-- -v
--13159-- Contents of /proc/version:
--13159-- Linux version 2.6.9-42.EL (buildcentos@build-i386) (gcc version 3.4.6 20060404 (Red Hat 3.4.6-3)) #1 Sat Aug 12 09:17:58 CDT 2006
--13159-- Arch and subarch: X86, x86-sse1
--13159-- Valgrind library directory: /usr/lib/valgrind
--13159-- Reading syms from /lib/ld-2.3.4.so (0x76C000)
--13159-- Reading syms from /export/soft/mjc/classic/bin/kappa/kappa_mon (0x8048000)
--13159-- Reading syms from /usr/lib/valgrind/x86-linux/memcheck (0xB0000000)
--13159-- object doesn't have a dynamic symbol table
--13159-- Reading suppressions file: /usr/lib/valgrind/default.supp
--13159-- REDIR: 0x77DFD0 (index) redirected to 0xB001BC86 (vgPlain_x86_linux_REDIR_FOR_index)
--13159-- Reading syms from /usr/lib/valgrind/x86-linux/vgpreload_core.so (0x4000000)
--13159-- Reading syms from /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so (0x4003000)
--13159-- REDIR: 0x77E170 (strlen) redirected to 0x4005E90 (strlen)
--13159-- Reading syms from /export/soft/mjc/classic/lib/libard_adam.so.0.0.0 (0x4008000)
--13159-- Reading syms from /export/soft/mjc/classic/lib/libkpg_grf_adam.so.0.0.0 (0x4026000)
--13159-- Reading syms from /export/soft/mjc/classic/lib/libkpg_adam.so.0.0.0 (0x4033000)
--13159-- Reading syms from /export/soft/mjc/classic/lib/libkpg_grf.so.0.0.0 (0x405E000)
--13159-- Reading syms from /export/soft/mjc/classic/lib/libkpg.so.0.0.0 (0x409B000)
--13159-- Reading syms from /export/soft/mjc/classic/lib/libira_adam.so.0.0.0 (0x4204000)
--13159-- Reading syms from /export/soft/mjc/classic/lib/libira.so.0.0.0 (0x4207000)
--13159-- Reading syms from /export/soft/mjc/classic/lib/libirq_adam.so.0.0.0 (0x4215000)
--13159-- Reading syms from /export/soft/mjc/classic/lib/libirq.so.0.0.0 (0x4217000)
--13159-- Reading syms from /export/soft/mjc/classic/lib/liblpg.so.0.0.0 (0x4229000)
--13159-- Reading syms from /export/soft/mjc/classic/lib/libctg.so.0.0.0 (0x4231000)
--13159-- Reading syms from /export/soft/mjc/classic/lib/libfts_adam.so.0.0.0 (0x4239000)
--13159-- Reading syms from /export/soft/mjc/classic/lib/libfts.so.0.0.0 (0x4242000)
--13159-- Reading syms from /export/soft/mjc/classic/lib/libaif_adam.so.0.0.0 (0x425E000)
--13159-- Reading syms from /export/soft/mjc/classic/lib/libaif.so.0.0.0 (0x4261000)
--13159-- Reading syms from /export/soft/mjc/classic/lib/libkapgrf.so.0.0.0 (0x4264000)
--13159-- Reading syms from /export/soft/mjc/classic/lib/libcat_adam.so.0.0.0 (0x4268000)
--13159-- Reading syms from /export/soft/mjc/classic/lib/libcat.so.0.0.0 (0x426B000)
--13159-- Reading syms from /export/soft/mjc/classic/lib/libsla.so.7.0.0 (0x49FD000)
--13159-- Reading syms from /export/soft/mjc/classic/lib/libndg_adam.so.0.0.0 (0x4A3C000)
--13159-- Reading syms from /export/soft/mjc/classic/lib/libndg.so.0.0.0 (0x4A4A000)
--13159-- Reading syms from /export/soft/mjc/classic/lib/libndf_adam.so.0.0.0 (0x4A56000)
--13159-- Reading syms from /export/soft/mjc/classic/lib/libndf.so.0.0.0 (0x5A5B000)
--13159-- Reading syms from /export/soft/mjc/classic/lib/libary.so.0.0.0 (0x6A5D000)
--13159-- Reading syms from /export/soft/mjc/classic/lib/libagp_adam.so.0.0.0 (0x6D00000)
--13159-- Reading syms from /export/soft/mjc/classic/lib/libtrn.so.0.0.0 (0x6D1E000)
--13159-- Reading syms from /export/soft/mjc/classic/lib/libprm.so.0.0.0 (0x6D35000)
--13159-- Reading syms from /export/soft/mjc/classic/lib/libprm_a.so.0.0.0 (0x6D5B000)
--13159-- Reading syms from /export/soft/mjc/classic/lib/libmag_adam.so.0.0.0 (0x6D5D000)
--13159-- Reading syms from /export/soft/mjc/classic/lib/libmag.so.0.0.0 (0x6D63000)
--13159-- Reading syms from /export/soft/mjc/classic/lib/libpda.so.0.0.0 (0x6D88000)
--13159-- Reading syms from /export/soft/mjc/classic/lib/libpgppar_adam.so.0.0.0 (0x6DF6000)
--13159-- Reading syms from /export/soft/mjc/classic/lib/libpgplot_star.so.0.0.0 (0x6DF9000)
--13159-- Reading syms from /usr/lib/libpng12.so.0.1.2.7 (0xDCB000)
--13159-- object doesn't have a symbol table
--13159-- Reading syms from /export/soft/mjc/classic/lib/libgwm.so.0.0.0 (0x6EB0000)
--13159-- Reading syms from /usr/X11R6/lib/libSM.so.6.0 (0x9F9000)
--13159-- object doesn't have a symbol table
--13159-- Reading syms from /usr/X11R6/lib/libICE.so.6.3 (0xA04000)
--13159-- object doesn't have a symbol table
--13159-- Reading syms from /usr/X11R6/lib/libX11.so.6.2 (0x8E2000)
--13159-- object doesn't have a symbol table
--13159-- Reading syms from /export/soft/mjc/classic/lib/libatl_adam.so.0.0.0 (0x6EB8000)
--13159-- Reading syms from /export/soft/mjc/classic/lib/libgrp_adam.so.0.0.0 (0x6EC2000)
--13159-- Reading syms from /export/soft/mjc/classic/lib/libast.so.0.0.0 (0x6EE7000)
--13159-- Reading syms from /export/soft/mjc/classic/lib/libast_wcslib.so.0.0.0 (0x7170000)
--13159-- Reading syms from /export/soft/mjc/classic/lib/libast_pal.so.0.0.0 (0x717E000)
--13159-- Reading syms from /export/soft/mjc/classic/lib/libast_grf_2.0.so.0.0.0 (0x718D000)
--13159-- Reading syms from /export/soft/mjc/classic/lib/libast_grf_3.2.so.0.0.0 (0x718F000)
--13159-- Reading syms from /export/soft/mjc/classic/lib/libast_ems.so.0.0.0 (0x7192000)
--13159-- Reading syms from /usr/lib/libg2c.so.0.0.0 (0xB6E000)
--13159-- object doesn't have a symbol table
--13159-- Reading syms from /lib/tls/libm-2.3.4.so (0x8B7000)
--13159-- Reading syms from /export/soft/mjc/classic/lib/libshl_adam.so.0.0.0 (0x7194000)
--13159-- Reading syms from /export/soft/mjc/classic/lib/libshl.so.0.0.0 (0x7196000)
--13159-- Reading syms from /export/soft/mjc/classic/lib/libfio_adam.so.0.0.0 (0x719A000)
--13159-- Reading syms from /export/soft/mjc/classic/lib/libfio.so.0.0.0 (0x719E000)
--13159-- Reading syms from /export/soft/mjc/classic/lib/libone.so.0.0.0 (0x71A5000)
--13159-- Reading syms from /export/soft/mjc/classic/lib/libref.so.0.0.0 (0x71A8000)
--13159-- Reading syms from /export/soft/mjc/classic/lib/libhdspar_adam.so.0.0.0 (0x71AB000)
--13159-- Reading syms from /export/soft/mjc/classic/lib/libpar_adam.so.0.0.0 (0x71AD000)
--13159-- Reading syms from /export/soft/mjc/classic/lib/libdtask_adam.so.0.0.0 (0x71C3000)
--13159-- Reading syms from /export/soft/mjc/classic/lib/libtask_adam.so.0.0.0 (0x71CF000)
--13159-- Reading syms from /export/soft/mjc/classic/lib/liberr_adam.so.0.0.0 (0x71D6000)
--13159-- Reading syms from /export/soft/mjc/classic/lib/libsubpar_adam.so.0.0.0 (0x71DF000)
--13159-- Reading syms from /export/soft/mjc/classic/lib/liblex_adam.so.0.0.0 (0x73CB000)
--13159-- Reading syms from /export/soft/mjc/classic/lib/libams_adam.so.0.0.0 (0x73D4000)
--13159-- Reading syms from /export/soft/mjc/classic/lib/libmsp.so.0.0.0 (0x73D9000)
--13159-- Reading syms from /export/soft/mjc/classic/lib/libsock.so.0.0.0 (0x73DD000)
--13159-- Reading syms from /export/soft/mjc/classic/lib/libatimer.so.0.0.0 (0x73DF000)
--13159-- Reading syms from /export/soft/mjc/classic/lib/libmisc_adam.so.0.0.0 (0x73E1000)
--13159-- Reading syms from /usr/lib/libncurses.so.5.4 (0x73E8000)
--13159-- Reading syms from /export/soft/mjc/classic/lib/libstring_adam.so.0.0.0 (0x7429000)
--13159-- Reading syms from /export/soft/mjc/classic/lib/libhdsf.so.0.0.0 (0x742C000)
--13159-- Reading syms from /export/soft/mjc/classic/lib/libhds.so.0.0.0 (0x7448000)
--13159-- Reading syms from /export/soft/mjc/classic/lib/libchr.so.0.0.0 (0x7475000)
--13159-- Reading syms from /export/soft/mjc/classic/lib/libhlp.so.0.0.0 (0x747F000)
--13159-- Reading syms from /export/soft/mjc/classic/lib/libpsx.so.0.0.0 (0x7487000)
--13159-- Reading syms from /export/soft/mjc/classic/lib/libemsf.so.0.0.0 (0x748B000)
--13159-- Reading syms from /export/soft/mjc/classic/lib/libems.so.0.0.0 (0x748F000)
--13159-- Reading syms from /export/soft/mjc/classic/lib/libcnf.so.0.0.0 (0x749D000)
--13159-- Reading syms from /export/soft/mjc/classic/lib/libstarmem.so.0.0.0 (0x74A2000)
--13159-- Reading syms from /lib/libgcc_s-3.4.6-20060404.so.1 (0xB93000)
--13159-- object doesn't have a symbol table
--13159-- Reading syms from /lib/tls/libc-2.3.4.so (0x78A000)
--13159-- Reading syms from /usr/lib/libz.so.1.2.1.2 (0x9D3000)
--13159-- object doesn't have a symbol table
--13159-- Reading syms from /lib/libdl-2.3.4.so (0x8DC000)
--13159-- REDIR: 0x7F3690 (rindex) redirected to 0x4005B9C (rindex)
--13159-- REDIR: 0x7F44F0 (memset) redirected to 0x4006588 (memset)
--13159-- REDIR: 0x7F4A10 (memcpy) redirected to 0x40061A8 (memcpy)
--13159-- REDIR: 0x76C7A0 (_dl_sysinfo_int80) redirected to 0xB001BC83 (???)
--13159-- REDIR: 0x7F32B0 (strlen) redirected to 0x4005E74 (strlen)
--13159-- REDIR: 0x7F34B0 (strncmp) redirected to 0x40060C4 (strncmp)
--13159-- REDIR: 0x7EE380 (malloc) redirected to 0x4004386 (malloc)
--13159-- REDIR: 0x7F5270 (rawmemchr) redirected to 0x4006618 (rawmemchr)
--13159-- REDIR: 0x7EC2B0 (free) redirected to 0x4004E7D (free)
--13159-- REDIR: 0x7F2DC0 (strcpy) redirected to 0x4005EC8 (strcpy)
--13159-- REDIR: 0x7F2A30 (strcat) redirected to 0x4005CAC (strcat)
--13159-- REDIR: 0x7F2BE0 (index) redirected to 0x4005C4C (index)
--13159-- REDIR: 0x7F35D0 (strncpy) redirected to 0x4005F84 (strncpy)
--13159-- REDIR: 0x7EE9C0 (realloc) redirected to 0x40056E4 (realloc)
--13159-- REDIR: 0x7F4480 (memmove) redirected to 0x40065A8 (memmove)
--13159-- REDIR: 0x7F3400 (strncat) redirected to 0x4005D74 (strncat)
--13159-- REDIR: 0x7EE0A0 (calloc) redirected to 0x4005639 (calloc)
--13159-- REDIR: 0x7F3FF0 (memchr) redirected to 0x4006184 (memchr)
--13159-- REDIR: 0x7F2D50 (strcmp) redirected to 0x4006114 (strcmp)
--13159-- REDIR: 0x7F3360 (strnlen) redirected to 0x4005E50 (strnlen)
==13159== Invalid read of size 1
==13159== at 0x707C971: VSet (object.c:2967)
==13159== by 0x6F73009: VSet (frameset.c:8950)
==13159== by 0x707BABF: astVSet_ (object.c:3951)
==13159== by 0x707BAFC: astSet_ (object.c:1926)
==13159== by 0x707C1CD: astSetL_ (object.c:2413)
==13159== by 0x6F5E847: ast_seti_ (fobject.c:362)
==13159== by 0x4A92884: ndf1_rdwcs_ (ndf1_rdwcs.f:531)
==13159== by 0x4A8CE26: ndf1_prp_ (ndf1_prp.f:463)
==13159== by 0x4AA8689: ndf_scopy_ (ndf_scopy.f:161)
==13159== by 0x4A43143: ndg_ndfpr_ (ndg_ndfpr.f:148)
==13159== by 0x422E688: lpg_prop_ (lpg_prop.f:308)
==13159== by 0x808C5BA: nomagic_ (nomagic.f:377)
==13159== Address 0x74CFF62 is 0 bytes after a block of size 26 alloc'd
==13159== at 0x4004405: malloc (vg_replace_malloc.c:149)
==13159== by 0x7078DD4: astMalloc_ (memory.c:987)
==13159== by 0x707961A: astString_ (memory.c:1678)
==13159== by 0x6F24867: ast_putline_ (fchannel.c:218)
==13159== by 0x4A92498: ndf1_rdast_ (ndf1_rdast.f:221)
==13159== by 0x6F2492B: astSourceWrap_ (fchannel.c:359)
==13159== by 0x6F0967B: GetNextText (channel.c:1017)
==13159== by 0x6F099C4: astGetNextText_ (channel.c:4875)
==13159== by 0x6F09A49: GetNextData (channel.c:1469)
==13159== by 0x6F0A16E: astGetNextData_ (channel.c:4871)
==13159== by 0x6F0A64B: ReadClassData (channel.c:1980)
==13159== by 0x6F0C2B3: astReadClassData_ (channel.c:4887)
0 bad values were replaced in the Data array.
!! Search of free chip stack for a frame match exceeded stack size
! DAT_ERASE: Error erasing an HDS structure component.
! SUBPAR: Failed to find locator for action NOMAGIC
! SUBPAR: Failed to find locator for parameter OUT
! SUBPAR: Failed to update GLOBAL file for parameter OUT
! Application exit status DAT__WEIRD, Unknown error
! in=/export/soft/mjc/classic/bin/kappa/m31 out=crap repval=0
==13159==
==13159== FILE DESCRIPTORS: 4 open at exit.
==13159== Open file descriptor 3: /home/user1/mjc/adam/nomagic.sdf
==13159== at 0x842EB3: __open_nocancel (in /lib/tls/libc-2.3.4.so)
==13159== by 0x7DD0C8: __fopen_internal (in /lib/tls/libc-2.3.4.so)
==13159== by 0x7DF729: fopen64 (in /lib/tls/libc-2.3.4.so)
==13159== by 0x746908C: rec1_open_file (rec1_open_file.c:409)
==13159== by 0x746BABD: rec_attach_file (rec_attach_file.c:193)
==13159== by 0x7464DCC: hdsOpen (hdsopclos.c:72)
==13159== by 0x74399ED: hds_open_ (fortran_interface.c:3215)
==13159== by 0x71E59C6: subpar_actdcl_ (sup_actdcl.f:169)
==13159== by 0x71C58EB: dtask_dcltask_ (dts_dcltask.f:138)
==13159== by 0x80578BC: MAIN__ (dtask_main.f:140)
==13159== by 0x81B0B88: main (in /export/soft/mjc/classic/bin/kappa/kappa_mon)
==13159==
==13159== Open file descriptor 2: /home/rlspc3/mjc/kappa/globally
==13159== <inherited from parent>
==13159==
==13159== Open file descriptor 1: /home/rlspc3/mjc/kappa/globally
==13159== <inherited from parent>
==13159==
==13159== Open file descriptor 0: /dev/pts/4
==13159== <inherited from parent>
==13159==
==13159==
==13159== ERROR SUMMARY: 18 errors from 1 contexts (suppressed: 164 from 1)
==13159==
==13159== 18 errors in context 1 of 1:
==13159== Invalid read of size 1
==13159== at 0x707C971: VSet (object.c:2967)
==13159== by 0x6F73009: VSet (frameset.c:8950)
==13159== by 0x707BABF: astVSet_ (object.c:3951)
==13159== by 0x707BAFC: astSet_ (object.c:1926)
==13159== by 0x707C1CD: astSetL_ (object.c:2413)
==13159== by 0x6F5E847: ast_seti_ (fobject.c:362)
==13159== by 0x4A92884: ndf1_rdwcs_ (ndf1_rdwcs.f:531)
==13159== by 0x4A8CE26: ndf1_prp_ (ndf1_prp.f:463)
==13159== by 0x4AA8689: ndf_scopy_ (ndf_scopy.f:161)
==13159== by 0x4A43143: ndg_ndfpr_ (ndg_ndfpr.f:148)
==13159== by 0x422E688: lpg_prop_ (lpg_prop.f:308)
==13159== by 0x808C5BA: nomagic_ (nomagic.f:377)
==13159== Address 0x74CFF62 is 0 bytes after a block of size 26 alloc'd
==13159== at 0x4004405: malloc (vg_replace_malloc.c:149)
==13159== by 0x7078DD4: astMalloc_ (memory.c:987)
==13159== by 0x707961A: astString_ (memory.c:1678)
==13159== by 0x6F24867: ast_putline_ (fchannel.c:218)
==13159== by 0x4A92498: ndf1_rdast_ (ndf1_rdast.f:221)
==13159== by 0x6F2492B: astSourceWrap_ (fchannel.c:359)
==13159== by 0x6F0967B: GetNextText (channel.c:1017)
==13159== by 0x6F099C4: astGetNextText_ (channel.c:4875)
==13159== by 0x6F09A49: GetNextData (channel.c:1469)
==13159== by 0x6F0A16E: astGetNextData_ (channel.c:4871)
==13159== by 0x6F0A64B: ReadClassData (channel.c:1980)
==13159== by 0x6F0C2B3: astReadClassData_ (channel.c:4887)
--13159--
--13159-- supp: 164 Ubuntu-stripped-ld.so
==13159==
==13159== IN SUMMARY: 18 errors from 1 contexts (suppressed: 164 from 1)
==13159==
==13159== malloc/free: in use at exit: 45,636 bytes in 847 blocks.
==13159== malloc/free: 1,912 allocs, 1,065 frees, 261,275 bytes allocated.
==13159==
==13159== searching for pointers to 847 not-freed blocks.
==13159== checked 47,114,928 bytes.
==13159==
==13159== LEAK SUMMARY:
==13159== definitely lost: 0 bytes in 0 blocks.
==13159== possibly lost: 29,748 bytes in 828 blocks.
==13159== still reachable: 15,888 bytes in 19 blocks.
==13159== suppressed: 0 bytes in 0 blocks.
==13159== Reachable blocks (those to which a pointer was found) are not shown.
==13159== To see them, rerun with: --show-reachable=yes
--13159-- memcheck: sanity checks: 125 cheap, 6 expensive
--13159-- memcheck: auxmaps: 0 auxmap entries (0k, 0M) in use
--13159-- memcheck: auxmaps: 0 searches, 0 comparisons
--13159-- memcheck: secondaries: 190 issued (12160k, 11M)
--13159-- memcheck: secondaries: 765 accessible and distinguished (48960k, 47M)
--13159-- tt/tc: 58,284 tt lookups requiring 74,585 probes
--13159-- tt/tc: 58,284 fast-cache updates, 3 flushes
--13159-- translate: new 22,964 (544,826 -> 9,409,837; ratio 172:10) [0 scs]
--13159-- translate: dumped 0 (0 -> ??)
--13159-- translate: discarded 9 (207 -> ??)
--13159-- scheduler: 6,254,658 jumps (bb entries).
--13159-- scheduler: 125/39,406 major/minor sched events.
--13159-- sanity: 126 cheap, 6 expensive checks.
--13159-- exectx: 30,011 lists, 1,997 contexts (avg 0 per list)
--13159-- exectx: 3,239 searches, 1,308 full compares (403 per 1000)
--13159-- exectx: 0 cmp2, 357 cmp4, 0 cmpAll
|