Bug 2310520

Summary: vtk Python bindings: segmentation fault on import
Product: [Fedora] Fedora Reporter: Ben Beasley <code>
Component: vtkAssignee: Orion Poplawski <orion>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 41CC: mhroncok, orion, sanjay.ankur, scitech-bugs
Target Milestone: ---Keywords: Regression, Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: vtk-9.2.6-18.fc42 vtk-9.2.6-18.fc41 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-10-15 00:17:47 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2244836, 2283110, 2291477    

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.