https://bugs.kde.org/show_bug.cgi?id=486488
Bug ID: 486488 Summary: poor handling of invalid --log-fd Classification: Developer tools Product: valgrind Version: 3.24 GIT Platform: Other OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: jsew...@acm.org Reporter: o...@kde.org Target Milestone: --- > $ valgrind --log-fd=13 /bin/echo > ==3786620== Valgrind: failed to move log file descriptor into safe range, > using stderr > ==3786620== Memcheck, a memory error detector > [...] > ==3786620== Warning: invalid file descriptor 2 in syscall close() > ==3786620== Use --log-fd=<number> to select an alternative log fd. > [...] firstly, the error message is very unhelpful, as the root cause is that the source descriptor is invalid. secondly, the message should be separated with an empty line from the blurb below, as otherwise it's way too easy to overlook. lastly, these warning messages (there can be lots of them; the particular syscalls vary depending on the traced program) make no sense; apparently something doesn't get reset properly. -- You are receiving this mail because: You are watching all bug changes.