Comment 16 for bug 35375

Revision history for this message
Daniel Werner (demitsu) wrote :

Maybe I can provide a solution for part of the mystery.

Some weeks ago, I was quite amazed to find that on the very same machine, Scorched 3D ran on all user accounts but one. When started as the latter, Scorched segfaulted throwing the very backtrace mentioned in the initial report. wxGetUserName already hinted at the passwd file, and there dwelled the culprit:

The account where Scorched 3D crashed had a German umlaut in its GECOS' full name field. After the offending character's removal, Scorched has stopped crashing ever since.

wxGetUserName calling wcsncpy seems not to work as expected with actual wide characters. Or could it be a coincidence that Scorched 3D fails for Grundström, Bröckling, Bjørlo, and in my case, Müller ... ? ;)

Could this be a bug in libc itself, or in wxGetUserName's handling of wchars?