tech-userlevel archive

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

Re: Detecting keypress on console



On Fri, 29 Mar 2019, Paul Goyette wrote:

Hmmm.  On my amd64 8.99.35 system, I get

# wsmuxctl -f /dev/wsmux1 -l
wskbd0
Segmentation fault (core dumped)

According to my dmesg, I should also have

 wsbell0 at spkr0 mux 1

listed for mux1...



# gdb /usr/sbin/wsmuxctl
...
Reading symbols from /usr/sbin/wsmuxctl...Reading symbols from /usr/libdata/debug//usr/sbin/wsmuxctl.debug...done.
done.
(gdb) target core wsmuxctl.core
[New process 1]
Core was generated by `wsmuxctl'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007e2763d92ae1 in strlen () from /usr/lib/libc.so.12
(gdb) bt
#0  0x00007e2763d92ae1 in strlen () from /usr/lib/libc.so.12
#1  0x00007e2763d71bcf in __vfprintf_unlocked_l (
   fp=fp@entry=0x7e2763ffe3d8 <__sF+152>, loc=<optimized out>,
   fmt0=fmt0@entry=0x196801365 "%*s%s%d\n", ap=ap@entry=0x7f7fffdb2388)
   at /build/netbsd-local/src_ro/lib/libc/stdio/vfwprintf.c:1373
#2  0x00007e2763d733ff in vfprintf (fp=0x7e2763ffe3d8 <__sF+152>,
   fmt0=0x196801365 "%*s%s%d\n", ap=ap@entry=0x7f7fffdb2388)
   at /build/netbsd-local/src_ro/lib/libc/stdio/vfwprintf.c:555
#3  0x00007e2763d6d01b in printf (fmt=<optimized out>)
   at /build/netbsd-local/src_ro/lib/libc/stdio/printf.c:59
#4  0x0000000196800f7a in listdevs (fd=<optimized out>, rec=0, ind=0)
   at /build/netbsd-local/src_ro/usr.sbin/wsmuxctl/wsmuxctl.c:87
#5  0x00000001968011b7 in main (argc=<optimized out>, argv=<optimized out>)
   at /build/netbsd-local/src_ro/usr.sbin/wsmuxctl/wsmuxctl.c:165
(gdb)


On Fri, 29 Mar 2019, Michael van Elst wrote:

On Thu, Mar 28, 2019 at 04:33:00PM +0000, Emmanuel Dreyfus wrote:
On Thu, Mar 28, 2019 at 02:41:08PM -0000, Michael van Elst wrote:
Maybe /dev/wsmux1 ? wsmux0 is mouse input.

Same fate. Is it expect behavior that muxctl -f $i -l lists nothing
for any $i ?

% sudo wsmuxctl -f /dev/wsmux1 -l
wskbd0


Greetings,
--
                               Michael van Elst
Internet: mlelstv%serpens.de@localhost
                               "A potential Snark may lurk in every tree."

!DSPAM:5c9d63cc207191150611282!



+--------------------+--------------------------+-----------------------+
| Paul Goyette       | PGP Key fingerprint:     | E-mail addresses:     |
| (Retired)          | FA29 0E3B 35AF E8AE 6651 | paul%whooppee.com@localhost     |
| Software Developer | 0786 F758 55DE 53BA 7731 | pgoyette%netbsd.org@localhost   |
+--------------------+--------------------------+-----------------------+


+--------------------+--------------------------+-----------------------+
| Paul Goyette       | PGP Key fingerprint:     | E-mail addresses:     |
| (Retired)          | FA29 0E3B 35AF E8AE 6651 | paul%whooppee.com@localhost     |
| Software Developer | 0786 F758 55DE 53BA 7731 | pgoyette%netbsd.org@localhost   |
+--------------------+--------------------------+-----------------------+


Home | Main Index | Thread Index | Old Index