Off_t=%d",sizeof(offset),sizeof(Off_t));
Passing offset size=8 Off_t=8 at test.pl line 12.
So that would seem to have been a red-herring.
Anything else I can check on?
I have forgotten the context.
==== My original message: ====
I have a reproducable case where PerlIO_seek() fails in a way I don't quite understand in perl 5.8.1+
It works fine with 5.8.0 and 5.6.x (Linux & OSX).
This fails in 5.8.1+:
return PerlIO_seek(datasource->stream, offset, whence);
This does not:
return fseek(PerlIO_findFILE(datasource->stream), offset, whence);
gdb isn't telling me anything very useful, and my errno is just EBADF.
Any ideas here? And what would be useful for debugging? I tried to set a breakpoint at Perl_PerlIO_seek(), but it appears to just be a #define, which I'd think would propagate down to fseek().
-D -- <ZangTT> berkeley db - it's mostly about the hash()