Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 07 Apr 2017 00:47:25 +0000
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
Message-ID:  <bug-218389-13-N4QhpSADrY@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-218389-13@https.bugs.freebsd.org/bugzilla/>
References:  <bug-218389-13@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D218389

--- Comment #1 from Tobias Brodel <brittlehaus@gmail.com> ---
(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.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-218389-13-N4QhpSADrY>