NetBSD Problem Report #45610

From  Sun Nov 13 13:44:32 2011
Return-Path: <>
Received: from ( [])
	by (Postfix) with ESMTP id 189F063D86B
	for <>; Sun, 13 Nov 2011 13:44:32 +0000 (UTC)
Message-Id: <>
Date: Sun, 13 Nov 2011 13:44:31 +0000 (UTC)
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
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

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.


run winecfg on a NetBSD 5.0 or 5.1 machine (i386).

And you will see output as described in the description.



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

From: Nat Sloss <>
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


 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:


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



  wine-preloader: preloader.o

 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.



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

State-Changed-From-To: open->feedback
State-Changed-When: Mon, 31 Oct 2016 03:25:35 +0000
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

From: Nat Sloss <>
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


 OK to close this and the one regarding wine devel as they only pertain to 

 Best regards,


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


NetBSD Home
NetBSD PR Database Search

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