Actions
Bug #6294
closedparseJsonFromFile gives segmentation fault
Start date:
2023-12-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
the parseJsonFromString
and parsejsonFromFile
throws the segmentation fault error:
#0 0x0000555555576279 in XdmValue::addXdmItem (this=0x5555555abf10, val=0x5555555ac1b0) at ../../Saxon.C.API/XdmValue.cpp:174
174 values[xdmSize] = val;
(gdb) where
#0 0x0000555555576279 in XdmValue::addXdmItem (this=0x5555555abf10, val=0x5555555ac1b0) at ../../Saxon.C.API/XdmValue.cpp:174
#1 0x00005555555759d3 in XdmValue::XdmValue (this=0x5555555abf10, valRef=6) at ../../Saxon.C.API/XdmValue.cpp:61
#2 0x000055555555ee86 in SaxonProcessor::parseJsonFromFile (this=0x5555555aaf40,
source=0x555555587278 "file:/home/mh/libsaxon-HEC-linux-amd64-v12.4.1/samples/data/sample1.json") at ../../Saxon.C.API/SaxonProcessor.cpp:816
#3 0x000055555558068c in testXPathSingleJSONFile (processor=0x5555555aaf40, xpath=0x5555555abd10, sresult=0x5555555ab900) at testXPath.cpp:47
#4 0x0000555555583a21 in main () at testXPath.cpp:562
Updated by O'Neil Delpratt about 1 year ago
- Status changed from New to In Progress
- % Done changed from 0 to 100
Bug fixed in the xdmValue class. The XdmValue::XdmValue(int64_t valRef)
constructor is missing a call on initialize()
method.
Bug fixed and tested in the Python code.
Updated by O'Neil Delpratt about 1 year ago
- Status changed from In Progress to Resolved
Updated by O'Neil Delpratt 11 months ago
- Status changed from Resolved to Closed
- Fixed in version set to 12.4.2
Fix applied in SaxonC 12.4.2 maintenance release
Please register to edit this issue
Actions