[Spread-users] crash bug report

Greg Shebert gshebert at efs-us.com
Tue Dec 23 17:04:38 EST 2003


basically what i found was in groups.c

line 797:

num_vs_ptr = (int32 *)&Mess_buf[ num_bytes ];
num_bytes += sizeof( int32 );
*num_vs_ptr = 1;

the last statement (line 799) can cause a bus error... basically, if
num_bytes is not a multiple of the host systems word size then the last
statement tries to write a word length value into a location that is not
word aligned... 

the resulting bus error brings down the daemon :(

i corrected this using a memcpy instead of the assignment and this seems
to correct the problem...

i experienced the problem on solaris2.8

let me know if you need more info or if i am simply incorrect

-greg-



this statement can cause a bus error
On Tue, 2003-12-23 at 15:56, George Schlossnagle wrote:
> Here.
> 






More information about the Spread-users mailing list