# Fast DDS HelloWorld RTP crashes with signal 4 on VxWorks 7 QEMU?

**URL:** <https://forums.windriver.com/t/fast-dds-helloworld-rtp-crashes-with-signal-4-on-vxworks-7-qemu/1202>\
**Category:** ROS2\
**Created:** [October 28, 2025, 7:27am UTC](https://forums.windriver.com/t/fast-dds-helloworld-rtp-crashes-with-signal-4-on-vxworks-7-qemu/1202 "2025-10-28T07:27:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![caoyan](https://avatars.discourse-cdn.com/v4/letter/c/f07891/32.png) [@caoyan](https://forums.windriver.com/u/caoyan)\
**Post date:** [October 28, 2025, 7:27am UTC](https://forums.windriver.com/t/fast-dds-helloworld-rtp-crashes-with-signal-4-on-vxworks-7-qemu/1202/1 "2025-10-28T07:27:52Z")

</div>

Hi,  
I have successfully built **Fast DDS 3.3.0** and its **HelloWorld example** using the `wr-cc` cross compiler for **VxWorks 7 (x86\_64, QEMU target)**.

The build process completed without any errors, and the executable `hello_world` was generated.However, when I run the program on the VxWorks target shell, it immediately crashes with:  
[vxWorks \*]# hello\_world  
Launching process ‘hello\_world’ …  
Process ‘hello\_world’ (process Id = 0xffff800000362100) launched.  
0xffff800000367890 (iHello\_world): RTP 0xffff800000362100 has been deleted due to signal 4.  
[VxWorks \*]#

I’ve verified that:

- The project was built entirely with the **VxWorks toolchain (`wr-cc` / `wr-c++`)**
- The Fast DDS libraries and dependencies (Fast-CDR, foonathan\_memory) were all compiled for VxWorks
- The same environment successfully runs a simple `foo.vxe` test program (so the toolchain and QEMU setup seem fine)

But this **Fast DDS HelloWorld** RTP always crashes with **signal 4.**

Could you please help me understand what could cause this?

Thank you!

---

<div class="post-metadata">

**Author:** ![dan.milea](https://avatars.discourse-cdn.com/v4/letter/d/4bbf92/32.png) [@dan.milea](https://forums.windriver.com/u/dan.milea)\
**Post date:** [October 28, 2025, 9:51am UTC](https://forums.windriver.com/t/fast-dds-helloworld-rtp-crashes-with-signal-4-on-vxworks-7-qemu/1202/2 "2025-10-28T09:51:14Z")

</div>

Signal 4 means invalid instruction. I’d check the target capabilities required by the Fast DDS stack. Also make sure to run QEMU in kvm mode with cpu host, that will help eliminate some other potential issues.

---

<div class="post-metadata">

**Author:** ![dan.milea](https://avatars.discourse-cdn.com/v4/letter/d/4bbf92/32.png) [@dan.milea](https://forums.windriver.com/u/dan.milea)\
**Post date:** [October 28, 2025, 10:07am UTC](https://forums.windriver.com/t/fast-dds-helloworld-rtp-crashes-with-signal-4-on-vxworks-7-qemu/1202/3 "2025-10-28T10:07:56Z")

</div>

I think you may find the ROS2 VxWorks port to be a relevant reference.

> **[GitHub - Wind-River/vxworks7-ros2-build: Build system to automate the build of VxWorks 7...](https://github.com/Wind-River/vxworks7-ros2-build)**
>
> Build system to automate the build of VxWorks 7 and ROS2

> **[vxworks7-layer-for-ros2/Fast-DDS/usr\_src at humble-release-24.03 ·...](https://github.com/Wind-River/vxworks7-layer-for-ros2/tree/humble-release-24.03/Fast-DDS/usr_src)**
>
> ROS2 for VxWorks. Contribute to Wind-River/vxworks7-layer-for-ros2 development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![caoyan](https://avatars.discourse-cdn.com/v4/letter/c/f07891/32.png) [@caoyan](https://forums.windriver.com/u/caoyan)\
**Post date:** [October 29, 2025, 1:11am UTC](https://forums.windriver.com/t/fast-dds-helloworld-rtp-crashes-with-signal-4-on-vxworks-7-qemu/1202/4 "2025-10-29T01:11:11Z")

</div>

Really appreciate your help! After enabling KVM, it works now.

---

<div class="post-metadata">

**Author:** ![caoyan](https://avatars.discourse-cdn.com/v4/letter/c/f07891/32.png) [@caoyan](https://forums.windriver.com/u/caoyan)\
**Post date:** [October 29, 2025, 2:38am UTC](https://forums.windriver.com/t/fast-dds-helloworld-rtp-crashes-with-signal-4-on-vxworks-7-qemu/1202/5 "2025-10-29T02:38:15Z")

</div>

I have validated Fast DDS on the VxWorks 7 SDK. However, our commercial version uses VxWorks 6.6, and the Diab compiler there does not support C++11. Is there any feasible approach to verify Fast DDS on VxWorks 6.6?

---

<div class="post-metadata">

**Author:** ![dan.milea](https://avatars.discourse-cdn.com/v4/letter/d/4bbf92/32.png) [@dan.milea](https://forums.windriver.com/u/dan.milea)\
**Post date:** [October 30, 2025, 9:51am UTC](https://forums.windriver.com/t/fast-dds-helloworld-rtp-crashes-with-signal-4-on-vxworks-7-qemu/1202/6 "2025-10-30T09:51:40Z")

</div>

Please create a post on the Wind River Knowledge Forum at [ask.windriver.com](http://ask.windriver.com) or contact [Wind River Customer Support](https://www.windriver.com/support).
