It is possible that DEBUG is used before threads are started, this will lead to a segfault in that case.