[Dovecot] 1.2.6 Spurious pread()/stream errors/index corruption

Paul Freeman dovecot at lists-in.noc4.net
Thu Oct 15 23:08:48 EEST 2009


OK I'm still getting the same errors, so just as a test I tried the same
process on an x86_32 build host, it's binaries now give a different error,
one which I have also seen mentioned before I think:

----

banshee-x86-32 / # /NOC4/dovecot/sbin/dovecot -F
Error: Missing auth section for server default
Fatal: Invalid configuration in /NOC4/etc/dovecot/dovecot.conf

-----

I do notice this though,
 with x86_64 binaries strace shows calls to pread() 
 with x86_32 binaries strace shows calls to pread64()

this looks round the wrong way? hmm

in both builds file offset bits is 64, with config.h:

---- config.h check...
/* Define to 1 if you have the `pread' function. */
/* Defint if pread/pwrite implementation is broken */
#define PREAD_BROKEN 1
/* Define if pread/pwrite needs _XOPEN_SOURCE 500 */




On Thu, 15 Oct 2009 15:33:47 -0400, Timo Sirainen <tss at iki.fi> wrote:
> On Thu, 2009-10-15 at 20:30 +0100, Paul Freeman wrote:
>> banshee-x86-64 dovecot-1.2.6 # grep -i pread config.h
>> /* Define to 1 if you have the `pread' function. */
>> /* #undef HAVE_PREAD */
>> /* Defint if pread/pwrite implementation is broken */
>> /* #undef PREAD_BROKEN */
>> /* Define if pread/pwrite needs _XOPEN_SOURCE 500 */
>> #define PREAD_WRAPPERS /**/
>> 
>> i'll give PREAD_BROKEN a try now
> 
> And remove PREAD_WRAPPERS if that doesn't work. It shouldn't matter
> though.


More information about the dovecot mailing list