[Bug 218389] audio/pd won't run with GUI under X with shells/bash as default shell

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Apr 7 00:47:25 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=218389

--- Comment #1 from Tobias Brodel <brittlehaus at 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 = errno;
        if ((ntry++ > 20) || (err != EADDRINUSE)) {
                perror("bind");
                fprintf(stderr, "Pd needs your machine to be configured
with\n");                   
                fprintf(stderr, "'networking' turned on (see Pd's html doc for
details.)\n");
                return (1);
        }
        portno++;
        server.sin_port = htons((unsigned short)(portno));                   
}

some cursory debugging seems to suggest that when using bash or mksh as login
shell errno is set to EADDRINUSE and stays there for the next twenty attempts,
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 OpenBSD,
which makes me think this is not an issue with the audio/pd codebase itself.

best,
t/

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list