https://bugs.kde.org/show_bug.cgi?id=386427
Bug ID: 386427 Summary: Valgrind unsupported clone on Android Product: valgrind Version: unspecified Platform: Android OS: Linux Status: UNCONFIRMED Severity: normal Priority: NOR Component: general Assignee: jsew...@acm.org Reporter: tamara.vlaho...@imgtec.com Target Milestone: --- When program crashes from one of following signals: SIGILL, SIGABRT, SIGBUS, SIGFPE, SIGSEGV,SIGSTKFLT, SIGPIPE, on Android, debuggerd handler is called to handle it. Inside that handler clone is called with following flags: CLONE_THREAD, CLONE_SIGHAND, CLONE_VM, CLONE_CHILD_SETTID, CLONE_CHILD_CLEARTID. When such program is run under Valgrind, Valgrind will report that such clone isn't supported, as Valgrind supports only NPTL clone, vfork and fork. To check for a clone kind Valgrind checks for VKI_CLONE_VM, VKI_CLONE_FS, CLONE_FILES, CLONE_VFORK flags. This allows for clone with set CLONE_VM, CLONE_FS, CLONE_FILES, and without set CLONE_THREAD, to pass as a clone which creates new thread, which isn't the case. On the other hand there is no problem in allowing program to clone a thread without CLONE_FS flag set. As for the missing CLONE_FILES, problem only occurs when Valgrind is run with --track-fds=yes option. Patch in next comment should fix this. -- You are receiving this mail because: You are watching all bug changes.