Crash after build against libffi 3.4.2
System information
Exherbo Linux, gjs 1.68.1
Bug information
Steps to reproduce
Build gjs against libffi 3.4.2, try to enter GDM login screen.
Current behaviour
Instead of gdm login screen. I am presented with the dreaded gray Oops screen.
Jul 14 09:07:04 rho systemd-coredump[42889]: Process 42878 (gjs) of user 992 dumped core.
Stack trace of thread 42878:
#0 0x00007f90e05fc406 g_atomic_ref_count_dec (libglib-2.0.so.0 + 0xf1406)
#1 0x00007f90e06e5599 _Z29gjs_callback_trampoline_unrefP21GjsCallbackTrampoline (libgjs.so.0 + 0xa3599)
#2 0x00007f90e06db02e _ZL28gjs_marshal_callback_releaseP9JSContextP16GjsArgumentCacheP20GjsFunctionCallStateP11_GIArgumentS6_ (libgjs.so.0 + 0x9902e)
#3 0x00007f90e06e7b6e _ZN8Function13finish_invokeEP9JSContextRKN2JS8CallArgsEP20GjsFunctionCallStateP11_GIArgument (libgjs.so.0 + 0xa5b6e)
#4 0x00007f90e06e7897 _ZN8Function6invokeEP9JSContextRKN2JS8CallArgsENS2_6HandleIP8JSObjectEEP11_GIArgument (libgjs.so.0 + 0xa5897)
#5 0x00007f90e06e7dd4 _ZN8Function4callEP9JSContextjPN2JS5ValueE (libgjs.so.0 + 0xa5dd4)
#6 0x00007f90df8c8d4e _ZN2js23InternalCallOrConstructEP9JSContextRKN2JS8CallArgsENS_14MaybeConstructENS_10CallReasonE (libmozjs-78.so + 0x2d5d4e)
#7 0x00007f90df8c1b6e _ZL9InterpretP9JSContextRN2js8RunStateE (libmozjs-78.so + 0x2ceb6e)
#8 0x00007f90df8b8f8f _ZN2js9RunScriptEP9JSContextRNS_8RunStateE (libmozjs-78.so + 0x2c5f8f)
#9 0x00007f90df8c99b9 _ZN2js13ExecuteKernelEP9JSContextN2JS6HandleIP8JSScriptEENS3_IP8JSObjectEENS3_INS2_5ValueEEENS_16AbstractFramePtrENS2_13MutableHandleISA_EE (libmozjs-78.so + 0x2d69b9)
#10 0x00007f90df9b8536 _ZL20EvaluateSourceBufferIDsEbP9JSContextN2js9ScopeKindEN2JS6HandleIP8JSObjectEERKNS4_22ReadOnlyCompileOptionsERNS4_10SourceTextIT_EENS4_13MutableHandleINS4_5ValueEEE (libmozjs-78.so + 0x3c5536)
#11 0x00007f90df9b8662 _ZN2JS8EvaluateEP9JSContextNS_6HandleINS_13StackGCVectorIP8JSObjectN2js15TempAllocPolicyEEEEERKNS_22ReadOnlyCompileOptionsERNS_10SourceTextIDsEENS_13MutableHandleINS_5ValueEEE (libmozjs-78.so + 0x3c5662)
#12 0x00007f90e07149e8 _ZN17GjsContextPrivate15eval_with_scopeEN2JS6HandleIP8JSObjectEEPKclS6_NS0_13MutableHandleINS0_5ValueEEE (libgjs.so.0 + 0xd29e8)
#13 0x00007f90e0713f62 _ZN17GjsContextPrivate4evalEPKclS1_PiPP7_GError (libgjs.so.0 + 0xd1f62)
#14 0x00007f90e0713e4f gjs_context_eval (libgjs.so.0 + 0xd1e4f)
#15 0x000000000020a20a _Z27define_argv_and_eval_scriptP11_GjsContextiPKPcPKcmS5_ (gjs-console + 0xa20a)
#16 0x000000000020ac30 main (gjs-console + 0xac30)
#17 0x00007f90df317b15 __libc_start_main (libc.so.6 + 0x27b15)
#18 0x000000000020a08e _start (gjs-console + 0xa08e)
Stack trace of thread 42882:
#0 0x00007f90df4c582a __futex_abstimed_wait_common64 (libpthread.so.0 + 0x1582a)
#1 0x00007f90df4bf210 __pthread_cond_wait_common (libpthread.so.0 + 0xf210)
#2 0x00007f90e018af89 _ZN7mozilla6detail21ConditionVariableImpl8wait_forERNS0_9MutexImplERKNS_16BaseTimeDurationINS_27TimeDurationValueCalculatorEEE (libmozjs-78.so + 0xb97f89)
#3 0x00007f90df9e4cf5 _ZN2js12HelperThread10threadLoopEv (libmozjs-78.so + 0x3f1cf5)
#4 0x00007f90df9e2a58 _ZN2js12HelperThread10ThreadMainEPv (libmozjs-78.so + 0x3efa58)
#5 0x00007f90df9ea9e1 _ZN2js6detail16ThreadTrampolineIRFvPvEJPNS_12HelperThreadEEE5StartES2_ (libmozjs-78.so + 0x3f79e1)
#6 0x00007f90df4b9256 start_thread (libpthread.so.0 + 0x9256)
#7 0x00007f90df3e7043 __clone (libc.so.6 + 0xf7043)
Stack trace of thread 42886:
#0 0x00007f90df4c582a __futex_abstimed_wait_common64 (libpthread.so.0 + 0x1582a)
#1 0x00007f90df4bf210 __pthread_cond_wait_common (libpthread.so.0 + 0xf210)
#2 0x00007f90e018af89 _ZN7mozilla6detail21ConditionVariableImpl8wait_forERNS0_9MutexImplERKNS_16BaseTimeDurationINS_27TimeDurationValueCalculatorEEE (libmozjs-78.so + 0xb97f89)
#3 0x00007f90df9e4cf5 _ZN2js12HelperThread10threadLoopEv (libmozjs-78.so + 0x3f1cf5)
#4 0x00007f90df9e2a58 _ZN2js12HelperThread10ThreadMainEPv (libmozjs-78.so + 0x3efa58)
#5 0x00007f90df9ea9e1 _ZN2js6detail16ThreadTrampolineIRFvPvEJPNS_12HelperThreadEEE5StartES2_ (libmozjs-78.so + 0x3f79e1)
#6 0x00007f90df4b9256 start_thread (libpthread.so.0 + 0x9256)
#7 0x00007f90df3e7043 __clone (libc.so.6 + 0xf7043)
Stack trace of thread 42883:
#0 0x00007f90df4c582a __futex_abstimed_wait_common64 (libpthread.so.0 + 0x1582a)
#1 0x00007f90df4bf210 __pthread_cond_wait_common (libpthread.so.0 + 0xf210)
#2 0x00007f90e018af89 _ZN7mozilla6detail21ConditionVariableImpl8wait_forERNS0_9MutexImplERKNS_16BaseTimeDurationINS_27TimeDurationValueCalculatorEEE (libmozjs-78.so + 0xb97f89)
#3 0x00007f90df9e4cf5 _ZN2js12HelperThread10threadLoopEv (libmozjs-78.so + 0x3f1cf5)
#4 0x00007f90df9e2a58 _ZN2js12HelperThread10ThreadMainEPv (libmozjs-78.so + 0x3efa58)
#5 0x00007f90df9ea9e1 _ZN2js6detail16ThreadTrampolineIRFvPvEJPNS_12HelperThreadEEE5StartES2_ (libmozjs-78.so + 0x3f79e1)
#6 0x00007f90df4b9256 start_thread (libpthread.so.0 + 0x9256)
#7 0x00007f90df3e7043 __clone (libc.so.6 + 0xf7043)
Stack trace of thread 42885:
#0 0x00007f90df4c582a __futex_abstimed_wait_common64 (libpthread.so.0 + 0x1582a)
#1 0x00007f90df4bf210 __pthread_cond_wait_common (libpthread.so.0 + 0xf210)
#2 0x00007f90e018af89 _ZN7mozilla6detail21ConditionVariableImpl8wait_forERNS0_9MutexImplERKNS_16BaseTimeDurationINS_27TimeDurationValueCalculatorEEE (libmozjs-78.so + 0xb97f89)
#3 0x00007f90df9e4cf5 _ZN2js12HelperThread10threadLoopEv (libmozjs-78.so + 0x3f1cf5)
#4 0x00007f90df9e2a58 _ZN2js12HelperThread10ThreadMainEPv (libmozjs-78.so + 0x3efa58)
#5 0x00007f90df9ea9e1 _ZN2js6detail16ThreadTrampolineIRFvPvEJPNS_12HelperThreadEEE5StartES2_ (libmozjs-78.so + 0x3f79e1)
#6 0x00007f90df4b9256 start_thread (libpthread.so.0 + 0x9256)
#7 0x00007f90df3e7043 __clone (libc.so.6 + 0xf7043)
Stack trace of thread 42880:
#0 0x00007f90df4c582a __futex_abstimed_wait_common64 (libpthread.so.0 + 0x1582a)
#1 0x00007f90df4bf210 __pthread_cond_wait_common (libpthread.so.0 + 0xf210)
#2 0x00007f90e018af89 _ZN7mozilla6detail21ConditionVariableImpl8wait_forERNS0_9MutexImplERKNS_16BaseTimeDurationINS_27TimeDurationValueCalculatorEEE (libmozjs-78.so + 0xb97f89)
#3 0x00007f90df9e4cf5 _ZN2js12HelperThread10threadLoopEv (libmozjs-78.so + 0x3f1cf5)
#4 0x00007f90df9e2a58 _ZN2js12HelperThread10ThreadMainEPv (libmozjs-78.so + 0x3efa58)
#5 0x00007f90df9ea9e1 _ZN2js6detail16ThreadTrampolineIRFvPvEJPNS_12HelperThreadEEE5StartES2_ (libmozjs-78.so + 0x3f79e1)
#6 0x00007f90df4b9256 start_thread (libpthread.so.0 + 0x9256)
#7 0x00007f90df3e7043 __clone (libc.so.6 + 0xf7043)
Stack trace of thread 42881:
#0 0x00007f90df4c582a __futex_abstimed_wait_common64 (libpthread.so.0 + 0x1582a)
#1 0x00007f90df4bf210 __pthread_cond_wait_common (libpthread.so.0 + 0xf210)
#2 0x00007f90e018af89 _ZN7mozilla6detail21ConditionVariableImpl8wait_forERNS0_9MutexImplERKNS_16BaseTimeDurationINS_27TimeDurationValueCalculatorEEE (libmozjs-78.so + 0xb97f89)
#3 0x00007f90df9e4cf5 _ZN2js12HelperThread10threadLoopEv (libmozjs-78.so + 0x3f1cf5)
#4 0x00007f90df9e2a58 _ZN2js12HelperThread10ThreadMainEPv (libmozjs-78.so + 0x3efa58)
#5 0x00007f90df9ea9e1 _ZN2js6detail16ThreadTrampolineIRFvPvEJPNS_12HelperThreadEEE5StartES2_ (libmozjs-78.so + 0x3f79e1)
#6 0x00007f90df4b9256 start_thread (libpthread.so.0 + 0x9256)
#7 0x00007f90df3e7043 __clone (libc.so.6 + 0xf7043)
Stack trace of thread 42887:
#0 0x00007f90df4c582a __futex_abstimed_wait_common64 (libpthread.so.0 + 0x1582a)
#1 0x00007f90df4bf210 __pthread_cond_wait_common (libpthread.so.0 + 0xf210)
#2 0x00007f90e018af89 _ZN7mozilla6detail21ConditionVariableImpl8wait_forERNS0_9MutexImplERKNS_16BaseTimeDurationINS_27TimeDurationValueCalculatorEEE (libmozjs-78.so + 0xb97f89)
#3 0x00007f90df9e4cf5 _ZN2js12HelperThread10threadLoopEv (libmozjs-78.so + 0x3f1cf5)
#4 0x00007f90df9e2a58 _ZN2js12HelperThread10ThreadMainEPv (libmozjs-78.so + 0x3efa58)
#5 0x00007f90df9ea9e1 _ZN2js6detail16ThreadTrampolineIRFvPvEJPNS_12HelperThreadEEE5StartES2_ (libmozjs-78.so + 0x3f79e1)
#6 0x00007f90df4b9256 start_thread (libpthread.so.0 + 0x9256)
#7 0x00007f90df3e7043 __clone (libc.so.6 + 0xf7043)
Stack trace of thread 42884:
#0 0x00007f90df4c582a __futex_abstimed_wait_common64 (libpthread.so.0 + 0x1582a)
#1 0x00007f90df4bf210 __pthread_cond_wait_common (libpthread.so.0 + 0xf210)
#2 0x00007f90e018af89 _ZN7mozilla6detail21ConditionVariableImpl8wait_forERNS0_9MutexImplERKNS_16BaseTimeDurationINS_27TimeDurationValueCalculatorEEE (libmozjs-78.so + 0xb97f89)
#3 0x00007f90df9e4cf5 _ZN2js12HelperThread10threadLoopEv (libmozjs-78.so + 0x3f1cf5)
#4 0x00007f90df9e2a58 _ZN2js12HelperThread10ThreadMainEPv (libmozjs-78.so + 0x3efa58)
#5 0x00007f90df9ea9e1 _ZN2js6detail16ThreadTrampolineIRFvPvEJPNS_12HelperThreadEEE5StartES2_ (libmozjs-78.so + 0x3f79e1)
#6 0x00007f90df4b9256 start_thread (libpthread.so.0 + 0x9256)
#7 0x00007f90df3e7043 __clone (libc.so.6 + 0xf7043)
Might this be related to libffi static trampoline changes mentioned in their 3.4.2 changelog?
Expected behaviour
The GDM login screen