[7947] in SIPB bug reports

home help back first fref pref prev next nref lref last post

Re: bug in and fix for webster server

daemon@ATHENA.MIT.EDU (Daniel Pouzzner)
Wed Feb 27 08:25:07 2002

Date: Wed, 27 Feb 2002 08:25:03 -0500 (EST)
Message-Id: <200202271325.IAA20017@mega.mega.nu>
To: jweiss@MIT.EDU
Cc: bug-sipb@MIT.EDU
From: Daniel Pouzzner <douzzer@mega.nu>

>>   /afs/sipb/project/sipb/src/webster/src/server/search.c has
>>   a bug in it at line 124.  the byte order of i_file and i_filepos
>>   must be corrected with a call to ntohs() and ntohl() respectively
>>   or the server implodes under little endian machines (i386, in
>>   my case).  works fine with the fix.
>
>Hi,
>
>Thanks for the report.
>
>The traditional solution, at least in our case has been to rebuild the
>db files (run makeindex) on a machine of the same endian-ness, as the
>one that will run the server.

My mistake.  I thought I had rebuilt the index, with an invocation of
makeindex, but in fact it turns out it is necessary to remove/move
aside the old index files, for new ones to be generated.  Now that I
have done that, the server crashes *with* the endianness fix, and
works fine without it.  Live and learn.

home help back first fref pref prev next nref lref last post