NetBSD Problem Report #56461

From www@netbsd.org  Thu Oct 21 22:28:34 2021
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 998CE1A9239
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 21 Oct 2021 22:28:34 +0000 (UTC)
Message-Id: <20211021222833.348051A923A@mollari.NetBSD.org>
Date: Thu, 21 Oct 2021 22:28:33 +0000 (UTC)
From: bsduck@mailo.com
Reply-To: bsduck@mailo.com
To: gnats-bugs@NetBSD.org
Subject: audio/zynaddsubfx hangs at exit and can't save settings
X-Send-Pr-Version: www-1.0

>Number:         56461
>Category:       kern
>Synopsis:       audio/zynaddsubfx hangs at exit and can't save settings
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Oct 21 22:30:00 +0000 2021
>Last-Modified:  Sat Oct 23 21:58:01 +0000 2021
>Originator:     bsduck
>Release:        current 2021-10-21
>Organization:
>Environment:
NetBSD 9.2 (GENERIC) #0: Wed May 12 13:15:55 UTC 2021  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64
>Description:
ZynAddSubFX hangs at exit. It's not possible to quit the program properly, and therefore not possible to save settings.
>How-To-Repeat:
Run ZynAddSubFX, then try to close its main window. A popup window will appear, asking "Exit and leave the unsaved data? Yes/No". No matter which answer is chosen, the program will hang.
>Fix:

>Release-Note:

>Audit-Trail:
From: Michael van Elst <mlelstv@serpens.de>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/56461: audio/zynaddsubfx hangs at exit and can't save
 settings
Date: Sat, 23 Oct 2021 17:54:23 +0200

 zynaddsubfx runs two threads.

 The main thread opens /dev/sequencer.
 The second thread reads from the open descriptor and blocks for input.
 The main thread tries to close the filedescriptor and stalls because
 the descriptor is in use.

 The sequencer device driver is buggy, the close should set sc_dying
 and wake up the pending read. So that's a kernel bug, not pkg.

 Greetings,
 -- 
                                 Michael van Elst
 Internet: mlelstv@serpens.de
                                 "A potential Snark may lurk in every tree."

Responsible-Changed-From-To: pkg-manager->kern-bug-people
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Sat, 23 Oct 2021 21:58:01 +0000
Responsible-Changed-Why:
mlelstv analyzed this and classified it as a kernel bug


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.