Project

Profile

Help

Bug #6466

open

Python interactive interpreter seg-faults on tab completion

Added by Jens Troeger 12 days ago. Updated 4 days ago.

Status:
In Progress
Priority:
Low
Category:
Python API
Start date:
2024-07-04
Due date:
% Done:

0%

Estimated time:
Applies to branch:
Fix Committed on Branch:
12
Fixed in Maintenance Release:
Found in version:
12.4.2
Fixed in version:
SaxonC Languages:
C++, Python
SaxonC Platforms:
All
SaxonC Architecture:

Description

Hello,

I installed the Python package saxoncee ==12.4.2 in a Python 3.11.9 virtual environment, and upon trying to list the properties of an instance using tab completion, the interpreter crashed:

~ > uname -a
Darwin pooh 22.6.0 Darwin Kernel Version 22.6.0: Mon Apr 22 20:54:28 PDT 2024; root:xnu-8796.141.3.705.2~1/RELEASE_X86_64 x86_64 i386 Darwin
~ > PYTHONFAULTHANDLER=1 python
Python 3.11.9 (main, Apr  4 2024, 11:05:12) [Clang 14.0.3 (clang-1403.0.22.14.1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import saxoncee          
>>> 
>>> saxon = saxoncee.PySaxonProcessor(license=False)
>>> document_builder = saxon.new_document_builder()
>>> node = document_builder.parse_xml(xml_text='<test/>')
>>> 
>>> node.Fatal Python error: Segmentation fault

Current thread 0x00007ff843bdd7c0 (most recent call first):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/rlcompleter.py", line 189 in attr_matches
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/rlcompleter.py", line 92 in complete

Extension modules: saxoncee (total: 1)
Segmentation fault: 11

So on hitting the tab key on node. the interpreter crashes.

This happens with and without registering the license with the Saxon Processor.


Files

Bildschirmaufnahme 2024-07-08 123143.mp4 (10.1 MB) Bildschirmaufnahme 2024-07-08 123143.mp4 screen recording of segfault in Python 3.12 interactive shell on Ubuntu 24 trying tab completion on saxon_proc created with PySaxonProcessor() Martin Honnen, 2024-07-08 12:38
Bildschirmaufnahme 2024-07-08 um 12.54.55.mov (10.3 MB) Bildschirmaufnahme 2024-07-08 um 12.54.55.mov Martin Honnen, 2024-07-08 13:01
Bildschirmaufnahme 2024-07-08 133549.mp4 (25.5 MB) Bildschirmaufnahme 2024-07-08 133549.mp4 screen recording of error on trying tab completion on PySaxonProcessor() created variable in Windows 11 x64 cmd shell running Python 3.12 Martin Honnen, 2024-07-08 13:39

Related issues

Related to SaxonC - Bug #6468: saxoncee.__version__ is missingResolvedO'Neil Delpratt2024-07-04

Actions

Please register to edit this issue

Also available in: Atom PDF