|
From: Zachary D. <za...@si...> - 2005-10-28 23:02:42
|
cannot throw exceptions and so is aborting instead. Sorry." message. I have been unable to valgrind our code lately, it always exits early with the message above. The cases, which I run do not require much memory and easily run when not under valgrind. I include 2 logs below. After the first run I put a print statement right before the new operator and then it failed in a different place. I get the same behavior on 32 and 64 bit machines under RedHat Linux, gcc (GCC) 3.3.3 I will greatly appreciate any advice. Thanks, Zach. LOG 1: --------------------------------------------------------------------------------------------------------------------------------------- ==19225== Memcheck, a memory error detector. ==19225== Copyright (C) 2002-2005, and GNU GPL'd, by Julian Seward et al. ==19225== Using LibVEX rev 1367, a library for dynamic binary translation. ==19225== Copyright (C) 2004-2005, and GNU GPL'd, by OpenWorks LLP. ==19225== Using valgrind-3.0.1, a dynamic binary instrumentation framework. ==19225== Copyright (C) 2000-2005, and GNU GPL'd, by Julian Seward et al. --19225-- Valgrind library directory: /project/tools/linux_x86_64_2.3.2-2005-09-01-15.02.19/stow/valgrind-3.0.1/lib/valgrind --19225-- Command line --19225-- /user/zach/VAL64/bin/gmain_exec --19225-- -so --19225-- val.tcl --19225-- -mode --19225-- b --19225-- Startup, with flags: --19225-- --tool=memcheck --19225-- --leak-check=full --19225-- -v --19225-- Contents of /proc/version: --19225-- Linux version 2.6.10-rc3-bk4 (root@rome) (gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-42)) #1 SMP Fri Dec 10 03:26:46 PST 2004 --19225-- Reading syms from /user/zach/VAL64/bin/gmain_exec (0x400000) ==19225== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --19225-- Reading syms from /lib64/ld-2.3.2.so (0x11900000) --19225-- Reading syms from /project/tools/linux_x86_64_2.3.2-2005-09-01-15.02.19/stow/valgrind-3.0.1/lib/valgrind/stage2 (0x70000000) ==19225== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --19225-- Reading suppressions file: /project/tools/linux_x86_64_2.3.2-2005-09-01-15.02.19/stow/valgrind-3.0.1/lib/valgrind/default.supp ==19225== --19225-- Reading syms from /project/tools/linux_x86_64_2.3.2-2005-09-01-15.02.19/stow/valgrind-3.0.1/lib/valgrind/vg_preload_core.so (0x11A17000) ==19225== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --19225-- Reading syms from /project/tools/linux_x86_64_2.3.2-2005-09-01-15.02.19/stow/valgrind-3.0.1/lib/valgrind/vgpreload_memcheck.so (0x11B1A000) ==19225== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --19225-- REDIR: 0x1190FFE0 (index) redirected to 0x11B1DBE0 (index) --19225-- REDIR: 0x11910190 (strcmp) redirected to 0x11B1E090 (strcmp) --19225-- REDIR: 0x119101C0 (strlen) redirected to 0x11B1DE20 (strlen) --19225-- Reading syms from /project/tools/linux_x86_64_2.3.2-2005-09-01-15.02.19/stow/qt-x11-commercial-3.3.3/lib/libqt-mt.so.3.3.3 (0x11C20000) --19225-- object doesn't have a symbol table ==19225== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --19225-- Reading syms from /project/X11/linux64-amd/lib/libXext.so.6 (0x1265A000) --19225-- object doesn't have a symbol table ==19225== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --19225-- Reading syms from /project/X11/linux64-amd/lib/libX11.so.6 (0x1276C000) --19225-- object doesn't have a symbol table ==19225== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --19225-- Reading syms from /lib64/libdl-2.3.2.so (0x12970000) ==19225== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --19225-- Reading syms from /project/tools/linux_x86_64_2.3.2-2005-09-01-15.02.19/stow/tcl8.4.11/lib/libtcl8.4.so (0x12A73000) ==19225== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --19225-- Reading syms from /usr/lib64/libncurses.so.5.3 (0x12C31000) ==19225== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --19225-- Reading syms from /usr/lib64/libreadline.so.4.3 (0x12D8B000) --19225-- object doesn't have a symbol table ==19225== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --19225-- Reading syms from /lib64/tls/libpthread-0.60.so (0x12EC3000) --19225-- Reading syms from /project/OpenGL/linux64-amd/lib/libGL.so.1 (0x12FD8000) --19225-- object doesn't have a symbol table ==19225== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --19225-- Reading syms from /project/OpenGL/linux64-amd/lib/libGLU.so.1 (0x13161000) --19225-- object doesn't have a symbol table ==19225== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --19225-- Reading syms from /usr/lib64/libstdc++.so.5.0.3 (0x132E4000) --19225-- object doesn't have a symbol table ==19225== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --19225-- Reading syms from /lib64/tls/libm-2.3.2.so (0x134BC000) ==19225== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --19225-- Reading syms from /lib64/tls/libc-2.3.2.so (0x13644000) --19225-- Reading syms from /lib64/libgcc_s-3.2.3-20040701.so.1 (0x13888000) --19225-- object doesn't have a symbol table ==19225== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --19225-- Reading syms from /project/X11/linux64-amd/lib/libXmu.so.6 (0x13994000) --19225-- object doesn't have a symbol table ==19225== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --19225-- Reading syms from /project/X11/linux64-amd/lib/libXrender.so.1 (0x13AAD000) --19225-- object doesn't have a symbol table ==19225== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --19225-- Reading syms from /project/X11/linux64-amd/lib/libXrandr.so.2 (0x13BB5000) --19225-- object doesn't have a symbol table ==19225== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --19225-- Reading syms from /project/X11/linux64-amd/lib/libXcursor.so.1 (0x13CB9000) --19225-- object doesn't have a symbol table ==19225== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --19225-- Reading syms from /project/X11/linux64-amd/lib/libXft.so.2 (0x13DC3000) --19225-- object doesn't have a symbol table ==19225== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --19225-- Reading syms from /usr/lib64/libfreetype.so.6.3.3 (0x13ED7000) ==19225== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --19225-- Reading syms from /usr/lib64/libfontconfig.so.1.0.4 (0x14038000) --19225-- object doesn't have a symbol table ==19225== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --19225-- Reading syms from /project/X11/linux64-amd/lib/libSM.so.6 (0x1416C000) --19225-- object doesn't have a symbol table ==19225== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --19225-- Reading syms from /project/X11/linux64-amd/lib/libICE.so.6 (0x14276000) --19225-- object doesn't have a symbol table ==19225== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --19225-- Reading syms from /usr/lib64/libgpm.so.1.18.0 (0x14390000) --19225-- object doesn't have a symbol table ==19225== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --19225-- Reading syms from /project/X11/linux64-amd/lib/libXt.so.6 (0x14496000) --19225-- object doesn't have a symbol table ==19225== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --19225-- Reading syms from /usr/lib64/libexpat.so.0.4.0 (0x145F8000) --19225-- object doesn't have a symbol table ==19225== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --19225-- Reading syms from /usr/lib64/libz.so.1.1.4 (0x1471A000) --19225-- object doesn't have a symbol table ==19225== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --19225-- REDIR: 0x136C38E0 (memset) redirected to 0x11B1E520 (memset) --19225-- REDIR: 0x136C2060 (rindex) redirected to 0x11B1DB00 (rindex) --19225-- REDIR: 0x136C15C0 (strcpy) redirected to 0x11B1DE40 (strcpy) --19225-- REDIR: 0x1337E640 (operator new(unsigned long)) redirected to 0x11B1C4B8 (operator new(unsigned long)) --19225-- REDIR: 0x1337E780 (operator new[](unsigned long)) redirected to 0x11B1C916 (operator new[](unsigned long)) --19225-- REDIR: 0x136C1CC0 (strlen) redirected to 0x11B1DDE0 (strlen) --19225-- REDIR: 0x136BA140 (malloc) redirected to 0x11B1C0FF (malloc) --19225-- REDIR: 0x136C4120 (memcpy) redirected to 0x11B1E0F0 (memcpy) --19225-- REDIR: 0x136C3780 (memmove) redirected to 0x11B1E550 (memmove) --19225-- REDIR: 0x136BA310 (free) redirected to 0x11B1CC71 (free) --19225-- REDIR: 0x136C1F20 (strncmp) redirected to 0x11B1E010 (strncmp) --19225-- REDIR: 0x1337D1F0 (operator delete[](void*)) redirected to 0x11B1D23E (operator delete[](void*)) --19225-- REDIR: 0x1337D1B0 (operator delete(void*)) redirected to 0x11B1CF14 (operator delete(void*)) --19225-- REDIR: 0x136C0800 (index) redirected to 0x11B1DBA0 (index) --19225-- REDIR: 0x136BA3B0 (realloc) redirected to 0x11B1D509 (realloc) --19225-- REDIR: 0xFFFFFFFFFF600400 (???) redirected to 0x700288F5 (???) --19225-- REDIR: 0x136C09B0 (strcmp) redirected to 0x11B1E060 (strcmp) --19225-- REDIR: 0xFFFFFFFFFF600000 (???) redirected to 0x700288EB (???) --19225-- REDIR: 0x136C3140 (memchr) redirected to 0x11B1E0C0 (memchr) --19225-- REDIR: 0x136BA8A0 (calloc) redirected to 0x11B1D45A (calloc) --19225-- REDIR: 0x136C1FC0 (strncpy) redirected to 0x11B1DF00 (strncpy) --19225-- REDIR: 0x136C4CC0 (strchrnul) redirected to 0x11B1E5A0 (strchrnul) --19225-- REDIR: 0x136C3D00 (stpcpy) redirected to 0x11B1E2E0 (stpcpy) --19225-- Reading syms from /lib64/libnss_files-2.3.2.so (0x1533C000) ==19225== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --19225-- REDIR: 0x136C4BF0 (rawmemchr) redirected to 0x11B1E5C0 (rawmemchr) --19225-- REDIR: 0x136C0640 (strcat) redirected to 0x11B1DC00 (strcat) --19225-- REDIR: 0x136C1E90 (strncat) redirected to 0x11B1DCD0 (strncat) --19225-- REDIR: 0x136C1DB0 (strnlen) redirected to 0x11B1DDB0 (strnlen) --19225-- Reading syms from /usr/X11R6/lib/X11/locale/lib64/common/xlcDef.so.2 (0x15548000) --19225-- object doesn't have a symbol table ==19225== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --19225-- Reading syms from /usr/X11R6/lib/X11/locale/lib64/common/xlcUTF8Load.so.2 (0x174F4000) --19225-- object doesn't have a symbol table ==19225== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --19225-- Reading syms from /usr/X11R6/lib/X11/locale/lib64/common/ximcp.so.2 (0x175F5000) --19225-- object doesn't have a symbol table ==19225== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --19225-- Reading syms from /lib64/libnss_nis-2.3.2.so (0x17D27000) ==19225== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --19225-- Reading syms from /lib64/libnsl-2.3.2.so (0x17E31000) ==19225== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --19225-- REDIR: 0x136C3280 (bcmp) redirected to 0x11B1E2A0 (bcmp) Sierra Pinnacle (Running on cool 64bits mode) Version config_spec_01 (Build 1.8393 Fri Oct 28 01:08:15 PDT 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' info Reading statics... warning Re-initializing switching activity module... info Reading technology... info Reading design... **19225** new/new[] failed and should throw an exception, but Valgrind cannot throw exceptions and so is aborting instead. Sorry. ==19225== at 0x11A17BF0: VALGRIND_PRINTF_BACKTRACE (valgrind.h:319) ==19225== by 0x11B1C9C7: operator new[](unsigned long) (vg_replace_malloc.c:201) ==19225== by 0x1401CFE: hash_table<std::string, sdb_cell*>::init(int, float) (hash.h:363) ==19225== by 0x14010F4: hash_table<std::string, sdb_cell*>::hash_table(int, float) (hash.h:409) ==19225== by 0x1400C9D: hash_table<std::string, sdb_cell*>::grow_by_one() (hash.h:370) ==19225== by 0x140045F: hash_table<std::string, sdb_cell*>::insert(std::string const&, sdb_cell* const&) (hash.h:523) ==19225== by 0x13F816F: sdb_hier::create_cell_map() (sdb_hier.cpp:530) ==19225== by 0x161386C: sdb_hier::postReadIn(sdb_hier*, serial::Buffer&) (srl_sdb.cpp:81) ==19225== by 0x153E74A: serial::Serializer::readIn_11(sdb_hier*, serial::Buffer&) (pinnacle-clz.cpp:151) ==19225== by 0xFB320E: serial::MetaClz<sdb_hier>::readIn(sdb_hier*, serial::Buffer&) (pinnacle-meta.h:108) ==19225== by 0xFB316E: serial::MetaFactory<sdb_hier>::readIn(sdb_hier*, serial::Buffer&) (srl_decl.h:105) ==19225== by 0xFB27DF: sdb_hier* serial::Buffer::readObject<sdb_hier>(unsigned, sdb_hier*) (srl_prtl.hpp:494) --19225-- discard syms at 0x17D27000-0x17E31000 in /lib64/libnss_nis-2.3.2.so due to munmap() --19225-- discard syms at 0x17E31000-0x17F48000 in /lib64/libnsl-2.3.2.so due to munmap() --19225-- discard syms at 0x1533C000-0x15448000 in /lib64/libnss_files-2.3.2.so due to munmap() ==19225== Thread 2: ==19225== Invalid free() / delete / delete[] ==19225== at 0x11B1CCF2: free (vg_replace_malloc.c:235) ==19225== by 0x1374C5AA: free_mem (in /lib64/tls/libc-2.3.2.so) ==19225== by 0x1374C151: __libc_freeres (in /lib64/tls/libc-2.3.2.so) ==19225== by 0x11A17CD7: _vgw_freeres (vg_preloaded.c:62) ==19225== Address 0x134BBE18 is not stack'd, malloc'd or (recently) free'd ==19225== ==19225== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 46 from 6) ...... LOG 2 -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ==26117== Memcheck, a memory error detector. ==26117== Copyright (C) 2002-2005, and GNU GPL'd, by Julian Seward et al. ==26117== Using LibVEX rev 1367, a library for dynamic binary translation. ==26117== Copyright (C) 2004-2005, and GNU GPL'd, by OpenWorks LLP. ==26117== Using valgrind-3.0.1, a dynamic binary instrumentation framework. ==26117== Copyright (C) 2000-2005, and GNU GPL'd, by Julian Seward et al. --26117-- Valgrind library directory: /project/tools/linux_x86_64_2.3.2-2005-09-01-15.02.19/stow/valgrind-3.0.1/lib/valgrind --26117-- Command line --26117-- /user/zach/VAL64/bin/gmain_exec --26117-- -so --26117-- val.tcl --26117-- -mode --26117-- b --26117-- Startup, with flags: --26117-- --tool=memcheck --26117-- --leak-check=full --26117-- -v --26117-- Contents of /proc/version: --26117-- Linux version 2.6.10-rc3-bk4 (root@rome) (gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-42)) #1 SMP Fri Dec 10 03:26:46 PST 2004 --26117-- Reading syms from /user/zach/VAL64/bin/gmain_exec (0x400000) ==26117== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --26117-- Reading syms from /lib64/ld-2.3.2.so (0x11900000) --26117-- Reading syms from /project/tools/linux_x86_64_2.3.2-2005-09-01-15.02.19/stow/valgrind-3.0.1/lib/valgrind/stage2 (0x70000000) ==26117== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --26117-- Reading suppressions file: /project/tools/linux_x86_64_2.3.2-2005-09-01-15.02.19/stow/valgrind-3.0.1/lib/valgrind/default.supp ==26117== --26117-- Reading syms from /project/tools/linux_x86_64_2.3.2-2005-09-01-15.02.19/stow/valgrind-3.0.1/lib/valgrind/vg_preload_core.so (0x11A17000) ==26117== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --26117-- Reading syms from /project/tools/linux_x86_64_2.3.2-2005-09-01-15.02.19/stow/valgrind-3.0.1/lib/valgrind/vgpreload_memcheck.so (0x11B1A000) ==26117== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --26117-- REDIR: 0x1190FFE0 (index) redirected to 0x11B1DBE0 (index) --26117-- REDIR: 0x11910190 (strcmp) redirected to 0x11B1E090 (strcmp) --26117-- REDIR: 0x119101C0 (strlen) redirected to 0x11B1DE20 (strlen) --26117-- Reading syms from /project/tools/linux_x86_64_2.3.2-2005-09-01-15.02.19/stow/qt-x11-commercial-3.3.3/lib/libqt-mt.so.3.3.3 (0x11C20000) --26117-- object doesn't have a symbol table ==26117== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --26117-- Reading syms from /project/X11/linux64-amd/lib/libXext.so.6 (0x1265A000) --26117-- object doesn't have a symbol table ==26117== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --26117-- Reading syms from /project/X11/linux64-amd/lib/libX11.so.6 (0x1276C000) --26117-- object doesn't have a symbol table ==26117== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --26117-- Reading syms from /lib64/libdl-2.3.2.so (0x12970000) ==26117== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --26117-- Reading syms from /project/tools/linux_x86_64_2.3.2-2005-09-01-15.02.19/stow/tcl8.4.11/lib/libtcl8.4.so (0x12A73000) ==26117== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --26117-- Reading syms from /usr/lib64/libncurses.so.5.3 (0x12C31000) ==26117== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --26117-- Reading syms from /usr/lib64/libreadline.so.4.3 (0x12D8B000) --26117-- object doesn't have a symbol table ==26117== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --26117-- Reading syms from /lib64/tls/libpthread-0.60.so (0x12EC3000) --26117-- Reading syms from /project/OpenGL/linux64-amd/lib/libGL.so.1 (0x12FD8000) --26117-- object doesn't have a symbol table ==26117== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --26117-- Reading syms from /project/OpenGL/linux64-amd/lib/libGLU.so.1 (0x13161000) --26117-- object doesn't have a symbol table ==26117== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --26117-- Reading syms from /usr/lib64/libstdc++.so.5.0.3 (0x132E4000) --26117-- object doesn't have a symbol table ==26117== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --26117-- Reading syms from /lib64/tls/libm-2.3.2.so (0x134BC000) ==26117== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --26117-- Reading syms from /lib64/tls/libc-2.3.2.so (0x13644000) --26117-- Reading syms from /lib64/libgcc_s-3.2.3-20040701.so.1 (0x13888000) --26117-- object doesn't have a symbol table ==26117== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --26117-- Reading syms from /project/X11/linux64-amd/lib/libXmu.so.6 (0x13994000) --26117-- object doesn't have a symbol table ==26117== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --26117-- Reading syms from /project/X11/linux64-amd/lib/libXrender.so.1 (0x13AAD000) --26117-- object doesn't have a symbol table ==26117== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --26117-- Reading syms from /project/X11/linux64-amd/lib/libXrandr.so.2 (0x13BB5000) --26117-- object doesn't have a symbol table ==26117== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --26117-- Reading syms from /project/X11/linux64-amd/lib/libXcursor.so.1 (0x13CB9000) --26117-- object doesn't have a symbol table ==26117== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --26117-- Reading syms from /project/X11/linux64-amd/lib/libXft.so.2 (0x13DC3000) --26117-- object doesn't have a symbol table ==26117== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --26117-- Reading syms from /usr/lib64/libfreetype.so.6.3.3 (0x13ED7000) ==26117== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --26117-- Reading syms from /usr/lib64/libfontconfig.so.1.0.4 (0x14038000) --26117-- object doesn't have a symbol table ==26117== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --26117-- Reading syms from /project/X11/linux64-amd/lib/libSM.so.6 (0x1416C000) --26117-- object doesn't have a symbol table ==26117== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --26117-- Reading syms from /project/X11/linux64-amd/lib/libICE.so.6 (0x14276000) --26117-- object doesn't have a symbol table ==26117== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --26117-- Reading syms from /usr/lib64/libgpm.so.1.18.0 (0x14390000) --26117-- object doesn't have a symbol table ==26117== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --26117-- Reading syms from /project/X11/linux64-amd/lib/libXt.so.6 (0x14496000) --26117-- object doesn't have a symbol table ==26117== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --26117-- Reading syms from /usr/lib64/libexpat.so.0.4.0 (0x145F8000) --26117-- object doesn't have a symbol table ==26117== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --26117-- Reading syms from /usr/lib64/libz.so.1.1.4 (0x1471A000) --26117-- object doesn't have a symbol table ==26117== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --26117-- REDIR: 0x136C38E0 (memset) redirected to 0x11B1E520 (memset) --26117-- REDIR: 0x136C2060 (rindex) redirected to 0x11B1DB00 (rindex) --26117-- REDIR: 0x136C15C0 (strcpy) redirected to 0x11B1DE40 (strcpy) --26117-- REDIR: 0x1337E640 (operator new(unsigned long)) redirected to 0x11B1C4B8 (operator new(unsigned long)) --26117-- REDIR: 0x1337E780 (operator new[](unsigned long)) redirected to 0x11B1C916 (operator new[](unsigned long)) --26117-- REDIR: 0x136C1CC0 (strlen) redirected to 0x11B1DDE0 (strlen) --26117-- REDIR: 0x136BA140 (malloc) redirected to 0x11B1C0FF (malloc) --26117-- REDIR: 0x136C4120 (memcpy) redirected to 0x11B1E0F0 (memcpy) --26117-- REDIR: 0x136C3780 (memmove) redirected to 0x11B1E550 (memmove) --26117-- REDIR: 0x136BA310 (free) redirected to 0x11B1CC71 (free) --26117-- REDIR: 0x136C1F20 (strncmp) redirected to 0x11B1E010 (strncmp) --26117-- REDIR: 0x1337D1F0 (operator delete[](void*)) redirected to 0x11B1D23E (operator delete[](void*)) --26117-- REDIR: 0x1337D1B0 (operator delete(void*)) redirected to 0x11B1CF14 (operator delete(void*)) --26117-- REDIR: 0x136C0800 (index) redirected to 0x11B1DBA0 (index) --26117-- REDIR: 0x136BA3B0 (realloc) redirected to 0x11B1D509 (realloc) --26117-- REDIR: 0xFFFFFFFFFF600400 (???) redirected to 0x700288F5 (???) --26117-- REDIR: 0x136C09B0 (strcmp) redirected to 0x11B1E060 (strcmp) --26117-- REDIR: 0xFFFFFFFFFF600000 (???) redirected to 0x700288EB (???) --26117-- REDIR: 0x136C3140 (memchr) redirected to 0x11B1E0C0 (memchr) Requesting size 29 Requesting size 29 Requesting size 29 Requesting size 29 Requesting size 29 Requesting size 29 Requesting size 29 Requesting size 29 Requesting size 29 Requesting size 29 Requesting size 29 Requesting size 29 Requesting size 29 Requesting size 29 Requesting size 29 Requesting size 29 --26117-- REDIR: 0x136BA8A0 (calloc) redirected to 0x11B1D45A (calloc) --26117-- REDIR: 0x136C1FC0 (strncpy) redirected to 0x11B1DF00 (strncpy) --26117-- REDIR: 0x136C4CC0 (strchrnul) redirected to 0x11B1E5A0 (strchrnul) --26117-- REDIR: 0x136C3D00 (stpcpy) redirected to 0x11B1E2E0 (stpcpy) --26117-- Reading syms from /lib64/libnss_files-2.3.2.so (0x1533C000) ==26117== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --26117-- REDIR: 0x136C4BF0 (rawmemchr) redirected to 0x11B1E5C0 (rawmemchr) --26117-- REDIR: 0x136C0640 (strcat) redirected to 0x11B1DC00 (strcat) --26117-- REDIR: 0x136C1E90 (strncat) redirected to 0x11B1DCD0 (strncat) --26117-- REDIR: 0x136C1DB0 (strnlen) redirected to 0x11B1DDB0 (strnlen) --26117-- Reading syms from /usr/X11R6/lib/X11/locale/lib64/common/xlcDef.so.2 (0x15548000) --26117-- object doesn't have a symbol table ==26117== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --26117-- Reading syms from /usr/X11R6/lib/X11/locale/lib64/common/xlcUTF8Load.so.2 (0x174F4000) --26117-- object doesn't have a symbol table ==26117== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --26117-- Reading syms from /usr/X11R6/lib/X11/locale/lib64/common/ximcp.so.2 (0x175F5000) --26117-- object doesn't have a symbol table ==26117== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --26117-- Reading syms from /lib64/libnss_nis-2.3.2.so (0x17D27000) ==26117== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --26117-- Reading syms from /lib64/libnsl-2.3.2.so (0x17E31000) ==26117== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --26117-- REDIR: 0x136C3280 (bcmp) redirected to 0x11B1E2A0 (bcmp) Sierra Pinnacle (Running on suva 64bits mode) Version config_spec_01 (Build 1.8393 Fri Oct 28 12:55:19 PDT 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' Requesting size 29 Requesting size 53 Requesting size 97 Requesting size 193 ... more log, all benign, 3401 requests most of them for 29 bytes, max 25k bytes Requesting size 29 **26117** new/new[] failed and should throw an exception, but Valgrind cannot throw exceptions and so is aborting instead. Sorry. ==26117== at 0x11A17BF0: VALGRIND_PRINTF_BACKTRACE (valgrind.h:319) ==26117== by 0x11B1C9C7: operator new[](unsigned long) (vg_replace_malloc.c:201) ==26117== by 0x1614DDC: sdb_cell::read_in_pins(sdb_cell*, serial::Buffer&) (srl_sdb.cpp:290) ==26117== by 0x153F217: serial::Serializer::readIn_12(sdb_cell*, serial::Buffer&) (pinnacle-clz.cpp:181) ==26117== by 0xFB2458: serial::MetaClz<sdb_cell>::readIn(sdb_cell*, serial::Buffer&) (pinnacle-meta.h:144) ==26117== by 0x15579D6: void serial::Buffer::readInPlace<sdb_cell>(sdb_cell*&) (srl_prtl.hpp:892) ==26117== by 0x161402E: sdb_hier::read_in_cells(sdb_hier*, serial::Buffer&) (srl_sdb.cpp:108) ==26117== by 0x153ED62: serial::Serializer::readIn_11(sdb_hier*, serial::Buffer&) (pinnacle-clz.cpp:145) ==26117== by 0xFB32B6: serial::MetaClz<sdb_hier>::readIn(sdb_hier*, serial::Buffer&) (pinnacle-meta.h:108) ==26117== by 0xFB3216: serial::MetaFactory<sdb_hier>::readIn(sdb_hier*, serial::Buffer&) (srl_decl.h:105) ==26117== by 0xFB2887: sdb_hier* serial::Buffer::readObject<sdb_hier>(unsigned, sdb_hier*) (srl_prtl.hpp:494) ==26117== by 0xFB239A: serial::ReadEventT<sdb_hier>::operator()() (srl_event.h:74) --26117-- discard syms at 0x17D27000-0x17E31000 in /lib64/libnss_nis-2.3.2.so due to munmap() --26117-- discard syms at 0x17E31000-0x17F48000 in /lib64/libnsl-2.3.2.so due to munmap() --26117-- discard syms at 0x1533C000-0x15448000 in /lib64/libnss_files-2.3.2.so due to munmap() ==26117== Thread 2: ==26117== Invalid free() / delete / delete[] ==26117== at 0x11B1CCF2: free (vg_replace_malloc.c:235) ==26117== by 0x1374C5AA: free_mem (in /lib64/tls/libc-2.3.2.so) ==26117== by 0x1374C151: __libc_freeres (in /lib64/tls/libc-2.3.2.so) ==26117== by 0x11A17CD7: _vgw_freeres (vg_preloaded.c:62) ==26117== Address 0x134BBE18 is not stack'd, malloc'd or (recently) free'd ==26117== ==26117== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 46 from 6) ==26117== .... |
|
From: Tom H. <to...@co...> - 2005-10-28 23:11:13
|
In message <436...@si...>
Zachary Deretsky <za...@si...> wrote:
> cannot throw exceptions and so is aborting instead. Sorry."
>
> message.
>
> I have been unable to valgrind our code lately, it always exits early
> with the message above.
> The cases, which I run do not require much memory and easily run when
> not under valgrind.
> I include 2 logs below. After the first run I put a print statement
> right before the new operator and then it failed in a different place.
> I get the same behavior on 32 and 64 bit machines under RedHat Linux,
> gcc (GCC) 3.3.3
>
> I will greatly appreciate any advice.
Try --trace-malloc=yes with valgrind - that will show how much it is
trying to allocate when it fails.
Tom
--
Tom Hughes (to...@co...)
http://www.compton.nu/
|
|
From: Zachary D. <za...@si...> - 2005-10-29 02:09:21
|
Tom, thanks for response. I ran as you suggest (generated more than 1GIG in the log) and this is what I got: --26330-- = 0x34902C58 --26330-- _Znwm(80) --26330-- = 0x34902D58 --26330-- _Znam(208) --26330-- = 0x34902DD8 --26330-- _Znwm(80) --26330-- = 0x34902ED8 --26330-- _Znam(208) --26330-- = 0x0 **26330** new/new[] failed and should throw an exception, but Valgrind cannot throw exceptions and so is aborting instead. Sorry. ==26330== at 0x11A17BF0: VALGRIND_PRINTF_BACKTRACE (valgrind.h:319) ==26330== by 0x11B1C9C7: operator new[](unsigned long) (vg_replace_malloc.c:201) ==26330== by 0x1614DDC: sdb_cell::read_in_pins(sdb_cell*, serial::Buffer&) (srl_sdb.cpp:290) ==26330== by 0x153F217: serial::Serializer::readIn_12(sdb_cell*, serial::Buffer&) (pinnacle-clz.cpp:181) ==26330== by 0xFB2458: serial::MetaClz<sdb_cell>::readIn(sdb_cell*, serial::Buffer&) (pinnacle-meta.h:144) ==26330== by 0x15579D6: void serial::Buffer::readInPlace<sdb_cell>(sdb_cell*&) (srl_prtl.hpp:892) ==26330== by 0x161402E: sdb_hier::read_in_cells(sdb_hier*, serial::Buffer&) (srl_sdb.cpp:108) ==26330== by 0x153ED62: serial::Serializer::readIn_11(sdb_hier*, serial::Buffer&) (pinnacle-clz.cpp:145) ==26330== by 0xFB32B6: serial::MetaClz<sdb_hier>::readIn(sdb_hier*, serial::Buffer&) (pinnacle-meta.h:108) ==26330== by 0xFB3216: serial::MetaFactory<sdb_hier>::readIn(sdb_hier*, serial::Buffer&) (srl_decl.h:105) ==26330== by 0xFB2887: sdb_hier* serial::Buffer::readObject<sdb_hier>(unsigned, sdb_hier*) (srl_prtl.hpp:494) ==26330== by 0xFB239A: serial::ReadEventT<sdb_hier>::operator()() (srl_event.h:74) --26330-- free(0x154B45F8) --26330-- free(0x154B4578) How do I interpret it and what is my next step? The normal run takes 400 meg on a 32bit computer and 800 meg on a 64bit. I am running on a 4gig machines. Thank you, Zach. Tom Hughes wrote: >In message <436...@si...> > Zachary Deretsky <za...@si...> wrote: > > > >> cannot throw exceptions and so is aborting instead. Sorry." >> >>message. >> >>I have been unable to valgrind our code lately, it always exits early >>with the message above. >>The cases, which I run do not require much memory and easily run when >>not under valgrind. >>I include 2 logs below. After the first run I put a print statement >>right before the new operator and then it failed in a different place. >>I get the same behavior on 32 and 64 bit machines under RedHat Linux, >>gcc (GCC) 3.3.3 >> >>I will greatly appreciate any advice. >> >> > >Try --trace-malloc=yes with valgrind - that will show how much it is >trying to allocate when it fails. > >Tom > > > |
|
From: Tom H. <to...@co...> - 2005-10-29 10:10:13
|
In message <436...@si...>
Zachary Deretsky <za...@si...> wrote:
> I ran as you suggest (generated more than 1GIG in the log) and this is
> what I got:
>
> --26330-- = 0x34902C58
> --26330-- _Znwm(80)
> --26330-- = 0x34902D58
> --26330-- _Znam(208)
> --26330-- = 0x34902DD8
> --26330-- _Znwm(80)
> --26330-- = 0x34902ED8
> --26330-- _Znam(208)
> --26330-- = 0x0
> **26330** new/new[] failed and should throw an exception, but Valgrind
> cannot throw exceptions and so is aborting instead. Sorry.
> ==26330== at 0x11A17BF0: VALGRIND_PRINTF_BACKTRACE (valgrind.h:319)
> ==26330== by 0x11B1C9C7: operator new[](unsigned long)
> (vg_replace_malloc.c:201)
> ==26330== by 0x1614DDC: sdb_cell::read_in_pins(sdb_cell*,
> serial::Buffer&) (srl_sdb.cpp:290)
> ==26330== by 0x153F217: serial::Serializer::readIn_12(sdb_cell*,
> serial::Buffer&) (pinnacle-clz.cpp:181)
> ==26330== by 0xFB2458: serial::MetaClz<sdb_cell>::readIn(sdb_cell*,
> serial::Buffer&) (pinnacle-meta.h:144)
> ==26330== by 0x15579D6: void
> serial::Buffer::readInPlace<sdb_cell>(sdb_cell*&) (srl_prtl.hpp:892)
> ==26330== by 0x161402E: sdb_hier::read_in_cells(sdb_hier*,
> serial::Buffer&) (srl_sdb.cpp:108)
> ==26330== by 0x153ED62: serial::Serializer::readIn_11(sdb_hier*,
> serial::Buffer&) (pinnacle-clz.cpp:145)
> ==26330== by 0xFB32B6: serial::MetaClz<sdb_hier>::readIn(sdb_hier*,
> serial::Buffer&) (pinnacle-meta.h:108)
> ==26330== by 0xFB3216:
> serial::MetaFactory<sdb_hier>::readIn(sdb_hier*, serial::Buffer&)
> (srl_decl.h:105)
> ==26330== by 0xFB2887: sdb_hier*
> serial::Buffer::readObject<sdb_hier>(unsigned, sdb_hier*) (srl_prtl.hpp:494)
> ==26330== by 0xFB239A: serial::ReadEventT<sdb_hier>::operator()()
> (srl_event.h:74)
> --26330-- free(0x154B45F8)
> --26330-- free(0x154B4578)
>
> How do I interpret it and what is my next step?
>
> The normal run takes 400 meg on a 32bit computer and 800 meg on a 64bit.
> I am running on a 4gig machines.
I thought you said it didn't take much memory!
If you're using that much you probably want to try the SVN code which
has a new address space manager that will let the client use more of
the address space.
Tom
--
Tom Hughes (to...@co...)
http://www.compton.nu/
|
|
From: Zachary D. <za...@si...> - 2005-10-31 22:47:48
|
Tom Hughes wrote: >I thought you said it didn't take much memory! > >If you're using that much you probably want to try the SVN code which >has a new address space manager that will let the client use more of >the address space. > >Tom > > > My company makes software for IC design and, unfortunately, the real testcase I am debugging is among the smallest... -;) while artificial small testcases do not exhibit problems. I checked out the source version 1426 and built it. In the Makefile I had to replace the lines around svnversion -n . >> priv/main/vex_svnversion.h with echo -n "\"1426\"" > priv/main/vex_svnversion.h because there is no "svnversion" command on my machine. My valgrind run crashes; below is the result of 'valgrind -d -d --tool=none date' which also crashes with seg fault. Will be very grateful for further advise. Thanks, Zach. --29454:1:debuglog DebugLog system started by Stage 1, level 2 logging requested --29454:1:launcher tool 'none' requested --29454:1:launcher launching /user/zach/ZZ/work/stow/valgrind/lib/valgrind/none --29454:1:debuglog DebugLog system started by Stage 2 (main), level 2 logging requested --29454:1:main Welcome to Valgrind version 3.1.SVN debug logging --29454:1:main Checking current stack is plausible --29454:1:main Checking initial stack was noted --29454:1:main Starting the address space manager --29454:2:aspacem sp_at_startup = 0x00FEFFECB0 (supplied) --29454:2:aspacem minAddr = 0x0004000000 (computed) --29454:2:aspacem maxAddr = 0x00FEFFDFFF (computed) --29454:2:aspacem cStart = 0x0004000000 (computed) --29454:2:aspacem vStart = 0x00017FF000 (computed) --29454:2:aspacem suggested_clstack_top = 0x00FDFFEFFF (computed) --29454:2:aspacem <<< SHOW_SEGMENTS: Initial layout (5 segments, 0 segnames) --29454:2:aspacem 0: RSVN 0000000000-00017FEFFF 23m ----- SmFixed --29454:2:aspacem 1: RSVN 00017FF000-00017FFFFF 4096 ----- SmFixed --29454:2:aspacem 2: RSVN 0001800000-0003FFFFFF 40m ----- SmFixed --29454:2:aspacem 3: 0004000000-00FEFFDFFF 4015m --29454:2:aspacem 4: RSVN 00FEFFE000-00FFFFFFFF 16m ----- SmFixed --29454:2:aspacem >>> --29454:2:aspacem Reading /proc/self/maps --29454:2:aspacem <<< SHOW_SEGMENTS: With contents of /proc/self/maps (12 segments, 1 segnames) --29454:2:aspacem ( 0) /user/zach/ZZ/work/stow/valgrind/lib/valgrind/none --29454:2:aspacem 0: RSVN 0000000000-00017FEFFF 23m ----- SmFixed --29454:2:aspacem 1: RSVN 00017FF000-00017FFFFF 4096 ----- SmFixed --29454:2:aspacem 2: RSVN 0001800000-0003FFFFFF 40m ----- SmFixed --29454:2:aspacem 3: 0004000000-00AFFFFFFF 2752m --29454:2:aspacem 4: FILE 00B0000000-00B0128FFF 1216512 r-x-- d=0x01A i=37109595 o=0 (0) --29454:2:aspacem 5: FILE 00B0129000-00B0129FFF 4096 rw--- d=0x01A i=37109595 o=1216512 (0) --29454:2:aspacem 6: ANON 00B012A000-00B0718FFF 6221824 rwx-- --29454:2:aspacem 7: 00B0719000-00FEFFDFFF 1256m --29454:2:aspacem 8: ANON 00FEFFE000-00FEFFFFFF 8192 rwx-- --29454:2:aspacem 9: RSVN 00FF000000-00FFFFCFFF 15m ----- SmFixed --29454:2:aspacem 10: ANON 00FFFFD000-00FFFFDFFF 4096 ----- --29454:2:aspacem 11: RSVN 00FFFFE000-00FFFFFFFF 8192 ----- SmFixed --29454:2:aspacem >>> --29454:1:main Address space manager is running --29454:1:main Starting the dynamic memory manager --29454:1:mallocfr newSuperblock at 0x4000000 (pszB 1048560) owner VALGRIND/tool --29454:1:main Dynamic memory manager is running --29454:1:main Getting stage1's name --29454:1:main Split up command line --29454:1:main Preprocess command line opts --29454:1:main Loading client --29454:1:main Setup client env --29454:2:main preload_string: --29454:2:main "/user/zach/ZZ/work/stow/valgrind/lib/valgrind/vgpreload_core.so" --29454:1:main Setup client stack --29454:2:main Client info: initial_IP=0x4100C20 initial_SP=0xFDFFE420 brk_base=0x8052000 --29454:1:main Setup client data (brk) segment --29454:1:main Setup file descriptors --29454:1:main Create fake /proc/<pid>/cmdline --29454:1:main Initialise the tool part 1 (pre_clo_init) --29454:1:main Print help and quit, if requested --29454:1:main Process Valgrind's command line options, setup logging --29454:1:main Print the preamble... --29454:1:main ...finished the preamble --29454:1:main Initialise the tool part 2 (post_clo_init) --29454:1:main Initialise TT/TC --29454:2:transtab cache: 8 sectors of 5870592 bytes each = 46964736 total --29454:2:transtab table: 524168 total entries, max occupancy 419328 (80%) --29454:1:main Initialise redirects --29454:1:mallocfr newSuperblock at 0x4116000 (pszB 1048560) owner VALGRIND/symtab --29454:1:main Load initial debug info --29454:1:mallocfr newSuperblock at 0x459B000 (pszB 1048560) owner VALGRIND/symtab --29454:1:mallocfr newSuperblock at 0x469B000 (pszB 1048560) owner VALGRIND/symtab --29454:1:redir transfer ownership V -> C of 0xB000C000 .. 0xB000CFFF --29454:1:main Tell tool about initial permissions --29454:2:main tell tool about 0004100000-0004114FFF r-x --29454:2:main tell tool about 0004115000-0004115FFF rw- --29454:2:main tell tool about 0008048000-0008050FFF r-x --29454:2:main tell tool about 0008051000-0008051FFF rw- --29454:2:main tell tool about 0008052000-0008052FFF rwx --29454:2:main tell tool about 00B000C000-00B000CFFF r-x --29454:2:main tell tool about 00FDFFE000-00FDFFEFFF rwx --29454:2:main mark stack inaccessible 00FDFFE000-00FDFFE41F --29454:1:main Initialise scheduler --29454:1:main Initialise thread 1's state --29454:1:main Initialise signal management --29454:1:mallocfr newSuperblock at 0x4216000 (pszB 1048560) owner VALGRIND/core --29454:1:main --29454:1:main --29454:1:aspacem <<< SHOW_SEGMENTS: Memory layout at client startup (28 segments, 3 segnames) --29454:1:aspacem ( 0) /user/zach/ZZ/work/stow/valgrind/lib/valgrind/none --29454:1:aspacem ( 1) /bin/date --29454:1:aspacem ( 2) /lib/ld-2.3.2.so --29454:1:aspacem 0: RSVN 0000000000-00017FEFFF 23m ----- SmFixed --29454:1:aspacem 1: RSVN 00017FF000-00017FFFFF 4096 ----- SmFixed --29454:1:aspacem 2: RSVN 0001800000-0003FFFFFF 40m ----- SmFixed --29454:1:aspacem 3: ANON 0004000000-00040FFFFF 1048576 rwx-- --29454:1:aspacem 4: file 0004100000-0004114FFF 86016 r-x-- d=0x803 i=58721205 o=0 (2) --29454:1:aspacem 5: file 0004115000-0004115FFF 4096 rw--- d=0x803 i=58721205 o=86016 (2) --29454:1:aspacem 6: ANON 0004116000-0004315FFF 2097152 rwx-- --29454:1:aspacem 7: 0004316000-000459AFFF 2641920 --29454:1:aspacem 8: ANON 000459B000-000479AFFF 2097152 rwx-- --29454:1:aspacem 9: 000479B000-0008047FFF 56m --29454:1:aspacem 10: file 0008048000-0008050FFF 36864 r-x-- d=0x803 i=164 o=0 (1) --29454:1:aspacem 11: file 0008051000-0008051FFF 4096 rw--- d=0x803 i=164 o=36864 (1) --29454:1:aspacem 12: anon 0008052000-0008052FFF 4096 rwx-- --29454:1:aspacem 13: RSVN 0008053000-0008851FFF 8384512 ----- SmLower --29454:1:aspacem 14: 0008852000-00AFFFFFFF 2679m --29454:1:aspacem 15: FILE 00B0000000-00B000BFFF 49152 r-x-- d=0x01A i=37109595 o=0 (0) --29454:1:aspacem 16: file 00B000C000-00B000CFFF 4096 r-x-- d=0x01A i=37109595 o=49152 (0) --29454:1:aspacem 17: FILE 00B000D000-00B0128FFF 1163264 r-x-- d=0x01A i=37109595 o=53248 (0) --29454:1:aspacem 18: FILE 00B0129000-00B0129FFF 4096 rw--- d=0x01A i=37109595 o=1216512 (0) --29454:1:aspacem 19: ANON 00B012A000-00B0718FFF 6221824 rwx-- --29454:1:aspacem 20: 00B0719000-00FD7FEFFF 1232m --29454:1:aspacem 21: RSVN 00FD7FF000-00FDFFDFFF 8384512 ----- SmUpper --29454:1:aspacem 22: anon 00FDFFE000-00FDFFEFFF 4096 rwx-- --29454:1:aspacem 23: 00FDFFF000-00FEFFDFFF 15m --29454:1:aspacem 24: ANON 00FEFFE000-00FEFFFFFF 8192 rwx-- --29454:1:aspacem 25: RSVN 00FF000000-00FFFFCFFF 15m ----- SmFixed --29454:1:aspacem 26: ANON 00FFFFD000-00FFFFDFFF 4096 ----- --29454:1:aspacem 27: RSVN 00FFFFE000-00FFFFFFFF 8192 ----- SmFixed --29454:1:aspacem >>> --29454:1:main --29454:1:main --29454:1:main Running thread 1 --29454:1:syswrap- entering VG_(main_thread_wrapper_NORETURN) --29454:1:aspacem allocated thread stack at 0x4316000 size 81920 --29454:1:syswrap- run_a_thread_NORETURN(tid=1): ML_(thread_wrapper) called --29454:1:core_os ML_(thread_wrapper)(tid=1): entry --29454:1:transtab allocate sector 0 --29454:1:mallocfr newSuperblock at 0x432A000 (pszB 65520) owner VALGRIND/ttaux --29454:1:signals extending a stack base 0xFDFFE000 down by 4096 --29454:1:core_os ML_(thread_wrapper)(tid=1): done --29454:1:syswrap- run_a_thread_NORETURN(tid=1): ML_(thread_wrapper) done --29454:1:syswrap- run_a_thread_NORETURN(tid=1): last one standing --29454:1:main entering VG_(shutdown_actions_NORETURN) --29454:1:core_os VG_(terminate_NORETURN)(tid=1) LOG of my valgrind run: ==28409== Memcheck, a memory error detector. ==28409== Copyright (C) 2002-2005, and GNU GPL'd, by Julian Seward et al. ==28409== Using LibVEX rev 1426, a library for dynamic binary translation. ==28409== Copyright (C) 2004-2005, and GNU GPL'd, by OpenWorks LLP. ==28409== Using valgrind-3.1.SVN, a dynamic binary instrumentation framework. ==28409== Copyright (C) 2000-2005, and GNU GPL'd, by Julian Seward et al. ==28409== --28409-- Valgrind library directory: /user/zach/ZZ/work/stow/valgrind/lib/valgrind --28409-- Command line --28409-- /user/zach/VAL/bin/gmain_exec --28409-- -so --28409-- val.tcl --28409-- -mode --28409-- b --28409-- Startup, with flags: --28409-- --tool=memcheck --28409-- --leak-check=full --28409-- -v --28409-- Contents of /proc/version: --28409-- 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 --28409-- Reading syms from /lib/ld-2.3.2.so (0x4100000) --28409-- Reading syms from /user/zach/VAL/bin/gmain_exec (0x8048000) --28409-- Reading syms from /user/zach/ZZ/work/stow/valgrind/lib/valgrind/memcheck (0xB0000000) --28409-- object doesn't have a dynamic symbol table --28409-- Reading suppressions file: /user/zach/ZZ/work/stow/valgrind/lib/valgrind/default.supp --28409-- Reading syms from /user/zach/ZZ/work/stow/valgrind/lib/valgrind/vgpreload_core.so (0x7ECA000) --28409-- Reading syms from /user/zach/ZZ/work/stow/valgrind/lib/valgrind/vgpreload_memcheck.so (0x7EDE000) --28409-- REDIR: 0x4111BB0 (index) redirected to 0x7EE1610 (index) --28409-- REDIR: 0x4111D50 (strlen) redirected to 0x7EE1890 (strlen) --28409-- 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) --28409-- object doesn't have a symbol table --28409-- Reading syms from /usr/X11R6/lib/libXext.so.6.4 (0x7F7D000) --28409-- object doesn't have a symbol table --28409-- Reading syms from /usr/X11R6/lib/libX11.so.6.2 (0xD034000) --28409-- object doesn't have a symbol table --28409-- Reading syms from /lib/libdl-2.3.2.so (0x7FC1000) --28409-- 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) --28409-- Reading syms from /usr/lib/libncurses.so.5.3 (0x7FFC000) --28409-- object doesn't have a symbol table --28409-- Reading syms from /tools/lib/linux/libreadline.so.4 (0xD1E4000) --28409-- Reading syms from /lib/tls/libpthread-0.34.so (0xD234000) --28409-- Reading syms from /project/OpenGL/linux/lib/libGL.so.1 (0xD266000) --28409-- object doesn't have a symbol table --28409-- Reading syms from /project/OpenGL/linux/lib/libGLU.so.1 (0xD2FD000) --28409-- object doesn't have a symbol table --28409-- 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) --28409-- Reading syms from /lib/tls/libm-2.3.2.so (0xD48C000) --28409-- Reading syms from /lib/tls/libc-2.3.2.so (0x42000000) --28409-- 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) --28409-- Reading syms from /usr/X11R6/lib/libXmu.so.6.2 (0xD4E4000) --28409-- object doesn't have a symbol table --28409-- Reading syms from /usr/X11R6/lib/libXrender.so.1.2.2 (0xD51E000) --28409-- object doesn't have a symbol table --28409-- Reading syms from /usr/X11R6/lib/libXrandr.so.2.0 (0xD54A000) --28409-- object doesn't have a symbol table --28409-- Reading syms from /usr/X11R6/lib/libXcursor.so.1.0 (0xD560000) --28409-- object doesn't have a symbol table --28409-- Reading syms from /usr/X11R6/lib/libXft.so.2.1.1 (0xD57B000) --28409-- object doesn't have a symbol table --28409-- Reading syms from /usr/lib/libfreetype.so.6.3.2 (0xD5B1000) --28409-- object doesn't have a symbol table --28409-- Reading syms from /usr/lib/libfontconfig.so.1.0 (0xD626000) --28409-- object doesn't have a symbol table --28409-- Reading syms from /usr/X11R6/lib/libSM.so.6.0 (0xD66F000) --28409-- object doesn't have a symbol table --28409-- Reading syms from /usr/X11R6/lib/libICE.so.6.3 (0xD69C000) --28409-- object doesn't have a symbol table --28409-- Reading syms from /usr/X11R6/lib/libXt.so.6.0 (0xD6D7000) --28409-- object doesn't have a symbol table --28409-- Reading syms from /usr/lib/libexpat.so.0.4.0 (0xD74D000) --28409-- object doesn't have a symbol table ==28409== Jump to the invalid address stated on the next line ==28409== at 0xFFFFD400: ??? ==28409== by 0xD237C0A: (within /lib/tls/libpthread-0.34.so) ==28409== by 0xD23790A: (within /lib/tls/libpthread-0.34.so) ==28409== by 0x410CC21: _dl_init (in /lib/ld-2.3.2.so) ==28409== by 0x4100C5C: (within /lib/ld-2.3.2.so) ==28409== Address 0xFFFFD400 is not stack'd, malloc'd or (recently) free'd ==28409== ==28409== Process terminating with default action of signal 11 (SIGSEGV) ==28409== Bad permissions for mapped region at address 0xFFFFD400 ==28409== at 0xFFFFD400: ??? ==28409== by 0xD237C0A: (within /lib/tls/libpthread-0.34.so) ==28409== by 0xD23790A: (within /lib/tls/libpthread-0.34.so) ==28409== by 0x410CC21: _dl_init (in /lib/ld-2.3.2.so) ==28409== by 0x4100C5C: (within /lib/ld-2.3.2.so) ==28409== ==28409== Jump to the invalid address stated on the next line ==28409== at 0xFFFFD400: ??? ==28409== by 0x42115B88: __libc_freeres (in /lib/tls/libc-2.3.2.so) ==28409== by 0x7ECA8C1: _vgw_freeres (vg_preloaded.c:62) ==28409== by 0xD237CEF: __pthread_initialize_minimal (in /lib/tls/libpthread-0.34.so) ==28409== by 0xD237C0A: (within /lib/tls/libpthread-0.34.so) ==28409== by 0xD23790A: (within /lib/tls/libpthread-0.34.so) ==28409== by 0x410CC21: _dl_init (in /lib/ld-2.3.2.so) ==28409== by 0x4100C5C: (within /lib/ld-2.3.2.so) ==28409== Address 0xFFFFD400 is not stack'd, malloc'd or (recently) free'd ==28409== ==28409== Process terminating with default action of signal 11 (SIGSEGV) ==28409== Bad permissions for mapped region at address 0xFFFFD400 ==28409== at 0xFFFFD400: ??? ==28409== by 0x42115B88: __libc_freeres (in /lib/tls/libc-2.3.2.so) ==28409== by 0x7ECA8C1: _vgw_freeres (vg_preloaded.c:62) ==28409== by 0xD237CEF: __pthread_initialize_minimal (in /lib/tls/libpthread-0.34.so) ==28409== by 0xD237C0A: (within /lib/tls/libpthread-0.34.so) ==28409== by 0xD23790A: (within /lib/tls/libpthread-0.34.so) ==28409== by 0x410CC21: _dl_init (in /lib/ld-2.3.2.so) ==28409== by 0x4100C5C: (within /lib/ld-2.3.2.so) ==28409== ==28409== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 59 from 1) ==28409== ==28409== 1 errors in context 1 of 2: ==28409== Jump to the invalid address stated on the next line ==28409== at 0xFFFFD400: ??? ==28409== by 0x42115B88: __libc_freeres (in /lib/tls/libc-2.3.2.so) ==28409== by 0x7ECA8C1: _vgw_freeres (vg_preloaded.c:62) ==28409== by 0xD237CEF: __pthread_initialize_minimal (in /lib/tls/libpthread-0.34.so) ==28409== by 0xD237C0A: (within /lib/tls/libpthread-0.34.so) ==28409== by 0xD23790A: (within /lib/tls/libpthread-0.34.so) ==28409== by 0x410CC21: _dl_init (in /lib/ld-2.3.2.so) ==28409== by 0x4100C5C: (within /lib/ld-2.3.2.so) ==28409== Address 0xFFFFD400 is not stack'd, malloc'd or (recently) free'd ==28409== ==28409== 1 errors in context 2 of 2: ==28409== Jump to the invalid address stated on the next line ==28409== at 0xFFFFD400: ??? ==28409== by 0xD237C0A: (within /lib/tls/libpthread-0.34.so) ==28409== by 0xD23790A: (within /lib/tls/libpthread-0.34.so) ==28409== by 0x410CC21: _dl_init (in /lib/ld-2.3.2.so) ==28409== by 0x4100C5C: (within /lib/ld-2.3.2.so) ==28409== Address 0xFFFFD400 is not stack'd, malloc'd or (recently) free'd --28409-- --28409-- supp: 59 Ugly strchr error in /lib/ld-2.3.2.so ==28409== ==28409== IN SUMMARY: 2 errors from 2 contexts (suppressed: 59 from 1) ==28409== ==28409== malloc/free: in use at exit: 0 bytes in 0 blocks. ==28409== malloc/free: 0 allocs, 0 frees, 0 bytes allocated. ==28409== ==28409== No malloc'd blocks -- no leaks are possible. --28409-- memcheck: sanity checks: 56 cheap, 3 expensive --28409-- memcheck: auxmaps: 0 auxmap entries (0k, 0M) in use --28409-- memcheck: auxmaps: 0 searches, 0 comparisons --28409-- memcheck: secondaries: 69 issued (4416k, 4M) --28409-- memcheck: secondaries: 909 accessible and distinguished (58176k, 56M) --28409-- tt/tc: 3,036 tt lookups requiring 3,050 probes --28409-- tt/tc: 3,034 fast-cache updates, 5 flushes --28409-- translate: new 1,315 (29,093 -> 459,964; ratio 158:10) [0 scs] --28409-- translate: dumped 0 (0 -> ??) --28409-- translate: discarded 18 (363 -> ??) --28409-- scheduler: 2,804,911 jumps (bb entries). --28409-- scheduler: 56/2,130 major/minor sched events. --28409-- sanity: 57 cheap, 3 expensive checks. --28409-- exectx: 30,011 lists, 7 contexts (avg 0 per list) --28409-- exectx: 61 searches, 54 full compares (885 per 1000) --28409-- exectx: 0 cmp2, 119 cmp4, 0 cmpAll |
|
From: Tom H. <to...@co...> - 2005-11-01 00:07:27
|
In message <436...@si...>
Zachary Deretsky <za...@si...> wrote:
> I checked out the source version 1426 and built it.
> In the Makefile I had to replace the lines around
> svnversion -n . >> priv/main/vex_svnversion.h
> with
> echo -n "\"1426\"" > priv/main/vex_svnversion.h
>
> because there is no "svnversion" command on my machine.
Hmm... There should be if you have subversion installed.
> --29454:1:debuglog DebugLog system started by Stage 1, level 2 logging requested
> --29454:1:launcher tool 'none' requested
> --29454:1:launcher launching /user/zach/ZZ/work/stow/valgrind/lib/valgrind/none
> --29454:1:debuglog DebugLog system started by Stage 2 (main), level 2 logging requested
> --29454:1:main Welcome to Valgrind version 3.1.SVN debug logging
[ snipped ]
> --29454:1:main Running thread 1
> --29454:1:syswrap- entering VG_(main_thread_wrapper_NORETURN)
> --29454:1:aspacem allocated thread stack at 0x4316000 size 81920
> --29454:1:syswrap- run_a_thread_NORETURN(tid=1): ML_(thread_wrapper) called
> --29454:1:core_os ML_(thread_wrapper)(tid=1): entry
> --29454:1:transtab allocate sector 0
> --29454:1:mallocfr newSuperblock at 0x432A000 (pszB 65520) owner VALGRIND/ttaux
> --29454:1:signals extending a stack base 0xFDFFE000 down by 4096
> --29454:1:core_os ML_(thread_wrapper)(tid=1): done
> --29454:1:syswrap- run_a_thread_NORETURN(tid=1): ML_(thread_wrapper) done
> --29454:1:syswrap- run_a_thread_NORETURN(tid=1): last one standing
> --29454:1:main entering VG_(shutdown_actions_NORETURN)
> --29454:1:core_os VG_(terminate_NORETURN)(tid=1)
This looks like a successful run - what did you think it was showing?
> LOG of my valgrind run:
>
> ==28409== Memcheck, a memory error detector.
> ==28409== Copyright (C) 2002-2005, and GNU GPL'd, by Julian Seward et al.
> ==28409== Using LibVEX rev 1426, a library for dynamic binary translation.
> ==28409== Copyright (C) 2004-2005, and GNU GPL'd, by OpenWorks LLP.
> ==28409== Using valgrind-3.1.SVN, a dynamic binary instrumentation framework.
> ==28409== Copyright (C) 2000-2005, and GNU GPL'd, by Julian Seward et al.
> ==28409==
> --28409-- Valgrind library directory: /user/zach/ZZ/work/stow/valgrind/lib/valgrind
[ snipped ]
> ==28409== Jump to the invalid address stated on the next line
> ==28409== at 0xFFFFD400: ???
> ==28409== by 0xD237C0A: (within /lib/tls/libpthread-0.34.so)
> ==28409== by 0xD23790A: (within /lib/tls/libpthread-0.34.so)
> ==28409== by 0x410CC21: _dl_init (in /lib/ld-2.3.2.so)
> ==28409== by 0x4100C5C: (within /lib/ld-2.3.2.so)
> ==28409== Address 0xFFFFD400 is not stack'd, malloc'd or (recently) free'd
This is your program doing something bad....
> ==28409== Process terminating with default action of signal 11 (SIGSEGV)
> ==28409== Bad permissions for mapped region at address 0xFFFFD400
> ==28409== at 0xFFFFD400: ???
> ==28409== by 0xD237C0A: (within /lib/tls/libpthread-0.34.so)
> ==28409== by 0xD23790A: (within /lib/tls/libpthread-0.34.so)
> ==28409== by 0x410CC21: _dl_init (in /lib/ld-2.3.2.so)
> ==28409== by 0x4100C5C: (within /lib/ld-2.3.2.so)
...and then dying.
> ==28409== Jump to the invalid address stated on the next line
> ==28409== at 0xFFFFD400: ???
> ==28409== by 0x42115B88: __libc_freeres (in /lib/tls/libc-2.3.2.so)
> ==28409== by 0x7ECA8C1: _vgw_freeres (vg_preloaded.c:62)
> ==28409== by 0xD237CEF: __pthread_initialize_minimal (in /lib/tls/libpthread-0.34.so)
> ==28409== by 0xD237C0A: (within /lib/tls/libpthread-0.34.so)
> ==28409== by 0xD23790A: (within /lib/tls/libpthread-0.34.so)
> ==28409== by 0x410CC21: _dl_init (in /lib/ld-2.3.2.so)
> ==28409== by 0x4100C5C: (within /lib/ld-2.3.2.so)
> ==28409== Address 0xFFFFD400 is not stack'd, malloc'd or (recently) free'd
> ==28409==
> ==28409== Process terminating with default action of signal 11 (SIGSEGV)
> ==28409== Bad permissions for mapped region at address 0xFFFFD400
> ==28409== at 0xFFFFD400: ???
> ==28409== by 0x42115B88: __libc_freeres (in /lib/tls/libc-2.3.2.so)
> ==28409== by 0x7ECA8C1: _vgw_freeres (vg_preloaded.c:62)
> ==28409== by 0xD237CEF: __pthread_initialize_minimal (in /lib/tls/libpthread-0.34.so)
> ==28409== by 0xD237C0A: (within /lib/tls/libpthread-0.34.so)
> ==28409== by 0xD23790A: (within /lib/tls/libpthread-0.34.so)
> ==28409== by 0x410CC21: _dl_init (in /lib/ld-2.3.2.so)
> ==28409== by 0x4100C5C: (within /lib/ld-2.3.2.so)
This is FAQ 3.1 biting you I suspect.
Tom
--
Tom Hughes (to...@co...)
http://www.compton.nu/
|
|
From: Zachary D. <za...@si...> - 2005-11-01 01:11:24
|
>This looks like a successful run - what did you think it was showing? > > > > I do not know how to interpret it, but 'valgrind -d -d --tool=none date' terminates with seg fault. ==31863== ==31863== Process terminating with default action of signal 11 (SIGSEGV) ==31863== Bad permissions for mapped region at address 0xFFFFD400 ==31863== at 0xFFFFD400: ??? ==31863== by 0x4371C0A: (within /lib/tls/libpthread-0.34.so) ==31863== by 0x437190A: (within /lib/tls/libpthread-0.34.so) ==31863== by 0x410CC21: _dl_init (in /lib/ld-2.3.2.so) ==31863== by 0x4100C5C: (within /lib/ld-2.3.2.so) --31863:1:core_os ML_(thread_wrapper)(tid=1): done --31863:1:syswrap- run_a_thread_NORETURN(tid=1): ML_(thread_wrapper) done --31863:1:syswrap- run_a_thread_NORETURN(tid=1): last one standing --31863:1:main entering VG_(shutdown_actions_NORETURN) ==31863== --31863:1:core_os VG_(terminate_NORETURN)(tid=1) Segmentation fault >This is your program doing something bad.... > > > The same executable runs under valgrind 3.0.1 until the virtual image size (VIRT reported by 'top') reaches 2gig (on opt64) > >This is FAQ 3.1 biting you I suspect. > >Tom > > > I get the same result with "--run-libc-freeres=no" : ==31844== Memcheck, a memory error detector. ==31844== Copyright (C) 2002-2005, and GNU GPL'd, by Julian Seward et al. ==31844== Using LibVEX rev 1426, a library for dynamic binary translation. ==31844== Copyright (C) 2004-2005, and GNU GPL'd, by OpenWorks LLP. ==31844== Using valgrind-3.1.SVN, a dynamic binary instrumentation framework. ==31844== Copyright (C) 2000-2005, and GNU GPL'd, by Julian Seward et al. ==31844== --31844-- Valgrind library directory: /user/zach/ZZ/work/stow/valgrind/lib/valgrind --31844-- Command line --31844-- /user/zach/VAL/bin/gmain_exec --31844-- -so --31844-- val.tcl --31844-- -mode --31844-- b --31844-- Startup, with flags: --31844-- --tool=memcheck --31844-- --leak-check=full --31844-- --run-libc-freeres=no --31844-- -v --31844-- Contents of /proc/version: --31844-- 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 --31844-- Reading syms from /lib/ld-2.3.2.so (0x4100000) --31844-- Reading syms from /user/zach/VAL/bin/gmain_exec (0x8048000) --31844-- Reading syms from /user/zach/ZZ/work/stow/valgrind/lib/valgrind/memcheck (0xB0000000) --31844-- object doesn't have a dynamic symbol table --31844-- Reading suppressions file: /user/zach/ZZ/work/stow/valgrind/lib/valgrind/default.supp --31844-- Reading syms from /user/zach/ZZ/work/stow/valgrind/lib/valgrind/vgpreload_core.so (0x7ECA000) --31844-- Reading syms from /user/zach/ZZ/work/stow/valgrind/lib/valgrind/vgpreload_memcheck.so (0x7EDE000) --31844-- REDIR: 0x4111BB0 (index) redirected to 0x7EE1610 (index) --31844-- REDIR: 0x4111D50 (strlen) redirected to 0x7EE1890 (strlen) --31844-- 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) --31844-- object doesn't have a symbol table --31844-- Reading syms from /usr/X11R6/lib/libXext.so.6.4 (0x7F7D000) --31844-- object doesn't have a symbol table --31844-- Reading syms from /usr/X11R6/lib/libX11.so.6.2 (0xD034000) --31844-- object doesn't have a symbol table --31844-- Reading syms from /lib/libdl-2.3.2.so (0x7FC1000) --31844-- 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) --31844-- Reading syms from /usr/lib/libncurses.so.5.3 (0x7FFC000) --31844-- object doesn't have a symbol table --31844-- Reading syms from /tools/lib/linux/libreadline.so.4 (0xD1E4000) --31844-- Reading syms from /lib/tls/libpthread-0.34.so (0xD234000) --31844-- Reading syms from /project/OpenGL/linux/lib/libGL.so.1 (0xD266000) --31844-- object doesn't have a symbol table --31844-- Reading syms from /project/OpenGL/linux/lib/libGLU.so.1 (0xD2FD000) --31844-- object doesn't have a symbol table --31844-- 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) --31844-- Reading syms from /lib/tls/libm-2.3.2.so (0xD48C000) --31844-- Reading syms from /lib/tls/libc-2.3.2.so (0x42000000) --31844-- 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) --31844-- Reading syms from /usr/X11R6/lib/libXmu.so.6.2 (0xD4E4000) --31844-- object doesn't have a symbol table --31844-- Reading syms from /usr/X11R6/lib/libXrender.so.1.2.2 (0xD51E000) --31844-- object doesn't have a symbol table --31844-- Reading syms from /usr/X11R6/lib/libXrandr.so.2.0 (0xD54A000) --31844-- object doesn't have a symbol table --31844-- Reading syms from /usr/X11R6/lib/libXcursor.so.1.0 (0xD560000) --31844-- object doesn't have a symbol table --31844-- Reading syms from /usr/X11R6/lib/libXft.so.2.1.1 (0xD57B000) --31844-- object doesn't have a symbol table --31844-- Reading syms from /usr/lib/libfreetype.so.6.3.2 (0xD5B1000) --31844-- object doesn't have a symbol table --31844-- Reading syms from /usr/lib/libfontconfig.so.1.0 (0xD626000) --31844-- object doesn't have a symbol table --31844-- Reading syms from /usr/X11R6/lib/libSM.so.6.0 (0xD66F000) --31844-- object doesn't have a symbol table --31844-- Reading syms from /usr/X11R6/lib/libICE.so.6.3 (0xD69C000) --31844-- object doesn't have a symbol table --31844-- Reading syms from /usr/X11R6/lib/libXt.so.6.0 (0xD6D7000) --31844-- object doesn't have a symbol table --31844-- Reading syms from /usr/lib/libexpat.so.0.4.0 (0xD74D000) --31844-- object doesn't have a symbol table ==31844== Jump to the invalid address stated on the next line ==31844== at 0xFFFFD400: ??? ==31844== by 0xD237C0A: (within /lib/tls/libpthread-0.34.so) ==31844== by 0xD23790A: (within /lib/tls/libpthread-0.34.so) ==31844== by 0x410CC21: _dl_init (in /lib/ld-2.3.2.so) ==31844== by 0x4100C5C: (within /lib/ld-2.3.2.so) ==31844== Address 0xFFFFD400 is not stack'd, malloc'd or (recently) free'd ==31844== ==31844== Process terminating with default action of signal 11 (SIGSEGV) ==31844== Bad permissions for mapped region at address 0xFFFFD400 ==31844== at 0xFFFFD400: ??? ==31844== by 0xD237C0A: (within /lib/tls/libpthread-0.34.so) ==31844== by 0xD23790A: (within /lib/tls/libpthread-0.34.so) ==31844== by 0x410CC21: _dl_init (in /lib/ld-2.3.2.so) ==31844== by 0x4100C5C: (within /lib/ld-2.3.2.so) ==31844== ==31844== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 59 from 1) ==31844== ==31844== 1 errors in context 1 of 1: ==31844== Jump to the invalid address stated on the next line ==31844== at 0xFFFFD400: ??? ==31844== by 0xD237C0A: (within /lib/tls/libpthread-0.34.so) ==31844== by 0xD23790A: (within /lib/tls/libpthread-0.34.so) ==31844== by 0x410CC21: _dl_init (in /lib/ld-2.3.2.so) ==31844== by 0x4100C5C: (within /lib/ld-2.3.2.so) ==31844== Address 0xFFFFD400 is not stack'd, malloc'd or (recently) free'd --31844-- --31844-- supp: 59 Ugly strchr error in /lib/ld-2.3.2.so ==31844== ==31844== IN SUMMARY: 1 errors from 1 contexts (suppressed: 59 from 1) ==31844== ==31844== malloc/free: in use at exit: 0 bytes in 0 blocks. ==31844== malloc/free: 0 allocs, 0 frees, 0 bytes allocated. ==31844== ==31844== No malloc'd blocks -- no leaks are possible. --31844-- memcheck: sanity checks: 56 cheap, 3 expensive --31844-- memcheck: auxmaps: 0 auxmap entries (0k, 0M) in use --31844-- memcheck: auxmaps: 0 searches, 0 comparisons --31844-- memcheck: secondaries: 69 issued (4416k, 4M) --31844-- memcheck: secondaries: 909 accessible and distinguished (58176k, 56M) --31844-- tt/tc: 2,905 tt lookups requiring 2,919 probes --31844-- tt/tc: 2,904 fast-cache updates, 5 flushes --31844-- translate: new 1,250 (27,952 -> 441,109; ratio 157:10) [0 scs] --31844-- translate: dumped 0 (0 -> ??) --31844-- translate: discarded 18 (363 -> ??) --31844-- scheduler: 2,804,273 jumps (bb entries). --31844-- scheduler: 56/2,064 major/minor sched events. --31844-- sanity: 57 cheap, 3 expensive checks. --31844-- exectx: 30,011 lists, 6 contexts (avg 0 per list) --31844-- exectx: 60 searches, 54 full compares (900 per 1000) --31844-- exectx: 0 cmp2, 118 cmp4, 0 cmpAll --------------------------------------------------------------------------------------------------------------- I do not think my program started to execute for this run. These lines did not show up in the 1426 log: Sierra Pinnacle (Running on o4rd1 64bits mode) Version config_spec_01 (Build 1.8393 Fri Oct 28 12:55:19 PDT 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' Below is the head of the log file for valgrind 3.0.1 for comparison: ==21246== Memcheck, a memory error detector. ==21246== Copyright (C) 2002-2005, and GNU GPL'd, by Julian Seward et al. ==21246== Using LibVEX rev 1367, a library for dynamic binary translation. ==21246== Copyright (C) 2004-2005, and GNU GPL'd, by OpenWorks LLP. ==21246== Using valgrind-3.0.1, a dynamic binary instrumentation framework. ==21246== Copyright (C) 2000-2005, and GNU GPL'd, by Julian Seward et al. --21246-- Valgrind library directory: /project/tools/linux_x86_64_2.3.2-2005-09-01-15.02.19/stow/valgrind-3.0.1/lib/valgrind --21246-- Command line --21246-- /user/zach/VAL64/bin/gmain_exec --21246-- -so --21246-- val.tcl --21246-- -mode --21246-- b --21246-- Startup, with flags: --21246-- --tool=memcheck --21246-- --leak-check=full --21246-- -v --21246-- Contents of /proc/version: --21246-- Linux version 2.6.11 (root@o4rd1) (gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-42)) #3 SMP Fri Sep 2 15:11:46 PDT 2005 --21246-- Reading syms from /user/zach/VAL64/bin/gmain_exec (0x400000) ==21246== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --21246-- Reading syms from /lib64/ld-2.3.2.so (0x11900000) --21246-- Reading syms from /project/tools/linux_x86_64_2.3.2-2005-09-01-15.02.19/stow/valgrind-3.0.1/lib/valgrind/stage2 (0x70000000) ==21246== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --21246-- Reading suppressions file: /project/tools/linux_x86_64_2.3.2-2005-09-01-15.02.19/stow/valgrind-3.0.1/lib/valgrind/default.supp ==21246== --21246-- Reading syms from /project/tools/linux_x86_64_2.3.2-2005-09-01-15.02.19/stow/valgrind-3.0.1/lib/valgrind/vg_preload_core.so (0x11A17000) ==21246== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --21246-- Reading syms from /project/tools/linux_x86_64_2.3.2-2005-09-01-15.02.19/stow/valgrind-3.0.1/lib/valgrind/vgpreload_memcheck.so (0x11B1A000) ==21246== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --21246-- REDIR: 0x1190FFE0 (index) redirected to 0x11B1DBE0 (index) --21246-- REDIR: 0x11910190 (strcmp) redirected to 0x11B1E090 (strcmp) --21246-- REDIR: 0x119101C0 (strlen) redirected to 0x11B1DE20 (strlen) --21246-- Reading syms from /project/tools/linux_x86_64_2.3.2-2005-09-01-15.02.19/stow/qt-x11-commercial-3.3.3/lib/libqt-mt.so.3.3.3 (0x11C20000) --21246-- object doesn't have a symbol table ==21246== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --21246-- Reading syms from /project/X11/linux64-amd/lib/libXext.so.6 (0x1265A000) --21246-- object doesn't have a symbol table ==21246== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --21246-- Reading syms from /project/X11/linux64-amd/lib/libX11.so.6 (0x1276C000) --21246-- object doesn't have a symbol table ==21246== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --21246-- Reading syms from /lib64/libdl-2.3.2.so (0x12970000) ==21246== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --21246-- Reading syms from /project/tools/linux_x86_64_2.3.2-2005-09-01-15.02.19/stow/tcl8.4.11/lib/libtcl8.4.so (0x12A73000) ==21246== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --21246-- Reading syms from /usr/lib64/libncurses.so.5.3 (0x12C31000) ==21246== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --21246-- Reading syms from /usr/lib64/libreadline.so.4.3 (0x12D8B000) --21246-- object doesn't have a symbol table ==21246== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --21246-- Reading syms from /lib64/tls/libpthread-0.60.so (0x12EC3000) --21246-- Reading syms from /project/OpenGL/linux64-amd/lib/libGL.so.1 (0x12FD8000) --21246-- object doesn't have a symbol table ==21246== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --21246-- Reading syms from /project/OpenGL/linux64-amd/lib/libGLU.so.1 (0x13161000) --21246-- object doesn't have a symbol table ==21246== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --21246-- Reading syms from /usr/lib64/libstdc++.so.5.0.3 (0x132E4000) --21246-- object doesn't have a symbol table ==21246== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --21246-- Reading syms from /lib64/tls/libm-2.3.2.so (0x134BC000) ==21246== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --21246-- Reading syms from /lib64/tls/libc-2.3.2.so (0x13644000) --21246-- Reading syms from /lib64/libgcc_s-3.2.3-20040701.so.1 (0x13888000) --21246-- object doesn't have a symbol table ==21246== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --21246-- Reading syms from /project/X11/linux64-amd/lib/libXmu.so.6 (0x13994000) --21246-- object doesn't have a symbol table ==21246== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --21246-- Reading syms from /project/X11/linux64-amd/lib/libXrender.so.1 (0x13AAD000) --21246-- object doesn't have a symbol table ==21246== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --21246-- Reading syms from /project/X11/linux64-amd/lib/libXrandr.so.2 (0x13BB5000) --21246-- object doesn't have a symbol table ==21246== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --21246-- Reading syms from /project/X11/linux64-amd/lib/libXcursor.so.1 (0x13CB9000) --21246-- object doesn't have a symbol table ==21246== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --21246-- Reading syms from /project/X11/linux64-amd/lib/libXft.so.2 (0x13DC3000) --21246-- object doesn't have a symbol table ==21246== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --21246-- Reading syms from /usr/lib64/libfreetype.so.6.3.3 (0x13ED7000) ==21246== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --21246-- Reading syms from /usr/lib64/libfontconfig.so.1.0.4 (0x14038000) --21246-- object doesn't have a symbol table ==21246== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --21246-- Reading syms from /project/X11/linux64-amd/lib/libSM.so.6 (0x1416C000) --21246-- object doesn't have a symbol table ==21246== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --21246-- Reading syms from /project/X11/linux64-amd/lib/libICE.so.6 (0x14276000) --21246-- object doesn't have a symbol table ==21246== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --21246-- Reading syms from /usr/lib64/libgpm.so.1.18.0 (0x14390000) --21246-- object doesn't have a symbol table ==21246== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --21246-- Reading syms from /project/X11/linux64-amd/lib/libXt.so.6 (0x14496000) --21246-- object doesn't have a symbol table ==21246== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --21246-- Reading syms from /usr/lib64/libexpat.so.0.4.0 (0x145F8000) --21246-- object doesn't have a symbol table ==21246== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --21246-- Reading syms from /usr/lib64/libz.so.1.1.4 (0x1471A000) --21246-- object doesn't have a symbol table ==21246== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --21246-- REDIR: 0x136C38E0 (memset) redirected to 0x11B1E520 (memset) --21246-- REDIR: 0x136C2060 (rindex) redirected to 0x11B1DB00 (rindex) --21246-- REDIR: 0x136C15C0 (strcpy) redirected to 0x11B1DE40 (strcpy) --21246-- REDIR: 0x1337E640 (operator new(unsigned long)) redirected to 0x11B1C4B8 (operator new(unsigned long)) --21246-- REDIR: 0x1337E780 (operator new[](unsigned long)) redirected to 0x11B1C916 (operator new[](unsigned long)) --21246-- REDIR: 0x136C1CC0 (strlen) redirected to 0x11B1DDE0 (strlen) --21246-- REDIR: 0x136BA140 (malloc) redirected to 0x11B1C0FF (malloc) --21246-- REDIR: 0x136C4120 (memcpy) redirected to 0x11B1E0F0 (memcpy) --21246-- REDIR: 0x136C3780 (memmove) redirected to 0x11B1E550 (memmove) --21246-- REDIR: 0x136BA310 (free) redirected to 0x11B1CC71 (free) --21246-- REDIR: 0x136C1F20 (strncmp) redirected to 0x11B1E010 (strncmp) --21246-- REDIR: 0x1337D1F0 (operator delete[](void*)) redirected to 0x11B1D23E (operator delete[](void*)) --21246-- REDIR: 0x1337D1B0 (operator delete(void*)) redirected to 0x11B1CF14 (operator delete(void*)) --21246-- REDIR: 0x136C0800 (index) redirected to 0x11B1DBA0 (index) --21246-- REDIR: 0x136BA3B0 (realloc) redirected to 0x11B1D509 (realloc) --21246-- REDIR: 0xFFFFFFFFFF600400 (???) redirected to 0x700288F5 (???) --21246-- REDIR: 0x136C09B0 (strcmp) redirected to 0x11B1E060 (strcmp) --21246-- REDIR: 0xFFFFFFFFFF600000 (???) redirected to 0x700288EB (???) --21246-- REDIR: 0x136C3140 (memchr) redirected to 0x11B1E0C0 (memchr) Requesting size 29 Requesting size 29 Requesting size 29 Requesting size 29 Requesting size 29 Requesting size 29 Requesting size 29 Requesting size 29 Requesting size 29 Requesting size 29 Requesting size 29 Requesting size 29 Requesting size 29 Requesting size 29 Requesting size 29 Requesting size 29 --21246-- REDIR: 0x136BA8A0 (calloc) redirected to 0x11B1D45A (calloc) --21246-- REDIR: 0x136C1FC0 (strncpy) redirected to 0x11B1DF00 (strncpy) --21246-- REDIR: 0x136C4CC0 (strchrnul) redirected to 0x11B1E5A0 (strchrnul) --21246-- REDIR: 0x136C3D00 (stpcpy) redirected to 0x11B1E2E0 (stpcpy) --21246-- Reading syms from /lib64/libnss_files-2.3.2.so (0x1533C000) ==21246== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --21246-- REDIR: 0x136C4BF0 (rawmemchr) redirected to 0x11B1E5C0 (rawmemchr) --21246-- REDIR: 0x136C0640 (strcat) redirected to 0x11B1DC00 (strcat) --21246-- REDIR: 0x136C1E90 (strncat) redirected to 0x11B1DCD0 (strncat) --21246-- REDIR: 0x136C1DB0 (strnlen) redirected to 0x11B1DDB0 (strnlen) --21246-- Reading syms from /usr/X11R6/lib/X11/locale/lib64/common/xlcDef.so.2 (0x15548000) --21246-- object doesn't have a symbol table ==21246== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --21246-- Reading syms from /usr/X11R6/lib/X11/locale/lib64/common/xlcUTF8Load.so.2 (0x174F4000) --21246-- object doesn't have a symbol table ==21246== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --21246-- Reading syms from /usr/X11R6/lib/X11/locale/lib64/common/ximcp.so.2 (0x175F5000) --21246-- object doesn't have a symbol table ==21246== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --21246-- Reading syms from /lib64/libnss_nis-2.3.2.so (0x17D27000) ==21246== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --21246-- Reading syms from /lib64/libnsl-2.3.2.so (0x17E31000) ==21246== Warning: zero-sized CIE/FDE but not at section end in DWARF2 CFI reading --21246-- REDIR: 0x136C3280 (bcmp) redirected to 0x11B1E2A0 (bcmp) Sierra Pinnacle (Running on o4rd1 64bits mode) Version config_spec_01 (Build 1.8393 Fri Oct 28 12:55:19 PDT 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' Requesting size 29 Requesting size 53 Requesting size 97 Requesting size 193 .... Thank you, Zach. |
|
From: Tom H. <to...@co...> - 2005-11-01 09:51:44
|
In message <436...@si...>
Zachary Deretsky <za...@si...> wrote:
>>This looks like a successful run - what did you think it was showing?
>
> I do not know how to interpret it, but 'valgrind -d -d --tool=none date'
> terminates with seg fault.
>
>
> ==31863==
> ==31863== Process terminating with default action of signal 11 (SIGSEGV)
> ==31863== Bad permissions for mapped region at address 0xFFFFD400
> ==31863== at 0xFFFFD400: ???
> ==31863== by 0x4371C0A: (within /lib/tls/libpthread-0.34.so)
> ==31863== by 0x437190A: (within /lib/tls/libpthread-0.34.so)
> ==31863== by 0x410CC21: _dl_init (in /lib/ld-2.3.2.so)
> ==31863== by 0x4100C5C: (within /lib/ld-2.3.2.so)
> --31863:1:core_os ML_(thread_wrapper)(tid=1): done
> --31863:1:syswrap- run_a_thread_NORETURN(tid=1): ML_(thread_wrapper) done
> --31863:1:syswrap- run_a_thread_NORETURN(tid=1): last one standing
> --31863:1:main entering VG_(shutdown_actions_NORETURN)
> ==31863==
> --31863:1:core_os VG_(terminate_NORETURN)(tid=1)
> Segmentation fault
The question is why is libpthread calling that strange address - that
is a very odd address to have code at.
>>This is your program doing something bad....
>
> The same executable runs under valgrind 3.0.1 until the virtual image
> size (VIRT reported by 'top') reaches 2gig (on opt64)
So this is a 64 bit machine? But it looks like you are running 32 bit
programs on it? So how did you build the 32 bit valgrind?
> I get the same result with "--run-libc-freeres=no" :
No you don't - the freeres errors are gone. That said having looked at
the previous log again the freeres errors look related to the other
error so it may not be the FAQ issue.
> ==31844== Jump to the invalid address stated on the next line
> ==31844== at 0xFFFFD400: ???
> ==31844== by 0xD237C0A: (within /lib/tls/libpthread-0.34.so)
> ==31844== by 0xD23790A: (within /lib/tls/libpthread-0.34.so)
> ==31844== by 0x410CC21: _dl_init (in /lib/ld-2.3.2.so)
> ==31844== by 0x4100C5C: (within /lib/ld-2.3.2.so)
> ==31844== Address 0xFFFFD400 is not stack'd, malloc'd or (recently) free'd
> ==31844==
> ==31844== Process terminating with default action of signal 11 (SIGSEGV)
> ==31844== Bad permissions for mapped region at address 0xFFFFD400
> ==31844== at 0xFFFFD400: ???
> ==31844== by 0xD237C0A: (within /lib/tls/libpthread-0.34.so)
> ==31844== by 0xD23790A: (within /lib/tls/libpthread-0.34.so)
> ==31844== by 0x410CC21: _dl_init (in /lib/ld-2.3.2.so)
> ==31844== by 0x4100C5C: (within /lib/ld-2.3.2.so)
So for some reason libpthread is jumping to an address that memcheck
considers invalid. Unfortunately you have no debug information on the
pthread library so it is hard to say more.
If this is a release (such as RedHat/Fedora) with debuginfo packages
available could you install the glibc debuginfo packages and try it
again?
> Below is the head of the log file for valgrind 3.0.1 for comparison:
This log seems to be for a 64 bit program though, not a 32 bit one?
It is generally better to compare like with like...
I think this is getting a bit complicated to handle here, and there is
clearly some sort of problem that we need to address before the release
of the new code so you could you open a bug for this please.
Thanks,
Tom
--
Tom Hughes (to...@co...)
http://www.compton.nu/
|
|
From: Zachary D. <za...@si...> - 2005-11-01 22:45:57
|
Tom Hughes wrote: > > >If this is a release (such as RedHat/Fedora) with debuginfo packages >available could you install the glibc debuginfo packages and try it >again? > > > Could you point me to the info where to look for debuginfo packages, how to install and use them? I did not get much from Google and I am afraid of touching the existing (sacred!) glibc. >This log seems to be for a 64 bit program though, not a 32 bit one? > >It is generally better to compare like with like... > >I think this is getting a bit complicated to handle here, and there is >clearly some sort of problem that we need to address before the release >of the new code so you could you open a bug for this please. > > > Sorry for not being crisp. I opened the bug 115496 and provided 2 logs for 32bits. I just built valgrind 1426 on 64bits and it passed the invalid address jump point and is running on my testcase now. Thanks, Zach. |
|
From: Igmar P. <mai...@jd...> - 2005-11-03 20:44:30
|
> > ==31863== Bad permissions for mapped region at address 0xFFFFD400
> > ==31863== at 0xFFFFD400: ???
> > ==31863== by 0x4371C0A: (within /lib/tls/libpthread-0.34.so)
> > ==31863== by 0x437190A: (within /lib/tls/libpthread-0.34.so)
> > ==31863== by 0x410CC21: _dl_init (in /lib/ld-2.3.2.so)
> > ==31863== by 0x4100C5C: (within /lib/ld-2.3.2.so)
>
> The question is why is libpthread calling that strange address - that
> is a very odd address to have code at.
sysenter / sysexit system calls is the only range that comes somewhat
close :
[igmar@jdi ~]$ ldd /bin/ls
linux-gate.so.1 => (0xffffe000)
Regards,
Igmar
|