{"action":"created","issue":{"url":"https://api.github.com/repos/SimonKagstrom/kcov/issues/179","repository_url":"https://api.github.com/repos/SimonKagstrom/kcov","labels_url":"https://api.github.com/repos/SimonKagstrom/kcov/issues/179/labels{/name}","comments_url":"https://api.github.com/repos/SimonKagstrom/kcov/issues/179/comments","events_url":"https://api.github.com/repos/SimonKagstrom/kcov/issues/179/events","html_url":"https://github.com/SimonKagstrom/kcov/issues/179","id":201596300,"number":179,"title":"merge-mode missing uncovered lines","user":{"login":"attekett","id":2255922,"avatar_url":"https://avatars.githubusercontent.com/u/2255922?v=3","gravatar_id":"","url":"https://api.github.com/users/attekett","html_url":"https://github.com/attekett","followers_url":"https://api.github.com/users/attekett/followers","following_url":"https://api.github.com/users/attekett/following{/other_user}","gists_url":"https://api.github.com/users/attekett/gists{/gist_id}","starred_url":"https://api.github.com/users/attekett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/attekett/subscriptions","organizations_url":"https://api.github.com/users/attekett/orgs","repos_url":"https://api.github.com/users/attekett/repos","events_url":"https://api.github.com/users/attekett/events{/privacy}","received_events_url":"https://api.github.com/users/attekett/received_events","type":"User","site_admin":false},"labels":[{"id":172523863,"url":"https://api.github.com/repos/SimonKagstrom/kcov/labels/output","name":"output","color":"207de5","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-01-18T14:56:45Z","updated_at":"2017-01-23T08:58:47Z","closed_at":null,"body":"\r\nUsing:\r\n\r\nkcov --version: kcov v33-9-g291b\r\n\r\nTest binaries are compiled with: clang-3.8 -fsanitize=address  -fsanitize-coverage=edge\r\n\r\n(I don't think the compile flags have anything to do with the issue, so I didn't try with different combinations.)\r\n\r\nI have a group of unit test binaries. Running those separately generate nice coverage reports, where everything seems to be all right.\r\n\r\nWhen I try to merge the coverage reports, or generate all coverage reports in to the same directory, the [merged] field always shows coverage of 100%. \"Covered lines\" has a reasonable value, but \"Uncovered lines\" always shows 0.\r\n\r\nMerge does work correctly when using one binary with different inputs, so the problem seems to be related on running separate binaries, even if they use mostly the same code.\r\n\r\nI checked one of the individual binaries coverage.json and the coverage.json in merge folder:\r\n\r\nIndividual binary:\r\n    {\"file\": \"/test.c\", \"percent_covered\": \"36.82\", \"covered_lines\": \"81\", \"total_lines\": \"220\"}\r\nMerge folder:    \r\n    {\"file\": \"/test.c\", \"percent_covered\": \"100.00\", \"covered_lines\": \"84\", \"total_lines\": \"84\"}\r\n \r\nFrom that, it looks like covered_lines were combined during the merge, but total_lines was lost somewhere.\r\n\r\nWhen viewing the HTML report the \"executed\"(something funky going on with the basic blocks) lines are marker in the source file view, but code coverage shows 100% and \"Instrumented lines\" and \"Executed lines\" are same.\r\n"},"comment":{"url":"https://api.github.com/repos/SimonKagstrom/kcov/issues/comments/274431950","html_url":"https://github.com/SimonKagstrom/kcov/issues/179#issuecomment-274431950","issue_url":"https://api.github.com/repos/SimonKagstrom/kcov/issues/179","id":274431950,"user":{"login":"SimonKagstrom","id":373351,"avatar_url":"https://avatars.githubusercontent.com/u/373351?v=3","gravatar_id":"","url":"https://api.github.com/users/SimonKagstrom","html_url":"https://github.com/SimonKagstrom","followers_url":"https://api.github.com/users/SimonKagstrom/followers","following_url":"https://api.github.com/users/SimonKagstrom/following{/other_user}","gists_url":"https://api.github.com/users/SimonKagstrom/gists{/gist_id}","starred_url":"https://api.github.com/users/SimonKagstrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimonKagstrom/subscriptions","organizations_url":"https://api.github.com/users/SimonKagstrom/orgs","repos_url":"https://api.github.com/users/SimonKagstrom/repos","events_url":"https://api.github.com/users/SimonKagstrom/events{/privacy}","received_events_url":"https://api.github.com/users/SimonKagstrom/received_events","type":"User","site_admin":false},"created_at":"2017-01-23T08:58:47Z","updated_at":"2017-01-23T08:58:47Z","body":"I stand corrected, thanks for the info and additional debugging!\r\n\r\nSignal 5 is SIGTRAP, which kcov uses for collecting coverage (i.e., setting breakpoints). Perhaps the leak check triggers a breakpoint?"}}
{"actor":{"display_login":"SimonKagstrom"}}