NetBSD Problem Report #28924

From  Sun Jan  9 21:49:00 2005
Return-Path: <>
Received: from ( [])
	by (Postfix) with ESMTP id 0440B63B400
	for <>; Sun,  9 Jan 2005 21:49:00 +0000 (UTC)
Message-Id: <>
Date: Sun,  9 Jan 2005 22:49:19 +0100 (CET)
Subject: game/exult pthread assertion failure on NetBSD -current
X-Send-Pr-Version: 3.95

>Number:         28924
>Category:       pkg
>Synopsis:       game/exult pthread assertion failure on NetBSD -current
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    bsiegert
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 09 21:51:00 +0000 2005
>Closed-Date:    Sun Oct 16 17:15:30 +0000 2016
>Last-Modified:  Sun Oct 16 17:15:30 +0000 2016
>Originator:     Nicolas Joly
>Release:        NetBSD 2.99.12
Institut Pasteur, Paris.
System: NetBSD 2.99.12 NetBSD 2.99.12 (CIXY) #6: Thu Jan 6 22:19:55 CET 2005 i386
Architecture: i386
Machine: i386
While running exult on -current NetBSD/i386 (or NetBSD/amd64), i'm seeing many
pthread assertions failures :

njoly@cixy [~/Ultima7Vf]> exult 
Exult version 1.2
Built at: Jan  9 2005 15:21:09
Compiler: gcc, version: 3.3.3 (NetBSD nb3 20040520)

Platform: Unknown
Exult path settings:
Data          : /usr/pkg/share/exult
Digital music : /usr/pkg/share/exult/music

Music player: Internal cheapass forked midi player
Black Gate   : found
exult_bg.flx : found
Serpent Isle : not found (static/sispeech.spc)
exult_si.flx : found
Starting forked player failed
assertion "unreachable" failed: file "/local/src/NetBSD/src/lib/libpthread/pthread.c", line 523, function "pthread__idle"

Then, the system becomes unresponsive until the `exult.core' file is
generated (about 770MB).

I tracked down this problem, and noticed that exult program depend on a
missing `playmidi' command to play MIDI files :
But i failed to make it work on NetBSD.

As a workaround for NetBSD, i patched `audio/midi_drivers/'
to use native command `midiplay' instead.

For the pthread assertion failure, i can't figure if the problem comes from
exult code, or if our pthread library is faulty ... I'm not familiar enough
with pthreads.

--- audio/midi_drivers/	2005-01-09 22:08:41.000000000 +0100
+++ audio/midi_drivers/	2005-01-09 22:09:26.000000000 +0100
@@ -41,7 +41,11 @@
 // NB: This function doesn't return unless execlp fails!
 static  void    playFJmidifile(const char *name)
+#ifdef __NetBSD__
+	execlp("midiplay","-v","-v",name,0);

 forked_player::forked_player() : forked_job(-1)



Responsible-Changed-From-To: pkg-manager->bsiegert
Responsible-Changed-When: Sat, 01 Aug 2015 17:41:07 +0000
Looks easy, I am going to take a stab at this.

From: "Benny Siegert" <>
Subject: PR/28924 CVS commit: pkgsrc/games/exult
Date: Sun, 16 Oct 2016 17:10:49 +0000

 Module Name:	pkgsrc
 Committed By:	bsiegert
 Date:		Sun Oct 16 17:10:49 UTC 2016

 Modified Files:
 	pkgsrc/games/exult: Makefile distinfo
 Added Files:

 Log Message:
 Use midiplay instead of playmidi on NetBSD. Bump revision.
 PR pkg/28924, from 2005.

 To generate a diff of this commit:
 cvs rdiff -u -r1.22 -r1.23 pkgsrc/games/exult/Makefile
 cvs rdiff -u -r1.11 -r1.12 pkgsrc/games/exult/distinfo
 cvs rdiff -u -r0 -r1.1 \

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-When: Sun, 16 Oct 2016 17:15:30 +0000
Finally committed.


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-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.