http://bugs.winehq.org/show_bug.cgi?id=4488
------- Additional Comments From makomk@lycos.co.uk 2006-23-04 13:32 ------- Seems to be a null pointer dereference in src/winsup/cygwin/uinfo.cc:internal_getlogin(). Specifically, it looks to be due to NetUserGetInfo(NULL, wuser, 3, (LPBYTE *)&ui) - as the last FIXME before the exception states, this is not implemented by Wine, however it returns success anyway. Because of this, MSYS attempts to do:
sys_wcstombs (buf, ui->usri3_home_dir, MAX_PATH);
where ui is still a NULL pointer (since NetUserGetInfo hasn't initialised it to anything). As you might expect, this crashes the program. I'm not sure why NetUserGetInfo returns success in this case; seems very odd.
Incidentally, the code in question appears to be run only on NT-type systems, which might be why Dan Kegel has tried MSYS and hasn't encountered this bug (http://www.winehq.org/pipermail/wine-devel/2006-March/045688.html).