On Fri, Jun 09, 2000 at 10:45:27AM -0700, Doug MacEachern wrote:
> > > Thought the aforementioned procedure might be useful explaining my
> > > current trouble. Perl 5.5.3, Apache 1.3.12, mod_perl 1.24 -- no other
> > > add-ons to Apache... OS is Linux (kernel 2.2.10).
>
> > > #0 0x40175c7f in _IO_fflush (fp=0x4020d480) at iofflush.c:41
>
> what's the output of:
> (gdb) print *fp
>
> i'm quite sure _fileno will be 2 (stderr), which something may have
> botched, what i don't know. strace-ing to see fiddlings with fd 2 might
> shed some light.
I'm not sure if it's more or less useful to find out that it's not 2, but 1...
(gdb) print *fp
$1 = {_flags = -72540028, _IO_read_ptr = 0x0, _IO_read_end = 0x0, _IO_read_base = 0x0,
_IO_write_base = 0x0, _IO_write_ptr = 0x0, _IO_write_end = 0x0, _IO_buf_base = 0x0,
_IO_buf_end = 0x0, _IO_save_base = 0x0, _IO_backup_base = 0x0, _IO_save_end = 0x0,
_markers = 0x0, _chain = 0x4020d400, _fileno = 1, _blksize = 0, _old_offset = -1,
_cur_column = 0, _vtable_offset = 0 '\000', _shortbuf = "", _lock = 0x4020d450,
_offset = 1075893120, _unused2 = {0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, -72540026, 0, 0,
0, 0}}
(gdb)
--
Rob Fugina, Systems Guy
[EMAIL PROTECTED] -- http://www.geekthing.com
EA CF 09 1B AF 76 A9 D8 75 FE 26 6A E4 14 0A 3C
ThE MaStEr wOuLd nOt aPpRoVe oF StUdLyCaPs...