Project

Profile

Help

Bug #5293

closed

Thread 1 "testXQuery" received signal SIGSEGV, Segmentation fault

Added by O'Neil Delpratt almost 3 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Normal
Category:
C API
Start date:
2022-02-07
Due date:
% Done:

100%

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

Description

Reported here: https://saxonica.plan.io/boards/4/topics/8447

The C API for testXQuery sample crashes with following error:

Saxon version: 11.1

JET RUNTIME HAS DETECTED UNRECOVERABLE ERROR: system exception at 0x00005562de1f2da2
Please, contact the vendor of the application.
Core dump will be written to "/home/mh/libsaxon-HEC-11.1/samples/cTests/core"
Extra information about error is saved in the "jet_err_21584.txt" file.

Aborted (core dumped)

Within the debugger tool gdb we see the underlying issue:

Thread 1 "testXQuery" received signal SIGSEGV, Segmentation fault.
0x0000555555555d42 in checkForException ()
Actions #1

Updated by O'Neil Delpratt almost 3 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

The underlying cause of the failure is the cat.xml file was missing from the directory. I have changed the test to pick up the file from the data directory.

However, I discovered that the checkForException function was muddled with the argument given as the sxn_environ pointer but in the function it was expecting Jet env reference. I have committed a fix for this across all functions and test programs in the C API.

Actions #2

Updated by Debbie Lockett almost 3 years ago

  • Status changed from Resolved to Closed
  • Fixed in version set to 11.2

Bug fix applied in the Saxon 11.2 maintenance release.

Please register to edit this issue

Also available in: Atom PDF