[wxMSW] Samples/Image on Win98 vs WinXP

Michael Wetherell mike.wetherell at ntlworld.com
Sun Aug 20 01:18:25 PDT 2006


On Sunday 20 Aug 2006 05:11, Thomas Matthews wrote:
> I've built the samples/images and when I run it on my Win98
> machine at home in gdb I get the following error:
> $ gdb ./image.exe
> GNU gdb 6.5.50.20060706-cvs (cygwin-special)
> Copyright (C) 2006 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and
> you are welcome to change it and/or distribute copies of it under
> certain conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for
> details. This GDB was configured as "i686-pc-cygwin"...
> (gdb) run
> Starting program:
> /cygdrive/c/wxwindows/build_debug/samples/image/image.exe Loaded
> symbols for /cygdrive/c/WINDOWS/SYSTEM/OLEAUT32.DLL
> Loaded symbols for /cygdrive/c/WINDOWS/SYSTEM/OLE32.DLL
> Loaded symbols for /cygdrive/c/WINDOWS/SYSTEM/SHELL32.DLL
> Loaded symbols for /cygdrive/c/WINDOWS/SYSTEM/MSVCRT.DLL
> Loaded symbols for /cygdrive/c/WINDOWS/SYSTEM/SHLWAPI.DLL
> Loaded symbols for /cygdrive/c/WINDOWS/SYSTEM/COMDLG32.DLL
> Loaded symbols for /cygdrive/c/WINDOWS/SYSTEM/USER32.DLL
> Loaded symbols for /cygdrive/c/WINDOWS/SYSTEM/GDI32.DLL
> Loaded symbols for /cygdrive/c/WINDOWS/SYSTEM/COMCTL32.DLL
> Loaded symbols for /usr/bin/cygz.dll
> Loaded symbols for /cygdrive/c/WINDOWS/SYSTEM/KERNEL32.DLL
> Loaded symbols for /cygdrive/c/WINDOWS/SYSTEM/ADVAPI32.DLL
> Loaded symbols for /usr/bin/cygwin1.dll
>
> Program received signal SIGSEGV, Segmentation fault.
> 0xbffa0938 in WaitForMultipleObjectsEx ()
>     from /cygdrive/c/WINDOWS/SYSTEM/KERNEL32.DLL
> (gdb) bt
> #0  0xbffa0938 in WaitForMultipleObjectsEx ()
>     from /cygdrive/c/WINDOWS/SYSTEM/KERNEL32.DLL
> #1  0x83d6f038 in ?? ()
> #2  0xbffa1d04 in KERNEL32!GetCPInfoExA ()
>     from /cygdrive/c/WINDOWS/SYSTEM/KERNEL32.DLL
> #3  0xbff958f8 in KERNEL32!GlobalFix ()
>     from /cygdrive/c/WINDOWS/SYSTEM/KERNEL32.DLL
> #4  0x00000000 in ?? ()
>
>
> I've built this on my WinXP machine at work with no problems.
>
> My Win98 machine, using Cygwin:
> wxMSW-2.6.3
>    ./configure --with-msw --with-odbc --enable-debug
>                --enable-debug_gdb --disable-shared
>                --disable-precomp-headers
> g++ 3.4.4
> gdb 6.5.50.2006
> cygwin 1.5.21.
>
> When I run the program from Cygwin, I get error windows
> stating "This program has performed an illegal operation
> and will be shutdown."
>
> I've re-installed Cygwin twice and rebuilt wxWidgets 3 times.
>
> Is this Cygwin or wxWidgets?

It sounds a lot like a problem I was having a couple of days ago. I was 
trying to build wxGTK and programs would compile but wouldn't run, they 
crashed before main.

The problem turned out to be that the current binutils package  
(20060709-1) is broken. The previous package (20050610-1) is still 
available, and downgrading to that fixed the problem. It affects other 
C++ projects too:
http://www.cygwin.com/ml/cygwin/2006-07/msg00413.html

HTH,
Mike




More information about the wx-users mailing list