You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Zhao Yongming (Created) (JIRA)" <ji...@apache.org> on 2012/02/13 10:20:59 UTC
[jira] [Created] (TS-1109) stack dump may crash too
stack dump may crash too
------------------------
Key: TS-1109
URL: https://issues.apache.org/jira/browse/TS-1109
Project: Traffic Server
Issue Type: Bug
Components: Core
Affects Versions: 3.1.2
Reporter: Zhao Yongming
Assignee: weijin
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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (TS-1109) stack dump may crash too
Posted by "weijin (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TS-1109?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13217059#comment-13217059 ]
weijin commented on TS-1109:
----------------------------
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.
> stack dump may crash too
> ------------------------
>
> Key: TS-1109
> URL: https://issues.apache.org/jira/browse/TS-1109
> Project: Traffic Server
> Issue Type: Bug
> Components: Core
> Affects Versions: 3.1.2
> Reporter: Zhao Yongming
> Assignee: weijin
> Labels: crash
> Fix For: 3.1.4
>
>
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (TS-1109) stack dump may crash too
Posted by "weijin (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TS-1109?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13217056#comment-13217056 ]
weijin commented on TS-1109:
----------------------------
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.
> stack dump may crash too
> ------------------------
>
> Key: TS-1109
> URL: https://issues.apache.org/jira/browse/TS-1109
> Project: Traffic Server
> Issue Type: Bug
> Components: Core
> Affects Versions: 3.1.2
> Reporter: Zhao Yongming
> Assignee: weijin
> Labels: crash
> Fix For: 3.1.4
>
>
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (TS-1109) stack dump may crash too
Posted by "Igor Galić (Updated JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TS-1109?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Igor Galić updated TS-1109:
---------------------------
Backport to Version: 3.0.5
> stack dump may crash too
> ------------------------
>
> Key: TS-1109
> URL: https://issues.apache.org/jira/browse/TS-1109
> Project: Traffic Server
> Issue Type: Bug
> Components: Core
> Affects Versions: 3.1.2
> Reporter: Zhao Yongming
> Assignee: weijin
> Labels: crash
> Fix For: 3.1.3
>
> Attachments: cop_crash.diff
>
>
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (TS-1109) stack dump may crash too
Posted by "Leif Hedstrom (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TS-1109?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Leif Hedstrom updated TS-1109:
------------------------------
Fix Version/s: 3.1.3
> stack dump may crash too
> ------------------------
>
> Key: TS-1109
> URL: https://issues.apache.org/jira/browse/TS-1109
> Project: Traffic Server
> Issue Type: Bug
> Components: Core
> Affects Versions: 3.1.2
> Reporter: Zhao Yongming
> Assignee: weijin
> Labels: crash
> Fix For: 3.1.3
>
>
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Reopened] (TS-1109) stack dump may crash too
Posted by "Brian Geffon (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TS-1109?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brian Geffon reopened TS-1109:
------------------------------
Assignee: Brian Geffon (was: weijin)
> stack dump may crash too
> ------------------------
>
> Key: TS-1109
> URL: https://issues.apache.org/jira/browse/TS-1109
> Project: Traffic Server
> Issue Type: Bug
> Components: Core
> Affects Versions: 3.1.2
> Reporter: Zhao Yongming
> Assignee: Brian Geffon
> Labels: crash
> Fix For: 3.1.3
>
> Attachments: cop_crash.diff
>
>
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (TS-1109) stack dump may crash too
Posted by "Brian Geffon (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TS-1109?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brian Geffon resolved TS-1109.
------------------------------
Resolution: Fixed
Fix Version/s: 3.0.5
Backport to 3.0.x in e626f8c4fcdd829fd3e5b4e75384fe4025622236
> stack dump may crash too
> ------------------------
>
> Key: TS-1109
> URL: https://issues.apache.org/jira/browse/TS-1109
> Project: Traffic Server
> Issue Type: Bug
> Components: Core
> Affects Versions: 3.1.2
> Reporter: Zhao Yongming
> Assignee: Brian Geffon
> Labels: crash
> Fix For: 3.0.5, 3.1.3
>
> Attachments: cop_crash.diff
>
>
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Issue Comment Edited] (TS-1109) stack dump may crash too
Posted by "weijin (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TS-1109?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13217059#comment-13217059 ]
weijin edited comment on TS-1109 at 2/27/12 6:08 AM:
-----------------------------------------------------
{code}
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.
{code}
was (Author: taorui):
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.
> stack dump may crash too
> ------------------------
>
> Key: TS-1109
> URL: https://issues.apache.org/jira/browse/TS-1109
> Project: Traffic Server
> Issue Type: Bug
> Components: Core
> Affects Versions: 3.1.2
> Reporter: Zhao Yongming
> Assignee: weijin
> Labels: crash
> Fix For: 3.1.4
>
>
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Work stopped] (TS-1109) stack dump may crash too
Posted by "weijin (Work stopped) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TS-1109?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Work on TS-1109 stopped by weijin.
> stack dump may crash too
> ------------------------
>
> Key: TS-1109
> URL: https://issues.apache.org/jira/browse/TS-1109
> Project: Traffic Server
> Issue Type: Bug
> Components: Core
> Affects Versions: 3.1.2
> Reporter: Zhao Yongming
> Assignee: weijin
> Labels: crash
> Fix For: 3.1.4
>
> Attachments: cop_crash.diff
>
>
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Work started] (TS-1109) stack dump may crash too
Posted by "weijin (Work started) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TS-1109?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Work on TS-1109 started by weijin.
> stack dump may crash too
> ------------------------
>
> Key: TS-1109
> URL: https://issues.apache.org/jira/browse/TS-1109
> Project: Traffic Server
> Issue Type: Bug
> Components: Core
> Affects Versions: 3.1.2
> Reporter: Zhao Yongming
> Assignee: weijin
> Labels: crash
> Fix For: 3.1.4
>
> Attachments: cop_crash.diff
>
>
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (TS-1109) stack dump may crash too
Posted by "Zhao Yongming (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TS-1109?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Zhao Yongming updated TS-1109:
------------------------------
Fix Version/s: (was: 3.1.4)
3.1.3
> stack dump may crash too
> ------------------------
>
> Key: TS-1109
> URL: https://issues.apache.org/jira/browse/TS-1109
> Project: Traffic Server
> Issue Type: Bug
> Components: Core
> Affects Versions: 3.1.2
> Reporter: Zhao Yongming
> Assignee: weijin
> Labels: crash
> Fix For: 3.1.3
>
> Attachments: cop_crash.diff
>
>
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (TS-1109) stack dump may crash too
Posted by "weijin (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TS-1109?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
weijin updated TS-1109:
-----------------------
Attachment: cop_crash.diff
> stack dump may crash too
> ------------------------
>
> Key: TS-1109
> URL: https://issues.apache.org/jira/browse/TS-1109
> Project: Traffic Server
> Issue Type: Bug
> Components: Core
> Affects Versions: 3.1.2
> Reporter: Zhao Yongming
> Assignee: weijin
> Labels: crash
> Fix For: 3.1.4
>
> Attachments: cop_crash.diff
>
>
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira