The test program test/csuite/truncated_log/main.c has an error in that it opens a log cursor twice. One of them should be removed.
...
testutil_check(session->open_cursor(session, "log:", NULL, NULL, &logc));
testutil_check(session->open_cursor(session, "log:", NULL, NULL, &logc));
...