Segfault when running any program on new wine installation

Segfault when running any program on new wine installation

Post by spamsink56 » Tue, 02 Sep 2003 16:43:02

Hi, I'm trying to install and run wine for the first time. The system
I have is built from scratch, so it doesn't follow any typical
distribution. The specifics are:

Kernel: 2.6.0-test4
Compiler: gcc 3.2.1
Wine Version: wine-20030813

I built the package using "tools/wineinstall --prefix=/usr", and
everything worked fine. I don't have any windows system installed, so
I'm running without any native DLLs.

Now, when I go to run ANY windows program, either supplied with wine
(notepad) or otherwise, I get a segfault. Here are the specifics:

Program received signal SIGSEGV, Segmentation fault.
map_dll (nt_descr=0x400ecd20) at loader.c:166
166 if (*ptr) *ptr = (void *)((char *)*ptr - (char
(gdb) p ptr
$7 = (void *) 0x41b
(gdb) where
#0 map_dll (nt_descr=0x400ecd20) at loader.c:166
#1 0x40111a36 in wine_dll_set_callback (load=0x4009cfb0
at loader.c:353
#2 0x4009d5d3 in BUILTIN32_LoadExeModule (main=0x0)
at ../../relay32/builtin32.c:181
#3 0x403f7c35 in __wine_process_init (argc=2, argv=0xbffffd34)
at ../../scheduler/process.c:578
#4 0x40111c5a in wine_init (argc=2, argv=0xbffffd34, error=0xbffff8d4
error_size=1024) at loader.c:427
#5 0x3c0005a0 in main (argc=2, argv=0xbffffd34) at main.c:33
#6 0x4022df14 in __libc_start_main () from /lib/

Now, out of curiosity, in order to make some of the debugging process
easier, I changed the function 'fixup_rva_ptrs' to not be inline
anymore (it was confusing gdb and me). And lo and behold, this fixed
the problem completely. Now notepad and other windows programs seem
to run fine. Is this some GCC bug? Right now I'm going to try
upgrading to GCC version 3.3.1 to see if it fixes the problem in a
more suitable way than my lucky hack. I couldn't find any references
to this problem in the bug database.

- Mike