[GE users] qmon segfault (valgrind output)

V01D phreakuencies at gmail.com
Thu Aug 10 23:17:55 BST 2006


    [ The following text is in the "ISO-8859-1" character set. ]
    [ Your display is set for the "ISO-8859-10" character set.  ]
    [ Some special characters may be displayed incorrectly. ]

I've run valgrind against qmon while I trigger the segfault (I just have 
to run qmon and then it will segfault when I press any button in the 
window). There are some invalid reads at Layout.c:500 but I don't know 
if they actually are responsible of the segfault.

Attached is the output of valgrind -v --leak-check=full `which qmon`


    [ Part 2: "Attached Text" ]

[root at frontend source]# valgrind -v --leak-check=full `which qmon`
==2634== Memcheck, a memory error detector.
==2634== Copyright (C) 2002-2006, and GNU GPL'd, by Julian Seward et al.
==2634== Using LibVEX rev 1606, a library for dynamic binary translation.
==2634== Copyright (C) 2004-2006, and GNU GPL'd, by OpenWorks LLP.
==2634== Using valgrind-3.2.0, a dynamic binary instrumentation framework.
==2634== Copyright (C) 2000-2006, and GNU GPL'd, by Julian Seward et al.
==2634==
--2634-- Command line
--2634--    /opt/gridengine/bin/lx26-x86/qmon
--2634-- Startup, with flags:
--2634--    -v
--2634--    --leak-check=full
--2634-- Contents of /proc/version:
--2634--   Linux version 2.6.17-ARCH (root at Wohnung) (gcc version 4.1.1) #1 SMP PREEMPT Wed Jul 26 08:13:33 CEST 2006
--2634-- Arch and hwcaps: X86, x86-sse1-sse2
--2634-- Valgrind library directory: /usr/lib/valgrind
--2634-- Reading syms from /lib/ld-2.4.so (0x4000000)
--2634-- Reading syms from /opt/gridengine/bin/lx26-x86/qmon (0x8048000)
--2634-- Reading syms from /usr/lib/valgrind/x86-linux/memcheck (0x38000000)
--2634--    object doesn't have a dynamic symbol table
--2634-- Reading suppressions file: /usr/lib/valgrind/default.supp
--2634-- REDIR: 0x4014840 (index) redirected to 0x38027CE3 (vgPlain_x86_linux_REDIR_FOR_index)
--2634-- Reading syms from /usr/lib/valgrind/x86-linux/vgpreload_core.so (0x401D000)
--2634-- Reading syms from /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so (0x401F000)
==2634== WARNING: new redirection conflicts with existing -- ignoring it
--2634--     new: 0x04014840 (index     ) R-> 0x04022070 index
--2634-- REDIR: 0x40149E0 (strlen) redirected to 0x4022120 (strlen)
--2634-- Reading syms from /opt/gridengine/lib/lx26-x86/libXltree.so (0x4024000)
--2634-- Reading syms from /lib/libdl-2.4.so (0x4038000)
--2634-- Reading syms from /usr/lib/libXm.so.2.0.1 (0x403C000)
--2634-- Reading syms from /usr/lib/libXpm.so.4.11.0 (0x4184000)
--2634-- Reading syms from /usr/lib/libXt.so.6.0.0 (0x419B000)
--2634-- Reading syms from /usr/lib/libXext.so.6.4.0 (0x41EA000)
--2634-- Reading syms from /usr/lib/libXmu.so.6.2.0 (0x41F8000)
--2634-- Reading syms from /usr/lib/libX11.so.6.2.0 (0x420D000)
--2634-- Reading syms from /usr/lib/libSM.so.6.0.0 (0x42F9000)
--2634-- Reading syms from /usr/lib/libICE.so.6.3.0 (0x4302000)
--2634-- Reading syms from /usr/lib/libXp.so.6.2.0 (0x431B000)
--2634-- Reading syms from /lib/libm-2.4.so (0x4323000)
--2634-- Reading syms from /lib/libpthread-2.4.so (0x4348000)
--2634-- Reading syms from /lib/libc-2.4.so (0x435B000)
--2634-- Reading syms from /usr/lib/libXau.so.6.0.0 (0x4479000)
--2634-- Reading syms from /usr/lib/libXdmcp.so.6.0.0 (0x447D000)
--2634-- REDIR: 0x43C52C0 (memset) redirected to 0x40223F0 (memset)
--2634-- REDIR: 0x43C5760 (memcpy) redirected to 0x4022BB0 (memcpy)
--2634-- REDIR: 0x43C4450 (rindex) redirected to 0x4021F50 (rindex)
--2634-- REDIR: 0x43C4090 (strlen) redirected to 0x4022100 (strlen)
--2634-- REDIR: 0x43C42A0 (strncmp) redirected to 0x4022160 (strncmp)
--2634-- REDIR: 0x43C3B20 (strcmp) redirected to 0x40221D0 (strcmp)
--2634-- REDIR: 0x43C39B0 (index) redirected to 0x4022040 (index)
--2634-- REDIR: 0x43C4140 (strnlen) redirected to 0x40220D0 (strnlen)
--2634-- REDIR: 0x43C17C0 (realloc) redirected to 0x40213AE (realloc)
--2634-- REDIR: 0x43C13A0 (malloc) redirected to 0x40212FF (malloc)
--2634-- REDIR: 0x43C3B90 (strcpy) redirected to 0x4022700 (strcpy)
--2634-- REDIR: 0x43BF070 (free) redirected to 0x4020F19 (free)
--2634-- REDIR: 0x43C4DC0 (memchr) redirected to 0x40222F0 (memchr)
--2634-- REDIR: 0x43C60D0 (strchrnul) redirected to 0x4022490 (strchrnul)
--2634-- REDIR: 0x43C54B0 (stpcpy) redirected to 0x40229B0 (stpcpy)
--2634-- REDIR: 0x43C0E20 (calloc) redirected to 0x402062C (calloc)
--2634-- Reading syms from /lib/libnss_files-2.4.so (0x4583000)
--2634-- REDIR: 0x43C6000 (rawmemchr) redirected to 0x40224C0 (rawmemchr)
--2634-- REDIR: 0x43C43A0 (strncpy) redirected to 0x40225C0 (strncpy)
--2634-- REDIR: 0x43C5250 (memmove) redirected to 0x4022420 (memmove)
--2634-- REDIR: 0x43C3800 (strcat) redirected to 0x40227E0 (strcat)
==2634== Syscall param write(buf) points to uninitialised byte(s)
==2634==    at 0x4352F6B: (within /lib/libpthread-2.4.so)
==2634==    by 0x4246FEE: _X11TransWrite (in /usr/lib/libX11.so.6.2.0)
==2634==    by 0x424C905: _XFlushInt (in /usr/lib/libX11.so.6.2.0)
==2634==    by 0x424C9DA: _XReply (in /usr/lib/libX11.so.6.2.0)
==2634==    by 0x4243E37: XSync (in /usr/lib/libX11.so.6.2.0)
==2634==    by 0x409EAAF: end_protection (in /usr/lib/libXm.so.2.0.1)
==2634==    by 0x409F35B: write_atom_pairs (in /usr/lib/libXm.so.2.0.1)
==2634==    by 0x40A0307: _XmInitAtomPairs (in /usr/lib/libXm.so.2.0.1)
==2634==    by 0x408CA77: XmInternAtom (in /usr/lib/libXm.so.2.0.1)
==2634==    by 0x412ECFB: VirtKeysInitialize (in /usr/lib/libXm.so.2.0.1)
==2634==    by 0x412F05D: _XmVirtKeysInitialize (in /usr/lib/libXm.so.2.0.1)
==2634==    by 0x409DEB2: initialize (in /usr/lib/libXm.so.2.0.1)
==2634==  Address 0x4494FD6 is 38 bytes inside a block of size 16,384 alloc'd
==2634==    at 0x40206C3: calloc (in /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so)
==2634==    by 0x4237B2D: XOpenDisplay (in /usr/lib/libX11.so.6.2.0)
==2634==    by 0x41B296C: XtOpenDisplay (in /usr/lib/libXt.so.6.0.0)
==2634==    by 0x41B2B7E: _XtAppInit (in /usr/lib/libXt.so.6.0.0)
==2634==    by 0x41BB94F: XtOpenApplication (in /usr/lib/libXt.so.6.0.0)
==2634==    by 0x41BBAB0: XtAppInitialize (in /usr/lib/libXt.so.6.0.0)
==2634==    by 0x8095A20: XmtInitialize (qmon_init.c:435)
==2634==    by 0x8074E15: main (qmon_main.c:277)
--2634-- memcheck GC: 1024 nodes, 1024 survivors (100.0%)
--2634-- memcheck GC: increase table size to 2048
--2634-- memcheck GC: 2048 nodes, 2048 survivors (100.0%)
--2634-- memcheck GC: increase table size to 4096
--2634-- memcheck GC: 4096 nodes, 3470 survivors ( 84.7%)
--2634-- memcheck GC: increase table size to 8192
==2634==
==2634== Invalid read of size 4
==2634==    at 0x424501B: XTextWidth (in /usr/lib/libX11.so.6.2.0)
==2634==    by 0x814EA77: Initialize (Layout.c:500)
==2634==    by 0x41AF677: CallInitialize (in /usr/lib/libXt.so.6.0.0)
==2634==    by 0x41B00EA: xtCreate (in /usr/lib/libXt.so.6.0.0)
==2634==    by 0x41B09AE: _XtCreateWidget (in /usr/lib/libXt.so.6.0.0)
==2634==    by 0x41B0D4F: XtCreateWidget (in /usr/lib/libXt.so.6.0.0)
==2634==    by 0x814D28D: XmtCreateLayout (Layout.c:2171)
==2634==    by 0x815F558: XmtCreateWidgetType (WidgetType.c:238)
==2634==    by 0x8143599: CreateChild (Create.c:182)
==2634==    by 0x8143CA5: CreateChildren (Create.c:454)
==2634==    by 0x81442C1: XmtBuildQueryDialog (Create.c:573)
==2634==    by 0x80C2609: qmonCQPopup (qmon_cq.c:268)
==2634==  Address 0x18 is not stack'd, malloc'd or (recently) free'd
==2634==
==2634== Process terminating with default action of signal 11 (SIGSEGV)
==2634==  Access not within mapped region at address 0x18
==2634==    at 0x424501B: XTextWidth (in /usr/lib/libX11.so.6.2.0)
==2634==    by 0x814EA77: Initialize (Layout.c:500)
==2634==    by 0x41AF677: CallInitialize (in /usr/lib/libXt.so.6.0.0)
==2634==    by 0x41B00EA: xtCreate (in /usr/lib/libXt.so.6.0.0)
==2634==    by 0x41B09AE: _XtCreateWidget (in /usr/lib/libXt.so.6.0.0)
==2634==    by 0x41B0D4F: XtCreateWidget (in /usr/lib/libXt.so.6.0.0)
==2634==    by 0x814D28D: XmtCreateLayout (Layout.c:2171)
==2634==    by 0x815F558: XmtCreateWidgetType (WidgetType.c:238)
==2634==    by 0x8143599: CreateChild (Create.c:182)
==2634==    by 0x8143CA5: CreateChildren (Create.c:454)
==2634==    by 0x81442C1: XmtBuildQueryDialog (Create.c:573)
==2634==    by 0x80C2609: qmonCQPopup (qmon_cq.c:268)
--2634-- Discarding syms at 0x4583000-0x458D000 in /lib/libnss_files-2.4.so due to munmap()
==2634==
==2634== ERROR SUMMARY: 3 errors from 2 contexts (suppressed: 45 from 1)
==2634==
==2634== 1 errors in context 1 of 2:
==2634== Invalid read of size 4
==2634==    at 0x424501B: XTextWidth (in /usr/lib/libX11.so.6.2.0)
==2634==    by 0x814EA77: Initialize (Layout.c:500)
==2634==    by 0x41AF677: CallInitialize (in /usr/lib/libXt.so.6.0.0)
==2634==    by 0x41B00EA: xtCreate (in /usr/lib/libXt.so.6.0.0)
==2634==    by 0x41B09AE: _XtCreateWidget (in /usr/lib/libXt.so.6.0.0)
==2634==    by 0x41B0D4F: XtCreateWidget (in /usr/lib/libXt.so.6.0.0)
==2634==    by 0x814D28D: XmtCreateLayout (Layout.c:2171)
==2634==    by 0x815F558: XmtCreateWidgetType (WidgetType.c:238)
==2634==    by 0x8143599: CreateChild (Create.c:182)
==2634==    by 0x8143CA5: CreateChildren (Create.c:454)
==2634==    by 0x81442C1: XmtBuildQueryDialog (Create.c:573)
==2634==    by 0x80C2609: qmonCQPopup (qmon_cq.c:268)
==2634==  Address 0x18 is not stack'd, malloc'd or (recently) free'd
==2634==
==2634== 2 errors in context 2 of 2:
==2634== Syscall param write(buf) points to uninitialised byte(s)
==2634==    at 0x4352F6B: (within /lib/libpthread-2.4.so)
==2634==    by 0x4246FEE: _X11TransWrite (in /usr/lib/libX11.so.6.2.0)
==2634==    by 0x424C905: _XFlushInt (in /usr/lib/libX11.so.6.2.0)
==2634==    by 0x424C9DA: _XReply (in /usr/lib/libX11.so.6.2.0)
==2634==    by 0x4243E37: XSync (in /usr/lib/libX11.so.6.2.0)
==2634==    by 0x409EAAF: end_protection (in /usr/lib/libXm.so.2.0.1)
==2634==    by 0x409F35B: write_atom_pairs (in /usr/lib/libXm.so.2.0.1)
==2634==    by 0x40A0307: _XmInitAtomPairs (in /usr/lib/libXm.so.2.0.1)
==2634==    by 0x408CA77: XmInternAtom (in /usr/lib/libXm.so.2.0.1)
==2634==    by 0x412ECFB: VirtKeysInitialize (in /usr/lib/libXm.so.2.0.1)
==2634==    by 0x412F05D: _XmVirtKeysInitialize (in /usr/lib/libXm.so.2.0.1)
==2634==    by 0x409DEB2: initialize (in /usr/lib/libXm.so.2.0.1)
==2634==  Address 0x4494FD6 is 38 bytes inside a block of size 16,384 alloc'd
==2634==    at 0x40206C3: calloc (in /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so)
==2634==    by 0x4237B2D: XOpenDisplay (in /usr/lib/libX11.so.6.2.0)
==2634==    by 0x41B296C: XtOpenDisplay (in /usr/lib/libXt.so.6.0.0)
==2634==    by 0x41B2B7E: _XtAppInit (in /usr/lib/libXt.so.6.0.0)
==2634==    by 0x41BB94F: XtOpenApplication (in /usr/lib/libXt.so.6.0.0)
==2634==    by 0x41BBAB0: XtAppInitialize (in /usr/lib/libXt.so.6.0.0)
==2634==    by 0x8095A20: XmtInitialize (qmon_init.c:435)
==2634==    by 0x8074E15: main (qmon_main.c:277)
--2634--
--2634-- supp:   45 Fedora-Core-5-hack3-ld24
==2634==
==2634== IN SUMMARY: 3 errors from 2 contexts (suppressed: 45 from 1)
==2634==
==2634== malloc/free: in use at exit: 750,357 bytes in 9,852 blocks.
==2634== malloc/free: 16,438 allocs, 6,586 frees, 25,524,305 bytes allocated.
==2634==
==2634== searching for pointers to 9,852 not-freed blocks.
==2634== checked 35,325,896 bytes.
==2634==
==2634==
==2634== 28 bytes in 1 blocks are definitely lost in loss record 49 of 143
==2634==    at 0x40206C3: calloc (in /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so)
==2634==    by 0x41A71C6: XtCalloc (in /usr/lib/libXt.so.6.0.0)
==2634==    by 0x408EAC8: _XmTransformSubResources (in /usr/lib/libXm.so.2.0.1)
==2634==    by 0x41403F2: class_initialize (in /usr/lib/libXm.so.2.0.1)
==2634==    by 0x41AFA18: XtInitializeWidgetClass (in /usr/lib/libXt.so.6.0.0)
==2634==    by 0x41AFAF7: XtInitializeWidgetClass (in /usr/lib/libXt.so.6.0.0)
==2634==    by 0x41AFAF7: XtInitializeWidgetClass (in /usr/lib/libXt.so.6.0.0)
==2634==    by 0x41AFDB7: xtWidgetAlloc (in /usr/lib/libXt.so.6.0.0)
==2634==    by 0x41AFF4E: xtCreate (in /usr/lib/libXt.so.6.0.0)
==2634==    by 0x41B0484: _XtAppCreateShell (in /usr/lib/libXt.so.6.0.0)
==2634==    by 0x41B06B6: XtAppCreateShell (in /usr/lib/libXt.so.6.0.0)
==2634==    by 0x41BB9FC: XtOpenApplication (in /usr/lib/libXt.so.6.0.0)
==2634==
==2634==
==2634== 45 (37 direct, 8 indirect) bytes in 2 blocks are definitely lost in loss record 67 of 143
==2634==    at 0x4021384: malloc (in /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so)
==2634==    by 0x41A726B: XtMalloc (in /usr/lib/libXt.so.6.0.0)
==2634==    by 0x412EE29: VirtKeysInitialize (in /usr/lib/libXm.so.2.0.1)
==2634==    by 0x412F05D: _XmVirtKeysInitialize (in /usr/lib/libXm.so.2.0.1)
==2634==    by 0x409DEB2: initialize (in /usr/lib/libXm.so.2.0.1)
==2634==    by 0x41AF677: CallInitialize (in /usr/lib/libXt.so.6.0.0)
==2634==    by 0x41B00EA: xtCreate (in /usr/lib/libXt.so.6.0.0)
==2634==    by 0x41B0484: _XtAppCreateShell (in /usr/lib/libXt.so.6.0.0)
==2634==    by 0x41B06B6: XtAppCreateShell (in /usr/lib/libXt.so.6.0.0)
==2634==    by 0x409E15B: GetXmDisplay (in /usr/lib/libXm.so.2.0.1)
==2634==    by 0x409E2E2: XmGetXmDisplay (in /usr/lib/libXm.so.2.0.1)
==2634==    by 0x41408B1: secondary_object_create (in /usr/lib/libXm.so.2.0.1)
==2634==
==2634==
==2634== 544 bytes in 4 blocks are possibly lost in loss record 110 of 143
==2634==    at 0x40206C3: calloc (in /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so)
==2634==    by 0x40102D8: allocate_dtv (in /lib/ld-2.4.so)
==2634==    by 0x401039B: _dl_allocate_tls (in /lib/ld-2.4.so)
==2634==    by 0x434D9DF: pthread_create@@GLIBC_2.1 (in /lib/libpthread-2.4.so)
==2634==    by 0x822D306: cl_thread_setup (cl_thread.c:440)
==2634==    by 0x822D80F: cl_thread_list_create_thread (cl_thread_list.c:150)
==2634==    by 0x8224D98: cl_com_setup_commlib (cl_commlib.c:572)
==2634==    by 0x81852F4: prepare_enroll (sge_any_request.c:507)
==2634==    by 0x8182BA3: sge_gdi_setup (gdi_setup.c:402)
==2634==    by 0x8095D81: qmonInitSge (qmon_init.c:250)
==2634==    by 0x8074D75: main (qmon_main.c:224)
==2634==
==2634== LEAK SUMMARY:
==2634==    definitely lost: 65 bytes in 3 blocks.
==2634==    indirectly lost: 8 bytes in 1 blocks.
==2634==      possibly lost: 544 bytes in 4 blocks.
==2634==    still reachable: 749,740 bytes in 9,844 blocks.
==2634==         suppressed: 0 bytes in 0 blocks.
==2634== Reachable blocks (those to which a pointer was found) are not shown.
==2634== To see them, rerun with: --show-reachable=yes
--2634--  memcheck: sanity checks: 513 cheap, 21 expensive
--2634--  memcheck: auxmaps: 0 auxmap entries (0k, 0M) in use
--2634--  memcheck: auxmaps: 0 searches, 0 comparisons
--2634--  memcheck: SMs: n_issued      = 144 (2304k, 2M)
--2634--  memcheck: SMs: n_deissued    = 12 (192k, 0M)
--2634--  memcheck: SMs: max_noaccess  = 65535 (1048560k, 1023M)
--2634--  memcheck: SMs: max_undefined = 10 (160k, 0M)
--2634--  memcheck: SMs: max_defined   = 615 (9840k, 9M)
--2634--  memcheck: SMs: max_non_DSM   = 141 (2256k, 2M)
--2634--  memcheck: max sec V bit nodes:    4710 (239k, 0M)
--2634--  memcheck: set_sec_vbits8 calls: 13418 (new: 5336, updates: 8082)
--2634--  memcheck: max shadow mem size:   2799k, 2M
--2634-- translate:            fast SP updates identified: 29,801 ( 89.0%)
--2634-- translate:   generic_known SP updates identified: 2,751 (  8.2%)
--2634-- translate: generic_unknown SP updates identified: 913 (  2.7%)
--2634--     tt/tc: 98,037 tt lookups requiring 129,673 probes
--2634--     tt/tc: 98,037 fast-cache updates, 4 flushes
--2634--  transtab: new        26,790 (569,344 -> 9,234,936; ratio 162:10) [0 scs]
--2634--  transtab: dumped     0 (0 -> ??)
--2634--  transtab: discarded  214 (3,957 -> ??)
--2634-- scheduler: 51,348,419 jumps (bb entries).
--2634-- scheduler: 513/100,989 major/minor sched events.
--2634--    sanity: 514 cheap, 21 expensive checks.
--2634--    exectx: 30,011 lists, 3,129 contexts (avg 0 per list)
--2634--    exectx: 22,958 searches, 20,058 full compares (873 per 1000)
--2634--    exectx: 903,575 cmp2, 121 cmp4, 0 cmpAll
Killed



    [ Part 3: "Attached Text" ]

    [ The following text is in the "iso-8859-1" character set. ]
    [ Your display is set for the "ISO-8859-10" character set.  ]
    [ Some special characters may be displayed incorrectly. ]

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
For additional commands, e-mail: users-help at gridengine.sunsource.net



More information about the gridengine-users mailing list