Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-17615

Roxie query coring when called without value for stored row

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.6.8, 6.2.12, 6.2.14
    • Fix Version/s: 6.4.0
    • Component/s: Code Generator
    • Labels:
      None

      Description

      Roxie query has an input parameter defined as:

      PCRequest := ROW([], Layout_PCRequest) : STORED('PersonContextRequest');

      If a request was received with an empty PersonContextRequest:

      <klogemann.servicegetpersoncontextRequest>
      <personcontextrequest></personcontextrequest>
      </klogemann.servicegetpersoncontextRequest>

      Roxie cored:

      00006983 2017-05-11 11:57:41.101 9832 32270 "Signal: 11 Segmentation fault"
      00006984 2017-05-11 11:57:41.101 9832 32270 "Fault IP: 00007F346935B563"
      00006985 2017-05-11 11:57:41.101 9832 32270 "Accessing: 0000000000000000"
      00006986 2017-05-11 11:57:41.101 9832 32270 "Registers:"
      00006987 2017-05-11 11:57:41.101 9832 32270 "EAX:0000000000000000 EBX:00007F34004B6B10 ECX:00007F35175B6140 EDX:0000000000000000 ESI:00000000282FFA70 EDI:000000002C7A04B0"
      00006988 2017-05-11 11:57:41.101 9832 32270 "CS:EIP:0033:00007F346935B563"
      00006989 2017-05-11 11:57:41.101 9832 32270 " ESP:00007F33FEBFC2E0 EBP:00007F33FEBFC330"
      0000698A 2017-05-11 11:57:41.101 9832 32270 "Stack[00007F33FEBFC2E0]: 00007F3300000000 2FDB85B000007F33 000000002FDB85B0 0000000000000000 0000000000000000 D97B144000000000 00007F34D97B1440 025C642000007F34"
      0000698B 2017-05-11 11:57:41.101 9832 32270 "Stack[00007F33FEBFC300]: 00000000025C6420 0000000000000000 0000000000000000 1C2A1E7000000000 00007F351C2A1E70 E128008800007F35 00007F34E1280088 2C7A04B000007F34"
      0000698C 2017-05-11 11:57:41.101 9832 32270 "Stack[00007F33FEBFC320]: 000000002C7A04B0 0000020C00000000 000000000000020C 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000100000000"
      0000698D 2017-05-11 11:57:41.101 9832 32270 "Stack[00007F33FEBFC340]: 0000000000000001 6935B3F000000000 00007F346935B3F0 0055EA7000007F34 00007F340055EA70 0000000000007F34 0000000000000000 0000000000000000"
      0000698E 2017-05-11 11:57:41.101 9832 32270 "Stack[00007F33FEBFC360]: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 1DA9045400000000 00007F351DA90454 0055EB3800007F35"
      0000698F 2017-05-11 11:57:41.101 9832 32270 "Stack[00007F33FEBFC380]: 00007F340055EB38 DAEFF8F000007F34 00000000DAEFF8F0 2AAB8EE000000000 00007F342AAB8EE0 0055EA7000007F34 00007F340055EA70 0055EA7000007F34"
      00006990 2017-05-11 11:57:41.101 9832 32270 "Stack[00007F33FEBFC3A0]: 00007F340055EA70 0055EC5800007F34 00007F340055EC58 0000000000007F34 0000000000000000 0000000000000000 0000000000000000 0000000000000000"
      00006991 2017-05-11 11:57:41.101 9832 32270 "Stack[00007F33FEBFC3C0]: 0000000000000000 1DA5FD5C00000000 00007F351DA5FD5C 0000000000007F35 0000000000000000 1DAAF8DE00000000 00007F351DAAF8DE FEBFD9C000007F35"
      00006992 2017-05-11 11:57:41.101 9832 32270 "Backtrace:"
      00006993 2017-05-11 11:57:41.103 9832 32270 " /opt/HPCCSystems/lib/libjlib.so(+0xd0958) [0x7f3518cdc958]"
      00006994 2017-05-11 11:57:41.103 9832 32270 " /opt/HPCCSystems/lib/libjlib.so(_Z13excsighandleriP7siginfoPv+0x33c) [0x7f3518cde5cc]"
      00006995 2017-05-11 11:57:41.103 9832 32270 " /usr/lib/jvm/jre/lib/amd64/server/libjvm.so(+0x7f9354) [0x7f34bab3f354]"
      00006996 2017-05-11 11:57:41.103 9832 32270 " /usr/lib/jvm/jre/lib/amd64/server/libjvm.so(JVM_handle_linux_signal+0x95) [0x7f34bab45305]"
      00006997 2017-05-11 11:57:41.103 9832 32270 " /lib64/libpthread.so.0(+0xf7e0) [0x7f35175cb7e0]"
      00006998 2017-05-11 11:57:41.103 9832 32270 " /var/lib/HPCCSystems/queries/roxie_dev192/libW20170511-115544.so(+0xe563) [0x7f346935b563]"
      00006999 2017-05-11 11:57:41.103 9832 32270 " /opt/HPCCSystems/lib/libccd.so(_ZN20CRoxieServerActivity5startEjPKhb+0x134) [0x7f351da90454]"
      0000699A 2017-05-11 11:57:41.103 9832 32270 " /opt/HPCCSystems/lib/libccd.so(_ZN28CRoxieServerStrandedActivity5startEjPKhb+0xc) [0x7f351da5fd5c]"
      0000699B 2017-05-11 11:57:41.103 9832 32270 " /opt/HPCCSystems/lib/libccd.so(_ZN39CRoxieServerStrandedInlineTableActivity5startEjPKhb+0x1e) [0x7f351daaf8de]"
      0000699C 2017-05-11 11:57:41.103 9832 32270 " /opt/HPCCSystems/lib/libccd.so(_ZN20CRoxieServerActivity5startEjPKhb+0xfa) [0x7f351da9041a]"
      0000699D 2017-05-11 11:57:41.103 9832 32270 " /opt/HPCCSystems/lib/libccd.so(_ZN32CRoxieServerInternalSinkActivity7executeEjPKh+0x8a) [0x7f351dacd57a]"
      0000699E 2017-05-11 11:57:41.103 9832 32270 " /opt/HPCCSystems/lib/libccd.so(_ZZN14CActivityGraph9doExecuteEjPKhEN9casyncfor2DoEj+0x29) [0x7f351da77cb9]"
      0000699F 2017-05-11 11:57:41.103 9832 32270 " /opt/HPCCSystems/lib/libjlib.so(+0x16f6d9) [0x7f3518d7b6d9]"
      000069A0 2017-05-11 11:57:41.103 9832 32270 " /opt/HPCCSystems/lib/libjlib.so(_ZN6Thread5beginEv+0x2c) [0x7f3518d7c01c]"
      000069A1 2017-05-11 11:57:41.103 9832 32270 " /opt/HPCCSystems/lib/libjlib.so(_ZN6Thread11_threadmainEPv+0x1e) [0x7f3518d7d9de]"
      000069A2 2017-05-11 11:57:41.103 9832 32270 " /lib64/libpthread.so.0(+0x7aa1) [0x7f35175c3aa1]"
      000069A3 2017-05-11 11:57:41.103 9832 32270 " /lib64/libc.so.6(clone+0x6d) [0x7f3517310aad]"

      Richard recreated and commented:

      0x0000000100009e53 in cAc2::onCreate (this=0x104202040, _ctx=0x147000808, in=0x0) at a.out.cpp:533
      533 rowI = (v8.queryrows())[0U];

      (gdb) list
      528 RtlDynamicRowBuilder b6(alloc7);
      529 rtlRowsAttr v8;
      530 Owned<IXmlToRowTransformer> xml9 = crcx2rA(ctx,2U);
      531 ctx->getResultRowset(v8.count,v8.refrows(),"personcontextrequest",4294967295U,alloc7,false,xml9,0);
      532 byte * rowI;
      533 rowI = (v8.queryrows())[0U];
      534 unsigned vJ = *((unsigned *)(rowI + 512U)) + 4U;
      535 b6.ensureCapacity(vJ + 512U,"");
      536 memcpy(b6.row() + 0U,rowI + 0U,vJ + 512U);
      537 r5.setown(b6.finalizeRowClear(vJ + 512U));

      Looks like queryRows() returned null.

      Richard ChapmanGavin HallidayLorraine Chapman

        Attachments

          Activity

            People

            • Assignee:
              ghalliday Gavin Halliday
              Reporter:
              kev77log Kevin Logemann
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: