Actions
Bug #6536
openCrash/Segmentation fault with Python SaxonCHE 12.5
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))
Updated by Martin Honnen 2 months ago
gdb output (not telling me something helpful but perhaps it helps to tell what is wrong):
(gdb) run main3.py
Starting program: /home/mh/saxonche125/bin/python main3.py
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff1fff6c0 (LWP 172914)]
SaxonC-HE 12.5 from Saxonica
True
Thread 1 "python" received signal SIGSEGV, Segmentation fault.
0x00007ffff794ae7f in __pyx_pf_8saxonche_9PyXdmNode_20axis_nodes (__pyx_v_axis=<optimized out>,
__pyx_v_self=0x7ffff79ee020) at python_saxon/saxonc.cpp:49058
warning: 49058 python_saxon/saxonc.cpp: No such file or directory
(gdb) backtrace
#0 0x00007ffff794ae7f in __pyx_pf_8saxonche_9PyXdmNode_20axis_nodes (__pyx_v_axis=<optimized out>,
__pyx_v_self=0x7ffff79ee020) at python_saxon/saxonc.cpp:49058
#1 __pyx_pw_8saxonche_9PyXdmNode_21axis_nodes (__pyx_v_self=0x7ffff79ee020, __pyx_arg_axis=<optimized out>)
at python_saxon/saxonc.cpp:48963
#2 0x00000000005514f4 in ?? ()
#3 0x0000000000549715 in PyObject_Vectorcall ()
#4 0x00000000005d70f9 in _PyEval_EvalFrameDefault ()
#5 0x00000000005d560b in PyEval_EvalCode ()
#6 0x0000000000608812 in ?? ()
#7 0x00000000006b50e3 in ?? ()
#8 0x00000000006b4e4a in _PyRun_SimpleFileObject ()
#9 0x00000000006b4c7f in _PyRun_AnyFileObject ()
#10 0x00000000006bcd35 in Py_RunMain ()
#11 0x00000000006bc81d in Py_BytesMain ()
#12 0x00007ffff7c9f1ca in __libc_start_call_main (main=main@entry=0x518880, argc=argc@entry=2,
argv=argv@entry=0x7fffffffe0a8) at ../sysdeps/nptl/libc_start_call_main.h:58
#13 0x00007ffff7c9f28b in __libc_start_main_impl (main=0x518880, argc=2, argv=0x7fffffffe0a8,
init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffe098)
at ../csu/libc-start.c:360
#14 0x0000000000657ca5 in _start ()
Please register to edit this issue
Actions