[marillat at debian.org: Bug#178673: inn2-inews: rnews is broken]
Jeffrey M. Vinocur
jeff at litech.org
Tue Jan 28 17:36:25 UTC 2003
On Tue, 28 Jan 2003, Marco d'Itri wrote:
> #7 0x0ff0f968 in fgets () from /lib/libc.so.6
> #8 0x10001f40 in Process (article=0xff <Address 0xff out of bounds>)
> at rnews.c:308
> #9 0x100021ec in ReadRemainder (fd=8043, first=0 '\0', second=0 '\0')
> at rnews.c:387
> #10 0x100024a8 in UnpackOne (fdp=0x7ffff938, countp=0x7ffff93c) at rnews.c:498
> #11 0x10003364 in main (ac=0, av=0x7ffff9c8) at rnews.c:923
Ho ho. So it's gotten to the fgets() here:
/* Send the article to the server. */
if (fwrite(wirefmt, length, 1, ToServer) != 1) {
free(wirefmt);
sysnotice("cant sendarticle");
return false;
}
free(wirefmt);
/* Process server reply code. */
if (fgets(buff, sizeof buff, FromServer) == NULL) {
And blocks waiting for the server reply, I think because we forgot to
flush after the fwrite() above.
Do I win?
--
Jeffrey M. Vinocur
jeff at litech.org
More information about the inn-workers
mailing list