Article View: news.software.nntp
Article #40328Re: Diablo debugging problems...
From: Brad Knowles
Date: Fri, 01 Oct 1999 00:00
Date: Fri, 01 Oct 1999 00:00
51 lines
2825 bytes
2825 bytes
In article <37f4e0b3$0$10188@news.execpc.com>, jgreco@ns.sol.net (Joe
Greco) wrote:
> Well, is your filter process _actually_ exiting, or not? If so, what's
> causing it to do so? (*)
Blargh. Dunno. I wasn't bright enough to think of looking for that.
Hell, I had switched back to the "working" version I had of Diablo
when I realized that I should have thrown truss at the problem, so I had
to switch back to the pipe version, fire up truss on the daemon writing
output to a file, wait for some breakage, and then take a look at the
output of truss.
I ain't too bright sometimes. ;-)
Heck, maybe this is what makes me good at benchmarking things (such as
vinum), because I know this fact and I try to make extra certain that I
cover each and every possible combination.
> It could probably be fixed by wrapping write with a function that
> requires all bytes to be written, although typically I don't recall
> pipes having this sort of behaviour.
>
> Try changing the write calls to "xwrite", and insert this at the top
> of diab-filter.c.
Running with this code now. I've also got the filter process reniced
to +20, so that if I can exercise the same bug with this patch, I should
hopefully do so as quickly as possible.
> If that works, I'll be irritated.
I won't make any proclamations so far, but I'll let you know.
> And since this snippet is written off the top of my head, it'll be wrong
> and I'll have posted the embarrassing evidence of my incompetence as a C
> programmer. :-) So I'll be irritated twice.
Well, it at least compiled and appears to be running. I can't yet say
anything else for the resulting code, however. ;-)
--
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>
Are you a USENET news server administrator outside of North America or
Western Europe? Would you like a newsfeed from a site in the Freenix
Top 100? If so, please contact me via private e-mail for details.
Technical Details
Message-ID:
<brad-0110991934430001@brad.techos.skynet.be>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<brad-0110991517500001@brad.techos.skynet.be> <37f4e0b3$0$10188@news.execpc.com>Show Full Headers
Complete Article Headers
Message-ID: <brad-0110991934430001@brad.techos.skynet.be> Subject: Re: Diablo debugging problems... Date: Fri, 01 Oct 1999 00:00:00 +0000 From: brad@shub-internet.org (Brad Knowles) References: <brad-0110991517500001@brad.techos.skynet.be> <37f4e0b3$0$10188@news.execpc.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 531620414 X-Complaints-To: abuse@skynet.be X-Trace: news0.skynet.be 938799285 26751 195.238.1.121 (1 Oct 1999 17:34:45 GMT) Organization: Shub-Internet X-URL: http://www.shub-internet.org/ NNTP-Posting-Date: 1 Oct 1999 17:34:45 GMT Newsgroups: news.software.nntp