[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#210861: libc6: readdir always returns dtype as unknown



On Sun, 2003-09-14 at 14:32, Philip Blundell wrote:
> On Sun, 2003-09-14 at 13:17, Jacob Kolding wrote:
> > I'm running ext2 on linux 2.2.20 but a friend of mine is running
> > reiserfs on 2.4.22 and have the same problem.
> 
> I'm not able to reproduce this problem on i386 with kernel 2.4.22 and
> libc6 2.3.2-7, on an ext3 filesystem.  Once I fixed the compilation
> error in your test program, it worked fine.
> 
> Please run the program under strace on your machine and send the output.
> 
> p.
> 
execve("./readdirtest", ["./readdirtest"], [/* 20 vars */]) = 0
uname({sys="Linux", node="debian", ...}) = 0
brk(0)                                  = 0x8049760
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40015000
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, 0xbffff390)                  = -1 ENOSYS (Function not implemented)
fstat(3, {st_mode=S_IFREG|0644, st_size=29017, ...}) = 0
old_mmap(NULL, 29017, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40016000
close(3)                                = 0
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0_\1\000"..., 512) = 512
fstat(3, {st_mode=S_IFREG|0755, st_size=1230864, ...}) = 0
old_mmap(NULL, 1236292, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4001e000
old_mmap(0x40145000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x127000) = 0x40145000
old_mmap(0x4014a000, 7492, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4014a000
close(3)                                = 0
munmap(0x40016000, 29017)               = 0
open("/dev/null", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = -1 ENOTDIR (Not a directory)
open(".", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 3
fstat64(3, 0xbffffc80)                  = -1 ENOSYS (Function not implemented)
fstat(3, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC)         = -1 ENOSYS (Function not implemented)
fcntl(3, F_SETFD, FD_CLOEXEC)           = 0
brk(0)                                  = 0x8049760
brk(0x806a760)                          = 0x806a760
brk(0)                                  = 0x806a760
brk(0x806b000)                          = 0x806b000
getdents64(3, 0x80497e0, 4096)          = -1 ENOSYS (Function not implemented)
getdents(3, /* 40 entries */, 3933)     = 888
fstat(1, {st_mode=S_IFREG|0644, st_size=1916, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40016000
getdents(3, /* 0 entries */, 3933)      = 0
write(1, "name: ., type: UNKNOWN\nname: ..,"..., 1268name: ., type: UNKNOWN
name: .., type: UNKNOWN
name: .viminfo, type: UNKNOWN
name: .ddd, type: UNKNOWN
name: .profile, type: UNKNOWN
name: .bashrc, type: UNKNOWN
name: dead.letter, type: UNKNOWN
name: .gstreamer, type: UNKNOWN
name: .gconfd, type: UNKNOWN
name: .xftcache, type: UNKNOWN
name: .bash_history, type: UNKNOWN
name: .xsession-errors, type: UNKNOWN
name: .gconf, type: UNKNOWN
name: .Xauthority, type: UNKNOWN
name: .gnome, type: UNKNOWN
name: .gnome2, type: UNKNOWN
name: .gnome2_private, type: UNKNOWN
name: .metacity, type: UNKNOWN
name: .nautilus, type: UNKNOWN
name: .ICEauthority, type: UNKNOWN
name: .gtkrc-1.2-gnome2, type: UNKNOWN
name: .gnome-desktop, type: UNKNOWN
name: .recently-used, type: UNKNOWN
name: discomatic.tar.bz2, type: UNKNOWN
name: Disc-O-Matic, type: UNKNOWN
name: .discomatic, type: UNKNOWN
name: GNUstep, type: UNKNOWN
name: .xinitrc, type: UNKNOWN
name: .themes, type: UNKNOWN
name: .icons, type: UNKNOWN
name: .emacs.d, type: UNKNOWN
name: dirtest, type: UNKNOWN
name: dirtest.cpp, type: UNKNOWN
name: dirtest.h, type: UNKNOWN
name: .reportbugrc, type: UNKNOWN
name: readdirtest.c, type: UNKNOWN
name: a.out, type: UNKNOWN
name: .mozilla, type: UNKNOWN
name: readdirtest, type: UNKNOWN
name: readdirtest.strace, type: UNKNOWN
) = 1268
munmap(0x40016000, 4096)                = 0
_exit(0)                                = ?

Reply to: