|
From: Philippe W. <phi...@sk...> - 2017-05-20 15:38:29
|
On Wed, 2017-05-17 at 22:18 +0200, Philippe Waroquiers wrote: After analysis, the below error (and I think also all of the others following) are a false positive. The reason: when running under memcheck, optimised functions such as index are replaced/redirected by valgrind own's equivalent, less optimised, to avoid errors being reported. When an inner tool does not replace index and equivalent, then the outer memcheck detects the false positive due to the inner guest program calling the optimised index. We could maybe avoid such errors, by having the inner tool detecting it is running under an outer memcheck, and then do similar redirection as the outer memcheck. Not too clear how to (easily) do that, so for the momemt, we will just have one more false positive for an outer memcheck. Philippe > ==13472== Conditional jump or move depends on uninitialised value(s) > ==13472== at 0xFE5E48D22: ??? > ==13472== by 0xFE4A60EBF: ??? > ==13472== by 0xFE18192FF: ??? > ==13472== by 0x400A9B6: _dl_new_object (dl-object.c:191) > ==13472== by 0x3808B90F: ??? (m_translate.c:752) > ==13472== by 0x100000000: ??? > ==13472== by 0xFE4A60EA7: ??? > ==13472== by 0xFE4A60EBF: ??? > ==13472== by 0xFE18192FF: ??? > ==13472== by 0x400A9B6: _dl_new_object (dl-object.c:191) > ==13472== by 0xF000155A5: ??? > ==13472== by 0x380D392E: thread_wrapper (syswrap-linux.c:103) > ==13472== by 0x380D392E: run_a_thread_NORETURN (syswrap-linux.c:156) > ==13472== by 0x58084350: _______VVVVVVVV_appended_inner_guest_stack_VVVVVVVV_______ (m_execontext.c:332) > ==13472== by 0x4017784: index (strchr.S:77) > ==13472== by 0x400AA79: _dl_new_object (dl-object.c:205) > ==13472== by 0x4005E43: _dl_map_object_from_fd (dl-load.c:1059) > ==13472== by 0x400805E: _dl_map_object (dl-load.c:2605) > ==13472== by 0x40129E4: dl_open_worker (dl-open.c:235) > ==13472== by 0x400E873: _dl_catch_error (dl-error.c:187) > ==13472== by 0x40123FA: _dl_open (dl-open.c:661) > ==13472== by 0x525502A: dlopen_doit (dlopen.c:66) > ==13472== by 0x400E873: _dl_catch_error (dl-error.c:187) > ==13472== by 0x52555DC: _dlerror_run (dlerror.c:163) > ==13472== by 0x52550C0: dlopen@@GLIBC_2.2.5 (dlopen.c:87) > ==13472== by 0x4007AF: main (dlopen_main.c:13) |