[linux-cifs-client] recent regression in mainline CIFS code
Shirish Pargaonkar
shirishpargaonkar at gmail.com
Thu Apr 30 15:36:22 GMT 2009
On Wed, Apr 29, 2009 at 9:20 AM, Jeff Layton <jlayton at redhat.com> wrote:
> I've just started seeing a recent regression in the mainline cifs code
> when doing the general cthon04 tests. The small compile test does this:
>
> $ gcc -w -o stat stat.c -lm
> /usr/bin/ld: final link failed: Bad file descriptor
> collect2: ld returned 1 exit status
>
> Unix extensions are enabled here. I've not tested this w/o them yet.
> stracing shows this:
>
> 4866 open("stat", O_RDWR) = 13
> 4866 fcntl(13, F_GETFD) = 0
> 4866 fcntl(13, F_SETFD, FD_CLOEXEC) = 0
> 4866 fstat(13, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
> 4866 mmap(NULL, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd4e7075000
> 4866 lseek(13, 0, SEEK_SET) = 0
> 4866 read(13, 0x7fd4e7075000, 64) = -1 EBADF (Bad file descriptor)
> 4866 lseek(13, 64, SEEK_CUR) = 64
> 4866 write(13, "\6\0\0\0\5\0\0\0@\0\0\0\0\0\0\0@\0@\0\0\0\0\0@\0@\0\0\0\0\0\300"..., 448) = -1 EBADF (Bad file descriptor)
>
> I ran these tests a month or two ago and didn't see this, so I think
> it's a recent regression.
>
> --
> Jeff Layton <jlayton at redhat.com>
> _______________________________________________
> linux-cifs-client mailing list
> linux-cifs-client at lists.samba.org
> https://lists.samba.org/mailman/listinfo/linux-cifs-client
>
Jeff,
A command like
gcc -w -o /tmp/stat stat.c -lm
will work.
Just a suggestion during the effort of debugging this problem. This
has something to do with the (default) mode
that is being used when a file is created (stat in this case).
More information about the linux-cifs-client
mailing list