Running regular snaps on my X230:
OpenBSD 6.6 (GENERIC.MP) #369: Fri Oct 11 11:04:11 MDT 2019
[email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
tl;dr: As a last resort, I tried to paste 2.3M of data from my local X
selection (xterm1) onto a remote machine (xterm2) through it's serial
console (connected over SSH over OpenVPN):
x230-xterm1$ xclip -i < data.xz
x230-xterm2$ <mouse middle button click>
xterm2 disappeared and I continued working (being in haste).
Today i found the core dump and tried to reproduce the issue, but with
no avail; building XTerm with debug symbols only yields garbage in GDB,
whether I'm using DEBUG=-g, DEBUG="-g3 -O0" or even no DEBUG at all.
Filling the X selection with the same file and pasting it into a new
xterm does not dump core again; I cannot reproduce the issue.
$ xterm -e cat
"Error: Cannot perform malloc"
$
Backtrace with xterm executable and symbols of above mentioned snapshot:
Core was generated by `xterm'.
Program terminated with signal SIGABRT, Aborted.
#0 _thread_sys_open () at -:3
3 -: No such file or directory.
(gdb) bt
#0 _thread_sys_open () at -:3
#1 0x00000f7410604e84 in _libc_open_cancel (path=0xf73661f3660
"XTerm2019-10-21.09:55:20", flags=1537)
at /usr/src/lib/libc/sys/w_open.c:36
#2 0x00000f741066f6f3 in _libc_fopen (file=0xf73661f3660
"XTerm2019-10-21.09:55:20", mode=<optimized out>)
at /usr/src/lib/libc/stdio/fopen.c:54
#3 0x00000f7127d90ced in ?? ()
#4 0x00000f7127d91be2 in ?? ()
#5 0x00000f7127d911cf in ?? ()
#6 0x00000f7127d92276 in ?? ()
#7 0x00000f73532d96cb in XtCallCallbacks () from /usr/X11R6/lib/libXt.so.11.0
#8 0x00000f73533180a2 in HandleActions () from /usr/X11R6/lib/libXt.so.11.0
#9 0x00000f7353315d0d in HandleSimpleState () from /usr/X11R6/lib/libXt.so.11.0
#10 0x00000f73533155e3 in _XtTranslateEvent () from /usr/X11R6/lib/libXt.so.11.0
#11 0x00000f73532e92ef in XtDispatchEventToWidget () from
/usr/X11R6/lib/libXt.so.11.0
#12 0x00000f73532e9c7b in _XtDefaultDispatcher () from
/usr/X11R6/lib/libXt.so.11.0
#13 0x00000f73532e976a in XtDispatchEvent () from /usr/X11R6/lib/libXt.so.11.0
#14 0x00000f7127d880c8 in ?? ()
#15 0x00000f7127d4c503 in ?? ()
#16 0x00000f7127d4bf38 in ?? ()
#17 0x00000f7127d7c188 in ?? ()
#18 0x00000f7127d3d13b in ?? ()
#19 0x0000000000000000 in ?? ()