[Spread-users] solaris SIGBUS
John Lane Schultz
jschultz at spreadconcepts.com
Wed Jan 24 18:05:52 EST 2007
Thanks for the catch Ed. I've updated the stdutil code within Spread and this
problem should be fixed in SVN now.
Cheers!
Ed Holyat wrote:
>
> I am getting a bus error on Solaris, I believe the area of the problem
> is in the change listed below. A SIGBUS usually indicates an alignment
> error.
>
> < # define stdhcode_sfh_get16bits(d) ( ((stduint16) *((const stduint8
> *)(d) + 1) << 8) + *(const stduint8 *)(d) )
>
> ---
>
> *> # define stdhcode_sfh_get16bits(d) ( ((stduint32) *((const stduint8
> *)(d) + 1) << 8) | *(const stduint32 *)(d) )*
>
> You will get away with it on a Little Endian (intel), but breaks on a
> Big Endian (sparc).
>
> stdhcode_sfh_get16bits should be changed as below?
>
>> # define stdhcode_sfh_get16bits(d) ( ((stduint32) *((const stduint8
> *)(d) + 1) << 8) |*** *(const stduint****8**** *)(d)* )
>
>
>
> Ed Holyat
>
> Open Link Financial, Inc.
>
> (516) 227-6600 x 231
>
> _www.olf.com_
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Spread-users mailing list
> Spread-users at lists.spread.org
> http://lists.spread.org/mailman/listinfo/spread-users
--
John Schultz
Spread Concepts LLC
Phn: 443 838 2200
Fax: 301 560 8875
More information about the Spread-users
mailing list