syncterm hang if start with X11 interface
Cross-platform BBS (ANSI) Terminal
Brought to you by:
deuce
I trying to start syncterm with X11 on debian bullseye, It's hang and wont start.
Using -iS (for SDL) works fine
Running via gdb i cannot find more useful information. =|
(gdb) set args -iX
(gdb) r
Starting program: /usr/local/bin/syncterm -iX
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff7bbb700 (LWP 3123975)]
[Thread 0x7ffff7bbb700 (LWP 3123975) exited]
[New Thread 0x7ffff7fcb700 (LWP 3123976)]
^C
Thread 1 "Main Thread" received signal SIGINT, Interrupt.
futex_wait_cancelable (private=0, expected=0, futex_word=0x55555dc81038)
at ../sysdeps/nptl/futex-internal.h:186
186 ../sysdeps/nptl/futex-internal.h: No existe el fichero o el directorio.
(gdb) bt
#0 futex_wait_cancelable (private=0, expected=0, futex_word=0x55555dc81038)
at ../sysdeps/nptl/futex-internal.h:186
#1 __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55555dc80fe8,
cond=0x55555dc81010) at pthread_cond_wait.c:508
#2 __pthread_cond_wait (cond=0x55555dc81010, mutex=0x55555dc80fe8)
at pthread_cond_wait.c:638
#3 0x000055555574868d in xp_sem_wait (sem=0x55555dc6ad20 <init_complete>)
at xpsem.c:164
#4 0x0000555555714b8a in x_init () at x_cio.c:567
#5 0x00005555556f3e14 in try_x_init (mode=5) at ciolib.c:281
#6 0x00005555556f45ed in initciolib (mode=5) at ciolib.c:503
#7 0x00005555555ae117 in main (argc=2, argv=0x7fffffffdf18) at syncterm.c:1716
(gdb)
Anonymous
Sorry! I forgot to mention that I using the lastest git code.
If you could grab the new changes from the last day or two and provide the backtrace for all threads (using
thread apply all btin gdb) it should make it clear what's happening. I expect it's a deadlock somewhere, so should be easily fixed once it's clear what's happening.This was likely the same issue as #113 was (which is now fixed). Please test and let me know.
just pull the git and test:
Last edit: Ragnarok 2023-06-03
That is very weird... what does
xprop -root _NET_WORKAREAprint on your system (from any terminal with X running)?I think I found and fixed the issue, so it should be resolved now. I'm still curious what your _NET_WORKAREA is though.
Last edit: Stephen James Hurd 2023-06-04
yes! last 2 commits fix the startup hang,
then I notice that maximize the windows (just doble click on windows titlebar) get a weird screen . But this is another issue.
ragnarok@ragnarok:~$ xprop -root _NET_WORKAREA
_NET_WORKAREA(CARDINAL) = 0, 24, 2440, 1824, 0, 24, 2440, 1824, 0, 24, 2440, 1824, 0, 24, 2440, 1824
Thanks for getting back to me, don't forget to file a new bug... in the new bug, mention what WM you're using because you shouldn't even be able to maximize the window in X11 mode yet.