This is the mail archive of the
cygwin-xfree@sourceware.cygnus.com
mailing list for the Cygwin project.
RE: XOpenIM can you confirm?
- To: "Pavel Kudrna" <kudrna at plasma dot troja dot mff dot cuni dot cz>, <cygwin-xfree at sourceware dot cygnus dot com>
- Subject: RE: XOpenIM can you confirm?
- From: "Suhaib Siddiqi" <ssiddiqi at inspirepharm dot com>
- Date: Tue, 30 May 2000 08:19:52 -0400
You need to post only to Cygwin-Xfree. Please do not CC to Cygwin list.
Most of Cygwin users subscribe to Cygwin-XFree list therefore do not
like duplicate messages from multiple listings. Thanks.
Which version of X libs from Cygwin-Xfree project are you using?
If it is X11R6.4 then yes, there was a bug in X11R6.4 libraries. The bug
existed in the stock X11R6.4 distributed by X.org.
If you are using X11R6 libs from XFree86 ports, from xc-4-binaries
directory, then it had been fixed. I fixed this a while ago in our sources
and this fix should appear in stock XFree86 4.0.1 future release too.
The XOpenIM bug was causing memory coruptions.
Suhaib
> -----Original Message-----
> From: cygwin-xfree-owner@sourceware.cygnus.com
> [mailto:cygwin-xfree-owner@sourceware.cygnus.com]On Behalf Of Pavel
> Kudrna
> Sent: Tuesday, May 30, 2000 8:10 AM
> To: cygwin@sourceware.cygnus.com; cygwin-xfree@sourceware.cygnus.com
> Subject: XOpenIM can you confirm?
>
>
> Hello !
> Please can you confirm that following example (~14 lines) crashes
> calling XOpenIM (->STATUS_ACCESS_VIOLATION) not only under my
> instalation of cygwin?
>
> I did update of my instalation yesterday (may 25) with setup-1.45.
> The output of cygcheck utility is appended.
> Thanks
> Pavel Kudrna.
>
>
> bash2.03 ~ $ gcc qr.c -g -lX11 -L/usr/X11R6.4/lib
> bash2.03 ~ $ a
> Hello !
> Display: 0xa0412c0
> 0 [main] a 1053 handle_exceptions: Exception:
> STATUS_ACCESS_VIOLATION
> 576 [main] a 1053 stackdump: Dumping stack trace to
> a.exe.stackdump
> bash2.03 ~ $
>
>
> #include <stdio.h>
> #include <X11/Xlib.h>
>
> int main(void)
> {
> Display *display;
> XIM input_method;
>
> printf("Hello !\n");
> display = XOpenDisplay("localhost:0.0");
> printf("Display: %p\n", display);
>
> input_method=XOpenIM(display, NULL, NULL, NULL);
>
> printf("Input method: %p\n",input_method);
> return 0;
> }
>
>
>
> Cygnus Win95/NT Configuration Diagnostics
> Current System Time: Tue May 30 13:27:32 2000
> WinNT Ver 4.0 build 1381 Service Pack 6
> Path: .
> /usr/bin
> /usr/local/bin
> /usr/X11R6.4/bin
> SysDir: C:\WINNT\System32
> WinDir: C:\WINNT
> HOME = `/home/kudrna'
> MAKE_MODE = `unix'
> PWD = `/home/kudrna'
> TCL_LIBRARY = `/usr/share/tcl8.0'
>
> a: fd N/A N/A
> c: hd FAT 2047Mb 99% CP UN
> d: fd N/A N/A
>
> c:\progra~1\cygwin\bin /usr/bin user binmode
> c:\progra~1\cygwin\lib /usr/lib user binmode
> c:\progra~1\cygwin / user binmode
> c:\temp /temp user binmode
>
> Found: c:\progra~1\cygwin\bin\bash.exe
> Found: c:\progra~1\cygwin\bin\cat.exe
> Found: c:\progra~1\cygwin\bin\cpp.exe
> Found: c:\progra~1\cygwin\bin\find.exe
> Found: c:\progra~1\cygwin\bin\gcc.exe
> Found: c:\progra~1\cygwin\bin\gdb.exe
> Found: c:\progra~1\cygwin\bin\ld.exe
> Found: c:\progra~1\cygwin\bin\ls.exe
> Found: c:\progra~1\cygwin\bin\make.exe
> Found: c:\progra~1\cygwin\bin\sh.exe
>
> 115k 1999/09/14 c:\progra~1\cygwin\bin\cygitcl30.dll
> 63k 1999/09/14 c:\progra~1\cygwin\bin\cygitk30.dll
> 474k 1999/09/14 c:\progra~1\cygwin\bin\cygtcl80.dll
> 19k 1999/09/14 c:\progra~1\cygwin\bin\cygtclpip80.dll
> 24k 1999/09/14 c:\progra~1\cygwin\bin\cygtclreg80.dll
> 768k 1999/09/14 c:\progra~1\cygwin\bin\cygtk80.dll
> 569k 2000/05/15 c:\progra~1\cygwin\bin\cygwin1.dll
> Use -h to see help about each section