It seems this problem comes from the utmp record in sessreg.c not being initialised.
Their is a patch for it below https://bugs.freedesktop.org/show_bug.cgi?id=1627
the patch uses bzero which is deprecated instead of memset, so maybe it should be memset(&u, 0, sizeof(u));
-- Jason Cormie
signature.asc
Description: OpenPGP digital signature