Project

Profile

Help

testXQuery (compiled from testXQuery.c) core dumps under Ubuntu with SaxonC 11.1 HE

Added by Martin Honnen almost 3 years ago

I have started to install SaxonC 11 HE, so far I have had some success under Ubuntu Linux 20.04 run in the Windows Linux subsystem.

However, while the testXPath and testXSLT compiled from the .c sources of the same names run through, testXQuery compiled from testXQuery.c core dumps:

mh@liberty-main-hp:~/libsaxon-HEC-11.1/samples/cTests$ ./testXQuery
XQuery Tests

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)

Any ideas why the testXPath and testXSLT work on that platform but the testXQuery crashes?

The txt file starts with

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"

Signal 11 (SIGSEGV)
siginfo: si_signo 11, si_errno 0, si_code 1, si_addr 0x0000000000000000

Version Information:

  Java version: 1.8.0_181
  Excelsior JET 15.30 Enterprise edition
  JET Profile: OpenJDK version: 1.8.0_181; JET update level: 6; CPU architecture: amd64
  Runtime: Server
  CPU features: cmov mmx sse sse2 sse3 ssse3 sse4.1 sse4.2 avx avx2 fma f16c lzcnt popcnt bmi1 bmi2 adx cx8 cx16 movbe tsx.hle tsx.rtm
  Application was deployed

Options and system properties:

  -Djet.jit.disable.resolution=
  -Djet.gc.heaplimit=0
  -Djet.stack.trace=

Entry point type: Invocation API

Command line: "./testXQuery"

OS:

Ubuntu 20.04.3 LTS
Linux 5.10.60.1-microsoft-standard-WSL2 #1 SMP Wed Aug 25 23:20:18 UTC 2021 x86_64
glibc 2.31

JET-compiled Components:

/usr/lib/libsaxonhec.so dll, version info: jet-1530-mp1 (ent, en)


Replies (3)

Please register to reply

RE: testXQuery (compiled from testXQuery.c) core dumps under Ubuntu with SaxonC 11.1 HE - Added by O'Neil Delpratt almost 3 years ago

Please can you try running:

gdb ./testXQuery
handle SIG35 noprint nostop
run

RE: testXQuery (compiled from testXQuery.c) core dumps under Ubuntu with SaxonC 11.1 HE - Added by O'Neil Delpratt almost 3 years ago

Fails for me too. See results:


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

The bug seems to be in the checkForException for the C XQuery API

    (1-3/3)

    Please register to reply