GNU bug report logs - #12040
24.1.50; `term' hangs on FreeBSD 10.0-CURRENT without pty(4)

Previous Next

Package: emacs;

Reported by: Jan Beich <jbeich <at> tormail.org>

Date: Tue, 24 Jul 2012 02:09:02 UTC

Severity: important

Tags: patch

Found in version 24.1.50

Fixed in version 24.3

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Jan Beich <jbeich <at> tormail.org>
Subject: bug#12040: closed (Re: bug#12040: 24.1.50; `term' hangs on
 FreeBSD 10.0-CURRENT without pty(4))
Date: Fri, 17 Aug 2012 07:31:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#12040: 24.1.50; `term' hangs on FreeBSD 10.0-CURRENT without pty(4)

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 12040 <at> debbugs.gnu.org.

-- 
12040: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=12040
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Glenn Morris <rgm <at> gnu.org>
To: 12040-done <at> debbugs.gnu.org
Subject: Re: bug#12040: 24.1.50;
	`term' hangs on FreeBSD 10.0-CURRENT without pty(4)
Date: Fri, 17 Aug 2012 03:21:49 -0400
Version: 24.3

Thanks, I'm convinced. I installed the posix_openpt change for freebsd
and netbsd to the trunk, currently expected to be released as 24.3. I
left darwin alone for the time being.

[Message part 3 (message/rfc822, inline)]
From: Jan Beich <jbeich <at> tormail.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.1.50; `term' hangs on FreeBSD 10.0-CURRENT without pty(4)
Date: Mon, 23 Jul 2012 23:31:27 +1200
[Message part 4 (text/plain, inline)]
Starting with FreeBSD 8.0-RELEASE the system uses new tty layer that no
longer supports old style pseudo ttys *unless* pty(4) kernel module is
loaded. However, pty(4) device is still included in GENERIC kernel on
all releases except 10.0-CURRENT (removed in r233271).

  $ emacs -Q
  M-x term
  <hangs here>

  $ sudo kldload pty
  [try again]

A few ways to solve this:
- use openpty() in -lutil like darwin
- add use posix_openpt() support

http://svn.freebsd.org/changeset/base/233271
https://pub.allbsd.org/FreeBSD-snapshots/ # for testing, seems to be down atm

[openpty.diff (text/x-patch, attachment)]
[posix_openpt.diff (text/x-patch, attachment)]

This bug report was last modified 12 years and 341 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.