https://bugs.kde.org/show_bug.cgi?id=416239
Bug ID: 416239 Summary: valgrind crashes when handling clock_adjtime Product: valgrind Version: unspecified Platform: Other OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: jsew...@acm.org Reporter: ahajk...@redhat.com Target Milestone: --- Created attachment 125113 --> https://bugs.kde.org/attachment.cgi?id=125113&action=edit patch STEPS TO REPRODUCE 1. clone, compile and install linux test project (https://github.com/linux-test-project/ltp.git) 2. valgrind -q --trace-children=yes ~/ltp/testcases/kernel/syscalls/clock_adjtime/clock_adjtime02 OBSERVED RESULT --26535-- VALGRIND INTERNAL ERROR: Valgrind received a signal 11 (SIGSEGV) - exiting --26535-- si_code=2; Faulting address: 0x402B000; sp: 0x1002ca9d20 valgrind: the 'impossible' happened: Killed by fatal signal valgrind version: valgrind-3.15.0-9 The problem is caused by not checking whether valgrind can dereference timex pointer. Proposed patch fixes the issue and makes clock_adjtime02 pass without crashes. -- You are receiving this mail because: You are watching all bug changes.