I am having trouble with 'pty' on a new jail. I upgraded the host to 13.2, and am trying to build a new 13.2 jail. For some reason, I get a error from pty_allocate(); in IO::Pty. Works on the host, works in the old jail-12.0, but does not work in the jail-13.2.
I used cpan to install the perl module. Also, I tested on two boxes -- one running 13.3-RELEASE and the other 13.2-RELEASE-p10.
I used cpan to install the perl module. Also, I tested on two boxes -- one running 13.3-RELEASE and the other 13.2-RELEASE-p10.
Code:
host# perl -e 'use IO::Pty; new IO::Pty && print "OK\n";'
OK
host# jexec 18
jail-13.2# perl -e 'use IO::Pty; new IO::Pty && print "OK\n";'
Cannot open a pty at -e line 1.
jail-13.2# perl --version
This is perl 5, version 36, subversion 3 (v5.36.3) built for amd64-freebsd-thread-multi
host# jexec 5
jail-12.0# perl -e 'use IO::Pty; new IO::Pty && print "OK\n";'
OK
jail-12.0# perl --version
This is perl 5, version 28, subversion 3 (v5.28.3) built for amd64-freebsd-thread-multi