Subject: bug#36280: 26.2.90; 'emacs -Q' receives SIGSEGV, Segmentation fault

From: Eli Zaretskii <[email-masked]>
Date: Fri, 21 Jun 2019 08:58:33 +0300

> From: VanL <[email-masked]>
> Date: Fri, 21 Jun 2019 13:21:43 +1000
> Cc: [email-masked],
>  [email-masked]
> 
>   (gdb) thread apply all bt
> 
>   Thread 2 (Thread 0x1313 of process 10047):
>   #0  0x00007fff91f4707a in select$DARWIN_EXTSN () from /usr/lib/system/libsystem_kernel.dylib
>   #1  0x000000010140ae97 in g_poll () from /opt/local/lib/libglib-2.0.0.dylib
>   #2  0x00000001013fe623 in g_main_context_iterate () from /opt/local/lib/libglib-2.0.0.dylib
>   #3  0x00000001013fe6d1 in g_main_context_iteration () from /opt/local/lib/libglib-2.0.0.dylib
>   #4  0x00000001013ff7d6 in glib_worker_main () from /opt/local/lib/libglib-2.0.0.dylib
>   #5  0x0000000101420904 in g_thread_proxy () from /opt/local/lib/libglib-2.0.0.dylib
>   #6  0x00007fff91c9899d in _pthread_body () from /usr/lib/system/libsystem_pthread.dylib
>   #7  0x00007fff91c9891a in _pthread_start () from /usr/lib/system/libsystem_pthread.dylib
>   #8  0x00007fff91c96351 in thread_start () from /usr/lib/system/libsystem_pthread.dylib
>   #9  0x0000000000000000 in ?? ()
> 
>   Thread 1 (Thread 0x1103 of process 10047):
>   #0  0x00007fff91c9645c in pthread_mutex_lock () from /usr/lib/system/libsystem_pthread.dylib
>   #1  0x0000000100fddfee in XrmDestroyDatabase () from /opt/X11/lib/libX11.6.dylib
>   #2  0x0000000100fddf9d in XrmSetDatabase () from /opt/X11/lib/libX11.6.dylib
>   #3  0x0000000100177677 in x_term_init (display_name=4376825252, xrm_option=0x0, resource_name=0x105019318 "emacs") at ../../emacs/src/xterm.c:12633

Looks like some kind of incompatibility between Xlib and GTK?  They
both try to lock a mutex or something?  Entirely out of my area of
expertise.  Maybe someone else can chime in.

Is this configuration even known to work on Darwin?