[
https://issues.apache.org/jira/browse/TS-4055?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15054186#comment-15054186
]
ASF GitHub Bot commented on TS-4055:
------------------------------------
GitHub user oknet opened a pull request:
https://github.com/apache/trafficserver/pull/373
TS-4055: InactivityCop callback SM with INACTIVE_TIMEOUT before
NET_EVENT_OPEN
for explain:
on a heavy load system, HttpSM create a connection to OS.
First, a TCP-SYN packet send to OS.
then, InactivityCop::check_activity callbacked before TCP-SYN/ACK send back
from OS.
then, UnixNetVConnection::mainEvent(INACTIVE_TIMEOUT) is callbacked
then, HttpSM::main_handler(INACTIVE_TIMEOUT) is callbacked
...
then, HttpSM::handle_server_setup_error(INACTIVE_TIMEOUT) is callbacked
currently, the write_vio still not set, thus segment fault.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/oknet/trafficserver patch-1
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/trafficserver/pull/373.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #373
----
commit 37401b7eab0d030e4d4d07af63637a38c30f39db
Author: Oknet <[email protected]>
Date: 2015-12-12T09:54:05Z
TS-4055: InactivityCop callback SM with INACTIVE_TIMEOUT before
NET_EVENT_OPEN
on a heavy load system, HttpSM create a connection to OS.
First, a TCP-SYN packet send to OS.
then, InactivityCop::check_activity callbacked before TCP-SYN/ACK send back
from OS.
then, UnixNetVConnection::mainEvent(INACTIVE_TIMEOUT) is callbacked
then, HttpSM::main_handler(INACTIVE_TIMEOUT) is callbacked
...
then, HttpSM::handle_server_setup_error(INACTIVE_TIMEOUT) is callbacked
currently, the write_vio still not set, thus segment fault.
----
> Segmentation fault
> -------------------
>
> Key: TS-4055
> URL: https://issues.apache.org/jira/browse/TS-4055
> Project: Traffic Server
> Issue Type: Bug
> Affects Versions: 6.0.1
> Reporter: bettydramit
> Labels: crash
> Fix For: 6.1.0
>
>
> {code}
> c++filt <a.txt
> traffic_server: Segmentation fault (Address not mapped to object [0x8])
> traffic_server - STACK TRACE:
> /usr/bin/traffic_server(crash_logger_invoke(int, siginfo_t*,
> void*)+0x8e)[0x4abf4e]
> /lib64/libpthread.so.0(+0x10430)[0x2abaac562430]
> /usr/bin/traffic_server(HttpSM::handle_server_setup_error(int,
> void*)+0x25b)[0x5b5d0b]
> /usr/bin/traffic_server(HttpSM::state_send_server_request_header(int,
> void*)+0x142)[0x5c0dd2]
> /usr/bin/traffic_server(HttpSM::main_handler(int, void*)+0xc8)[0x5c5e38]
> /usr/bin/traffic_server(UnixNetVConnection::mainEvent(int,
> Event*)+0x4ff)[0x78651f]
> /usr/bin/traffic_server(InactivityCop::check_inactivity(int,
> Event*)+0x28d)[0x7789ad]
> /usr/bin/traffic_server(EThread::process_event(Event*, int)+0x8a)[0x7bdf5a]
> /usr/bin/traffic_server(EThread::execute()+0xaa5)[0x7bf045]
> /usr/bin/traffic_server[0x7bda25]
> /lib64/libpthread.so.0(+0x7555)[0x2abaac559555]
> /lib64/libc.so.6(clone+0x6d)[0x2abaad67bb9d]
> Dec 05 21:00:12 localhost sendEmail[23289]: Email was sent successfully!
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)