cycbuff - bad file description problem

Sylwester Zelazko slz at polcard.com.pl
Tue Oct 2 08:14:11 UTC 2001


On Fri, Sep 21, 2001 at 03:56:30PM -0700, Russ Allbery wrote:
> > System: Debian woody, kernel - i try different - 2.2.20pre6, 2.4.5,
> > 2.4.9, 2.4.4, 2.2.19
> 
> Either recompile INN with large file support (and make sure that you have
> a kernel and glibc that supports it), or use cycbuffs smaller than 2GB.
> The latter is probably easiest.
File i was playing with had 52Mb, i think i found something : 

....
open("/var/spool/news/cycbuff/one", O_RDONLY) = 5
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
shmat(5, 0x2, 0x1) = ?
shmat(5, 0x2, 0x2) = ?
lseek(5, 0, SEEK_SET) = 0
read(5, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 192) =
192
lseek(5, 0, SEEK_SET) = 0
brk(0x808e000)                          = 0x808e000
time([1002009053]) = 1002009053
getpid() = 24389
rt_sigaction(SIGPIPE, {0x401cfe08, [], 0x4000000}, {SIG_DFL}, 8) = 0
send(4, "<60>Oct  2 09:50:53 innfeed[2438"..., 97, 0)   = 97
rt_sigaction(SIGPIPE, {SIG_DFL}, NULL, 8) = 0
lseek(5, 0, SEEK_SET)                                = 0
time(NULL)   = 1002009053
write(5, "CBuf3\0\0\0ONE\0\0\0\0\0\0\0\0\0\0\0\0\0/var/spo"..., 192)
= -1 EBADF (Bad file descriptor)

dunno why inn open it read only and then try to write to it.

-- 
Sylwester Zelazko


More information about the inn-workers mailing list