[
https://issues.apache.org/jira/browse/TS-3248?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14252143#comment-14252143
]
Sudheer Vinukonda commented on TS-3248:
---------------------------------------
I am seeing this core (both via UnixNetVConnection.cc and SSLNetVConnection.cc)
also in 5.2 on our cache production hosts and it seems to happen with/without
the fix in TS-3226.
{code}
(gdb) bt full
#0 0x00000000004ee4b4 in Ptr<IOBufferBlock>::operator IOBufferBlock*
(this=0x10) at ../lib/ts/Ptr.h:326
No locals.
#1 0x000000000052a190 in MIOBuffer::first_write_block (this=0x0) at
../iocore/eventsystem/I_IOBuffer.h:920
No locals.
#2 0x000000000073cba4 in ssl_read_from_net (sslvc=0x2b3bdc018790,
lthread=0x2b3b71448010, ret=@0x2b3b72d5fb40) at SSLNetVConnection.cc:184
s = 0x2b3bdc0188a0
buf = @0x2b3bdc0188c8
bytes_read = 8192
block_write_avail = 0
__func__ = "ssl_read_from_net"
b = 0x2b3b72d5fab0
event = 11068
sslErr = 11067
nread = 47537243037472
#3 0x000000000073dd28 in SSLNetVConnection::net_read_io (this=0x2b3bdc018790,
nh=0x2b3b7144bad0, lthread=0x2b3b71448010) at SSLNetVConnection.cc:547
ret = 0
bytes = 0
s = 0x2b3bdc0188a0
__func__ = "net_read_io"
buf = @0x2b3bdc0188c8
r = 0
lock = {m = {m_ptr = 0x2be4930}, lock_acquired = true}
ntodo = 9223372036854775807
#4 0x000000000074c429 in NetHandler::mainNetEvent (this=0x2b3b7144bad0,
event=5, e=0x2710130) at UnixNet.cc:399
epd = 0x2b3bdc0189a0
pd = 0x2b3b78000010
__func__ = "mainNetEvent"
poll_timeout = 10
vc = 0x2b3bdc018790
#5 0x0000000000502eae in Continuation::handleEvent (this=0x2b3b7144bad0,
event=5, data=0x2710130) at ../iocore/eventsystem/I_Continuation.h:146
No locals.
#6 0x0000000000773062 in EThread::process_event (this=0x2b3b71448010,
e=0x2710130, calling_code=5) at UnixEThread.cc:144
c_temp = 0x2b3b7144bad0
lock = {m = {m_ptr = 0x2be5510}, lock_acquired = true}
#7 0x000000000077356c in EThread::execute (this=0x2b3b71448010) at
UnixEThread.cc:268
done_one = false
e = 0x2710130
NegativeQueue = {<DLL<Event, Event::Link_link>> = {head = 0x0}, tail =
0x0}
next_time = 1418930647029084374
#8 0x000000000077261d in spawn_thread_internal (a=0x2ca60e0) at Thread.cc:88
p = 0x2ca60e0
#9 0x00002b3ac42ed851 in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#10 0x0000003296ee890d in clone () from /lib64/libc.so.6
No symbol table info available.
{code}
> 5.2.0 Segmentation fault
> ------------------------
>
> Key: TS-3248
> URL: https://issues.apache.org/jira/browse/TS-3248
> Project: Traffic Server
> Issue Type: Bug
> Reporter: Qiang Li
>
> Segmentation fault sometime
> {code}
> (gdb) bt
> #0 0x000000000073334a in operator IOBufferBlock* (nh=0x2b4d9e1e8b50,
> vc=0x2aaac11114d0, thread=0x2b4d9e1e5010) at ../../lib/ts/Ptr.h:326
> #1 first_write_block (nh=0x2b4d9e1e8b50, vc=0x2aaac11114d0,
> thread=0x2b4d9e1e5010) at ../../iocore/eventsystem/I_IOBuffer.h:920
> #2 read_from_net (nh=0x2b4d9e1e8b50, vc=0x2aaac11114d0,
> thread=0x2b4d9e1e5010) at UnixNetVConnection.cc:244
> #3 0x0000000000727a62 in NetHandler::mainNetEvent (this=0x2b4d9e1e8b50,
> event=<value optimized out>, e=<value optimized out>) at UnixNet.cc:399
> #4 0x00000000007538f5 in handleEvent (this=0x2b4d9e1e5010, e=0x2b4d9f806d80,
> calling_code=5) at I_Continuation.h:146
> #5 EThread::process_event (this=0x2b4d9e1e5010, e=0x2b4d9f806d80,
> calling_code=5) at UnixEThread.cc:144
> #6 0x000000000075404b in EThread::execute (this=0x2b4d9e1e5010) at
> UnixEThread.cc:268
> #7 0x0000000000752d3a in spawn_thread_internal (a=0x157a1b0) at Thread.cc:88
> #8 0x00002b4d9b0fa9d1 in start_thread () from /lib64/libpthread.so.0
> #9 0x00002b4d9c0f19dd in clone () from /lib64/libc.so.6
> (gdb) f 2
> #2 read_from_net (nh=0x2b4d9e1e8b50, vc=0x2aaac11114d0,
> thread=0x2b4d9e1e5010) at UnixNetVConnection.cc:244
> 244 IOBufferBlock *b = buf.writer()->first_write_block();
> (gdb) l
> 239 // read data
> 240 int64_t rattempted = 0, total_read = 0;
> 241 int niov = 0;
> 242 IOVec tiovec[NET_MAX_IOV];
> 243 if (toread) {
> 244 IOBufferBlock *b = buf.writer()->first_write_block();
> 245 do {
> 246 niov = 0;
> 247 rattempted = 0;
> 248 while (b && niov < NET_MAX_IOV) {
> (gdb) p buf
> $1 = (MIOBufferAccessor &) @0x2aaac1111608: {mbuf = 0x0, entry = 0x0}
> (gdb) p toread
> $2 = 7768
> (gdb)
> {code}
> at line 244 ,mbuf = 0x0, so buf.writer() return NULL
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)