https://bugs.kde.org/show_bug.cgi?id=528740

--- Comment #4 from Paul Floyd <[email protected]> ---
For the errors like

==2330== Syscall param fstatat(fd) contains uninitialised byte(s) 
==2330==    at 0x499869A: ??? (in /lib/libc.so.7) 
==2330==    by 0x201C3E: main (stat.c:66)

That comes from the libc code

int 
fstatat(int fd, const char *path, struct stat *sb, int flag) 
{ 
        struct freebsd11_stat stat11; 
        int rv; 

        if (__getosreldate() >= INO64_FIRST) 
                return (__sys_fstatat(fd, path, sb, flag)); 
        rv = syscall(SYS_freebsd11_fstatat, fd, path, &stat11, flag); 
        if (rv == 0) 
                __stat11_to_stat(&stat11, sb); 
        return (rv); 
}

The libc function is directly calling __sys_fstatat which is not exposed hence
no symbol.

Most of the cases like this are ralated to the 64bit inode transition
./libc/sys/closefrom.c: if (__getosreldate() >= CLOSE_RANGE_OSREL)
./libc/sys/statfs.c:    if (__getosreldate() >= INO64_FIRST)
./libc/sys/lstat.c:     if (__getosreldate() >= INO64_FIRST)
./libc/sys/fstatat.c:   if (__getosreldate() >= INO64_FIRST)
./libc/sys/fstatfs.c:   if (__getosreldate() >= INO64_FIRST)
./libc/sys/fstat.c:     if (__getosreldate() >= INO64_FIRST)
./libc/sys/stat.c:      if (__getosreldate() >= INO64_FIRST)
./libc/sys/getfsstat.c: if (__getosreldate() >= INO64_FIRST)
./libc/sys/getdirentries.c:     if (__getosreldate() >= INO64_FIRST)

I'm probably not going to be able to test on any system with osreldate <
INO64_FIRST (which was something around 2017 or 2018, FreeBSD 12).

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to