[KinoSearch] t/307-pre_sorter fails
Marvin Humphrey
marvin at rectangular.com
Wed May 16 15:16:02 PDT 2007
On May 16, 2007, at 2:47 AM, Henk - CityWEB wrote:
>> I believe this has been addressed as of repository revision 2437,
>> which fixes a problem on machines where sizeof(int) != sizeof(void*).
>
> I haven't really had the time to research this a bit more: do you
> reckon
> this is a result of the diff between AMD Opteron (the working one) and
> Intel Xeon 64-bit, or an issue with GCC 3.3.6 and 4.1.0 ?
It was presumably the architecture. If it's possible to make GCC
change the size of a pointer on a box from 8 bytes to 4, I don't know
how. :)
The bug would have affected any machine where pointers and ints were
not the same size: an array of ints was being sorted, but part of the
routine treated them like pointers. It's not the sort of error I'd
usually make, but in the middle of refactoring something complex, I
intentionally left that for later -- I knew it would come back to
haunt me and I didn't want to add any more complexity at that stage.
> Anyway, thank you very much. I just compiled the latest svn
> version and it looks good on the Intel Xeon platform.
Excellent.
Marvin Humphrey
Rectangular Research
http://www.rectangular.com/
_______________________________________________
KinoSearch mailing list
KinoSearch at rectangular.com
http://www.rectangular.com/mailman/listinfo/kinosearch
More information about the kinosearch
mailing list