Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8219954

Very long field in one XML & Saxon

    Details

    • Subcomponent:
    • CPU:
      x86
    • OS:
      linux

      Description

      ADDITIONAL SYSTEM INFORMATION :
      $ cat /etc/redhat-release
      CentOS Linux release 7.5.1804 (Core)


      A DESCRIPTION OF THE PROBLEM :
      The input XML was a very short one but one field was very long: Base64 of almost 2 millions char:

      <?xml version="1.0" encoding="UTF-8"?>
      <csv:csv xmlns:csv="http://xmlns.babelway.com/2007/message-format/csv">
         <csv:line>
            <csv:field>First temp field that will not be used</csv:field>
           <csv:field>VERY LONG BASE64!!!!!!!!!!! (1.735.636 char)</csv:field>

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # SIGSEGV (0xb) at pc=0x00007f29667b0244, pid=47916, tid=0x00007f27364ea700
      #
      # JRE version: OpenJDK Runtime Environment (8.0_181-b13) (build 1.8.0_181-b13)
      # Java VM: OpenJDK 64-Bit Server VM (25.181-b13 mixed mode linux-amd64 compressed oops)
      # Problematic frame:
      # J 6311 C2 net.sf.saxon.expr.MappingIterator.next()Lnet/sf/saxon/om/Item; (125 bytes) @ 0x00007f29667b0244 [0x00007f29667b0040+0x204]
      #
      # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
      #
      # If you would like to submit a bug report, please visit:
      # http://bugreport.java.com/bugreport/crash.jsp
      #

      --------------- T H R E A D ---------------

      Current thread (0x00007f276c15a000): JavaThread "BABELWAY_EXECUTOR_REGULAR_16851_1fe06c30-19c4-4bf2-a260-c24bd042713b_isolated" [_thread_in_Java, id=48406, stack(0x00007f27363ea000,0x00007f27364eb000)]

      siginfo: si_signo: 11 (SIGSEGV), si_code: 1 (SEGV_MAPERR), si_addr: 0x0000000000000040

      Stack: [0x00007f27363ea000,0x00007f27364eb000], sp=0x00007f27364e8c50, free space=1019k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      J 6311 C2 net.sf.saxon.expr.MappingIterator.next()Lnet/sf/saxon/om/Item; (125 bytes) @ 0x00007f29667b0244 [0x00007f29667b0040+0x204]
      J 26655 C2 net.sf.saxon.value.SequenceExtent.<init>(Lnet/sf/saxon/om/SequenceIterator;)V (153 bytes) @ 0x00007f296979a38c [0x00007f2969799ca0+0x6ec]
      J 42897 C2 net.sf.saxon.value.Value.convertToJava(Ljava/lang/Class;Lnet/sf/saxon/expr/XPathContext;)Ljava/lang/Object; (1074 bytes) @ 0x00007f296a78fcbc [0x00007f296a78f360+0x95c]
      J 22702 C2 net.sf.saxon.functions.ExtensionFunctionCall.call([Lnet/sf/saxon/om/ValueRepresentation;Lnet/sf/saxon/expr/XPathContext;)Lnet/sf/saxon/om/SequenceIterator; (759 bytes) @ 0x00007f296619154c [0x00007f29661910c0+0x48c]
      J 40751 C2 net.sf.saxon.functions.ExtensionFunctionCall.iterate(Lnet/sf/saxon/expr/XPathContext;)Lnet/sf/saxon/om/SequenceIterator; (127 bytes) @ 0x00007f2967904774 [0x00007f2967904640+0x134]
      J 20464 C2 net.sf.saxon.expr.ExpressionTool.evaluate(Lnet/sf/saxon/expr/Expression;ILnet/sf/saxon/expr/XPathContext;I)Lnet/sf/saxon/om/ValueRepresentation; (755 bytes) @ 0x00007f29689dfad4 [0x00007f29689dd260+0x2874]
      J 40751 C2 net.sf.saxon.functions.ExtensionFunctionCall.iterate(Lnet/sf/saxon/expr/XPathContext;)Lnet/sf/saxon/om/SequenceIterator; (127 bytes) @ 0x00007f2967904800 [0x00007f2967904640+0x1c0]
      J 13430 C2 net.sf.saxon.expr.Expression.evaluateItem(Lnet/sf/saxon/expr/XPathContext;)Lnet/sf/saxon/om/Item; (11 bytes) @ 0x00007f2965821e1c [0x00007f2965821de0+0x3c]
      J 19218 C2 net.sf.saxon.functions.StringFn.evaluateItem(Lnet/sf/saxon/expr/XPathContext;)Lnet/sf/saxon/om/Item; (29 bytes) @ 0x00007f2965be4a1c [0x00007f2965be49c0+0x5c]
      J 20464 C2 net.sf.saxon.expr.ExpressionTool.evaluate(Lnet/sf/saxon/expr/Expression;ILnet/sf/saxon/expr/XPathContext;I)Lnet/sf/saxon/om/ValueRepresentation; (755 bytes) @ 0x00007f29689df468 [0x00007f29689dd260+0x2208]
      J 40751 C2 net.sf.saxon.functions.ExtensionFunctionCall.iterate(Lnet/sf/saxon/expr/XPathContext;)Lnet/sf/saxon/om/SequenceIterator; (127 bytes) @ 0x00007f2967904800 [0x00007f2967904640+0x1c0]
      J 13430 C2 net.sf.saxon.expr.Expression.evaluateItem(Lnet/sf/saxon/expr/XPathContext;)Lnet/sf/saxon/om/Item; (11 bytes) @ 0x00007f2965821e1c [0x00007f2965821de0+0x3c]
      J 38805 C2 net.sf.saxon.instruct.SimpleContentConstructor.evaluateItem(Lnet/sf/saxon/expr/XPathContext;)Lnet/sf/saxon/om/Item; (329 bytes) @ 0x00007f29669c64c0 [0x00007f29669c6460+0x60]
      J 35765 C2 net.sf.saxon.instruct.ValueOf.processLeavingTail(Lnet/sf/saxon/expr/XPathContext;)Lnet/sf/saxon/instruct/TailCall; (40 bytes) @ 0x00007f296a66e240 [0x00007f296a66e1c0+0x80]
      J 20396 C2 net.sf.saxon.instruct.Block.processLeavingTail(Lnet/sf/saxon/expr/XPathContext;)Lnet/sf/saxon/instruct/TailCall; (117 bytes) @ 0x00007f2968b74c64 [0x00007f2968b74b80+0xe4]
      J 10246 C2 net.sf.saxon.instruct.Instruction.process(Lnet/sf/saxon/expr/XPathContext;)V (52 bytes) @ 0x00007f2967242c60 [0x00007f2967242c20+0x40]
      J 22380 C2 net.sf.saxon.instruct.ForEach.processLeavingTail(Lnet/sf/saxon/expr/XPathContext;)Lnet/sf/saxon/instruct/TailCall; (134 bytes) @ 0x00007f296858f574 [0x00007f296858ef40+0x634]
      J 13415 C2 net.sf.saxon.expr.LetExpression.processLeavingTail(Lnet/sf/saxon/expr/XPathContext;)Lnet/sf/saxon/instruct/TailCall; (74 bytes) @ 0x00007f29660e7190 [0x00007f29660e6fc0+0x1d0]
      J 17506 C2 net.sf.saxon.instruct.Choose.processLeavingTail(Lnet/sf/saxon/expr/XPathContext;)Lnet/sf/saxon/instruct/TailCall; (122 bytes) @ 0x00007f2965e6a3a4 [0x00007f2965e6a280+0x124]
      J 20396 C2 net.sf.saxon.instruct.Block.processLeavingTail(Lnet/sf/saxon/expr/XPathContext;)Lnet/sf/saxon/instruct/TailCall; (117 bytes) @ 0x00007f2968b74c64 [0x00007f2968b74b80+0xe4]
      J 13415 C2 net.sf.saxon.expr.LetExpression.processLeavingTail(Lnet/sf/saxon/expr/XPathContext;)Lnet/sf/saxon/instruct/TailCall; (74 bytes) @ 0x00007f29660e7190 [0x00007f29660e6fc0+0x1d0]
      J 17506 C2 net.sf.saxon.instruct.Choose.processLeavingTail(Lnet/sf/saxon/expr/XPathContext;)Lnet/sf/saxon/instruct/TailCall; (122 bytes) @ 0x00007f2965e6a3a4 [0x00007f2965e6a280+0x124]
      J 20396 C2 net.sf.saxon.instruct.Block.processLeavingTail(Lnet/sf/saxon/expr/XPathContext;)Lnet/sf/saxon/instruct/TailCall; (117 bytes) @ 0x00007f2968b74c64 [0x00007f2968b74b80+0xe4]
      J 22269 C2 net.sf.saxon.instruct.Template.applyLeavingTail(Lnet/sf/saxon/expr/XPathContext;Lnet/sf/saxon/trans/Rule;)Lnet/sf/saxon/instruct/TailCall; (57 bytes) @ 0x00007f2968e707e4 [0x00007f2968e6fdc0+0xa24]
      J 25919 C2 net.sf.saxon.instruct.ApplyTemplates.applyTemplates(Lnet/sf/saxon/om/SequenceIterator;Lnet/sf/saxon/trans/Mode;Lnet/sf/saxon/instruct/ParameterSet;Lnet/sf/saxon/instruct/ParameterSet;Lnet/sf/saxon/expr/XPathContextMajor;ZI)Lnet/sf/saxon/instruct/TailCall; (350 bytes) @ 0x00007f2968ae46c0 [0x00007f2968ae39e0+0xce0]
      J 38838 C2 net.sf.saxon.Controller.transformDocument(Lnet/sf/saxon/om/NodeInfo;Ljavax/xml/transform/Result;)V (726 bytes) @ 0x00007f296a1d6be8 [0x00007f296a1d5320+0x18c8]
      J 31994 C2 net.sf.saxon.Controller.transform(Ljavax/xml/transform/Source;Ljavax/xml/transform/Result;)V (461 bytes) @ 0x00007f2966ab3134 [0x00007f2966ab2e40+0x2f4]
      J 41954 C2 com.babelway.util.xml.XsltHelper.applyXslAndGetMessages(Ljavax/xml/transform/Source;Ljavax/xml/transform/Templates;Ljavax/xml/transform/Result;Ljava/util/Map;Ljavax/xml/transform/URIResolver;Ljava/nio/charset/Charset;Ljava/lang/Boolean;)Lcom/babelway/util/xml/XsltErrorMessages; (229 bytes) @ 0x00007f296b6d3044 [0x00007f296b6d14a0+0x1ba4]
      J 25128 C2 com.babelway.messaging.transformation.xslt.XsltXmlToXml.applyXsl(Lcom/babelway/messaging/message/MessageExecutionData;Ljavax/xml/transform/Templates;Ljava/nio/charset/Charset;Ljava/nio/charset/Charset;ZZ)V (334 bytes) @ 0x00007f296950cca0 [0x00007f296950c540+0x760]
      J 32465 C2 com.babelway.messaging.transformation.AbstractTransformation.execute(Lcom/babelway/messaging/execution/HubRuntime;Lcom/babelway/messaging/message/MessageExecutionData;)V (159 bytes) @ 0x00007f296a43f38c [0x00007f296a43f2a0+0xec]
      J 32473 C2 com.babelway.messaging.execution.MessageExecutor.transformation(Lcom/babelway/messaging/execution/HubRuntime;Lcom/babelway/messaging/message/MessageExecutionData;)V (78 bytes) @ 0x00007f296a211544 [0x00007f296a2110a0+0x4a4]
      J 41212 C2 com.babelway.messaging.execution.TaskExecutor$MonitoredRunnable.run()V (334 bytes) @ 0x00007f296adc76b8 [0x00007f296adc7020+0x698]
      J 25700 C2 java.util.concurrent.FutureTask.run()V (126 bytes) @ 0x00007f2967a5a224 [0x00007f2967a5a100+0x124]
      J 22095 C2 java.util.concurrent.ThreadPoolExecutor.runWorker(Ljava/util/concurrent/ThreadPoolExecutor$Worker;)V (225 bytes) @ 0x00007f2966b4e5a0 [0x00007f2966b4e3c0+0x1e0]
      J 26639 C2 java.lang.Thread.run()V (17 bytes) @ 0x00007f296861bfb4 [0x00007f296861bf60+0x54]
      v ~StubRoutines::call_stub
      V [libjvm.so+0x68364a]
      V [libjvm.so+0x680ae4]
      V [libjvm.so+0x6810f9]
      V [libjvm.so+0x6c5721]
      V [libjvm.so+0xa788a2]
      V [libjvm.so+0x8beb82]
      C [libpthread.so.0+0x7e25] start_thread+0xc5

      vm_info: OpenJDK 64-Bit Server VM (25.181-b13) for linux-amd64 JRE (1.8.0_181-b13), built on Jul 23 2018 15:56:20 by "mockbuild" with gcc 4.8.5 20150623 (Red Hat 4.8.5-28)

      time: Sat Feb 16 18:50:06 2019
      elapsed time: 814698 seconds (9d 10h 18m 18s)




      CUSTOMER SUBMITTED WORKAROUND :
      Something it works, sometimes not. When it happens, we restart the JVM and reprocess the message that contains this XML in our application

      FREQUENCY : often


        Attachments

          Activity

            People

            • Assignee:
              fmatte Fairoz Matte
              Reporter:
              webbuggrp Webbug Group
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: