<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
  <title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
It still gives a bus error. Attached patch fixes it for me.<br>
The explanation is that gcc takes definition "int32 *num_vs_ptr"<br>
as a hint and eliminates call to memcpy.<br>
<br>
Regards,<br>
Mikhail<br>
<br>
<br>
Jonathan Stanton wrote:<br>
<blockquote type="cite" cite="mid20040126030655.GB27395@cnds.jhu.edu">
  <pre wrap="">I have fixed all of this type of bus-error causing bugs in the groups code
that I can find. The fixes have been committed to CVS. If you want to try
it out, since I don't really have any Sparcs or Alphas I can test on, I'd
appreciate it.

If you want to wait for a release to test, I hope to package up a test 
version of 3.17.2 soon, and that will include this fix. I just have a bit 
more I want to do first.

Cheers,

Jonathan

On Wed, Dec 24, 2003 at 12:34:04PM -0500, Mikhail Terekhov wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">The same thing could happen on lines 866,1121,1314,1512,1829.
Am I correct?

Mikhail

Theo Schlossnagle wrote:

    </pre>
    <blockquote type="cite">
      <pre wrap="">On Tue, 2003-12-23 at 17:04, Greg Shebert wrote:


      </pre>
      <blockquote type="cite">
        <pre wrap="">line 797:

num_vs_ptr = (int32 *)&amp;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
  

        </pre>
      </blockquote>
      <pre wrap="">You are not mislead.  That will certainly cause a bus error on any
architecture that requires word aligned copies like that.  It'll likely
bus error on alpha as well.



      </pre>
    </blockquote>
    <pre wrap="">
_______________________________________________
Spread-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Spread-users@lists.spread.org">Spread-users@lists.spread.org</a>
<a class="moz-txt-link-freetext" href="http://lists.spread.org/mailman/listinfo/spread-users">http://lists.spread.org/mailman/listinfo/spread-users</a>
    </pre>
  </blockquote>
  <pre wrap=""><!---->
  </pre>
</blockquote>
</body>
</html>