[
https://issues.apache.org/jira/browse/TS-3991?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14986434#comment-14986434
]
Brian Geffon edited comment on TS-3991 at 11/3/15 1:14 AM:
-----------------------------------------------------------
[~kichan] can you share the code that causes the crash if it's easy to produce.
I've found that in many situations a crash may be caused by a misuse of the
API. Also, can you do a bt full or expand the frame inside the intercept, that
might be helpful.
was (Author: briang):
[~kichan] can you share the code that causes the crash if it's easy to produce.
I've found that in many situations a crash may be caused by a misuse of the API.
> Coredump seen on plugins written using CPP API
> ----------------------------------------------
>
> Key: TS-3991
> URL: https://issues.apache.org/jira/browse/TS-3991
> Project: Traffic Server
> Issue Type: Bug
> Components: CPP API, Plugins
> Reporter: Kit Chan
> Assignee: Brian Geffon
>
> Here are the traces on the coredumps we are seeing
> #0 0x00002aab682e99a0 in ?? ()
> No symbol table info available.
> #1 0x00002aaaab4b8179 in
> std::tr1::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release
> (this=0x2aab6809cb10) at
> /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/tr1_impl/boost_sp_counted_base.h:140
> No locals.
> #2 0x00002aaaab6dfb61 in
> std::tr1::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count
> (this=0x2b1c832f8bc8, __in_chrg=<value optimized out>) at
> /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/tr1/shared_ptr.h:153
> No locals.
> #3 0x00002aaaab6df94e in std::tr1::__shared_ptr<atscppapi::Mutex,
> (__gnu_cxx::_Lock_policy)2>::~__shared_ptr (this=0x2b1c832f8bc0,
> __in_chrg=<value optimized out>) at
> /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/tr1/shared_ptr.h:358
> No locals.
> #4 0x00002aaaab6df98e in std::tr1::shared_ptr<atscppapi::Mutex>::~shared_ptr
> (this=0x2b1c832f8bc0, __in_chrg=<value optimized out>) at
> /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/tr1/shared_ptr.h:834
> No locals.
> #5 0x00002aaaab6f1e0a in
> atscppapi::ScopedSharedMutexTryLock::~ScopedSharedMutexTryLock
> (this=0x2b1c832f8bc0, __in_chrg=<value optimized out>) at
> include/atscppapi/Mutex.h:234
> No locals.
> #6 0x00002aaaab6f1c77 in (anonymous namespace)::handleEvents
> (cont=0x28eb430, pristine_event=TS_EVENT_TIMEOUT,
> pristine_edata=0x2aab20079450) at InterceptPlugin.cc:347
> edata = 0x2aab20079450
> state = 0x2aab6809cb80
> __FUNCTION__ = "handleEvents"
> event = TS_EVENT_TIMEOUT
> scopedTryLock = {<atscppapi::noncopyable> = {<No data fields>},
> mutex_ = std::tr1::shared_ptr (count 0) 0x2aab6809caa0, has_lock_ = false}
> #7 0x000000000050bac8 in INKContInternal::handle_event (this=0x28eb430,
> event=2, edata=0x2aab20079450) at InkAPI.cc:1000
> No locals.
> #8 0x00000000004f70d8 in Continuation::handleEvent (this=0x28eb430, event=2,
> data=0x2aab20079450) at ../iocore/eventsystem/I_Continuation.h:146
> No locals.
> #9 0x000000000075a8d2 in EThread::process_event (this=0x2b1c80ed6010,
> e=0x2aab20079450, calling_code=2) at UnixEThread.cc:145
> c_temp = 0x28eb430
> lock = {m = {m_ptr = 0x2aaabc0eca50}, lock_acquired = true}
> #10 0x000000000075abed in EThread::execute (this=0x2b1c80ed6010) at
> UnixEThread.cc:224
> done_one = true
> e = 0x2aab20079450
> NegativeQueue = {<DLL<Event, Event::Link_link>> = {head = 0x257bcf0},
> tail = 0x257bcf0}
> next_time = 1444322819831472139
> #11 0x0000000000759e50 in spawn_thread_internal (a=0x2447860) at Thread.cc:88
> p = 0x2447860
> #12 0x00002b1c7f9cd9d1 in start_thread () from /lib64/libpthread.so.0
> No symbol table info available.
> #13 0x000000381b8e88fd in clone () from /lib64/libc.so.6
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)