Skip to content

bus error on armv7l #363

@abilbaotm

Description

@abilbaotm

Bug report

Hi, I have compiled natively ros2 crystal on a raspberry pi 3b and seems that there is a bug somewhere, when I try to launch a demo talker I get a bus error, seems something related with some Alignment trap. I open this issue in rcl repo because the exception is raised when rcl_get_zero_initialized_context is called.

Required Info:

  • Operating System:
    • 2018-11-13-raspbian-stretch-full
  • Installation type:
    • from sources, native build
  • Version or commit hash:
  • DDS implementation:
    • Fast-RTPS
  • Client library (if applicable):
    • rcl

Steps to reproduce issue

colcon build --symlink-install --packages-ignore qt_gui_cpp rqt_gui_cpp --packages-up-to demo_nodes_cpp --executor sequential --cmake-args " -DBUILD_TESTING=OFF" --event-handlers console_direct+
# source ros2 install
./build/demo_nodes_cpp/talker

Expected behavior

demo_nodes_cpp talker should be launch

Actual behavior

An exception is raised: "Bus error"
gdb output:

gdb ./build/demo_nodes_cpp/talker
r
Program received signal SIGBUS, Bus error.
0x76edb80c in rcl_get_zero_initialized_context () from /home/pi/ros2_ws/install/rcl/lib/librcl.so

journalctl will output the next:

dic 19 17:57:53 raspberrypi kernel: Alignment trap: not handling instruction e1b20f9f at [<ffff0f70>]
dic 19 17:57:53 raspberrypi kernel: Unhandled fault: alignment exception (0x001) at 0x7691f83c
dic 19 17:57:53 raspberrypi kernel: pgd = b9314000

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions