From owner-freebsd-hackers Thu Feb 5 13:01:49 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA25174 for hackers-outgoing; Thu, 5 Feb 1998 13:01:49 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from Octopussy.MI.Uni-Koeln.DE (Octopussy.MI.Uni-Koeln.DE [134.95.166.20]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA25139 for ; Thu, 5 Feb 1998 13:01:43 -0800 (PST) (envelope-from se@dialup124.zpr.uni-koeln.de) Received: from dialup124.zpr.Uni-Koeln.DE (dialup124.zpr.Uni-Koeln.DE [134.95.219.124]) by Octopussy.MI.Uni-Koeln.DE (8.8.7/8.8.7) with ESMTP id WAA06369; Thu, 5 Feb 1998 22:01:36 +0100 (MET) Received: (from se@localhost) by dialup124.zpr.Uni-Koeln.DE (8.8.8/8.6.9) id XAA01335; Wed, 4 Feb 1998 23:41:39 +0100 (CET) X-Face: " Date: Wed, 4 Feb 1998 23:41:38 +0100 From: Stefan Esser To: Donn Miller Cc: hackers@FreeBSD.ORG Subject: Re: latest wine && seg-faults on freebsd References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.88 In-Reply-To: ; from Donn Miller on Wed, Feb 04, 1998 at 02:44:32PM +0000 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG X-To-Unsubscribe: mail to majordomo@FreeBSD.org "unsubscribe hackers" On 1998-02-04 14:44 +0000, Donn Miller wrote: > I just compiled the latest wine (wine980201) and it compiled great, except > that I got seg-faults and dropped core every time I tried to run it. So > then I compiled with the -g flag and debugged it. Here is the output of > gdb: > > Reading symbols from /usr/libexec/ld.so...done. > Reading symbols from /usr/X11R6/lib/libXpm.so.4.10...done. > Reading symbols from /usr/X11R6/lib/libSM.so.6.0...done. > Reading symbols from /usr/X11R6/lib/libICE.so.6.3...done. > Reading symbols from /usr/X11R6/lib/libXext.so.6.3...done. > Reading symbols from /usr/X11R6/lib/libX11.so.6.1...done. > Reading symbols from /usr/lib/libm.so.2.0...done. > Reading symbols from /usr/lib/libc.so.3.0...done. > #0 0x1be651 in NtCurrentTeb () at sysdeps.c:140 > 140 __asm__( ".byte 0x64\n\tmovl (%1),%0" > (gdb) > > I compiled this ``straight out of the box'' instead of using FreeBSD's > port collection and was interested in hearing from the person doing the > latest ports to FreeBSD on what he/she did to correct this. I guessing > that it has something to do with threading (not X-windows threads but > libc). Yes, there have been core dumps in NtCurrentTeb as delivered with Wine for the last three releases. I had put in a work-around for this problem for the latest Wine "port" (980104) commited to FreeBSD: Just return NULL unconditionally (see patch-au). When I tried to upgrade the port to Wine-980118, I found that I could not get the Emulator to start. It dumped core immediately, even though I had put in the NtCurrentTeb() work-around. I have already fetched Wine-980201, but did not yet find the time to build that version. Maybe I get around to try it next weekend. Regards, STefan