{"action":"created","issue":{"url":"https://api.github.com/repos/rstudio/httpuv/issues/133","repository_url":"https://api.github.com/repos/rstudio/httpuv","labels_url":"https://api.github.com/repos/rstudio/httpuv/issues/133/labels{/name}","comments_url":"https://api.github.com/repos/rstudio/httpuv/issues/133/comments","events_url":"https://api.github.com/repos/rstudio/httpuv/issues/133/events","html_url":"https://github.com/rstudio/httpuv/issues/133","id":320773784,"number":133,"title":"blogdown::serve_site() -> received signal SIGABRT, Aborted","user":{"login":"jar1karp","id":1190392,"avatar_url":"https://avatars3.githubusercontent.com/u/1190392?v=4","gravatar_id":"","url":"https://api.github.com/users/jar1karp","html_url":"https://github.com/jar1karp","followers_url":"https://api.github.com/users/jar1karp/followers","following_url":"https://api.github.com/users/jar1karp/following{/other_user}","gists_url":"https://api.github.com/users/jar1karp/gists{/gist_id}","starred_url":"https://api.github.com/users/jar1karp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jar1karp/subscriptions","organizations_url":"https://api.github.com/users/jar1karp/orgs","repos_url":"https://api.github.com/users/jar1karp/repos","events_url":"https://api.github.com/users/jar1karp/events{/privacy}","received_events_url":"https://api.github.com/users/jar1karp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-05-07T11:45:53Z","updated_at":"2018-05-08T05:26:25Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nBelow is a backtrace from gdb that I get by calling blogdown::serve_site(). This happens both with version 1.4.2 on CRAN and also if I install latest master from github. I'm running R version 3.5.0 Patched (2018-05-03 r74699) on Fedora 28 x86_64.\r\n\r\n```\r\n/usr/include/c++/8/bits/stl_vector.h:932: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) [with _Tp = char; _Alloc = std::allocator<char>; std::vector<_Tp, _Alloc>::reference = char&; std::vector<_Tp, _Alloc>::size_type = long unsigned int]: Assertion '__builtin_expect(__n < this->size(), true)' failed.\r\n\r\nThread 1 \"R\" received signal SIGABRT, Aborted.\r\n0x00007ffff42e7f4b in raise () from /lib64/libc.so.6\r\n(gdb) bt\r\n#0  0x00007ffff42e7f4b in raise () from /lib64/libc.so.6\r\n#1  0x00007ffff42d2591 in abort () from /lib64/libc.so.6\r\n#2  0x00007fffe6372928 in std::__replacement_assert (__file=__file@entry=0x7fffe63bfba8 \"/usr/include/c++/8/bits/stl_vector.h\", __line=__line@entry=932, \r\n    __function=__function@entry=0x7fffe63bfe00 <std::vector<char, std::allocator<char> >::operator[](unsigned long)::__PRETTY_FUNCTION__> \"std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) [with _Tp = char; _Alloc = std::allocator<char>; std::vector<_Tp, _Alloc>::reference = cha\"..., __condition=__condition@entry=0x7fffe63bfb78 \"__builtin_expect(__n < this->size(), true)\") at /usr/include/c++/8/x86_64-redhat-linux/bits/c++config.h:2389\r\n#3  0x00007fffe6378517 in std::vector<char, std::allocator<char> >::operator[] (__n=0, this=<optimized out>) at /home/jkarppin/R/x86_64-redhat-linux-gnu-library/3.5/BH/include/boost/smart_ptr/detail/shared_count.hpp:426\r\n#4  HttpRequest::_call_r_on_ws_open() () at httprequest.cpp:687\r\n#5  0x00007fffe63715c6 in boost::function0<void>::operator() (this=0x7fffe0002868) at /home/jkarppin/R/x86_64-redhat-linux-gnu-library/3.5/BH/include/boost/function/function_base.hpp:601\r\n#6  BoostFunctionCallback::operator() (this=0x7fffe0002860) at callback.h:29\r\n#7  invoke_callback(void*) () at callback.cpp:7\r\n#8  0x00007fffe680a9c2 in boost::function0<void>::operator() (this=<optimized out>) at /home/jkarppin/R/x86_64-redhat-linux-gnu-library/3.5/BH/include/boost/function/function_base.hpp:601\r\n#9  Callback::operator() (this=<optimized out>) at callback_registry.h:28\r\n#10 execCallbacks(double) () at later.cpp:91\r\n#11 0x00007fffe680abe9 in execCallbacksForTopLevel () at later.cpp:109\r\n#12 0x00007fffe680bfef in async_input_handler(void*) () at later_posix.cpp:117\r\n#13 0x00007ffff79b6314 in R_runHandlers () from /usr/lib64/R/lib/libR.so\r\n#14 0x00007ffff79b675e in ?? () from /usr/lib64/R/lib/libR.so\r\n#15 0x00007ffff78c89c4 in Rf_ReplIteration () from /usr/lib64/R/lib/libR.so\r\n#16 0x00007ffff78c8f11 in ?? () from /usr/lib64/R/lib/libR.so\r\n#17 0x00007ffff78c8fd0 in run_Rmainloop () from /usr/lib64/R/lib/libR.so\r\n#18 0x000055555555491f in main ()\r\n```\r\n\r\nIn case anyone else has the same problem: this worked previously with httpuv version 1.3.6 and seems that at least temporarily the crash can be avoided by installing the old version by `devtools::install_version('httpuv', '1.3.6')`.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/rstudio/httpuv/issues/comments/387288586","html_url":"https://github.com/rstudio/httpuv/issues/133#issuecomment-387288586","issue_url":"https://api.github.com/repos/rstudio/httpuv/issues/133","id":387288586,"user":{"login":"jar1karp","id":1190392,"avatar_url":"https://avatars3.githubusercontent.com/u/1190392?v=4","gravatar_id":"","url":"https://api.github.com/users/jar1karp","html_url":"https://github.com/jar1karp","followers_url":"https://api.github.com/users/jar1karp/followers","following_url":"https://api.github.com/users/jar1karp/following{/other_user}","gists_url":"https://api.github.com/users/jar1karp/gists{/gist_id}","starred_url":"https://api.github.com/users/jar1karp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jar1karp/subscriptions","organizations_url":"https://api.github.com/users/jar1karp/orgs","repos_url":"https://api.github.com/users/jar1karp/repos","events_url":"https://api.github.com/users/jar1karp/events{/privacy}","received_events_url":"https://api.github.com/users/jar1karp/received_events","type":"User","site_admin":false},"created_at":"2018-05-08T05:26:25Z","updated_at":"2018-05-08T05:26:25Z","author_association":"NONE","body":"No, here's the output\r\n\r\n```\r\n> library(httpuv)\r\n> startServer(\"0.0.0.0\", 8000, list())\r\n[1] \"140511063052696\"\r\n> startServer(\"0.0.0.0\", 8000, list())\r\nError in startServer(\"0.0.0.0\", 8000, list()) : Failed to create server\r\n> startServer(\"0.0.0.0\", 8001, list())\r\n[1] \"140511063053368\"\r\n```"}}
{"actor":{"display_login":"jar1karp"}}