Project

Profile

Help

Bug #6536

open

Crash/Segmentation fault with Python SaxonCHE 12.5

Added by Martin Honnen about 1 month ago. Updated about 1 month ago.

Status:
New
Priority:
Normal
Category:
Python API
Start date:
2024-09-16
Due date:
% Done:

0%

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

Description

The following Python program crashes for me under both Windows and Linux (showing a segmentation fault under Linux):

from saxonche import *

with PySaxonProcessor() as saxon_proc:
    print(saxon_proc.version)

    xdm_node = saxon_proc.parse_xml(xml_file_name='sample1.xml')

    xdm_children_list = xdm_node.children

    xdm_axis_nodes_children = xdm_node.axis_nodes(XdmNodeKind.CHILD)

    print(len(xdm_children_list) == len(xdm_axis_nodes_children))

    xdm_node1 = xdm_node.item_at(0)

    xdm_axis_nodes_following_siblings = xdm_node1.axis_nodes(XdmNodeKind.FOLLOWING_SIBLING)

    print(len(xdm_axis_nodes_following_siblings))

Please register to edit this issue

Also available in: Atom PDF