From owner-freebsd-ports-bugs@freebsd.org Fri Apr 7 00:47:25 2017 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AEE66D30FD2 for ; Fri, 7 Apr 2017 00:47:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 843C83C9 for ; Fri, 7 Apr 2017 00:47:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v370lODR005953 for ; Fri, 7 Apr 2017 00:47:25 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 218389] audio/pd won't run with GUI under X with shells/bash as default shell Date: Fri, 07 Apr 2017 00:47:25 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: brittlehaus@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ports-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Apr 2017 00:47:25 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D218389 --- Comment #1 from Tobias Brodel --- (In reply to gen-freebsd from comment #0) hi, maintainer of audio/pd here. i can confirm this bug is present using either shells/bash or shells/mksh as login shell. the bug is triggered by a call to bind(2) failing: while (bind(xsock, (struct sockaddr *)&server, sizeof(server)) < 0) { int err =3D errno; if ((ntry++ > 20) || (err !=3D EADDRINUSE)) { perror("bind"); fprintf(stderr, "Pd needs your machine to be configured with\n");=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 fprintf(stderr, "'networking' turned on (see Pd's html doc = for details.)\n"); return (1); } portno++; server.sin_port =3D htons((unsigned short)(portno));=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20 } some cursory debugging seems to suggest that when using bash or mksh as log= in shell errno is set to EADDRINUSE and stays there for the next twenty attemp= ts, meaning that ports 5400..5420 on localhost are all unavailable (unlikely). this is not the case using {t,}csh or sh, which leads me to believe that the bug is somewhere in these ported shells. note that this bug does not appear when using bash on Linux or ksh on OpenB= SD, which makes me think this is not an issue with the audio/pd codebase itself. best, t/ --=20 You are receiving this mail because: You are the assignee for the bug.=