You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Try to set a string parameter with non-ASCII value
ros2 param set /talker value 'Ragnarök'
Expected behavior
CLI should throw UnicodeEncodeErrorupon message conversion and serialization (inaccurate description, see below).
Actual behavior
CLI segfaults within rcl_init:
Program received signal SIGSEGV, Segmentation fault. [9/601]
__strlen_avx2 () at ../sysdeps/x86_64/multiarch/strlen-avx2.S:62
62 ../sysdeps/x86_64/multiarch/strlen-avx2.S: No such file or directory.
(gdb) bt
#0 __strlen_avx2 () at ../sysdeps/x86_64/multiarch/strlen-avx2.S:62
#1 0x00007ffff5ee3daa in rcl_init (argc=2, argv=0xab36d0, options=0x7fffffff2a00, context=0x7ffff7f5ddc8)
at /home/michel/Workspaces/ros2_base_ws/src/ros2/rcl/rcl/src/rcl/init.c:97
#2 0x00007ffff67b75e9 in rclpy_init (_unused_self=0x7ffff7e2e458, args=0x7ffff7e25dc8)
at /home/michel/Workspaces/ros2_base_ws/src/ros2/rclpy/rclpy/src/rclpy/_rclpy.c:529
...
#1 0x00007ffff5ee3daa in rcl_init (argc=2, argv=0xab36d0, options=0x7fffffff2a00, context=0x7ffff7f5ddc8)
at /home/michel/Workspaces/ros2_base_ws/src/ros2/rcl/rcl/src/rcl/init.c:97
97 size_t argv_i_length = strlen(argv[i]);
Additional information
Above situation only arises when system locale settings are not properly configured as specified in the installation instructions. From that perspective, this may not be a bug, and fixing it not a fix but an enhancement to better deal with such conditions.
The text was updated successfully, but these errors were encountered:
Bug report
Required Info:
Steps to reproduce issue
LANG
environment variable if set.unset LANG
Expected behavior
CLI should throw
UnicodeEncodeError
upon message conversion and serialization(inaccurate description, see below).Actual behavior
CLI segfaults within
rcl_init
:Additional information
Above situation only arises when system locale settings are not properly configured as specified in the installation instructions. From that perspective, this may not be a bug, and fixing it not a fix but an enhancement to better deal with such conditions.
The text was updated successfully, but these errors were encountered: