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

Dafileserv segfaults on unexpected command

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 7.0.0
    • Fix Version/s: 7.0.0
    • Component/s: dafilesrv
    • Labels:
      None

      Description

      Inadvertently sent in a request to dafilesrv with leading "43" rather than '\u002B' for RFCStreamReadCmd.

      Dafilesrv seems to segfault attempting to process the first char '4' as an incoming command

       

      00000018 2018-06-25 09:43:46.914 24776 24947 "jsocket(2,1574) wait_read POLLERR 9 l:7100 r:10.0.2.15:41156 err = 104 : A!:7100 -> 10.0.2.15:41156 (9)"
      00000019 2018-06-25 09:43:46.914 24776 24947 "WARNING: CRemoteClientHandler::main wait_read error"
      0000001A 2018-06-25 09:43:46.914 24776 24947 "onCloseSocket(1) 10.0.2.15:41156"
      0000001B 2018-06-25 09:44:58.094 24776 24776 "Server accepting from 10.0.2.15:41176"
      0000001C 2018-06-25 09:46:03.153 24776 24947 "================================================"
      0000001D 2018-06-25 09:46:03.153 24776 24947 "Program: 10.0.2.15:/home/hadoop/GIT/HPCC-build/Debug/bin/dafilesrv"
      0000001E 2018-06-25 09:46:03.153 24776 24947 "Signal: 11 Segmentation fault"
      0000001F 2018-06-25 09:46:03.153 24776 24947 "Fault IP: 00007FFFF6B08CC0"
      00000020 2018-06-25 09:46:03.154 24776 24947 "Accessing: 0000000600000000"
      00000021 2018-06-25 09:46:03.154 24776 24947 "Backtrace:"
      00000022 2018-06-25 09:46:03.158 24776 24947 " /lib/x86_64-linux-gnu/libc.so.6(_IO_vfprintf+0x1b50) [0x7ffff6b08cc0]"
      00000023 2018-06-25 09:46:03.158 24776 24947 " /lib/x86_64-linux-gnu/libc.so.6(vsnprintf+0x79) [0x7ffff6b30a49]"
      00000024 2018-06-25 09:46:03.158 24776 24947 " /home/hadoop/GIT/HPCC-build/Debug/libs/libjlib.so(ZN12StringBuffer22limited_valist_appendfEmPKcP13_va_list_tag+0xcb) [0x7ffff7847871]"
      00000025 2018-06-25 09:46:03.158 24776 24947 " /home/hadoop/GIT/HPCC-build/Debug/libs/libjlib.so(ZN12StringBuffer14valist_appendfEPKcP13_va_list_tag+0x2d) [0x7ffff77b31e3]"
      00000026 2018-06-25 09:46:03.159 24776 24947 " /home/hadoop/GIT/HPCC-build/Debug/libs/libjlib.so(_ZN13VStringBufferC1EPKcz+0xcb) [0x7ffff7849617]"
      00000027 2018-06-25 09:46:03.159 24776 24947 " /home/hadoop/GIT/HPCC-build/Debug/libs/libremote.so(_ZN17CRemoteFileServer15formatExceptionER12MemoryBufferP10IExceptionhbjPNS_20CRemoteClientHandlerE+0x101) [0x7ffff7bac229]"
      00000028 2018-06-25 09:46:03.159 24776 24947 " /home/hadoop/GIT/HPCC-build/Debug/libs/libremote.so(_ZN17CRemoteFileServer14processCommandEhR12MemoryBufferS1_PNS_20CRemoteClientHandlerEPNS_10CThrottlerE+0x568) [0x7ffff7baca54]"
      00000029 2018-06-25 09:46:03.163 24776 24947 " /home/hadoop/GIT/HPCC-build/Debug/libs/libremote.so(_ZN17CRemoteFileServer20CRemoteClientHandler14processCommandEhR12MemoryBufferPNS_10CThrottlerE+0x6d) [0x7ffff7ba3685]"
      0000002A 2018-06-25 09:46:03.163 24776 24947 " /home/hadoop/GIT/HPCC-build/Debug/libs/libremote.so(_ZN17CRemoteFileServer15throttleCommandEhR12MemoryBufferPNS_20CRemoteClientHandlerE+0x9e) [0x7ffff7bac4cc]"
      0000002B 2018-06-25 09:46:03.163 24776 24947 " /home/hadoop/GIT/HPCC-build/Debug/libs/libremote.so(_ZN17CRemoteFileServer20CRemoteClientHandler15throttleCommandER12MemoryBuffer+0x62) [0x7ffff7ba34ce]"
      0000002C 2018-06-25 09:46:03.163 24776 24947 " /home/hadoop/GIT/HPCC-build/Debug/libs/libremote.so(_ZN17CRemoteFileServer20CRemoteClientHandler7processER12MemoryBuffer+0x3f) [0x7ffff7ba3855]"
      0000002D 2018-06-25 09:46:03.163 24776 24947 " /home/hadoop/GIT/HPCC-build/Debug/libs/libremote.so(_ZN17CRemoteFileServer17cCommandProcessor10threadmainEv+0x3f) [0x7ffff7ba539b]"
      0000002E 2018-06-25 09:46:03.163 24776 24947 " /home/hadoop/GIT/HPCC-build/Debug/libs/libjlib.so(_ZN20CPooledThreadWrapper3runEv+0x10d) [0x7ffff7852b85]"
      0000002F 2018-06-25 09:46:03.163 24776 24947 " /home/hadoop/GIT/HPCC-build/Debug/libs/libjlib.so(_ZN6Thread5beginEv+0x67) [0x7ffff784fa2d]"
      00000030 2018-06-25 09:46:03.163 24776 24947 " /home/hadoop/GIT/HPCC-build/Debug/libs/libjlib.so(_ZN6Thread11_threadmainEPv+0x49) [0x7ffff784f477]"
      00000031 2018-06-25 09:46:03.163 24776 24947 " /lib/x86_64-linux-gnu/libpthread.so.0(+0x76ba) [0x7ffff6e8b6ba]"
      00000032 2018-06-25 09:46:03.163 24776 24947 " /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d) [0x7ffff6bc141d]"
      00000033 2018-06-25 09:46:03.163 24776 24947 "Registers:"
      00000034 2018-06-25 09:46:03.163 24776 24947 "EAX:0000000000000000 EBX:00007FFFF1E12ED0 ECX:FFFFFFFFFFFFFFFF EDX:0000000000000018 ESI:00007FFFF1E12E88 EDI:0000000600000000"
      00000035 2018-06-25 09:46:03.163 24776 24947 "R8 :0000000000000000 R9 :000000000000000B R10:0000000000000073 R11:0000000600000000"
      00000036 2018-06-25 09:46:03.164 24776 24947 "R12:00007FFFF7BBA324 R13:00007FFFF1E13130 R14:0000000000000000 R15:00007FFFF7BBA32F"
      00000037 2018-06-25 09:46:03.164 24776 24947 "CS:EIP:0033:00007FFFF6B08CC0"
      00000038 2018-06-25 09:46:03.164 24776 24947 " ESP:00007FFFF1E12950 EBP:00007FFFF1E12EC0"
      00000039 2018-06-25 09:46:03.164 24776 24947 "Stack[00007FFFF1E12950]: 00007FFFF63BFAB6 F6B3324200007FFF 00007FFFF6B33242 0062680000007FFF 0000000000626800 F1E12A3800000000 00007FFFF1E12A38 F1E12A2800007FFF"
      0000003A 2018-06-25 09:46:03.164 24776 24947 "Stack[00007FFFF1E12970]: 00007FFFF1E12A28 0000000000007FFF 0000000000000000 0000000000000000 00007FFF00000000 F1E12A4000007FFF 00007FFFF1E12A40 0000000000007FFF"
      0000003B 2018-06-25 09:46:03.164 24776 24947 "Stack[00007FFFF1E12990]: 00007FFF00000000 F6B3324200007FFF 00007FFFF6B33242 0000000000007FFF 00007FFF00000000 0066212000007FFF 0000000000662120 0000000000000000"
      0000003C 2018-06-25 09:46:03.165 24776 24947 "Stack[00007FFFF1E129B0]: 00007FFF00000000 0000000000007FFF 00007FFF00000000 F1E12A5000007FFF 00007FFFF1E12A50 0000000000007FFF 0000000000000000 0000000000000000"
      0000003D 2018-06-25 09:46:03.165 24776 24947 "Stack[00007FFFF1E129D0]: 0000000000000000 F1E12E8800000000 00007FFFF1E12E88 0000000000007FFF 00007FFF00000000 FFFFFFFF00007FFF 00000000FFFFFFFF 0000000000000000"
      0000003E 2018-06-25 09:46:03.165 24776 24947 "Stack[00007FFFF1E129F0]: 00007FFF00000000 0000000000007FFF 0000000000000000 F1E12AA000000000 00007FFFF1E12AA0 0000000000007FFF 0000000000000000 FFFFFFFF00000000"
      0000003F 2018-06-25 09:46:03.165 24776 24947 "Stack[00007FFFF1E12A10]: FFFFFFFFFFFFFFFF 00000000FFFFFFFF 0000006800000000 F1E12FC800000068 00007FFFF1E12FC8 F7BBA33000007FFF 00007FFFF7BBA330 F78968A300007FFF"
      00000040 2018-06-25 09:46:03.165 24776 24947 "Stack[00007FFFF1E12A30]: 00007FFFF78968A3 F6B073A100007FFF 00007FFFF6B073A1 0000000000007FFF 0000000000000000 0000000000000000 0000000000000000 0000006400000000"
      00000041 2018-06-25 09:46:03.165 24776 24947 "ThreadList:
      7FFFF2615700 140737259853568 24799: CMemoryUsageReporter
      7FFFEBFFF700 140737152808704 24800: CSocketBaseThread
      7FFFF1E14700 140737251460864 24947: CRemoteFileServerPool

        Attachments

          Activity

            People

            • Assignee:
              jakesmith Jake Smith
              Reporter:
              rpastrana Rodrigo Pastrana
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: