Project

Profile

Help

Bug #6324

closed

PyXdmValue toString causes SIGSEGV, Segmentation fault

Added by O'Neil Delpratt 10 months ago. Updated 10 months ago.

Status:
Closed
Priority:
Normal
Category:
Python API
Start date:
2024-01-18
Due date:
% Done:

100%

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

Description

Reported by user here: https://saxonica.plan.io/boards/4/topics/9589

The following code snipper where we create an XdmValue, add items and print throws a SIGSEGV fault.:

    xdm_value = PyXdmValue()

    #print(xdm_value)

    xdm_value.add_xdm_item(saxon_proc.make_string_value('foo'))

    print(xdm_value)

under gdb shows more details:

Thread 1 "python3" received signal SIGSEGV, Segmentation fault.
0x00007ffff733f36a in XdmValue::toString (this=0x555555baed90) at Saxon.C.API/XdmValue.cpp:40
40	                        (void *)(values[0]->getUnderlyingValue()));

Related issues

Precedes SaxonC - Bug #6327: TypeError: __str__ returned non-string (type NoneType)ClosedO'Neil Delpratt2024-01-192024-01-19

Actions

Please register to edit this issue

Also available in: Atom PDF