Following are results from using test.c (plus checking for _XInitGenericIM as you suggested in http://bugs.winehq.org/show_bug.cgi?id=12740#c11).
This sounds to me as Solaris bug. Shouldn't we fix this in Solaris 10 and 9 (instead of making Wine and other applications to workaround it)? Petr --- Nevada > 85 =========== martina at opensolaris:~$ uname -a SunOS opensolaris 5.11 snv_86 i86pc i386 i86pc Solaris opensolaris:~$ nm /usr/lib/libX11.so | grep _XInitGenericIM opensolaris:~$ ./test opensolaris:~$ Nevada < 85 =========== -bash-3.2$ uname -a SunOS snvx 5.11 snv_83 i86pc i386 i86pc -bash-3.2$ nm /usr/lib/libX11.so | grep _XInitGenericIM [3411] | 508152| 71|FUNC |GLOB |0 |14 |_XInitGenericIM -bash-3.2$ ./test Segmentation Fault (core dumped) -bash-3.2$ Solaris 10: =========== -bash-3.00$ uname -a SunOS vx86-v65xf-gmp03 5.10 Generic_127128-06 i86pc i386 i86pc -bash-3.00$ /usr/ccs/bin/nm /usr/lib/libX11.so | grep _XInitGenericIM [1933] | 461784| 73|FUNC |GLOB |0 |11 |_XInitGenericIM -bash-3.00$ ./test Segmentation Fault (core dumped) --- This message posted from opensolaris.org