{"action":"created","issue":{"url":"https://api.github.com/repos/reverbrain/elliptics/issues/689","repository_url":"https://api.github.com/repos/reverbrain/elliptics","labels_url":"https://api.github.com/repos/reverbrain/elliptics/issues/689/labels{/name}","comments_url":"https://api.github.com/repos/reverbrain/elliptics/issues/689/comments","events_url":"https://api.github.com/repos/reverbrain/elliptics/issues/689/events","html_url":"https://github.com/reverbrain/elliptics/issues/689","id":131729048,"number":689,"title":"SIGSEGV, Segmentation fault on node start","user":{"login":"agend","id":2485016,"avatar_url":"https://avatars.githubusercontent.com/u/2485016?v=3","gravatar_id":"","url":"https://api.github.com/users/agend","html_url":"https://github.com/agend","followers_url":"https://api.github.com/users/agend/followers","following_url":"https://api.github.com/users/agend/following{/other_user}","gists_url":"https://api.github.com/users/agend/gists{/gist_id}","starred_url":"https://api.github.com/users/agend/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agend/subscriptions","organizations_url":"https://api.github.com/users/agend/orgs","repos_url":"https://api.github.com/users/agend/repos","events_url":"https://api.github.com/users/agend/events{/privacy}","received_events_url":"https://api.github.com/users/agend/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":21,"created_at":"2016-02-05T19:12:47Z","updated_at":"2016-02-24T11:41:19Z","closed_at":null,"body":"Looks like some variable isn't initialized.\r\nEnvironment: Centos 6.5 x64\r\nElliptics version 2.26.10.1\r\n```\r\nProgram received signal SIGSEGV, Segmentation fault.\r\n[Switching to Thread 0x7ffeabae5700 (LWP 14022)]\r\nWriteString (this=0x7ffeabadcf30, handler=...) at /usr/include/handystats/rapidjson/writer.h:198\r\n198                             const Ch c = is.Peek();\r\n(gdb) list 181,198\r\n181             void WriteString(const Ch* str, SizeType length)  {\r\n182                     static const char hexDigits[16] = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F' };\r\n183                     static const char escape[256] = {\r\n184     #define Z16 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0\r\n185                             //0    1    2    3    4    5    6    7    8    9    A    B    C    D    E    F\r\n186                             'u', 'u', 'u', 'u', 'u', 'u', 'u', 'u', 'b', 't', 'n', 'u', 'f', 'r', 'u', 'u', // 00\r\n187                             'u', 'u', 'u', 'u', 'u', 'u', 'u', 'u', 'u', 'u', 'u', 'u', 'u', 'u', 'u', 'u', // 10\r\n188                               0,   0, '\"',   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0, // 20\r\n189                             Z16, Z16,                                                                                                                                       // 30~4F\r\n190                               0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,'\\\\',   0,   0,   0, // 50\r\n191                             Z16, Z16, Z16, Z16, Z16, Z16, Z16, Z16, Z16, Z16                                                                // 60~FF\r\n192     #undef Z16\r\n193                     };\r\n194\r\n195                     os_.Put('\\\"');\r\n196                     GenericStringStream<SourceEncoding> is(str);\r\n197                     while (is.Tell() < length) {\r\n198                             const Ch c = is.Peek();\r\n(gdb) print str\r\n$2 = 0xd00007fff <Address 0xd00007fff out of bounds>\r\n(gdb) bt\r\n#0  WriteString (this=0x7ffeabadcf30, handler=...) at /usr/include/handystats/rapidjson/writer.h:198\r\n#1  String (this=0x7ffeabadcf30, handler=...) at /usr/include/handystats/rapidjson/writer.h:54\r\n#2  rapidjson::GenericValue<rapidjson::UTF8<char>, rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator> >::Accept<rapidjson::Writer<rapidjson::GenericStringBuffer<rapidjson::UTF8<char>, rapidjson::CrtAllocator>, rapidjson::UTF8<char>, rapidjson::UTF8<char>, rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator> > > (this=0x7ffeabadcf30, handler=...) at /usr/include/handystats/rapidjson/document.h:530\r\n#3  0x00007ffff73a3c18 in eblob_json_commit (b=0x7fff780023c0) at /builds/group-d/eblob-original-id-mod/rpmbuild/BUILD/eblob-0.23.12/library/json_stat.cpp:281\r\n#4  0x00007ffff73856ae in eblob_periodic (b=0x7fff780023c0) at /builds/group-d/eblob-original-id-mod/rpmbuild/BUILD/eblob-0.23.12/library/blob.c:2902\r\n#5  0x00007ffff7386370 in eblob_periodic_thread (data=0x7fff780023c0) at /builds/group-d/eblob-original-id-mod/rpmbuild/BUILD/eblob-0.23.12/library/blob.c:2867\r\n#6  0x00007ffff6868851 in start_thread () from /lib64/libpthread.so.0\r\n#7  0x00007ffff512790d in clone () from /lib64/libc.so.6\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/reverbrain/elliptics/issues/comments/188214437","html_url":"https://github.com/reverbrain/elliptics/issues/689#issuecomment-188214437","issue_url":"https://api.github.com/repos/reverbrain/elliptics/issues/689","id":188214437,"user":{"login":"shaitan","id":446423,"avatar_url":"https://avatars.githubusercontent.com/u/446423?v=3","gravatar_id":"","url":"https://api.github.com/users/shaitan","html_url":"https://github.com/shaitan","followers_url":"https://api.github.com/users/shaitan/followers","following_url":"https://api.github.com/users/shaitan/following{/other_user}","gists_url":"https://api.github.com/users/shaitan/gists{/gist_id}","starred_url":"https://api.github.com/users/shaitan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shaitan/subscriptions","organizations_url":"https://api.github.com/users/shaitan/orgs","repos_url":"https://api.github.com/users/shaitan/repos","events_url":"https://api.github.com/users/shaitan/events{/privacy}","received_events_url":"https://api.github.com/users/shaitan/received_events","type":"User","site_admin":false},"created_at":"2016-02-24T11:41:19Z","updated_at":"2016-02-24T11:41:19Z","body":"I've made https://github.com/reverbrain/eblob/pull/169 which provides this fix.\r\n\r\n@agend, you can try to use it and check whether it fixes the issue."}}