{"action":"created","issue":{"url":"https://api.github.com/repos/usmanm/redis-tdigest/issues/7","repository_url":"https://api.github.com/repos/usmanm/redis-tdigest","labels_url":"https://api.github.com/repos/usmanm/redis-tdigest/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/usmanm/redis-tdigest/issues/7/comments","events_url":"https://api.github.com/repos/usmanm/redis-tdigest/issues/7/events","html_url":"https://github.com/usmanm/redis-tdigest/issues/7","id":294261268,"number":7,"title":"the module got coredump","user":{"login":"vvhungy","id":8256642,"avatar_url":"https://avatars3.githubusercontent.com/u/8256642?v=4","gravatar_id":"","url":"https://api.github.com/users/vvhungy","html_url":"https://github.com/vvhungy","followers_url":"https://api.github.com/users/vvhungy/followers","following_url":"https://api.github.com/users/vvhungy/following{/other_user}","gists_url":"https://api.github.com/users/vvhungy/gists{/gist_id}","starred_url":"https://api.github.com/users/vvhungy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vvhungy/subscriptions","organizations_url":"https://api.github.com/users/vvhungy/orgs","repos_url":"https://api.github.com/users/vvhungy/repos","events_url":"https://api.github.com/users/vvhungy/events{/privacy}","received_events_url":"https://api.github.com/users/vvhungy/received_events","type":"User","site_admin":false},"labels":[{"id":376898984,"url":"https://api.github.com/repos/usmanm/redis-tdigest/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-02-05T03:07:53Z","updated_at":"2018-02-08T02:50:32Z","closed_at":null,"author_association":"NONE","body":"Our redis instance running with tdigest module got coredump in every 4-5 days.\r\ngdb provides backtrace as below.\r\nCould you please take a look at it?\r\nTks.\r\n\r\n(gdb) bt\r\n#0  0x00007f015ab41495 in raise () from /lib64/libc.so.6\r\n#1  0x00007f015ab42c75 in abort () from /lib64/libc.so.6\r\n#2  0x00007f015ab7f3a7 in __libc_message () from /lib64/libc.so.6\r\n#3  0x00007f015ab84dee in malloc_printerr () from /lib64/libc.so.6\r\n#4  0x00007f015ab87c80 in _int_free () from /lib64/libc.so.6\r\n#5  0x00007f0151ffa3f5 in tdigestCompress (t=0x7f0130086750) at src/tdigest.c:176\r\n#6  0x00007f0151ff953c in TDigestTypeAdd_RedisCommand (ctx=0x7ffccde4c350, argv=<value optimized out>, argc=<value optimized out>) at src/command.c:110\r\n#7  0x0000000000490c90 in RedisModuleCommandDispatcher (c=0x7f0150a2be40) at module.c:466\r\n#8  0x0000000000429337 in call (c=0x7f0150a2be40, flags=15) at server.c:2224\r\n#9  0x00000000004299a5 in processCommand (c=0x7f0150a2be40) at server.c:2505\r\n#10 0x0000000000439b2d in processInputBuffer (c=0x7f0150a2be40) at networking.c:1330\r\n#11 0x0000000000424aed in aeProcessEvents (eventLoop=0x7f015463b0a0, flags=11) at ae.c:421\r\n#12 0x0000000000424e0b in aeMain (eventLoop=0x7f015463b0a0) at ae.c:464\r\n#13 0x000000000042da22 in main (argc=<value optimized out>, argv=0x7ffccde4c648) at server.c:3885\r\n\r\n(gdb) bt full\r\n#0  0x00007f015ab41495 in raise () from /lib64/libc.so.6\r\nNo symbol table info available.\r\n#1  0x00007f015ab42c75 in abort () from /lib64/libc.so.6\r\nNo symbol table info available.\r\n#2  0x00007f015ab7f3a7 in __libc_message () from /lib64/libc.so.6\r\nNo symbol table info available.\r\n#3  0x00007f015ab84dee in malloc_printerr () from /lib64/libc.so.6\r\nNo symbol table info available.\r\n#4  0x00007f015ab87c80 in _int_free () from /lib64/libc.so.6\r\nNo symbol table info available.\r\n#5  0x00007f0151ffa3f5 in tdigestCompress (t=0x7f0130086750) at src/tdigest.c:176\r\n        unmerged_centroids = 0x1f20a30\r\n        unmerged_weight = <value optimized out>\r\n        num_unmerged = <value optimized out>\r\n        old_num_centroids = 630\r\n        i = <value optimized out>\r\n        j = 630\r\n        args = {t = 0x7f0130086750, centroids = 0x1f21200, idx = 630, weight_so_far = 393204, k1 = 399.2966162507218, min = 0.14999999999999999, max = 511.43741628850984}\r\n#6  0x00007f0151ff953c in TDigestTypeAdd_RedisCommand (ctx=0x7ffccde4c350, argv=<value optimized out>, argc=<value optimized out>) at src/command.c:110\r\n        key = 0x7f0154623000\r\n        type = 6\r\n        num_added = 1\r\n        values = 0x7f0130bc6810\r\n        counts = 0x7f0130bc6818\r\n        i = <value optimized out>\r\n        t = 0x7f0130086750\r\n        total_count = <value optimized out>\r\n#7  0x0000000000490c90 in RedisModuleCommandDispatcher (c=0x7f0150a2be40) at module.c:466\r\n        cp = <value optimized out>\r\n        ctx = {getapifuncptr = 0x491320, module = 0x7f015461b0c0, client = 0x7f0150a2be40, blocked_client = 0x0, amqueue = 0x7f013e59c300, amqueue_len = 16, amqueue_used = 1, flags = 2, \r\n          postponed_arrays = 0x0, postponed_arrays_count = 0, blocked_privdata = 0x0, keys_pos = 0x0, keys_count = 0, pa_head = 0x7f0130bc6800}\r\n#8  0x0000000000429337 in call (c=0x7f0150a2be40, flags=15) at server.c:2224\r\n        dirty = 23916351\r\n        start = 1517577099955319\r\n        duration = <value optimized out>\r\n        client_old_flags = 0\r\n        prev_also_propagate = {ops = 0x0, numops = 0}\r\n#9  0x00000000004299a5 in processCommand (c=0x7f0150a2be40) at server.c:2505\r\nNo locals.\r\n#10 0x0000000000439b2d in processInputBuffer (c=0x7f0150a2be40) at networking.c:1330\r\nNo locals.\r\n#11 0x0000000000424aed in aeProcessEvents (eventLoop=0x7f015463b0a0, flags=11) at ae.c:421\r\n        fe = 0x7f01542024a0\r\n        mask = 1\r\n        fd = 293\r\n        rfired = 1\r\n        j = <value optimized out>\r\n        shortest = <value optimized out>\r\n        tvp = <value optimized out>\r\n        processed = <value optimized out>\r\n        numevents = 1\r\n#12 0x0000000000424e0b in aeMain (eventLoop=0x7f015463b0a0) at ae.c:464\r\nNo locals.\r\n#13 0x000000000042da22 in main (argc=<value optimized out>, argv=0x7ffccde4c648) at server.c:3885\r\n        tv = {tv_sec = 1517061481, tv_usec = 930087}\r\n        j = <value optimized out>\r\n        hashseed = \"1a86649ef203608a\"\r\n        background = <value optimized out>\r\n"},"comment":{"url":"https://api.github.com/repos/usmanm/redis-tdigest/issues/comments/363985781","html_url":"https://github.com/usmanm/redis-tdigest/issues/7#issuecomment-363985781","issue_url":"https://api.github.com/repos/usmanm/redis-tdigest/issues/7","id":363985781,"user":{"login":"usmanm","id":853039,"avatar_url":"https://avatars0.githubusercontent.com/u/853039?v=4","gravatar_id":"","url":"https://api.github.com/users/usmanm","html_url":"https://github.com/usmanm","followers_url":"https://api.github.com/users/usmanm/followers","following_url":"https://api.github.com/users/usmanm/following{/other_user}","gists_url":"https://api.github.com/users/usmanm/gists{/gist_id}","starred_url":"https://api.github.com/users/usmanm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/usmanm/subscriptions","organizations_url":"https://api.github.com/users/usmanm/orgs","repos_url":"https://api.github.com/users/usmanm/repos","events_url":"https://api.github.com/users/usmanm/events{/privacy}","received_events_url":"https://api.github.com/users/usmanm/received_events","type":"User","site_admin":false},"created_at":"2018-02-08T02:50:32Z","updated_at":"2018-02-08T02:50:32Z","author_association":"OWNER","body":"Great, thanks so much! I'll dig into it sometime this week. \r\n\r\nAs a side note, I'm curios why you had to implement the `tdigest.centroids` command. Was `tdigest.debug` not good for your use case?"}}
{"actor":{"display_login":"usmanm"}}