Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.2
    • Fix Version/s: 3.1.3, 3.0.5
    • Component/s: Core
    • Labels:
    • Backport to Version:

      Description

      the codes doing stack dump may crash, in this case you will not able to get a core file, that will hide most of the rare issues.

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Patch Available Patch Available Open Open
        1m 42s 1 weijin 27/Feb/12 06:15
        Patch Available Patch Available In Progress In Progress
        4s 1 weijin 27/Feb/12 06:15
        In Progress In Progress Open Open
        3m 42s 1 weijin 27/Feb/12 06:19
        Open Open Patch Available Patch Available
        16d 19h 27m 3 bettydramit 01/Mar/12 04:51
        Patch Available Patch Available Resolved Resolved
        7d 1h 8m 1 Zhao Yongming 08/Mar/12 06:00
        Resolved Resolved Reopened Reopened
        60d 12h 13m 1 Brian Geffon 07/May/12 19:13
        Reopened Reopened Resolved Resolved
        10m 28s 1 Brian Geffon 07/May/12 19:24
        Resolved Resolved Closed Closed
        33d 7h 11m 1 Leif Hedstrom 10/Jun/12 02:35
        Leif Hedstrom made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Brian Geffon made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Fix Version/s 3.0.5 [ 12320055 ]
        Resolution Fixed [ 1 ]
        Hide
        Brian Geffon added a comment -

        Backport to 3.0.x in e626f8c4fcdd829fd3e5b4e75384fe4025622236

        Show
        Brian Geffon added a comment - Backport to 3.0.x in e626f8c4fcdd829fd3e5b4e75384fe4025622236
        Brian Geffon made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Assignee weijin [ taorui ] Brian Geffon [ briang ]
        Igor Galić made changes -
        Backport to Version 3.0.5 [ 12320055 ]
        Zhao Yongming made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Hide
        Zhao Yongming added a comment -

        git hash ad6c4ab97ff150727660f66aa64b0fb57fd3d3f7

        Show
        Zhao Yongming added a comment - git hash ad6c4ab97ff150727660f66aa64b0fb57fd3d3f7
        bettydramit made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Zhao Yongming made changes -
        Fix Version/s 3.1.3 [ 12317969 ]
        Fix Version/s 3.1.4 [ 12318543 ]
        weijin made changes -
        Status In Progress [ 3 ] Open [ 1 ]
        weijin made changes -
        Attachment cop_crash.diff [ 12516141 ]
        weijin made changes -
        Status Patch Available [ 10002 ] In Progress [ 3 ]
        weijin made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        weijin made changes -
        Status Patch Available [ 10002 ] Open [ 1 ]
        weijin made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Hide
        weijin added a comment - - edited
        Breakpoint 1, ink_stack_trace_get (stack=0x7fffffffb4d0, len=100, signalhandler_frame=2) at ink_stack_trace.cc:85
        85      {
        (gdb) n
        87        if ((btl = backtrace(stack, len)) > 0) {
        (gdb) 
        88          if (signalhandler_frame)
        (gdb) 
        89            ink_restore_signal_handler_frame(stack, btl, signalhandler_frame + 1);
        (gdb) s
        ink_restore_signal_handler_frame (stack=0x7fffffffb4d0, len=<value optimized out>, signalhandler_frame=2) at ink_stack_trace.cc:63
        63        asm volatile ("mov %%rbp,%0":"=r" (fp));
        (gdb) info reg rbp
        rbp            0x2      0x2
        (gdb) n
        67        for (i = 0; i < signalhandler_frame; i++)
        (gdb) 
        68          fp = (void **) (*fp);
        (gdb) 
        
        Program received signal SIGSEGV, Segmentation fault.
        
        Show
        weijin added a comment - - edited Breakpoint 1, ink_stack_trace_get (stack=0x7fffffffb4d0, len=100, signalhandler_frame=2) at ink_stack_trace.cc:85 85 { (gdb) n 87 if ((btl = backtrace(stack, len)) > 0) { (gdb) 88 if (signalhandler_frame) (gdb) 89 ink_restore_signal_handler_frame(stack, btl, signalhandler_frame + 1); (gdb) s ink_restore_signal_handler_frame (stack=0x7fffffffb4d0, len=<value optimized out>, signalhandler_frame=2) at ink_stack_trace.cc:63 63 asm volatile ( "mov %%rbp,%0" : "=r" (fp)); (gdb) info reg rbp rbp 0x2 0x2 (gdb) n 67 for (i = 0; i < signalhandler_frame; i++) (gdb) 68 fp = (void **) (*fp); (gdb) Program received signal SIGSEGV, Segmentation fault.
        Hide
        weijin added a comment -

        By disassembly ink_restore_signal_handler_frame, I found it was not the base frame address but the function args stored in %rbp in release mode. The embedded assembly codes of getting base frame address is dangerous and have poor portability, so I remove them from the sources.

        Show
        weijin added a comment - By disassembly ink_restore_signal_handler_frame, I found it was not the base frame address but the function args stored in %rbp in release mode. The embedded assembly codes of getting base frame address is dangerous and have poor portability, so I remove them from the sources.
        Leif Hedstrom made changes -
        Fix Version/s 3.1.4 [ 12318543 ]
        Fix Version/s 3.1.3 [ 12317969 ]
        Hide
        Leif Hedstrom added a comment -

        Moved to 3.1.4, please move bugs back to 3.1.3, which you will work on in the next 2 weeks.

        Show
        Leif Hedstrom added a comment - Moved to 3.1.4, please move bugs back to 3.1.3, which you will work on in the next 2 weeks.
        Leif Hedstrom made changes -
        Field Original Value New Value
        Fix Version/s 3.1.3 [ 12317969 ]
        Zhao Yongming created issue -

          People

          • Assignee:
            Brian Geffon
            Reporter:
            Zhao Yongming
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development