|
From: Mark W. <mj...@re...> - 2016-10-10 09:02:26
|
On Sun, 2016-10-09 at 20:27 +0000, sv...@va... wrote: > Author: philippe > Date: Sun Oct 9 21:27:48 2016 > New Revision: 16033 > > Log: > Fix some (small) leaks found by self-hosting valgrind > > Modified: > trunk/coregrind/m_initimg/initimg-darwin.c > trunk/coregrind/m_initimg/initimg-linux.c > trunk/coregrind/m_initimg/initimg-solaris.c > trunk/coregrind/m_redir.c This caused none/tests/require-text-symbol-1.vgtest to fail for me. Run by hand (the --require-text-symbol=... argument is required for triggering the assert): $ ../../vg-in-place --tool=none -q --require-text-symbol=:*libc.so*:strl?n ./require-text-symbol valgrind: m_mallocfree.c:303 (get_bszB_as_is): Assertion 'bszB_lo == bszB_hi' failed. valgrind: Heap block lo/hi size mismatch: lo = 480529, hi = 480593. This is probably caused by your program erroneously writing past the end of a heap block and corrupting heap metadata. If you fix any invalid writes reported by Memcheck, this assertion failure will probably go away. Please try that before reporting this as a bug. host stacktrace: ==20057== at 0x38099F18: show_sched_status_wrk (m_libcassert.c:343) ==20057== by 0x3809A044: report_and_quit (m_libcassert.c:419) ==20057== by 0x3809A1D1: vgPlain_assert_fail (m_libcassert.c:485) ==20057== by 0x3800E490: blockSane.isra.14 (m_mallocfree.c:301) ==20057== by 0x38010CD5: vgPlain_arena_free (m_mallocfree.c:2101) ==20057== by 0x3802356C: vgPlain_deleteXA (m_xarray.c:116) ==20057== by 0x3801419E: vgPlain_redir_notify_new_DebugInfo (m_redir.c:1825) ==20057== by 0x3802E817: vgPlain_di_notify_mmap (debuginfo.c:771) ==20057== by 0x38057E21: vgModuleLocal_generic_PRE_sys_mmap (syswrap-generic.c:2380) ==20057== by 0x3808B59A: vgSysWrap_amd64_linux_sys_mmap_before (syswrap-amd64-linux.c:637) ==20057== by 0x3805472F: vgPlain_client_syscall (syswrap-main.c:1906) ==20057== by 0x38051302: handle_syscall (scheduler.c:1118) ==20057== by 0x380528C6: vgPlain_scheduler (scheduler.c:1435) ==20057== by 0x38061D5A: run_a_thread_NORETURN (syswrap-linux.c:103) sched status: running_tid=1 Thread 1: status = VgTs_Runnable (lwpid 20057) ==20057== at 0x401882A: mmap (mmap.c:34) ==20057== by 0x400636A: _dl_map_object_from_fd (dl-load.c:1347) ==20057== by 0x4008257: _dl_map_object (dl-load.c:2397) ==20057== by 0x400C7D1: openaux (dl-deps.c:63) ==20057== by 0x400EFF3: _dl_catch_error (dl-error.c:177) ==20057== by 0x400CED1: _dl_map_object_deps (dl-deps.c:256) ==20057== by 0x4002FB1: dl_main (rtld.c:1727) ==20057== by 0x4016E35: _dl_sysdep_start (dl-sysdep.c:244) ==20057== by 0x4004A30: _dl_start (rtld.c:318) ==20057== by 0x40011E7: ??? (in /usr/lib64/ld-2.17.so) Note: see also the FAQ in the source distribution. It contains workarounds to several common problems. In particular, if Valgrind aborted or crashed after identifying problems in your program, there's a good chance that fixing those problems will prevent Valgrind aborting or crashing, especially if it happened in m_mallocfree.c. If that doesn't help, please report this bug to: www.valgrind.org In the bug report, send all the above text, the valgrind version, and what OS and version you are using. Thanks. |