You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems like the syscall ptsname is broken under Linux?
The program crashes for me on Archlinux and Debian 10.
GDB backtrace:
$ gdb --args deptyr -s /tmp/test.socket top
(gdb) r
Starting program: /tmp/deptyr/deptyr -s /tmp/test.socket top
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7e8b6f5 in __strlen_avx2 () from /usr/lib/libc.so.6
(gdb) bt full
#0 0x00007ffff7e8b6f5 in __strlen_avx2 () from /usr/lib/libc.so.6
No symbol table info available.
#1 0x00007ffff7d9661e in __vfprintf_internal () from /usr/lib/libc.so.6
No symbol table info available.
#2 0x00007ffff7d8126f in printf () from /usr/lib/libc.so.6
No symbol table info available.
#3 0x0000555555556f90 in main (argc=4, argv=0x7fffffffe518) at deptyr.c:270
ptyname = 0xfffffffff7eefcc0 <error: Cannot access memory at address0xfffffffff7eefcc0>
saved_termios = {c_iflag = 0, c_oflag = 0, c_cflag = 4294960248, c_lflag = 32767,
c_line = 200'\310',
c_cc = "\375\356\367\377\177\000\000\375uUUUU", '\000' <repeats 18 times>, "\260",
c_ispeed = 21845, c_ospeed = 1431659296}
pty = 4
opt = -1
err = <optimized out>
act_as_proxy = 0
socket = 3
ptsname returns an invalid address, so I replaced it with ptsname_r which seems to work: BotoX@60fe4d1
However ptsname_r is a linux extension.
Is ptsname working for you on Linux?
Unrelated: I guess it's not possible to redirect the programs output to stdout for logging it to syslog etc? (Want to run an application with logging under systemd and also be able to attach to it)
The text was updated successfully, but these errors were encountered:
It seems like the syscall ptsname is broken under Linux?
The program crashes for me on Archlinux and Debian 10.
GDB backtrace:
ptsname returns an invalid address, so I replaced it with ptsname_r which seems to work:
BotoX@60fe4d1
However ptsname_r is a linux extension.
Is ptsname working for you on Linux?
Unrelated: I guess it's not possible to redirect the programs output to stdout for logging it to syslog etc? (Want to run an application with logging under systemd and also be able to attach to it)
The text was updated successfully, but these errors were encountered: