codewars / codewars-runner-cli

Old CodeRunner project. See https://github.com/codewars/runner instead.
GNU Affero General Public License v3.0
400 stars 141 forks source link

`mcheck` breaks every C kata in new language version #813

Closed Voileexperiments closed 4 years ago

Voileexperiments commented 4 years ago

When I was investigating this I found that currently mcheck always breaks in Clang 8/C18, even in a minimal example:

#include <criterion/criterion.h>
#include <mcheck.h>

Test(one, test) {
    cr_assert_eq(1, 1);
}
__attribute__((constructor(101))) static void init() {
  mcheck(NULL);
}

This results in error code 139 after all tests are run:

image

So currently mcheck is completely unusable.

error256 commented 4 years ago

https://github.com/Snaipe/Criterion/issues/196

kazk commented 4 years ago

Closing because we can't do anything about this unfortunately.