NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: mlterm 3.9.2 Failed to open pty



On Thu, 21 Jul 2022, Rin Okuyama wrote:

mlterm does not requires opty; it uses posix_openpt(3).

mlterm-3.9.2nb3 works just fine for me on NetBSD-current.

Mayuresh, does your system have /dev/ptmx?

----
crw-rw-rw-  1 root  wheel  165, 0 Feb  6  2021 /dev/ptmx
----


It's there on my recent 9.2_STABLE:

$ ls -l /dev/ptm*
crw-rw-rw-  1 root  wheel  165, 1 Sep 27  2021 /dev/ptm
crw-rw-rw-  1 root  wheel  165, 0 Sep 27  2021 /dev/ptmx
$

ptyfs is mounted too.

If so, do you observe something wrong in:

----
$ ktrace mlterm
$ kdump
----


I looked at that before suggesting that he make old ptys:

---
  2632      1 mlterm   CALL  open(0x74ed9b7729b3,0x400000,0x1b6)
  2632      1 mlterm   NAMI  "/etc/group"
  2632      1 mlterm   RET   open 5
  2632      1 mlterm   CALL  __fstat50(5,0x7f7fff80f1e0)
  2632      1 mlterm   RET   __fstat50 0
  2632      1 mlterm   CALL  read(5,0x74ed9ee4df00,0x8000)
  2632      1 mlterm   GIO   fd 5 read 602 bytes
       "wheel:*:0:root,rvp\ndaemon:*:1:daemon\nkmem:*:2:root\nsys:*:3:root\ntty:*:4:root\noperator:*:5:root\nmail:*:6:\nbin:*:7:\nwsrc\
        :*:9:rvp,bld\nmaildrop:*:11:\npostfix:*:12:\ngames:*:13:\nnamed:*:14:\nntpd:*:15:\nsshd:*:16:\n_pflogd:*:18:\n_rwhod:*:19:\nst\
        aff:*:20:root\n_proxy:*:21:\n_timedc:*:22:\n_sdpd:*:23:\n_httpd:*:24:\n_mdnsd:*:25:\n_tests:*:26:\n_tcpdump:*:27:\n_tss:*:28:\
        \n_gpio:*:29:\n_rtadvd:*:30:\nguest:*:31:root\n_unbound:*:32:\n_nsd:*:33:\nnvmm:*:34:root\nnobody:*:39:\nutmp:*:45:\nauthpf:*:\
        72:\nusers:*:100:\ndialer:*:117:\nnogroup:*:32766:\nrvp:*:1001:rvp\nbld:*:1002:bld\ntor:*:1000:\ndbus:*:1003:\navahi:*:1004:\n\
        polkitd:*:1005:\n"
  2632      1 mlterm   RET   read 602/0x25a
  2632      1 mlterm   CALL  close(5)
  2632      1 mlterm   RET   close 0
  2632      1 mlterm   CALL  open(0x7f7fff80fb6d,2,0)
  2632      1 mlterm   NAMI  "/dev/ptyp0"
  2632      1 mlterm   RET   open -1 errno 2 No such file or directory
  2632      1 mlterm   CALL  open(0x7f7fff80fb6d,2,0)
  2632      1 mlterm   NAMI  "/dev/ptyp1"
  2632      1 mlterm   RET   open -1 errno 2 No such file or directory
  2632      1 mlterm   CALL  open(0x7f7fff80fb6d,2,0)
  2632      1 mlterm   NAMI  "/dev/ptyp2"
  2632      1 mlterm   RET   open -1 errno 2 No such file or directory
  2632      1 mlterm   CALL  open(0x7f7fff80fb6d,2,0)
---

It's not trying to open the multiplexer at all--going straight for the ptyp
devices instead. Didn't look at the source.

-RVP


Home | Main Index | Thread Index | Old Index