Hi David,
On Fri, Jul 14, 2006 at 02:15:04AM +0000, David Gore wrote:
When it hangs, is it just dead ? Or is it hogging the cpu (as it would do if it were in a tight loop somewhere in the code) ?
CPU hogging, yes.
#0 0xff3906e8 in memcpy () from /usr/platform/SUNW,Sun-Fire-880/lib/libc_psr.so.1 #1 0x00012e10 in logdata (filename=0xffbef5a0 "", logdef=0x38738, truncated=0xffbef6c4) at logfetch.c:192 #2 0x000142f4 in main (argc=215040, argv=0x34c00) at logfetch.c:844
ignore DEBUG|WARN|^at.*\)$
The code line that gdb points out is at the heart of the "ignore" processing, so I'm fairly sure now that this is where the problem is.
Sorry, should have included this:
(gdb) bt #0 0xff3906e8 in memcpy () from /usr/platform/SUNW,Sun-Fire-880/lib/libc_psr.so.1 #1 0x00012e10 in logdata (filename=0xffbef5a8 "", logdef=0x38738, truncated=0xffbef6cc) at logfetch.c:192 #2 0x000142f4 in main (argc=215040, argv=0x34c00) at logfetch.c:844
It's the same call-sequence as the first one, so I think you've got it narrowed down.
I'll go over that bit of the code and see if I can figure out what is happening.
Regards, Henrik