{"action":"opened","issue":{"url":"https://api.github.com/repos/epics-base/pvAccessCPP/issues/92","repository_url":"https://api.github.com/repos/epics-base/pvAccessCPP","labels_url":"https://api.github.com/repos/epics-base/pvAccessCPP/issues/92/labels{/name}","comments_url":"https://api.github.com/repos/epics-base/pvAccessCPP/issues/92/comments","events_url":"https://api.github.com/repos/epics-base/pvAccessCPP/issues/92/events","html_url":"https://github.com/epics-base/pvAccessCPP/issues/92","id":298732981,"number":92,"title":"pvget et al. crash during exit","user":{"login":"mdavidsaver","id":4429215,"avatar_url":"https://avatars2.githubusercontent.com/u/4429215?v=4","gravatar_id":"","url":"https://api.github.com/users/mdavidsaver","html_url":"https://github.com/mdavidsaver","followers_url":"https://api.github.com/users/mdavidsaver/followers","following_url":"https://api.github.com/users/mdavidsaver/following{/other_user}","gists_url":"https://api.github.com/users/mdavidsaver/gists{/gist_id}","starred_url":"https://api.github.com/users/mdavidsaver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdavidsaver/subscriptions","organizations_url":"https://api.github.com/users/mdavidsaver/orgs","repos_url":"https://api.github.com/users/mdavidsaver/repos","events_url":"https://api.github.com/users/mdavidsaver/events{/privacy}","received_events_url":"https://api.github.com/users/mdavidsaver/received_events","type":"User","site_admin":false},"labels":[{"id":170963100,"url":"https://api.github.com/repos/epics-base/pvAccessCPP/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":{"login":"mdavidsaver","id":4429215,"avatar_url":"https://avatars2.githubusercontent.com/u/4429215?v=4","gravatar_id":"","url":"https://api.github.com/users/mdavidsaver","html_url":"https://github.com/mdavidsaver","followers_url":"https://api.github.com/users/mdavidsaver/followers","following_url":"https://api.github.com/users/mdavidsaver/following{/other_user}","gists_url":"https://api.github.com/users/mdavidsaver/gists{/gist_id}","starred_url":"https://api.github.com/users/mdavidsaver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdavidsaver/subscriptions","organizations_url":"https://api.github.com/users/mdavidsaver/orgs","repos_url":"https://api.github.com/users/mdavidsaver/repos","events_url":"https://api.github.com/users/mdavidsaver/events{/privacy}","received_events_url":"https://api.github.com/users/mdavidsaver/received_events","type":"User","site_admin":false},"assignees":[{"login":"mdavidsaver","id":4429215,"avatar_url":"https://avatars2.githubusercontent.com/u/4429215?v=4","gravatar_id":"","url":"https://api.github.com/users/mdavidsaver","html_url":"https://github.com/mdavidsaver","followers_url":"https://api.github.com/users/mdavidsaver/followers","following_url":"https://api.github.com/users/mdavidsaver/following{/other_user}","gists_url":"https://api.github.com/users/mdavidsaver/gists{/gist_id}","starred_url":"https://api.github.com/users/mdavidsaver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdavidsaver/subscriptions","organizations_url":"https://api.github.com/users/mdavidsaver/orgs","repos_url":"https://api.github.com/users/mdavidsaver/repos","events_url":"https://api.github.com/users/mdavidsaver/events{/privacy}","received_events_url":"https://api.github.com/users/mdavidsaver/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/epics-base/pvAccessCPP/milestones/1","html_url":"https://github.com/epics-base/pvAccessCPP/milestone/1","labels_url":"https://api.github.com/repos/epics-base/pvAccessCPP/milestones/1/labels","id":3117288,"number":1,"title":"Release 6.1","description":null,"creator":{"login":"mdavidsaver","id":4429215,"avatar_url":"https://avatars2.githubusercontent.com/u/4429215?v=4","gravatar_id":"","url":"https://api.github.com/users/mdavidsaver","html_url":"https://github.com/mdavidsaver","followers_url":"https://api.github.com/users/mdavidsaver/followers","following_url":"https://api.github.com/users/mdavidsaver/following{/other_user}","gists_url":"https://api.github.com/users/mdavidsaver/gists{/gist_id}","starred_url":"https://api.github.com/users/mdavidsaver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdavidsaver/subscriptions","organizations_url":"https://api.github.com/users/mdavidsaver/orgs","repos_url":"https://api.github.com/users/mdavidsaver/repos","events_url":"https://api.github.com/users/mdavidsaver/events{/privacy}","received_events_url":"https://api.github.com/users/mdavidsaver/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":1,"state":"open","created_at":"2018-02-14T18:28:39Z","updated_at":"2018-02-20T20:14:25Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2018-02-20T20:14:25Z","updated_at":"2018-02-20T20:14:25Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"pvget and friends (at least) may crash during shutdown.\r\n\r\n```\r\nProgram terminated with signal 11, Segmentation fault.\r\n#0  0x000000000052d18a in (anonymous namespace)::InternalClientContextImpl::InternalChannelImpl::reportChan\r\nnelStateChange (this=0x25f4630) at ../../src/remoteClient/clientContextImpl.cpp:3830\r\n3830    ../../src/remoteClient/clientContextImpl.cpp: No such file or directory.\r\n       in ../../src/remoteClient/clientContextImpl.cpp\r\nMissing separate debuginfos, use: debuginfo-install ncurses-libs-5.7-4.20090207.el6.x86_64 readline-6.0-4.e\r\nl6.x86_64\r\n(gdb) thread apply all backtrace\r\n\r\nThread 8 (Thread 0x7f4d49c20700 (LWP 40790)):\r\n#0  0x0000003c8da0eca3 in recvfrom () at ../sysdeps/unix/syscall-template.S:82\r\n#1  0x000000000055c7e4 in epics::pvAccess::BlockingUDPTransport::run (this=0x25b2750)\r\n   at ../../src/remote/blockingUDPTransport.cpp:221\r\n#2  0x0000000000638f59 in epicsThreadCallEntryPoint (pPvt=0x25d2ad0)\r\n   at ../../../src/libCom/osi/epicsThread.cpp:83\r\n#3  0x000000000063e4fc in start_routine (arg=0x25d31d0)\r\n   at ../../../src/libCom/osi/os/posix/osdThread.c:403\r\n#4  0x0000003c8da07aa1 in start_thread (arg=0x7f4d49c20700) at pthread_create.c:301\r\n#5  0x0000003c8d2e8bcd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115\r\n\r\nThread 7 (Thread 0x7f4d49b9f700 (LWP 40793)):\r\n#0  0x0000003c8da0eca3 in recvfrom () at ../sysdeps/unix/syscall-template.S:82\r\n#1  0x000000000055c7e4 in epics::pvAccess::BlockingUDPTransport::run (this=0x25d35a0)\r\n   at ../../src/remote/blockingUDPTransport.cpp:221\r\n#2  0x0000000000638f59 in epicsThreadCallEntryPoint (pPvt=0x25f3ae0)\r\n   at ../../../src/libCom/osi/epicsThread.cpp:83\r\n#3  0x000000000063e4fc in start_routine (arg=0x25f3b20)\r\n   at ../../../src/libCom/osi/os/posix/osdThread.c:403\r\n#4  0x0000003c8da07aa1 in start_thread (arg=0x7f4d49b9f700) at pthread_create.c:301\r\n#5  0x0000003c8d2e8bcd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115\r\n\r\nThread 6 (Thread 0x7f4d49ca1700 (LWP 40786)):\r\n#0  0x0000003c8da0eca3 in recvfrom () at ../sysdeps/unix/syscall-template.S:82\r\n#1  0x000000000055c7e4 in epics::pvAccess::BlockingUDPTransport::run (this=0x2592550)\r\n   at ../../src/remote/blockingUDPTransport.cpp:221\r\n#2  0x0000000000638f59 in epicsThreadCallEntryPoint (pPvt=0x25d2d00)\r\n   at ../../../src/libCom/osi/epicsThread.cpp:83\r\n#3  0x000000000063e4fc in start_routine (arg=0x25d2d40)\r\n---Type <return> to continue, or q <return> to quit---\r\n   at ../../../src/libCom/osi/os/posix/osdThread.c:403\r\n#4  0x0000003c8da07aa1 in start_thread (arg=0x7f4d49ca1700) at pthread_create.c:301\r\n#5  0x0000003c8d2e8bcd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115\r\n\r\nThread 5 (Thread 0x7f4d49b1e700 (LWP 40800)):\r\n#0  0x0000003c8ce09f55 in do_lookup_x (new_hash=2090266759, old_hash=0x7f4d49b1dcf8,  \r\n   ref=<value optimized out>, result=0x7f4d49b1dce0, scope=<value optimized out>, i=9, flags=5,  \r\n   skip=0x0, undef_map=0x7f4d4a9ba000) at dl-lookup.c:242\r\n#1  0x0000003c8ce0a26a in _dl_lookup_symbol_x (undef_name=0x3c8da02ee2 \"free\", undef_map=0x7f4d4a9ba000,  \r\n   ref=0x7f4d49b1dd58, symbol_scope=0x7f4d4a9ba358, version=0x7f4d4a9b7a10, type_class=1, flags=5,  \r\n   skip_map=0x0) at dl-lookup.c:747\r\n#2  0x0000003c8ce0e420 in _dl_fixup (l=<value optimized out>, reloc_arg=<value optimized out>)\r\n   at ../elf/dl-runtime.c:118\r\n#3  0x0000003c8ce14c55 in _dl_runtime_resolve () at ../sysdeps/x86_64/dl-trampoline.S:41\r\n#4  0x0000003c8da0891d in __pthread_attr_destroy (attr=<value optimized out>) at pthread_attr_destroy.c:42\r\n#5  0x000000000063e1c9 in free_threadInfo (pthreadInfo=0x7f4d3c00a220)\r\n   at ../../../src/libCom/osi/os/posix/osdThread.c:213\r\n#6  0x000000000063e509 in start_routine (arg=0x7f4d3c00a220)\r\n   at ../../../src/libCom/osi/os/posix/osdThread.c:406\r\n#7  0x0000003c8da07aa1 in start_thread (arg=0x7f4d49b1e700) at pthread_create.c:301\r\n#8  0x0000003c8d2e8bcd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115\r\n\r\nThread 4 (Thread 0x7f4d49da3700 (LWP 40777)):\r\n#0  pthread_cond_timedwait@@GLIBC_2.3.2 ()\r\n   at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:239\r\n#1  0x0000000000640189 in epicsEventWaitWithTimeout (pevent=0x2570620, timeout=0.24695568400000001)\r\n   at ../../../src/libCom/osi/os/posix/osdEvent.c:130\r\n#2  0x0000000000598720 in epics::pvData::Event::wait (this=<value optimized out>,  \r\n   timeOut=<value optimized out>) at ../../src/misc/event.cpp:60\r\n#3  0x00000000005996ba in epics::pvData::Timer::run (this=0x2570530) at ../../src/misc/timer.cpp:138\r\n---Type <return> to continue, or q <return> to quit---\r\n#4  0x0000000000638f59 in epicsThreadCallEntryPoint (pPvt=0x2570560)\r\n   at ../../../src/libCom/osi/epicsThread.cpp:83\r\n#5  0x000000000063e4fc in start_routine (arg=0x25707e0)\r\n   at ../../../src/libCom/osi/os/posix/osdThread.c:403\r\n#6  0x0000003c8da07aa1 in start_thread (arg=0x7f4d49da3700) at pthread_create.c:301\r\n#7  0x0000003c8d2e8bcd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115\r\n\r\nThread 3 (Thread 0x7f4d49d22700 (LWP 40782)):\r\n#0  0x0000003c8da0eca3 in recvfrom () at ../sysdeps/unix/syscall-template.S:82\r\n#1  0x000000000055c7e4 in epics::pvAccess::BlockingUDPTransport::run (this=0x25715b0)\r\n   at ../../src/remote/blockingUDPTransport.cpp:221\r\n#2  0x0000000000638f59 in epicsThreadCallEntryPoint (pPvt=0x2571ed0)\r\n   at ../../../src/libCom/osi/epicsThread.cpp:83\r\n#3  0x000000000063e4fc in start_routine (arg=0x2572030)\r\n   at ../../../src/libCom/osi/os/posix/osdThread.c:403\r\n#4  0x0000003c8da07aa1 in start_thread (arg=0x7f4d49d22700) at pthread_create.c:301\r\n#5  0x0000003c8d2e8bcd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115\r\n\r\nThread 2 (Thread 0x7f4d49a9d700 (LWP 40802)):\r\n#0  execute_cfa_program (insn_ptr=0x67e60d \"\\016 \\203\\003q\\n\\016\\bH\\vc\\016\\b\", insn_end=0x67e620 \"$\",  \r\n   context=0x7f4d49a9c860, fs=0x7f4d49a9c530) at ../../../gcc/unwind-dw2.c:915\r\n#1  0x000000300be0f98f in uw_frame_state_for (context=0x7f4d49a9c860, fs=0x7f4d49a9c530)\r\n   at ../../../gcc/unwind-dw2.c:1250\r\n#2  0x000000300be103aa in _Unwind_RaiseException_Phase2 (exc=0x7f4d40000a10, context=0x7f4d49a9c860)\r\n   at ../../../gcc/unwind.inc:48\r\n#3  0x000000300be1070d in _Unwind_RaiseException (exc=0x7f4d40000a10) at ../../../gcc/unwind.inc:131\r\n#4  0x000000300babcd25 in __cxxabiv1::__cxa_throw (obj=0x7f4d40000a30, tinfo=0x8d2610, dest=\r\n   0x50e2f0 <epics::pvAccess::detail::connection_closed_exception::~connection_closed_exception()>)\r\n   at ../../../../libstdc++-v3/libsupc++/eh_throw.cc:81\r\n#5  0x0000000000508686 in epics::pvAccess::detail::AbstractCodec::send (this=<value optimized out>,  \r\n---Type <return> to continue, or q <return> to quit---\r\n   buffer=0x7f4d3c000ae0) at ../../src/remote/codec.cpp:801\r\n#6  0x0000000000508722 in epics::pvAccess::detail::AbstractCodec::flushSendBuffer (this=0x7f4d3c000a70)\r\n   at ../../src/remote/codec.cpp:716\r\n#7  0x000000000050886b in epics::pvAccess::detail::AbstractCodec::flush (this=0x7f4d3c000a70,  \r\n   lastMessageCompleted=true) at ../../src/remote/codec.cpp:738\r\n#8  0x0000000000509267 in epics::pvAccess::detail::AbstractCodec::processSender (this=0x7f4d3c000a70,  \r\n   sender=warning: RTTI symbol not found for class 'std::tr1::_Sp_counted_base_impl<(anonymous namespace):\r\n:InternalClientContextImpl::InternalChannelImpl*, std::tr1::_Sp_deleter<(anonymous namespace)::InternalClie\r\nntContextImpl::InternalChannelImpl>, (__gnu_cxx::_Lock_policy)2>'\r\nstd::tr1::shared_ptr (count 4) 0x25f4640) at ../../src/remote/codec.cpp:888\r\n#9  0x000000000050970b in epics::pvAccess::detail::AbstractCodec::processSendQueue (this=0x7f4d3c000a70)\r\n   at ../../src/remote/codec.cpp:850\r\n#10 0x00000000005099f8 in epics::pvAccess::detail::BlockingTCPTransportCodec::sendThread (\r\n   this=0x7f4d3c000a70) at ../../src/remote/codec.cpp:1116\r\n#11 0x0000000000638f59 in epicsThreadCallEntryPoint (pPvt=0x7f4d3c000be8)\r\n   at ../../../src/libCom/osi/epicsThread.cpp:83\r\n#12 0x000000000063e4fc in start_routine (arg=0x7f4d3c00a700)\r\n   at ../../../src/libCom/osi/os/posix/osdThread.c:403\r\n#13 0x0000003c8da07aa1 in start_thread (arg=0x7f4d49a9d700) at pthread_create.c:301\r\n#14 0x0000003c8d2e8bcd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115\r\n\r\nThread 1 (Thread 0x7f4d4a9b4720 (LWP 40767)):\r\n#0  0x000000000052d18a in (anonymous namespace)::InternalClientContextImpl::InternalChannelImpl::reportChan\r\nnelStateChange (this=0x25f4630) at ../../src/remoteClient/clientContextImpl.cpp:3830\r\n#1  0x000000000052e161 in (anonymous namespace)::InternalClientContextImpl::InternalChannelImpl::destroyCha\r\nnnel (this=0x25f4630) at ../../src/remoteClient/clientContextImpl.cpp:3563\r\n#2  0x0000000000520195 in destroyAllChannels (this=0x256f9f0)\r\n   at ../../src/remoteClient/clientContextImpl.cpp:4257\r\n#3  internalDestroy (this=0x256f9f0) at ../../src/remoteClient/clientContextImpl.cpp:4209\r\n#4  (anonymous namespace)::InternalClientContextImpl::destroy (this=0x256f9f0)\r\n   at ../../src/remoteClient/clientContextImpl.cpp:4107\r\n#5  0x000000000051b30e in operator() (this=<value optimized out>) at ../../src/utils/pv/destroyable.h:54\r\n#6  std::tr1::_Sp_counted_base_impl<<unnamed>::InternalClientContextImpl*, epics::pvAccess::Destroyable::cl\r\n---Type <return> to continue, or q <return> to quit---\r\neaner, (__gnu_cxx::_Lock_policy)2u>::_M_dispose(void) (this=<value optimized out>)\r\n   at /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/tr1/shared_ptr.h:75\r\n#7  0x00000000004d3571 in _M_release (this=0x7ffd99436140, __x=0x25f50d0)\r\n   at /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/tr1_impl/boost_sp_counted_base.\r\nh:140\r\n#8  ~__shared_count (this=0x7ffd99436140, __x=0x25f50d0)\r\n   at /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/tr1/shared_ptr.h:153\r\n#9  ~__shared_ptr (this=0x7ffd99436140, __x=0x25f50d0)\r\n   at /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/tr1/shared_ptr.h:358\r\n#10 ~shared_ptr (this=0x7ffd99436140, __x=0x25f50d0)\r\n   at /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/tr1/shared_ptr.h:834\r\n#11 destroy (this=0x7ffd99436140, __x=0x25f50d0)\r\n   at /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/ext/new_allocator.h:115\r\n#12 _M_destroy_node (this=0x7ffd99436140, __x=0x25f50d0)\r\n   at /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_tree.h:383\r\n#13 std::_Rb_tree<std::tr1::shared_ptr<epics::pvAccess::ChannelProvider>, std::tr1::shared_ptr<epics::pvAcc\r\ness::ChannelProvider>, std::_Identity<std::tr1::shared_ptr<epics::pvAccess::ChannelProvider> >, std::less<s\r\ntd::tr1::shared_ptr<epics::pvAccess::ChannelProvider> >, std::allocator<std::tr1::shared_ptr<epics::pvAcces\r\ns::ChannelProvider> > >::_M_erase (this=0x7ffd99436140, __x=0x25f50d0)\r\n   at /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_tree.h:972\r\n#14 0x00000000004cf993 in ~_Rb_tree (argc=<value optimized out>, argv=<value optimized out>)\r\n   at /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_tree.h:614\r\n#15 ~set (argc=<value optimized out>, argv=<value optimized out>)\r\n   at /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_set.h:88\r\n#16 main (argc=<value optimized out>, argv=<value optimized out>) at ../pvget.cpp:634\r\n```"}}
{"actor":{"display_login":"mdavidsaver"}}