NetBSD Problem Report #45610

From www@NetBSD.org  Sun Nov 13 13:44:32 2011
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 189F063D86B
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 13 Nov 2011 13:44:32 +0000 (UTC)
Message-Id: <20111113134431.75F7363CD2A@www.NetBSD.org>
Date: Sun, 13 Nov 2011 13:44:31 +0000 (UTC)
From: nathanialsloss@yahoo.com.au
Reply-To: nathanialsloss@yahoo.com.au
To: gnats-bugs@NetBSD.org
Subject: wine 1.2.3 doesn't run on NetBSD 5.0.1 or 5.1
X-Send-Pr-Version: www-1.0

>Number:         45610
>Category:       pkg
>Synopsis:       wine 1.2.3 doesn't run on NetBSD 5.0.1 or 5.1
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    maya
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Nov 13 13:45:00 +0000 2011
>Closed-Date:    Tue Nov 01 19:31:17 +0000 2016
>Last-Modified:  Tue Nov 01 19:31:17 +0000 2016
>Originator:     Nat Sloss
>Release:        NetBSD 5.0.1
>Organization:
>Environment:
NetBSD beast 5.0.1 NetBSD 5.0.1 (BEAST) #109: Mon Oct 31 00:38:31 EST 2011  build@beast:/home/build/NetBSD-5.0.1_source_tree/usr/src/sys/arch/i386/compile/BEAST i386

>Description:
Wine 1.2.3 from pkgsrc2011Q2 builds on NetBSD 5.0.1 and 5.1.

However when running it ie winecfg from the terminal it does nothing for about a minute or two and then displays:

err:process:__wine_kernel_init boot event wait timed out

and no further output from the terminal.

It consumes close to 100% usage on both cpus as I have a dual core system.  I have let it run for hours and nothing happens.

It cant be killed with control-c only sig kill.

Interesting to note is that it works on current at least 5.99.51 with no problems.  Also interesting wine-pthread from the previous wine-1.0.1 would hang the same way.

Regards,

Nat.
>How-To-Repeat:
run winecfg on a NetBSD 5.0 or 5.1 machine (i386).

And you will see output as described in the description.
>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->adam
Responsible-Changed-By: hauke@NetBSD.org
Responsible-Changed-When: Sun, 13 Nov 2011 23:18:16 +0000
Responsible-Changed-Why:
Over to maintainer.


From: Nat Sloss <nathanialsloss@yahoo.com.au>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/45610: wine 1.2.3 doesn't run on NetBSD 5.0.1 or 5.1
Date: Fri, 18 Nov 2011 17:14:28 +1100

 Hi,

 I have a fix for this bug.

 It seems the problem was that the main wine binary was linked against 
 libpthread and contains no pthread code.  Using gdb I found that it was 
 getting stuck at TESTCANCEL(self) in libpthread before calls to read and 
 write.  The debug messages also reported of stack overruns for the wine and 
 wineboot processes.

 So the solution was not to link the main wine binaries to libpthread.  Wine is 
 still pthreaded as ntdll links against libpthread and I can confirm this 
 through top showing 200% cpu usage for broken windows programs.

 So here is the patch:

 $NetBSD$

 --- loader/Makefile.in.orig     2011-04-08 17:09:51.000000000 +0000
 +++ loader/Makefile.in
 @@ -32,7 +32,7 @@ all: $(MAIN_BINARY) wine-installed $(EXT

  @MAKE_RULES@

 -LIBPTHREAD  = @LIBPTHREAD@
 +LIBPTHREAD  =
  LDEXECFLAGS = @LDEXECFLAGS@

  wine-preloader: preloader.o Makefile.in



 This patch was also applied to wine-devel and it would also work (wine-devel 
 has other problems under NetBSD 5.0.1 and I will submit additional bug 
 reports and fixes for them.)

 With the patch applied winecfg starts in about 2 seconds and all features 
 work.  I've tested it with firefox and built-in programs such as notepad and 
 winmine and it works as expected.

 Regards,

 Nat.

Responsible-Changed-From-To: adam->maya
Responsible-Changed-By: maya@NetBSD.org
Responsible-Changed-When: Mon, 31 Oct 2016 03:25:35 +0000
Responsible-Changed-Why:
I touched wine (-devel, only) last.


State-Changed-From-To: open->feedback
State-Changed-By: maya@NetBSD.org
State-Changed-When: Mon, 31 Oct 2016 03:25:35 +0000
State-Changed-Why:
I didn't see similar problems running programs in wine, is there a problem
in any version you use? I only checked 7.99.x, must've been fixed in the
meantime.


From: Nat Sloss <nathanialsloss@yahoo.com.au>
To: gnats-bugs@netbsd.org
Cc: maya@netbsd.org,
 adam@netbsd.org,
 pkgsrc-bugs@netbsd.org,
 gnats-admin@netbsd.org
Subject: Re: pkg/45610 (wine 1.2.3 doesn't run on NetBSD 5.0.1 or 5.1)
Date: Wed, 2 Nov 2016 05:55:02 +1100

 Hi,

 OK to close this and the one regarding wine devel as they only pertain to 
 NetBSD-5.

 Best regards,

 Nat

State-Changed-From-To: feedback->closed
State-Changed-By: maya@NetBSD.org
State-Changed-When: Tue, 01 Nov 2016 19:31:17 +0000
State-Changed-Why:
feedback received, wine is ok now.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.