If this is the problem, the attached patch may help -- it turns the reinterpret_casts in the serialization of primitives into memcpys, which shouldn't require alignment.<div><br></div><div>Josh<br><div><br><div class="gmail_quote">

On Thu, Jul 8, 2010 at 8:44 AM, René Wagner <span dir="ltr"><<a href="mailto:rene.wagner@dfki.de">rene.wagner@dfki.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class="im">On Thu, 2010-07-08 at 19:43 +0900, Daniel Stonier wrote:<br>
> Got into it with a debugger, and found it hanging at<br>
> roslib/include/ros/serialization.h at<br>
><br>
><br>
> ROS_CREATE_SIMPLE_SERIALIZER(double);<br>
<br>
</div>Depending on how the serializer is used, this may result in an<br>
unaligned write. You can check whether an alignment error is involved<br>
as follows:<br>
<br>
echo 5 > /proc/cpu/alignment<br>
<br>
and re-run the executable that's causing trouble. The program should<br>
receive a signal (so you can see where exactly things go wrong in gdb)<br>
and the kernel should report an "Alignment trap: ..." on the console or<br>
in dmesg/syslog.<br>
<br>
Cheers,<br>
<br>
Rene<br>
<br>
--<br>
------------------------------------------------------------<br>
Dipl.-Inf. René Wagner                     Junior Researcher<br>
DFKI Bremen                           Enrique-Schmidt-Str. 5<br>
Safe and Secure Cognitive Systems             D-28359 Bremen<br>
<br>
Phone: (+49) 421-218-64224       Fax: (+49) 421-218-98-64224<br>
Web: <a href="http://www.informatik.uni-bremen.de/agebv/en/ReneWagner" target="_blank">http://www.informatik.uni-bremen.de/agebv/en/ReneWagner</a><br>
--- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --<br>
Deutsches Forschungszentrum für Künstliche Intelligenz  GmbH<br>
Firmensitz: Trippstadter Strasse 122, D-67663 Kaiserslautern<br>
<br>
Geschäftsführung:<br>
   Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster (Vorsitzender)<br>
                                          Dr. Walter Olthoff<br>
Vorsitzender des Aufsichtsrats:<br>
                                Prof. Dr. h.c. Hans A. Aukes<br>
Amtsgericht Kaiserslautern                          HRB 2313<br>
------------------------------------------------------------<br>
<div><div></div><div class="h5"><br>
_______________________________________________<br>
ros-users mailing list<br>
<a href="mailto:ros-users@code.ros.org">ros-users@code.ros.org</a><br>
<a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><br>
</div></div></blockquote></div><br></div></div>