https://bugs.kde.org/show_bug.cgi?id=465435
Mark Wielaard <m...@klomp.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |m...@klomp.org --- Comment #11 from Mark Wielaard <m...@klomp.org> --- (In reply to Paul Floyd from comment #10) > (In reply to Corentin Noël from comment #9) > > > In this case it seems that I'm getting an error on file descriptor > > duplication so having a errno/errmsg would also help understanding it a bit. > > We can't provide anything from errno as we don't have it. Valgrind does not > link with libc and makes system calls like > > SysRes res = VG_(do_syscall3)(__NR_fcntl, fd, cmd, arg); > > directly itself. We cannot use errno (which is indeed a glibc concept), but we can extract the kernel error from the SysRes with something like: if (sr_isError (res)) VG_(umsg) ("fcntl error %lu %s\n", sr_Err(res), VG_(strerror) (sr_Err(res))); -- You are receiving this mail because: You are watching all bug changes.