https://bugs.kde.org/show_bug.cgi?id=373192
Bug ID: 373192 Summary: Calling posix_spawn completely broken Product: valgrind Version: 3.12.0 Platform: Compiled Sources OS: Linux Status: UNCONFIRMED Severity: normal Priority: NOR Component: general Assignee: jsew...@acm.org Reporter: megahal...@gmail.com Target Milestone: --- Executing the program below with valgrind 3.12 built from sources on Fedora 25 gives the following output: pid 21786 child 21787 r 0 pid 21787 child 83036382 r 0 Without valgrind: pid 21805 child 21806 r 0 <output from ls> Valgrind completely breaks the posix_spawn call by causing some kind of fork and also not executing the ls. #include <unistd.h> #include <spawn.h> #include <stdio.h> int main() { pid_t pid; char cmd[] = "ls"; char* arg[] = { cmd, NULL }; int r = posix_spawnp(&pid, cmd, NULL, NULL, arg, NULL); fprintf(stderr, "pid %d child %d r %d\n", getpid(), pid, r); } -- You are receiving this mail because: You are watching all bug changes.