[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 115496] New: libpthread is jumping to an address that memcheck
From:       Zachary Deretsky <zach () sierra-da ! com>
Date:       2005-11-01 22:37:49
Message-ID: 20051101233744.115496.zach () sierra-da ! com
[Download RAW message or body]

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
         
http://bugs.kde.org/show_bug.cgi?id=115496         
           Summary: libpthread is jumping to an address that memcheck
                    considers invalid
           Product: valgrind
           Version: unspecified
          Platform: RedHat RPMs
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: crash
          Priority: NOR
         Component: memcheck
        AssignedTo: jseward acm org
        ReportedBy: zach sierra-da com


Version:           vsn 1426 (using KDE KDE 3.4.0)
Installed from:    RedHat RPMs
Compiler:          gcc (GCC) 3.3.3 
OS:                Linux

My original problem is valgrind 3.0.1 running out of memory with message

Requesting size 29
**26117** new/new[] failed and should throw an exception, but Valgrind
  cannot throw exceptions and so is aborting instead.  Sorry. 

This happens on RedHat linux both on 32 bits and 64bit opterons.

I posted the problem to the valgrind-users list and built valgrind svn version 1426.
Valgrind terminates prematurely; I attach the 2 logs for comparison:

1426 LOG, 32bit:

==19253== Memcheck, a memory error detector.
==19253== Copyright (C) 2002-2005, and GNU GPL'd, by Julian Seward et al.
==19253== Using LibVEX rev 1426, a library for dynamic binary translation.
==19253== Copyright (C) 2004-2005, and GNU GPL'd, by OpenWorks LLP.
==19253== Using valgrind-3.1.SVN, a dynamic binary instrumentation framework.
==19253== Copyright (C) 2000-2005, and GNU GPL'd, by Julian Seward et al.
==19253== 
--19253-- Valgrind library directory: /user/zach/ZZ/work/stow/valgrind/lib/valgrind
--19253-- Command line
--19253--    /user/zach/VAL/bin/gmain_exec
--19253--    -so
--19253--    val.tcl
--19253--    -mode
--19253--    b
--19253-- Startup, with flags:
--19253--    --tool=memcheck
--19253--    --leak-check=full
--19253--    --run-libc-freeres=no
--19253--    -v
--19253-- Contents of /proc/version:
--19253--   Linux version 2.6.7-mjb1 (root newyork) (gcc version 3.2.2 20030222 (Red \
                Hat Linux 3.2.2-5)) #4 SMP Mon Dec 13 20:32:24 PST 2004
--19253-- Reading syms from /lib/ld-2.3.2.so (0x4100000)
--19253-- Reading syms from /user/zach/VAL/bin/gmain_exec (0x8048000)
--19253-- Reading syms from /user/zach/ZZ/work/stow/valgrind/lib/valgrind/memcheck \
                (0xB0000000)
--19253--    object doesn't have a dynamic symbol table
--19253-- Reading suppressions file: \
                /user/zach/ZZ/work/stow/valgrind/lib/valgrind/default.supp
--19253-- Reading syms from \
                /user/zach/ZZ/work/stow/valgrind/lib/valgrind/vgpreload_core.so \
                (0x7ECA000)
--19253-- Reading syms from \
                /user/zach/ZZ/work/stow/valgrind/lib/valgrind/vgpreload_memcheck.so \
                (0x7EDE000)
--19253-- REDIR: 0x4111BB0 (index) redirected to 0x7EE1610 (index)
--19253-- REDIR: 0x4111D50 (strlen) redirected to 0x7EE1890 (strlen)
--19253-- Reading syms from \
/project/tools/linux_i686_2.3.2-2005-08-31-17.44.37/stow/qt-x11-commercial-3.3.3/lib/libqt-mt.so.3.3.3 \
                (0xC7AD000)
--19253--    object doesn't have a symbol table
--19253-- Reading syms from /usr/X11R6/lib/libXext.so.6.4 (0x7F7D000)
--19253--    object doesn't have a symbol table
--19253-- Reading syms from /usr/X11R6/lib/libX11.so.6.2 (0xD034000)
--19253--    object doesn't have a symbol table
--19253-- Reading syms from /lib/libdl-2.3.2.so (0x7FC1000)
--19253-- Reading syms from \
/project/tools/linux_i686_2.3.2-2005-08-31-17.44.37/stow/tcl8.4.11/lib/libtcl8.4.so \
                (0xD113000)
--19253-- Reading syms from /usr/lib/libncurses.so.5.3 (0x7FFC000)
--19253--    object doesn't have a symbol table
--19253-- Reading syms from /tools/lib/linux/libreadline.so.4 (0xD1E4000)
--19253-- Reading syms from /lib/tls/libpthread-0.34.so (0xD234000)
--19253-- Reading syms from /project/OpenGL/linux/lib/libGL.so.1 (0xD266000)
--19253--    object doesn't have a symbol table
--19253-- Reading syms from /project/OpenGL/linux/lib/libGLU.so.1 (0xD2FD000)
--19253--    object doesn't have a symbol table
--19253-- Reading syms from \
/project/tools/linux_i686_2.3.2-2005-08-31-17.44.37/stow/gcc-3.3.3/lib/libstdc++.so.5.0.5 \
                (0xD39D000)
--19253-- Reading syms from /lib/tls/libm-2.3.2.so (0xD48C000)
--19253-- Reading syms from /lib/tls/libc-2.3.2.so (0x42000000)
--19253-- Reading syms from \
/project/tools/linux_i686_2.3.2-2005-08-31-17.44.37/stow/gcc-3.3.3/lib/libgcc_s.so.1 \
                (0x803C000)
--19253-- Reading syms from /usr/X11R6/lib/libXmu.so.6.2 (0xD4E4000)
--19253--    object doesn't have a symbol table
--19253-- Reading syms from /usr/X11R6/lib/libXrender.so.1.2.2 (0xD51E000)
--19253--    object doesn't have a symbol table
--19253-- Reading syms from /usr/X11R6/lib/libXrandr.so.2.0 (0xD54A000)
--19253--    object doesn't have a symbol table
--19253-- Reading syms from /usr/X11R6/lib/libXcursor.so.1.0 (0xD560000)
--19253--    object doesn't have a symbol table
--19253-- Reading syms from /usr/X11R6/lib/libXft.so.2.1.1 (0xD57B000)
--19253--    object doesn't have a symbol table
--19253-- Reading syms from /usr/lib/libfreetype.so.6.3.2 (0xD5B1000)
--19253--    object doesn't have a symbol table
--19253-- Reading syms from /usr/lib/libfontconfig.so.1.0 (0xD626000)
--19253--    object doesn't have a symbol table
--19253-- Reading syms from /usr/X11R6/lib/libSM.so.6.0 (0xD66F000)
--19253--    object doesn't have a symbol table
--19253-- Reading syms from /usr/X11R6/lib/libICE.so.6.3 (0xD69C000)
--19253--    object doesn't have a symbol table
--19253-- Reading syms from /usr/X11R6/lib/libXt.so.6.0 (0xD6D7000)
--19253--    object doesn't have a symbol table
--19253-- Reading syms from /usr/lib/libexpat.so.0.4.0 (0xD74D000)
--19253--    object doesn't have a symbol table
==19253== Jump to the invalid address stated on the next line
==19253==    at 0xFFFFD400: ???
==19253==    by 0xD237C0A: (within /lib/tls/libpthread-0.34.so)
==19253==    by 0xD23790A: (within /lib/tls/libpthread-0.34.so)
==19253==    by 0x410CC21: _dl_init (in /lib/ld-2.3.2.so)
==19253==    by 0x4100C5C: (within /lib/ld-2.3.2.so)
==19253==  Address 0xFFFFD400 is not stack'd, malloc'd or (recently) free'd
==19253== 
==19253== Process terminating with default action of signal 11 (SIGSEGV)
==19253==  Bad permissions for mapped region at address 0xFFFFD400
==19253==    at 0xFFFFD400: ???
==19253==    by 0xD237C0A: (within /lib/tls/libpthread-0.34.so)
==19253==    by 0xD23790A: (within /lib/tls/libpthread-0.34.so)
==19253==    by 0x410CC21: _dl_init (in /lib/ld-2.3.2.so)
==19253==    by 0x4100C5C: (within /lib/ld-2.3.2.so)
==19253== 
==19253== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 59 from 1)
==19253== 
==19253== 1 errors in context 1 of 1:
==19253== Jump to the invalid address stated on the next line
==19253==    at 0xFFFFD400: ???
==19253==    by 0xD237C0A: (within /lib/tls/libpthread-0.34.so)
==19253==    by 0xD23790A: (within /lib/tls/libpthread-0.34.so)
==19253==    by 0x410CC21: _dl_init (in /lib/ld-2.3.2.so)
==19253==    by 0x4100C5C: (within /lib/ld-2.3.2.so)
==19253==  Address 0xFFFFD400 is not stack'd, malloc'd or (recently) free'd
--19253-- 
--19253-- supp:   59 Ugly strchr error in /lib/ld-2.3.2.so
==19253== 
==19253== IN SUMMARY: 1 errors from 1 contexts (suppressed: 59 from 1)
==19253== 
==19253== malloc/free: in use at exit: 0 bytes in 0 blocks.
==19253== malloc/free: 0 allocs, 0 frees, 0 bytes allocated.
==19253== 
==19253== No malloc'd blocks -- no leaks are possible.
--19253--  memcheck: sanity checks: 56 cheap, 3 expensive
--19253--  memcheck: auxmaps: 0 auxmap entries (0k, 0M) in use
--19253--  memcheck: auxmaps: 0 searches, 0 comparisons
--19253--  memcheck: secondaries: 69 issued (4416k, 4M)
--19253--  memcheck: secondaries: 909 accessible and distinguished (58176k, 56M)
--19253--     tt/tc: 2,905 tt lookups requiring 2,919 probes
--19253--     tt/tc: 2,904 fast-cache updates, 5 flushes
--19253-- translate: new        1,250 (27,952 -> 441,109; ratio 157:10) [0 scs]
--19253-- translate: dumped     0 (0 -> ??)
--19253-- translate: discarded  18 (363 -> ??)
--19253-- scheduler: 2,804,273 jumps (bb entries).
--19253-- scheduler: 56/2,064 major/minor sched events.
--19253--    sanity: 57 cheap, 3 expensive checks.
--19253--    exectx: 30,011 lists, 6 contexts (avg 0 per list)
--19253--    exectx: 60 searches, 54 full compares (900 per 1000)
--19253--    exectx: 0 cmp2, 118 cmp4, 0 cmpAll


valgrind 3.0.1 LOG, 32bit:

==19272== Memcheck, a memory error detector.
==19272== Copyright (C) 2002-2005, and GNU GPL'd, by Julian Seward et al.
==19272== Using LibVEX rev 1367, a library for dynamic binary translation.
==19272== Copyright (C) 2004-2005, and GNU GPL'd, by OpenWorks LLP.
==19272== Using valgrind-3.0.1, a dynamic binary instrumentation framework.
==19272== Copyright (C) 2000-2005, and GNU GPL'd, by Julian Seward et al.
--19272-- Valgrind library directory: \
                /project/tools/linux_i686_2.3.2-2005-08-31-17.44.37/stow/valgrind-3.0.1/lib/valgrind
                
--19272-- Command line
--19272--    /user/zach/VAL/bin/gmain_exec
--19272--    -so
--19272--    val.tcl
--19272--    -mode
--19272--    b
--19272-- Startup, with flags:
--19272--    --tool=memcheck
--19272--    --leak-check=full
--19272--    --run-libc-freeres=no
--19272--    -v
--19272-- Contents of /proc/version:
--19272--   Linux version 2.6.7-mjb1 (root newyork) (gcc version 3.2.2 20030222 (Red \
                Hat Linux 3.2.2-5)) #4 SMP Mon Dec 13 20:32:24 PST 2004
--19272-- Reading syms from /user/zach/VAL/bin/gmain_exec (0x8048000)
--19272-- Reading syms from /lib/ld-2.3.2.so (0x1B8E4000)
--19272-- Reading syms from \
/project/tools/linux_i686_2.3.2-2005-08-31-17.44.37/stow/valgrind-3.0.1/lib/valgrind/stage2 \
                (0xB0000000)
--19272-- Reading suppressions file: \
/project/tools/linux_i686_2.3.2-2005-08-31-17.44.37/stow/valgrind-3.0.1/lib/valgrind/default.supp
 ==19272== 
--19272-- Reading syms from \
/project/tools/linux_i686_2.3.2-2005-08-31-17.44.37/stow/valgrind-3.0.1/lib/valgrind/vg_preload_core.so \
                (0x1B8FB000)
--19272-- Reading syms from \
/project/tools/linux_i686_2.3.2-2005-08-31-17.44.37/stow/valgrind-3.0.1/lib/valgrind/vgpreload_memcheck.so \
                (0x1B8FD000)
--19272-- REDIR: 0x1B8F5BB0 (index) redirected to 0x1B9005C0 (index)
--19272-- REDIR: 0x1B8F5D50 (strlen) redirected to 0x1B900840 (strlen)
--19272-- Reading syms from \
/project/tools/linux_i686_2.3.2-2005-08-31-17.44.37/stow/qt-x11-commercial-3.3.3/lib/libqt-mt.so.3.3.3 \
                (0x1B903000)
--19272--    object doesn't have a symbol table
--19272-- Reading syms from /usr/X11R6/lib/libXext.so.6.4 (0x1C1A5000)
--19272--    object doesn't have a symbol table
--19272-- Reading syms from /usr/X11R6/lib/libX11.so.6.2 (0x1C1B3000)
--19272--    object doesn't have a symbol table
--19272-- Reading syms from /lib/libdl-2.3.2.so (0x1C292000)
--19272-- Reading syms from \
/project/tools/linux_i686_2.3.2-2005-08-31-17.44.37/stow/tcl8.4.11/lib/libtcl8.4.so \
                (0x1C297000)
--19272-- Reading syms from /usr/lib/libncurses.so.5.3 (0x1C344000)
--19272--    object doesn't have a symbol table
--19272-- Reading syms from /tools/lib/linux/libreadline.so.4 (0x1C383000)
--19272-- Reading syms from /lib/tls/libpthread-0.34.so (0x1C3AF000)
--19272-- Reading syms from /project/OpenGL/linux/lib/libGL.so.1 (0x1C3BD000)
--19272--    object doesn't have a symbol table
--19272-- Reading syms from /project/OpenGL/linux/lib/libGLU.so.1 (0x1C430000)
--19272--    object doesn't have a symbol table
--19272-- Reading syms from \
/project/tools/linux_i686_2.3.2-2005-08-31-17.44.37/stow/gcc-3.3.3/lib/libstdc++.so.5.0.5 \
                (0x1C4AD000)
--19272-- Reading syms from /lib/tls/libm-2.3.2.so (0x1C566000)
--19272-- Reading syms from /lib/tls/libc-2.3.2.so (0x42000000)
--19272-- Reading syms from \
/project/tools/linux_i686_2.3.2-2005-08-31-17.44.37/stow/gcc-3.3.3/lib/libgcc_s.so.1 \
                (0x1C588000)
--19272-- Reading syms from /usr/X11R6/lib/libXmu.so.6.2 (0x1C590000)
--19272--    object doesn't have a symbol table
--19272-- Reading syms from /usr/X11R6/lib/libXrender.so.1.2.2 (0x1C5A7000)
--19272--    object doesn't have a symbol table
--19272-- Reading syms from /usr/X11R6/lib/libXrandr.so.2.0 (0x1C5AF000)
--19272--    object doesn't have a symbol table
--19272-- Reading syms from /usr/X11R6/lib/libXcursor.so.1.0 (0x1C5B3000)
--19272--    object doesn't have a symbol table
--19272-- Reading syms from /usr/X11R6/lib/libXft.so.2.1.1 (0x1C5BC000)
--19272--    object doesn't have a symbol table
--19272-- Reading syms from /usr/lib/libfreetype.so.6.3.2 (0x1C5CE000)
--19272--    object doesn't have a symbol table
--19272-- Reading syms from /usr/lib/libfontconfig.so.1.0 (0x1C61F000)
--19272--    object doesn't have a symbol table
--19272-- Reading syms from /usr/X11R6/lib/libSM.so.6.0 (0x1C645000)
--19272--    object doesn't have a symbol table
--19272-- Reading syms from /usr/X11R6/lib/libICE.so.6.3 (0x1C64E000)
--19272--    object doesn't have a symbol table
--19272-- Reading syms from /usr/X11R6/lib/libXt.so.6.0 (0x1C665000)
--19272--    object doesn't have a symbol table
--19272-- Reading syms from /usr/lib/libexpat.so.0.4.0 (0x1C6B7000)
--19272--    object doesn't have a symbol table
--19272-- REDIR: 0x1B8E4C00 (_dl_sysinfo_int80) redirected to 0xB00259D3 (???)
--19272-- REDIR: 0x4207C0C0 (memset) redirected to 0x1B900F80 (memset)
--19272-- REDIR: 0x4207ABA0 (rindex) redirected to 0x1B9004A0 (rindex)
--19272-- REDIR: 0x4207A220 (strcpy) redirected to 0x1B900880 (strcpy)
--19272-- REDIR: 0x4207C5E0 (memcpy) redirected to 0x1B900B70 (memcpy)
--19272-- REDIR: 0x4207A920 (strnlen) redirected to 0x1B9007E0 (strnlen)
--19272-- REDIR: 0x1C53D830 (operator new(unsigned)) redirected to 0x1B8FEDEB \
                (operator new(unsigned))
--19272-- REDIR: 0x1C53D970 (operator new[](unsigned)) redirected to 0x1B8FF27D \
                (operator new[](unsigned))
--19272-- REDIR: 0x4207A870 (strlen) redirected to 0x1B900820 (strlen)
--19272-- REDIR: 0x42073700 (malloc) redirected to 0x1B8FEA08 (malloc)
--19272-- REDIR: 0x4207C060 (memmove) redirected to 0x1B900FB0 (memmove)
--19272-- REDIR: 0x42073880 (free) redirected to 0x1B8FF601 (free)
--19272-- REDIR: 0x4207AA50 (strncmp) redirected to 0x1B900A60 (strncmp)
--19272-- REDIR: 0x1C53C2C0 (operator delete[](void*)) redirected to 0x1B8FFC05 \
                (operator delete[](void*))
--19272-- REDIR: 0x1C53C260 (operator delete(void*)) redirected to 0x1B8FF8BD \
                (operator delete(void*))
--19272-- REDIR: 0x420796E0 (index) redirected to 0x1B900590 (index)
--19272-- REDIR: 0x42073940 (realloc) redirected to 0x1B8FFEF5 (realloc)
--19272-- REDIR: 0x42079850 (strcmp) redirected to 0x1B900AC0 (strcmp)
--19272-- REDIR: 0x4207BEA0 (memchr) redirected to 0x1B900B40 (memchr)
--19272-- REDIR: 0x42073DC0 (calloc) redirected to 0x1B8FFE35 (calloc)
--19272-- REDIR: 0x4207AB10 (strncpy) redirected to 0x1B900940 (strncpy)
--19272-- REDIR: 0x4207D170 (strchrnul) redirected to 0x1B901020 (strchrnul)
--19272-- REDIR: 0x4207C280 (stpcpy) redirected to 0x1B900D40 (stpcpy)
--19272-- Reading syms from /lib/libnss_files-2.3.2.so (0x1C18A000)
--19272-- REDIR: 0x4207D0A0 (rawmemchr) redirected to 0x1B901040 (rawmemchr)
--19272-- REDIR: 0x42079530 (strcat) redirected to 0x1B900620 (strcat)
--19272-- REDIR: 0x4207A9C0 (strncat) redirected to 0x1B9006F0 (strncat)
--19272-- Reading syms from /usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2 \
                (0x1C196000)
--19272--    object doesn't have a symbol table
--19272-- Reading syms from /usr/X11R6/lib/X11/locale/lib/common/xlcUTF8Load.so.2 \
                (0x1C1A0000)
--19272--    object doesn't have a symbol table
--19272-- Reading syms from /usr/X11R6/lib/X11/locale/lib/common/ximcp.so.2 \
                (0x1D1B4000)
--19272--    object doesn't have a symbol table
--19272-- Reading syms from /lib/libnss_nis-2.3.2.so (0x1D7ED000)
--19272-- Reading syms from /lib/libnsl-2.3.2.so (0x1D7F6000)
--19272-- REDIR: 0x4207C040 (bcmp) redirected to 0x1B900D00 (bcmp)
Sierra Pinnacle (Running on newyork 32bits mode)
Version config_spec_01 (Build 1.8393 Tue Nov  1 11:34:09 PST 2005)
Copyright (c) 2003-2005, Sierra Design Automation Inc. 
Sourcing zz.tcl
SOURCED zz.tcl
info UI35: reading design database file '/scratch/bugs/1934/all_regions.db'

.....


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic