This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/1200] New: Cannot stat files >2G , st_size member kernel_stat.h iz ulong int


gcc version 4.0.1 20050727 (Red Hat 4.0.1-5)
strace output from stat call: 	if(stat(fname.c_str(), &results) == 0) {....
stat64("/home/steverex/isofiles/news34.tar",{st_mode=S_IFREG|0664,st_size=3698647040,
...}) = 0
you got a 3.699GB file properly statted
(gdb) print results (print the user space structure returned from call)
$58 = {st_dev = 772, __pad1 = 0, st_ino = 8257539, st_mode = 33204, st_nlink =
1, st_uid = 500, st_gid = 500, st_rdev = 0, __pad2 = 0, st_size = -596320256, 
  st_blksize = 4096, st_blocks = 1370856, st_atim = {tv_sec = 1123814216,
tv_nsec = 0}, st_mtim = {tv_sec = 1123741947, tv_nsec = 0}, st_ctim = {tv_sec =
1123741947,  tv_nsec = 0}, __unused4 = 0, __unused5 = 0}
returned st_size is negative due to unsigned long restriction in kernel_stat.h 
return error is genn'd from xstat32_conv in xstatconv.c  
I looked for missing config/ifdefs etc.  I did trace glibc flow from (abbr):
xstat,i686.get_pc_thunk.bx,xstat,xstat32_conv,i686.get_pc_thunk.bx,xstat32conv,xstat,ret

-- 
           Summary: Cannot stat files >2G , st_size member kernel_stat.h iz
                    ulong int
           Product: glibc
           Version: 2.3.5
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: gotom at debian dot or dot jp
        ReportedBy: amplitude at cox dot net
                CC: amplitude at cox dot net,glibc-bugs at sources dot
                    redhat dot com
 GCC build triplet: gcc version 4.0.1, glibc 2.3.5, GNU ld version
                    2.15.94.0.2.2
  GCC host triplet: 2.6.12-1.1398_FC4 #1 i686 athlon i386 GNU/Linux
GCC target triplet: discomatic.sourceforge.net cvs dwnld and build


http://sources.redhat.com/bugzilla/show_bug.cgi?id=1200

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]