Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dynamic-type Segmentation fault, array with struct #4498

Closed
1 task done
kshang opened this issue Mar 4, 2024 · 2 comments
Closed
1 task done

dynamic-type Segmentation fault, array with struct #4498

kshang opened this issue Mar 4, 2024 · 2 comments
Labels
in progress Issue or PR which is being reviewed

Comments

@kshang
Copy link

kshang commented Mar 4, 2024

Is there an already existing issue for this?

  • I have searched the existing issues

Expected behavior

run well

Current behavior

crash, Segmentation fault

Steps to reproduce

I build the DynamicHelloworld example, and change the "helloworld_example_type_profile.xml" as blew:

then run ./DDSDynamicHelloWorldExample publisher
then it crash and print Segmentation fault
I run DDS in ubuntu--18.04(X86)

Fast DDS version/commit

fastdds-2.11.2

Platform/Architecture

Other. Please specify in Additional context section.

Transport layer

Default configuration, UDPv4 & SHM

Additional context

No response

XML configuration file

<?xml version="1.0" encoding="UTF-8" ?>
<types xmlns="http://www.eprosima.com/XMLSchemas/fastRTPS_Profiles" >
    <type>
        <struct name="stxxhh">
            <member name="index11" type="uint32"/>
            <member name="index22" type="uint32"/>
        </struct>
    </type>
    <type>
        <struct name="HelloWorld">
            <member name="message" type="string"/>
            <member name="index" type="uint32"/>
            <member name="array" type="nonBasic" nonBasicTypeName="stxxhh" arrayDimensions="5,2"/>
        </struct>
    </type>
</types>

Relevant log output

No response

Network traffic capture

No response

@kshang kshang added the triage Issue pending classification label Mar 4, 2024
@JLBuenoLopez JLBuenoLopez added in progress Issue or PR which is being reviewed and removed triage Issue pending classification labels Mar 4, 2024
@JLBuenoLopez
Copy link
Contributor

Thanks for the report @kshang

Currently the XTypes feature which includes the dynamic language binding is being refactored. It is well known that the current API is unstable for complex types (for instance array of structures).

@Mario-DL
Copy link
Member

Mario-DL commented Sep 5, 2024

As the Dynamic Types refactor has been already introduced in the latest Fast DDS v3.0.0, we internally agreed to close all Dynamic-Types related issues.
We elaborated a Migration guide to help with the upgrade process to this new major release.

Please, feel free to reopen it if the issue persists.

@Mario-DL Mario-DL closed this as completed Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in progress Issue or PR which is being reviewed
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

3 participants