Hi,

Just because the complex nature of a ROS setup, we will need to know more 
about your environment and enable extra logging to help you with this.

Are you using Docker(if so please share Dockerfile)? What base OS version 
are you using(officially ROS2 Humble only support Ubuntu22.04, other 
version can cause unpredictable issues). 

To collect extra log, please help me with the following:

Use ROS2 Logging, execute line by line in the same folder you build 
custom_handler:

export RCUTILS_CONSOLE_OUTPUT_FORMAT="[{severity}] [{time}] [{name}]: 
{message}"
export RCUTILS_LOGGING_BUFFERED_STREAM=1 
export RCUTILS_LOGGING_USE_STDOUT=1 
export RCUTILS_CONSOLE_STDOUT_LINE_BUFFERED=1 
RCUTILS_LOG_MIN_SEVERITY=DEBUG ./custom_handler

Use strace:
strace -f ./custom_handler 2>&1 | tail -50

Use ldd: ldd ./custom_handler | grep "not found" 


Hopefully one of these will yield some insights, please upload the info 
generated by each debugging step, if not we will go the core dump analysis 
route.
libconsole_bridge.so is mainly used for ROS2 logging purposes, though it 
should not happen, it shouldn't be catastrophic and cause a segfault 
either. We will see if ldd points to this.


Best,
Patrick Chen
Simulation Based Engineering Lab

On Saturday, August 30, 2025 at 4:12:32 AM UTC-5 juju wrote:

> Good morning,
>
> Thank you very much for your wonderful open-source simulator!
>
> I have an issue with the ROS examples. The compilation is successful, 
> however, when I execute the program, I get a segmentation fault. I am using 
> the commit 8995d62963e9d6ef6c58985a2601d9a80d48fba7 on the branch main 
> (not the latest because I have meshes visualisation troubles).
>
> During the CMake configuration, I receive the following warning:
> CMake Warning at CMakeLists.txt:96 (add_executable): Cannot generate a 
> safe runtime search path for target custom_handler because files in some 
> directories may conflict with libraries in implicit directories: runtime 
> library [libconsole_bridge.so.1.0] in /usr/lib/x86_64-linux-gnu may be 
> hidden by files in: /home/project_chrono/packages/urdf/lib Some of these 
> libraries may not be found correctly. 
>
> (the document attached contains the whole terminal output)
>
> I am not sure how to solve this issue and was wondering if this is a known 
> problem.
>
> Thank you very much for your help! :)
>

-- 
You received this message because you are subscribed to the Google Groups 
"ProjectChrono" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/projectchrono/023ae867-b0bf-4f5e-b08c-441936dadbe1n%40googlegroups.com.

Reply via email to