Bug 2310520 - vtk Python bindings: segmentation fault on import
Summary: vtk Python bindings: segmentation fault on import
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: vtk
Version: 41
Hardware: Unspecified
OS: Linux
unspecified
urgent
Target Milestone: ---
Assignee: Orion Poplawski
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.13 2283110 2291477
TreeView+ depends on / blocked
 
Reported: 2024-09-06 20:45 UTC by Ben Beasley
Modified: 2024-10-15 00:17 UTC (History)
4 users (show)

Fixed In Version: vtk-9.2.6-18.fc42 vtk-9.2.6-18.fc41
Clone Of:
Environment:
Last Closed: 2024-10-15 00:17:47 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Fedora Package Sources vtk pull-request 15 0 None None None 2024-10-08 14:02:21 UTC

Description Ben Beasley 2024-09-06 20:45:57 UTC
When importing any of the VTK Python bindings, an immediate segmentation fault occurs.

Reproducible: Always

Steps to Reproduce:
$ mock -r fedora-rawhide-x86_64 --clean
$ mock -r fedora-rawhide-x86_64 -i 'python3dist(vtk)'
$ mock -r fedora-rawhide-x86_64 --shell
<mock-chroot> sh-5.2# python3
>>> from vtkmodules.vtkCommonCore import vtkVersion
Segmentation fault (core dumped)

Actual Results:  
Segmentation fault (core dumped)

Expected Results:  
Successful import; and then, calling vtkVersion() should work and should return something reasonable, e.g.:

>>> v = vtkVersion()
>>> v.GetVTKMajorVersion()
9

In addition to Rawhide/F42, I can also reproduce this in Fedora 41. Fedora 40 seems to be OK.

Comment 1 Ben Beasley 2024-09-06 20:48:22 UTC
I’m not certain that this is a Python 3.13 issue, but it seems likely since it appears starting in Fedora 41, and there have been no major packaging changes in vtk itself since Fedora 40. I’m therefore blocking the Python 3.13 tracker bug.

Comment 2 Fedora Update System 2024-10-09 23:03:08 UTC
FEDORA-2024-b0d61199f3 (vtk-9.2.6-18.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-b0d61199f3

Comment 3 Fedora Update System 2024-10-09 23:14:47 UTC
FEDORA-2024-b0d61199f3 (vtk-9.2.6-18.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 4 Fedora Update System 2024-10-11 11:19:51 UTC
FEDORA-2024-286c09b59e (Mayavi-4.8.2-3.fc41 and vtk-9.2.6-18.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-286c09b59e

Comment 5 Fedora Update System 2024-10-12 03:12:13 UTC
FEDORA-2024-286c09b59e has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-286c09b59e`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-286c09b59e

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2024-10-15 00:17:47 UTC
FEDORA-2024-286c09b59e (Mayavi-4.8.2-3.fc41 and vtk-9.2.6-18.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.