http://bugs.winehq.org/show_bug.cgi?id=6035
Summary: Wine-preloader segfaults when compiled with GCC 4.1 unless using -fno-stack-protector Product: Wine Version: 0.9.19. Platform: Other OS/Version: Linux Status: UNCONFIRMED Severity: major Priority: P2 Component: wine-binary AssignedTo: wine-bugs@winehq.org ReportedBy: scott@open-vote.org
https://launchpad.net/distros/ubuntu/+source/wine/+bug/56965
Found on the Ubuntu bug reports:
"The problem seems to be that the %gs register that holds the thread local stack is not setup correctly since the normal _start function is not use in wine-preloader. The stack protector uses the %gs register and the stack protector is enabled by -fstack-protector.
If you compile the wine-preloader with -fno-stack-protector it will thus not cause segmentation fault."
"The real fix is to correct the wine-preloader to follow proper convention, I assume. For now turn off the stack protector as a work-around and file a bug with the wine devs."