{"action":"created","issue":{"url":"https://api.github.com/repos/collectd/collectd/issues/1131","labels_url":"https://api.github.com/repos/collectd/collectd/issues/1131/labels{/name}","comments_url":"https://api.github.com/repos/collectd/collectd/issues/1131/comments","events_url":"https://api.github.com/repos/collectd/collectd/issues/1131/events","html_url":"https://github.com/collectd/collectd/issues/1131","id":94503768,"number":1131,"title":"statsd plugin crashes on negative timer values","user":{"login":"tmm1","id":2567,"avatar_url":"https://avatars.githubusercontent.com/u/2567?v=3","gravatar_id":"","url":"https://api.github.com/users/tmm1","html_url":"https://github.com/tmm1","followers_url":"https://api.github.com/users/tmm1/followers","following_url":"https://api.github.com/users/tmm1/following{/other_user}","gists_url":"https://api.github.com/users/tmm1/gists{/gist_id}","starred_url":"https://api.github.com/users/tmm1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmm1/subscriptions","organizations_url":"https://api.github.com/users/tmm1/orgs","repos_url":"https://api.github.com/users/tmm1/repos","events_url":"https://api.github.com/users/tmm1/events{/privacy}","received_events_url":"https://api.github.com/users/tmm1/received_events","type":"User","site_admin":true},"labels":[{"url":"https://api.github.com/repos/collectd/collectd/labels/Bug","name":"Bug","color":"e10c02"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-11T20:05:02Z","updated_at":"2015-07-12T11:11:58Z","closed_at":null,"body":"```\r\nCore was generated by `collectd -C /etc/collectd/collectd.conf -f'.\r\nProgram terminated with signal 11, Segmentation fault.\r\n#0  0x00007f6a6d75e6b8 in latency_counter_add (lc=0x7f6a40001d20, latency=<optimized out>) at utils_latency.c:164\r\n164\tutils_latency.c: No such file or directory.\r\n(gdb) where\r\n#0  0x00007f6a6d75e6b8 in latency_counter_add (lc=0x7f6a40001d20, latency=<optimized out>) at utils_latency.c:164\r\n#1  0x00007f6a6d75dffe in statsd_handle_timer (value_str=0x7f6a696706bf \"-0.02680099999993052\", name=<optimized out>) at statsd.c:279\r\n#2  statsd_parse_line (buffer=<optimized out>) at statsd.c:378\r\n#3  statsd_parse_buffer (buffer=<optimized out>) at statsd.c:408\r\n#4  statsd_network_read (fd=<optimized out>) at statsd.c:440\r\n#5  statsd_network_thread (args=<optimized out>) at statsd.c:569\r\n#6  0x00007f6a79cd7e9a in start_thread (arg=0x7f6a69672700) at pthread_create.c:308\r\n#7  0x00007f6a797fb38d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112\r\n```"},"comment":{"url":"https://api.github.com/repos/collectd/collectd/issues/comments/120707947","html_url":"https://github.com/collectd/collectd/issues/1131#issuecomment-120707947","issue_url":"https://api.github.com/repos/collectd/collectd/issues/1131","id":120707947,"user":{"login":"octo","id":116087,"avatar_url":"https://avatars.githubusercontent.com/u/116087?v=3","gravatar_id":"","url":"https://api.github.com/users/octo","html_url":"https://github.com/octo","followers_url":"https://api.github.com/users/octo/followers","following_url":"https://api.github.com/users/octo/following{/other_user}","gists_url":"https://api.github.com/users/octo/gists{/gist_id}","starred_url":"https://api.github.com/users/octo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/octo/subscriptions","organizations_url":"https://api.github.com/users/octo/orgs","repos_url":"https://api.github.com/users/octo/repos","events_url":"https://api.github.com/users/octo/events{/privacy}","received_events_url":"https://api.github.com/users/octo/received_events","type":"User","site_admin":false},"created_at":"2015-07-12T11:11:58Z","updated_at":"2015-07-12T11:11:58Z","body":"```\r\nCore was generated by `src/test_utils_latency'.\r\nProgram terminated with signal SIGSEGV, Segmentation fault.\r\n#0  0x00000000004036b9 in latency_counter_add (lc=0x8de010, latency=18446744072635809792) at utils_latency.c:171\r\n171\t  lc->histogram[bin]++;\r\n(gdb) bt full\r\n#0  0x00000000004036b9 in latency_counter_add (lc=0x8de010, latency=18446744072635809792) at utils_latency.c:171\r\n        latency_ms = 17179869183000\r\n        bin = -250\r\n#1  0x0000000000402552 in test_simple () at utils_latency_test.c:57\r\n        cases = {{val = 0.5, min = 0.5, max = 0.5, sum = 0.5, avg = 0.5}, {val = 0.29999999999999999, min = 0.29999999999999999, max = 0.5, sum = 0.80000000000000004, avg = 0.40000000000000002}, {\r\n            val = 0.69999999999999996, min = 0.29999999999999999, max = 0.69999999999999996, sum = 1.5, avg = 0.5}, {val = 2.5, min = 0.29999999999999999, max = 2.5, sum = 4, avg = 1}, {val = -1, \r\n            min = 0.29999999999999999, max = 2.5, sum = 4, avg = 1}}\r\n        i = 4\r\n        l = 0x8de010\r\n#2  0x00000000004009fe in main () at utils_latency_test.c:99\r\n        status = 0\r\n```"}}