Clang crashes when using --coverage -lgcov

Hello everyone,

I’m trying to compile a bitcode to binary using clang with --coverage and -lgcov and it crashes in GCOVProfiling::WriteOut function.

Here is the command I’m using

clang --coverage memcached-debug.x.bc -o memcached-debug -pthread -levent -levent_core -lgcov

Clang version is 6.0.

Any ideas what is wrong here?

Please let me know if you need the whole seg-fault dump.

Best,

Anahit.