You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Leif Hedstrom (JIRA)" <ji...@apache.org> on 2016/08/02 17:39:20 UTC

[jira] [Commented] (TS-4541) ASAN error with HTTP/2 mutex

    [ https://issues.apache.org/jira/browse/TS-4541?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15404449#comment-15404449 ] 

Leif Hedstrom commented on TS-4541:
-----------------------------------

So, I'm fairly certain we've seen this SEGV without ASAN. I.e. it's not an ASAN issue as much as a segv. My crash is:

{code}
#0  Http2ConnectionState::send_a_data_frame (this=this@entry=0x238, stream=stream@entry=0x2ae93158a9c0,
    payload_length=@0x2aaab4a10988: 0) at Http2ConnectionState.cc:1029
#1  0x00002aaaaacf7f27 in Http2ConnectionState::send_data_frames (this=0x238, stream=0x2ae93158a9c0)
    at Http2ConnectionState.cc:1104
#2  0x00002aaaaacfe855 in Http2Stream::send_response_body (this=<optimized out>) at Http2Stream.cc:543
#3  0x00002aaaaacf31b2 in Http2ConnectionState::restart_streams (this=0x2ab743345618) at Http2ConnectionState.cc:914
#4  rcv_window_update_frame (cstate=..., frame=...) at Http2ConnectionState.cc:627
#5  0x00002aaaaacf88d8 in Http2ConnectionState::main_event_handler (this=0x2ab743345618, event=<optimized out>,
    edata=<optimized out>) at Http2ConnectionState.cc:823
#6  0x00002aaaaacee373 in Continuation::handleEvent (data=0x2aaab4a10ab0, event=2253, this=0x2ab743345618)
    at ../../iocore/eventsystem/I_Continuation.h:153
#7  send_connection_event (cont=cont@entry=0x2ab743345618, event=event@entry=2253, edata=edata@entry=0x2aaab4a10ab0)
    at Http2ClientSession.cc:58
#8  0x00002aaaaacee612 in Http2ClientSession::state_complete_frame_read (this=0x2ab7433453e0, event=<optimized out>,
    edata=0x2aaaed8f69d8) at Http2ClientSession.cc:426
#9  0x00002aaaaacefb32 in Continuation::handleEvent (data=0x2aaaed8f69d8, event=100, this=0x2ab7433453e0)
    at ../../iocore/eventsystem/I_Continuation.h:153
#10 Http2ClientSession::state_start_frame_read (this=0x2ab7433453e0, event=<optimized out>, edata=0x2aaaed8f69d8)
    at Http2ClientSession.cc:399
#11 0x00002aaaaae66beb in Continuation::handleEvent (data=0x2aaaed8f69d8, event=100, this=<optimized out>)
    at ../../iocore/eventsystem/I_Continuation.h:153
#12 read_signal_and_update (vc=0x2aaaed8f68c0, vc@entry=0x1, event=event@entry=100) at UnixNetVConnection.cc:153
#13 UnixNetVConnection::readSignalAndUpdate (this=this@entry=0x2aaaed8f68c0, event=event@entry=100) at UnixNetVConnection.cc:1036
#14 0x00002aaaaae464b3 in SSLNetVConnection::net_read_io (this=0x2aaaed8f68c0, nh=0x2aaab350acc0, lthread=0x2aaab3507000)
    at SSLNetVConnection.cc:595
#15 0x00002aaaaae5434c in NetHandler::mainNetEvent (this=0x2aaab350acc0, event=<optimized out>, e=<optimized out>)
    at UnixNet.cc:513
#16 0x00002aaaaae8c0a6 in Continuation::handleEvent (data=0x2aaab0bf9d40, event=5, this=<optimized out>) at I_Continuation.h:153
#17 EThread::process_event (calling_code=5, e=0x2aaab0bf9d40, this=0x2aaab3507000) at UnixEThread.cc:148
#18 EThread::execute (this=0x2aaab3507000) at UnixEThread.cc:275
#19 0x00002aaaaae8aea6 in spawn_thread_internal (a=0x2aaab0b25d90) at Thread.cc:86
#20 0x00002aaaad6b9aa1 in start_thread (arg=0x2aaab4a11700) at pthread_create.c:301
#21 0x00002aaaae8c293d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115
{code}

This is without ASAN enabled.

> ASAN error with HTTP/2 mutex
> ----------------------------
>
>                 Key: TS-4541
>                 URL: https://issues.apache.org/jira/browse/TS-4541
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: HTTP/2
>            Reporter: Bryan Call
>             Fix For: 7.0.0
>
>
> {code}
> ==26628==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000038 (pc 0x0000009ad1b9 sp 0x2b7e55d79740 bp 0x2b7e55d7d8f0 T15)
>     #0 0x9ad1b8 in Mutex_lock ../../../trafficserver/iocore/eventsystem/I_Lock.h:381
>     #1 0x9ad1b8 in MutexLock ../../../trafficserver/iocore/eventsystem/I_Lock.h:449
>     #2 0x9ad1b8 in Http2ConnectionState::send_a_data_frame(Http2Stream*, unsigned long&) ../../../trafficserver/proxy/http2/Http2ConnectionState.cc:1040
>     #3 0x9af71d in Http2ConnectionState::send_data_frames_depends_on_priority() ../../../trafficserver/proxy/http2/Http2ConnectionState.cc:1000
>     #4 0x9b1ff9 in Http2ConnectionState::main_event_handler(int, void*) ../../../trafficserver/proxy/http2/Http2ConnectionState.cc:803
>     #5 0xe9f5e3 in Continuation::handleEvent(int, void*) ../../../trafficserver/iocore/eventsystem/I_Continuation.h:153
>     #6 0xe9f5e3 in EThread::process_event(Event*, int) ../../../trafficserver/iocore/eventsystem/UnixEThread.cc:148
>     #7 0xea18c9 in EThread::execute() ../../../trafficserver/iocore/eventsystem/UnixEThread.cc:202
>     #8 0xe9e128 in spawn_thread_internal ../../../trafficserver/iocore/eventsystem/Thread.cc:86
>     #9 0x2b7e4d575aa0 in start_thread (/lib64/libpthread.so.0+0x3818807aa0)
>     #10 0x38180e893c in clone (/lib64/libc.so.6+0x38180e893c)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)