Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Bundled `idlc` in cyclonedds 11.0.1 Linux wheel crashes with segmentation fault

Đang mở
#336 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
python
Lĩnh vực
build-system, cli

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện lỗi crash với tệp thực thi .libs/idlc đi kèm, lệnh cyclonedds.tools.wheel_idlc command() và lệnh loader trong môi trường trống. Đọc cyclonedds/idlc.py và cyclonedds/tools/wheel_idlc/init.py cùng với nội dung của wheel. Hoàn tất khi idlc -h thoát bình thường và idlc -l py example.idl có thể chạy mà không xảy ra segmentation fault.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Description

The idlc executable bundled with cyclonedds==11.0.1 crashes immediately with a segmentation fault on Linux.

The issue has been reproduced on both Ubuntu 22.04 and Ubuntu 24.04. It is also reproducible in a newly created Ubuntu Docker container.

The same behavior occurs when running the bundled idlc directly, through cyclonedds.tools.wheel_idlc, and when invoking the dynamic loader with --list.

Tested environments

Ubuntu 22.04
OS: Ubuntu 22.04
Architecture: x86_64
cyclonedds: 11.0.1

Wheel SHA256:
9eaa0e08ea41206b495f36fa4c008ff89113f78a39e54f4a17793d9a68e7b978
Ubuntu 24.04
OS: Ubuntu 24.04
Architecture: x86_64
cyclonedds: 11.0.1

Wheel SHA256:
3e96507088c57165f7c189c3a85be866f74c7449fb0cbc6316ad306e5f599be1

The issue was also reproduced in a clean Ubuntu Docker container.

Steps to reproduce

Install the package:

python3 -m pip install cyclonedds==11.0.1

Locate the installed idlc:

python3 -m pip show -f cyclonedds | grep idlc

For example, on Ubuntu 22.04:

cyclonedds/.libs/idlc
cyclonedds/__idlc__.py
cyclonedds/tools/wheel_idlc/__init__.py

The bundled executable is located at:

~/.local/lib/python3.10/site-packages/cyclonedds/.libs/idlc

Run it directly:

~/.local/lib/python3.10/site-packages/cyclonedds/.libs/idlc -h
Actual result
Segmentation fault (core dumped)

Reproduction through the Python wrapper

Run:

python3 -c \
  'from cyclonedds.tools.wheel_idlc import command; command()' \
  -h
Actual result
Segmentation fault (core dumped)

Reproduction with an empty environment

SITE=/home/user/.local/lib/python3.10/site-packages
IDLC=$SITE/cyclonedds/.libs/idlc

env -i \
  HOME="$HOME" \
  PATH=/usr/bin:/bin \
  /lib64/ld-linux-x86-64.so.2 --list "$IDLC"

echo $?
Actual result
Segmentation fault (core dumped)
139

Expected behavior

Running:

idlc -h

or the bundled equivalent:

/path/to/site-packages/cyclonedds/.libs/idlc -h

should display the idlc command-line help and exit normally.

It should also be possible to use the bundled compiler for Python IDL generation, for example:

idlc -l py example.idl

without the executable terminating with a segmentation fault.

Ngôn ngữ chính
Python
Star
110
Fork
68
Merge trung bình
3 ngày 5 giờ
Pull request đã merge (30 ngày)
1

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của eclipse-cyclonedds/cyclonedds-python

Tất cả issue của eclipse-cyclonedds/cyclonedds-python

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.