{"action":"created","issue":{"url":"https://api.github.com/repos/gnuradio/gnuradio/issues/1094","repository_url":"https://api.github.com/repos/gnuradio/gnuradio","labels_url":"https://api.github.com/repos/gnuradio/gnuradio/issues/1094/labels{/name}","comments_url":"https://api.github.com/repos/gnuradio/gnuradio/issues/1094/comments","events_url":"https://api.github.com/repos/gnuradio/gnuradio/issues/1094/events","html_url":"https://github.com/gnuradio/gnuradio/issues/1094","id":188874535,"number":1094,"title":"Segfault in gnuradio-runtime (block.cc)","user":{"login":"mrjacobagilbert","id":7121282,"avatar_url":"https://avatars.githubusercontent.com/u/7121282?v=3","gravatar_id":"","url":"https://api.github.com/users/mrjacobagilbert","html_url":"https://github.com/mrjacobagilbert","followers_url":"https://api.github.com/users/mrjacobagilbert/followers","following_url":"https://api.github.com/users/mrjacobagilbert/following{/other_user}","gists_url":"https://api.github.com/users/mrjacobagilbert/gists{/gist_id}","starred_url":"https://api.github.com/users/mrjacobagilbert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrjacobagilbert/subscriptions","organizations_url":"https://api.github.com/users/mrjacobagilbert/orgs","repos_url":"https://api.github.com/users/mrjacobagilbert/repos","events_url":"https://api.github.com/users/mrjacobagilbert/events{/privacy}","received_events_url":"https://api.github.com/users/mrjacobagilbert/received_events","type":"User","site_admin":false},"labels":[{"id":443989087,"url":"https://api.github.com/repos/gnuradio/gnuradio/labels/Bug","name":"Bug","color":"b60205","default":false},{"id":451695968,"url":"https://api.github.com/repos/gnuradio/gnuradio/labels/Runtime","name":"Runtime","color":"5319e7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-11T23:41:42Z","updated_at":"2016-11-14T21:34:18Z","closed_at":null,"body":"I have a GR application that is throwing a segmentation fault while otherwise running correctly. It runs for somewhere between 10 seconds and ~5 minutes but consistently ends with the following SIGSEGV:\r\n\r\n```\r\nProgram received signal SIGSEGV, Segmentation fault.\r\n[Switching to Thread 0x7fddf1ffb700 (LWP 1662)]\r\nshared_count (r=..., this=<optimized out>) at /opt/gnuradio/include/boost/smart_ptr/detail/shared_count.hpp:382\r\n382\t        if( pi_ != 0 ) pi_->add_ref_copy();\r\n```\r\n\r\nThe full GDB backtrace is:\r\n\r\n```\r\n(gdb) bt\r\n#0  shared_count (r=..., this=<optimized out>) at /opt/gnuradio/include/boost/smart_ptr/detail/shared_count.hpp:382\r\n#1  shared_ptr (this=<optimized out>) at /opt/gnuradio/include/boost/smart_ptr/shared_ptr.hpp:328\r\n#2  detail (this=0x32a3d78) at /opt/gnuradio/src/gnuradio/gnuradio-runtime/include/gnuradio/block.h:839\r\n#3  gr::block::finished (this=0x32a3d78) at /opt/gnuradio/src/gnuradio/gnuradio-runtime/lib/block.cc:753\r\n#4  0x00007fde8a1cb21c in gr::tpb_thread_body::tpb_thread_body (this=0x7fddf1ffadb0, block=..., \r\n    max_noutput_items=<optimized out>) at /opt/gnuradio/src/gnuradio/gnuradio-runtime/lib/tpb_thread_body.cc:129\r\n#5  0x00007fde8a1bd511 in operator() (this=0x3cdd890)\r\n    at /opt/gnuradio/src/gnuradio/gnuradio-runtime/lib/scheduler_tpb.cc:44\r\n#6  operator() (this=0x3cdd890)\r\n    at /opt/gnuradio/src/gnuradio/gnuradio-runtime/include/gnuradio/thread/thread_body_wrapper.h:51\r\n#7  boost::detail::function::void_function_obj_invoker0<gr::thread::thread_body_wrapper<gr::tpb_container>, void>::invoke\r\n    (function_obj_ptr=...) at /opt/gnuradio/include/boost/function/function_template.hpp:153\r\n#8  0x00007fde8a170e80 in operator() (this=<optimized out>)\r\n    at /opt/gnuradio/include/boost/function/function_template.hpp:767\r\n#9  boost::detail::thread_data<boost::function0<void> >::run (this=<optimized out>)\r\n    at /opt/gnuradio/include/boost/thread/detail/thread.hpp:117\r\n#10 0x00007fde894b60da in thread_proxy () from /opt/gnuradio/lib/libboost_thread-mt.so.1.53.0\r\n#11 0x00007fde9ed96182 in start_thread (arg=0x7fddf1ffb700) at pthread_create.c:312\r\n#12 0x00007fde9eac347d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111\r\n```\r\n\r\nI am unable to replicate this with in-tree code unfortunately, and the application relies on private OOTs and datasets, though it does seem like something that might be a general problem."},"comment":{"url":"https://api.github.com/repos/gnuradio/gnuradio/issues/comments/260469796","html_url":"https://github.com/gnuradio/gnuradio/issues/1094#issuecomment-260469796","issue_url":"https://api.github.com/repos/gnuradio/gnuradio/issues/1094","id":260469796,"user":{"login":"mrjacobagilbert","id":7121282,"avatar_url":"https://avatars.githubusercontent.com/u/7121282?v=3","gravatar_id":"","url":"https://api.github.com/users/mrjacobagilbert","html_url":"https://github.com/mrjacobagilbert","followers_url":"https://api.github.com/users/mrjacobagilbert/followers","following_url":"https://api.github.com/users/mrjacobagilbert/following{/other_user}","gists_url":"https://api.github.com/users/mrjacobagilbert/gists{/gist_id}","starred_url":"https://api.github.com/users/mrjacobagilbert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrjacobagilbert/subscriptions","organizations_url":"https://api.github.com/users/mrjacobagilbert/orgs","repos_url":"https://api.github.com/users/mrjacobagilbert/repos","events_url":"https://api.github.com/users/mrjacobagilbert/events{/privacy}","received_events_url":"https://api.github.com/users/mrjacobagilbert/received_events","type":"User","site_admin":false},"created_at":"2016-11-14T21:34:18Z","updated_at":"2016-11-14T21:34:18Z","body":"Upon further investigation, it appears that [this function](https://github.com/gnuradio/gnuradio/blob/master/gnuradio-runtime/lib/block.cc#L751) is not shutdown related, rather end-of-work-call related. I added a print statement in there and it is called [a lot] during FG execution."}}
{"actor":{"display_login":"mrjacobagilbert"}}