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

Crash in CSocketEpollThread causing Dali segfault.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.2.14
    • Fix Version/s: 6.4.0
    • Component/s: JLib
    • Labels:
      None

      Description

      Dali crashed with this stack:

      00033632 2017-06-02 16:29:53.433 111858 111860 "================================================"
      00033633 2017-06-02 16:29:53.433 111858 111860 "Signal:    11 Segmentation fault"
      00033634 2017-06-02 16:29:53.433 111858 111860 "Fault IP:  00007FDA86EB62E9"
      00033635 2017-06-02 16:29:53.433 111858 111860 "Accessing: 0000000000000000"
      00033636 2017-06-02 16:29:53.433 111858 111860 "Registers:"
      00033637 2017-06-02 16:29:53.433 111858 111860 "EAX:00007FD9981DC830  EBX:0000000001036440  ECX:0000000000000001  EDX:0000000000000001  ESI:0000000000000000  EDI:0000000000000000"
      00033638 2017-06-02 16:29:53.433 111858 111860 "CS:EIP:0033:00007FDA86EB62E9"
      00033639 2017-06-02 16:29:53.433 111858 111860 "   ESP:00007FDA81BF2C30  EBP:0000000000000000"
      0003363A 2017-06-02 16:29:53.433 111858 111860 "Stack[00007FDA81BF2C30]: 0000000000000000 0000000000000000 0000000000000000 81BF2C9F00000000 00007FDA81BF2C9F 0000000000007FDA 0000000000000000 010364F800000000"
      0003363B 2017-06-02 16:29:53.433 111858 111860 "Stack[00007FDA81BF2C50]: 00000000010364F8 81BF2D1000000000 00007FDA81BF2D10 0000093900007FDA 0000000000000939 81BF2CD000000000 00007FDA81BF2CD0 24C10B2000007FDA"
      0003363C 2017-06-02 16:29:53.433 111858 111860 "Stack[00007FDA81BF2C70]: 24C991D724C10B20 81BF2D3024C991D7 00007FDA81BF2D30 81BF2CB000007FDA 00007FDA81BF2CB0 0000000000007FDA 0000000000000000 0000000000000000"
      0003363D 2017-06-02 16:29:53.433 111858 111860 "Stack[00007FDA81BF2C90]: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000"
      0003363E 2017-06-02 16:29:53.433 111858 111860 "Stack[00007FDA81BF2CB0]: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000100000000"
      0003363F 2017-06-02 16:29:53.433 111858 111860 "Stack[00007FDA81BF2CD0]: 9415D7C000000001 00007FD99415D7C0 0000000000007FD9 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000"
      00033640 2017-06-02 16:29:53.433 111858 111860 "Stack[00007FDA81BF2CF0]: 0000000000000000 8522A7A500000000 00007FDA8522A7A5 0000000000007FDA 0000000000000000 0103649000000000 0000000001036490 981DC83000000000"
      00033641 2017-06-02 16:29:53.433 111858 111860 "Stack[00007FDA81BF2D10]: 00007FD9981DC830 0000000100007FD9 0000000800000001 0000000100000008 0000000100000001 0000000000000001 0000000000000000 8522A76000000000"
      00033642 2017-06-02 16:29:53.433 111858 111860 "Backtrace:"
      00033643 2017-06-02 16:29:53.434 111858 111860 "  /opt/HPCCSystems/lib/libjlib.so(+0xcf048) [0x7fda86e2f048]"
      00033644 2017-06-02 16:29:53.434 111858 111860 "  /opt/HPCCSystems/lib/libjlib.so(_Z13excsighandleriP9siginfo_tPv+0x33c) [0x7fda86e30cbc]"
      00033645 2017-06-02 16:29:53.434 111858 111860 "  /lib64/libpthread.so.0(+0xf370) [0x7fda8522c370]"
      00033646 2017-06-02 16:29:53.434 111858 111860 "  /opt/HPCCSystems/lib/libjlib.so(_ZN18CSocketEpollThread3runEv+0x439) [0x7fda86eb62e9]"
      00033647 2017-06-02 16:29:53.434 111858 111860 "  /opt/HPCCSystems/lib/libjlib.so(_ZN6Thread5beginEv+0x2c) [0x7fda86ece0cc]"
      00033648 2017-06-02 16:29:53.434 111858 111860 "  /opt/HPCCSystems/lib/libjlib.so(_ZN6Thread11_threadmainEPv+0x1e) [0x7fda86ecfa9e]"
      00033649 2017-06-02 16:29:53.434 111858 111860 "  /lib64/libpthread.so.0(+0x7dc5) [0x7fda85224dc5]"
      0003364A 2017-06-02 16:29:53.434 111858 111860 "  /lib64/libc.so.6(clone+0x6d) [0x7fda84f5373d]
      

      This is the disasm:

      0x00007fda86eb623d <+909>:    js     0x7fda86eb6218 <_ZN18CSocketEpollThread3runEv+872>
      0x00007fda86eb623f <+911>:    cmpb   $0x0,0x14c(%rbx)
      0x00007fda86eb6246 <+918>:    je     0x7fda86eb6254 <_ZN18CSocketEpollThread3runEv+932>
      0x00007fda86eb6248 <+920>:    cmp    0x144(%rbx),%edx
      0x00007fda86eb624e <+926>:    je     0x7fda86eb6330 <_ZN18CSocketEpollThread3runEv+1152>
      0x00007fda86eb6254 <+932>:    cmpb   $0x0,0x19(%rbp)
      0x00007fda86eb6258 <+936>:    jne    0x7fda86eb6218 <_ZN18CSocketEpollThread3runEv+872>
      0x00007fda86eb625a <+938>:    mov    (%rax),%eax
      0x00007fda86eb625c <+940>:    xor    %r14d,%r14d
      0x00007fda86eb625f <+943>:    test   $0x19,%al
      0x00007fda86eb6261 <+945>:    setne  %r14b
      0x00007fda86eb6265 <+949>:    test   $0x4,%al
      0x00007fda86eb6267 <+951>:    jne    0x7fda86eb61a8 <_ZN18CSocketEpollThread3runEv+760>
      0x00007fda86eb626d <+957>:    test   $0x2,%al
      0x00007fda86eb626f <+959>:    je     0x7fda86eb6280 <_ZN18CSocketEpollThread3runEv+976>
      0x00007fda86eb6271 <+961>:    or     $0x4,%r14d
      0x00007fda86eb6275 <+965>:    jmpq   0x7fda86eb61b4 <_ZN18CSocketEpollThread3runEv+772>
      0x00007fda86eb627a <+970>:    nopw   0x0(%rax,%rax,1)
      0x00007fda86eb6280 <+976>:    test   %r14d,%r14d
      0x00007fda86eb6283 <+979>:    jne    0x7fda86eb61b4 <_ZN18CSocketEpollThread3runEv+772>
      0x00007fda86eb6289 <+985>:    add    $0x1,%r12d
      0x00007fda86eb628d <+989>:    add    $0xc,%r13
      0x00007fda86eb6291 <+993>:    cmp    %r12d,%r15d
      0x00007fda86eb6294 <+996>:    jg     0x7fda86eb6225 <_ZN18CSocketEpollThread3runEv+885>
      0x00007fda86eb6296 <+998>:    nopw   %cs:0x0(%rax,%rax,1)
      0x00007fda86eb62a0 <+1008>:    mov    0x20(%rsp),%rdi
      0x00007fda86eb62a5 <+1013>:    xor    %ebp,%ebp
      0x00007fda86eb62a7 <+1015>:    callq  0x7fda86e15b80 pthread_mutex_unlock@plt
      0x00007fda86eb62ac <+1020>:    mov    0xe8(%rsp),%r12d
      0x00007fda86eb62b4 <+1028>:    test   %r12d,%r12d
      0x00007fda86eb62b7 <+1031>:    mov    %r12d,%eax
      0x00007fda86eb62ba <+1034>:    jne    0x7fda86eb62c7 <_ZN18CSocketEpollThread3runEv+1047>
      0x00007fda86eb62bc <+1036>:    jmp    0x7fda86eb62f8 <_ZN18CSocketEpollThread3runEv+1096>
      0x00007fda86eb62be <+1038>:    xchg   %ax,%ax
      0x00007fda86eb62c0 <+1040>:    mov    0xe8(%rsp),%eax
      0x00007fda86eb62c7 <+1047>:    cmp    %ebp,%eax
      0x00007fda86eb62c9 <+1049>:    jbe    0x7fda86eb6a9d <_ZN18CSocketEpollThread3runEv+3053>
      0x00007fda86eb62cf <+1055>:    mov    %rbp,%rax
      0x00007fda86eb62d2 <+1058>:    shl    $0x5,%rax
      0x00007fda86eb62d6 <+1062>:    add    0xe0(%rsp),%rax
      0x00007fda86eb62de <+1070>:    mov    0x10(%rax),%rdi
      0x00007fda86eb62e2 <+1074>:    movzbl 0x18(%rax),%edx
      0x00007fda86eb62e6 <+1078>:    mov    (%rax),%rsi
      => 0x00007fda86eb62e9 <+1081>:    mov    (%rdi),%rcx
      0x00007fda86eb62ec <+1084>:    callq  *0x10(%rcx)
      0x00007fda86eb62ef <+1087>:    add    $0x1,%rbp
      0x00007fda86eb62f3 <+1091>:    cmp    %ebp,%r12d
      0x00007fda86eb62f6 <+1094>:    ja     0x7fda86eb62c0 <_ZN18CSocketEpollThread3runEv+1040>
      0x00007fda86eb62f8 <+1096>:    mov    0x28(%rsp),%rdi
      0x00007fda86eb62fd <+1101>:    movl   $0x0,0xe8(%rsp)
      0x00007fda86eb6308 <+1112>:    callq  0x7fda86e15c50 _ZN9Allocator4killEv@plt
      0x00007fda86eb630d <+1117>:    movzbl 0xb0(%rbx),%eax
      0x00007fda86eb6314 <+1124>:    movl   $0x0,0x20(%rsp)
      0x00007fda86eb631c <+1132>:    movl   $0x0,0x10(%rsp)
      

      Registers:

      (gdb) info registers
      rax            0x7fd9981dc830	140572536719408
      rbx            0x1036440	16999488
      rcx            0x1	1
      rdx            0x1	1
      rsi            0x0	0
      rdi            0x0	0
      rbp            0x0	0x0
      rsp            0x7fda81bf2c30	0x7fda81bf2c30
      r8             0x0	0
      r9             0x100	256
      r10            0x11	17
      r11            0x0	0
      r12            0x1	1
      r13            0xc	12
      r14            0x1	1
      r15            0x1	1
      rip            0x7fda86eb62e9	0x7fda86eb62e9 <CSocketEpollThread::run()+1081>
      eflags         0x10206	[ PF IF RF ]
      cs             0x33	51
      ss             0x2b	43
      ds             0x0	0
      es             0x0	0
      fs             0x0	0
      gs             0x0	0
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mckellyln Mark Kelly
                Reporter:
                jakesmith Jake Smith
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: