Wine & Boehm garbage collector

François-Denis Gonthier fgonthier at
Thu Nov 21 21:06:31 CST 2002

-lntdll.dll and -lpthreads were left here from another makefile I've got.
I've removed them but it didn't help.  Here is the usual backtrace from gdb:

Starting program: /usr/local/bin/wine
[New Thread 16384 (LWP 18946)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 18946)]
0x4048926a in GC_find_limit (p=0x805b77c "", up=0) at os_dep.c:647
647                     GC_noop1((word)(*result));
(gdb) bt
#0  0x4048926a in GC_find_limit (p=0x805b77c "", up=0) at os_dep.c:647
#1  0x40489087 in GC_init_linux_data_start () at os_dep.c:186
#2  0x40488394 in GC_init_inner () at misc.c:592
#3  0x404846d4 in GC_generic_malloc_inner (lb=100, k=1) at malloc.c:121
#4  0x4048482d in GC_generic_malloc (lb=100, k=1) at malloc.c:190
#5  0x40484ae4 in GC_malloc (lb=100) at malloc.c:309
#6  0x404720e4 in WinMain () at boehm_crash.c:5
#7  0x40472099 in __wine_exe_main () from
#8  0x400bdfc0 in start_process () at ../../scheduler/process.c:564
#9  0x400c200d in call_on_thread_stack (func=0x400bdda4) at

Apparently, the problem lies in Boehm GC, but before mailing Hans Boehm
about this (he can probably provide limited support only), I'd like to hear
about the people that knows about the internals of Wine.

----- Original Message -----
From: "Alexandre Julliard" <julliard at>
To: "François-Denis Gonthier" <fgonthier at>
Cc: <wine-devel at>
Sent: Thursday, November 21, 2002 9:22 PM
Subject: Re: Wine & Boehm garbage collector

François-Denis Gonthier <fgonthier at> writes:

François-Denis Gonthier <fgonthier at> writes:

> boehm_crash.o boehm_crash.exe.spec.o
> gcc -shared -Wl,-Bsymbolic -D_REENTRANT -DWINELIB -o \
> boehm_crash.exe.spec.o \
> boehm_crash.o boehm_crash.exe.dbg.o -lgc \
> -lwine -lntdll.dll -lm -lpthread

You should remove -lntdll and -lpthread, it will probably help. If it
doesn't please post a gdb backtrace of the crash.

Alexandre Julliard
julliard at

More information about the wine-devel mailing list