On 12 July 2010 17:24, René Wagner <rene.wagner@dfki.de> wrote:
On Fri, 2010-07-09 at 10:45 +0900, Daniel Stonier wrote:
> - Patched (using the memcpy's rather than the reinterprets in the
> SERIALIZER macro).
> - In signal+warn mode (echo 5 > /proc/cpu/alignment)
>   - (float64&int32) client gives a bus error and kernel outputs an
> alignment trap message, but servers are fine
> - In default mode (echo 0 > /proc/cpu/alignment)
>   - (float64&int32) client and server function without hanging like before
>
> So...its working, but is this the right fix?

You probably want to check where the unaligned memory access is
happening. Can you run your float_client from within gdb? This should
allow you to get a backtrace once the kernel has sent the signal (bus
error) from the alignment trap.

Cheers,

Rene

Getting some more meaningful backtraces now - catch bus errors for both the float64's and the int32's in some cases, some with, some without that memcopy patch above. I'll put together some results when I get back to work in the morning.


 
-
------------------------------------------------------------
Dipl.-Inf. René Wagner                     Junior Researcher
DFKI Bremen                           Enrique-Schmidt-Str. 5
Safe and Secure Cognitive Systems             D-28359 Bremen

Phone: (+49) 421-218-64224       Fax: (+49) 421-218-98-64224
Web: http://www.informatik.uni-bremen.de/agebv/en/ReneWagner
--- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Deutsches Forschungszentrum für Künstliche Intelligenz  GmbH
Firmensitz: Trippstadter Strasse 122, D-67663 Kaiserslautern

Geschäftsführung:
  Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster (Vorsitzender)
                                         Dr. Walter Olthoff
Vorsitzender des Aufsichtsrats:
                               Prof. Dr. h.c. Hans A. Aukes
Amtsgericht Kaiserslautern                          HRB 2313
------------------------------------------------------------

_______________________________________________
ros-users mailing list
ros-users@code.ros.org
https://code.ros.org/mailman/listinfo/ros-users



--
Phone : +82-10-5400-3296 (010-5400-3296)
Home: http://snorriheim.dnsdojo.com/
Yujin Robot: http://www.yujinrobot.com/
Embedded Control Libraries: http://snorriheim.dnsdojo.com/redmine/wiki/ecl