Subject: bug#51688: ELC+ELN international/emoji.elc crashes

From: Robert Pluim <[email-masked]>
Date: Tue, 23 Nov 2021 16:02:33 +0100

>>>>> On Tue, 23 Nov 2021 14:46:55 +0000, Andrea Corallo <[email-masked]> said:

    Andrea> $ gcc emoji-aca2d225-0997194d_libgccjit_repro.c -lgccjit
    Andrea> And run it to see if it crashes.
    Andrea> $ ./a.out
    >> 
    >> No, that doesnʼt crash. And similarly for the .c files in
    >> .emacs.d/eln-cache, they donʼt crash.

    Andrea> To be sure, was the .c file produced when Emacs crashed?

Not quite, it was produced when I reran the compile but with the
comp-libgccjit-reproducer set to t. The crash doesnʼt always happen
the second time.

But I have a live emacs process thatʼs just crashed (the first time)
trapped in gdb if you want me to poke at it.

#0  0x00007ffff4fc4231 in  () at /lib64/libgccjit.so.0
#1  0x00007ffff4fc9809 in  () at /lib64/libgccjit.so.0
#2  0x00007ffff4fea69f in  () at /lib64/libgccjit.so.0
#3  0x00007ffff4e7ba92 in  () at /lib64/libgccjit.so.0
#4  0x00007ffff500c1f2 in  () at /lib64/libgccjit.so.0
#5  0x00007ffff4fe7cd5 in gcc_jit_context_compile_to_file () at /lib64/libgccjit.so.0
#6  0x0000000000692cd6 in Fcomp__compile_ctxt_to_file (filename=0x1260834) at comp.c:4652
#7  0x000000000063a3a8 in funcall_subr (subr=0xb00fe0 <Scomp__compile_ctxt_to_file>, numargs=1, args=0x7fffffff9918) at eval.c:3143
#8  0x0000000000639fc2 in Ffuncall (nargs=2, args=0x7fffffff9910) at eval.c:3068
#9  0x00007ffff0a64cda in F636f6d702d636f6d70696c652d637478742d746f2d66696c65_comp_compile_ctxt_to_file_0 ()
    at /home/rpluim/repos/emacs-4/native-lisp/29.0.50-04b8e366/comp-7672a6ed-a040a5e7.eln
#10 0x000000000063a3a8 in funcall_subr (subr=0xe94bd0, numargs=1, args=0x7fffffff9a78) at eval.c:3143
#11 0x0000000000639fc2 in Ffuncall (nargs=2, args=0x7fffffff9a70) at eval.c:3068
#12 0x00007ffff0a64ec5 in F636f6d702d66696e616c31_comp_final1_0 () at /home/rpluim/repos/emacs-4/native-lisp/29.0.50-04b8e366/comp-7672a6ed-a040a5e7.eln
#13 0x000000000063a38f in funcall_subr (subr=0xe94c20, numargs=0, args=0x7fffffff9ce8) at eval.c:3141
#14 0x0000000000639fc2 in Ffuncall (nargs=1, args=0x7fffffff9ce0) at eval.c:3068
#15 0x00007ffff0a6511c in F636f6d702d66696e616c_comp_final_0 () at /home/rpluim/repos/emacs-4/native-lisp/29.0.50-04b8e366/comp-7672a6ed-a040a5e7.eln
#16 0x000000000063a3a8 in funcall_subr (subr=0xe94c70, numargs=1, args=0x7fffffff9f00) at eval.c:3143
#17 0x0000000000639fc2 in Ffuncall (nargs=2, args=0x7fffffff9ef8) at eval.c:3068
#18 0x00007ffff0a68e1a in F636f6d702d2d6e61746976652d636f6d70696c65_comp__native_compile_0 () at /home/rpluim/repos/emacs-4/native-lisp/29.0.50-04b8e366/comp-7672a6ed-a040a5e7.eln
#19 0x000000000063a402 in funcall_subr (subr=0xe95150, numargs=3, args=0x7fffffffa0b0) at eval.c:3148
#20 0x0000000000639fc2 in Ffuncall (nargs=4, args=0x7fffffffa0a8) at eval.c:3068
#21 0x00007ffff0a6655d in F636f6d702d7472616d706f6c696e652d636f6d70696c65_comp_trampoline_compile_0 ()
    at /home/rpluim/repos/emacs-4/native-lisp/29.0.50-04b8e366/comp-7672a6ed-a040a5e7.eln
#22 0x000000000063a3a8 in funcall_subr (subr=0xe94ea0, numargs=1, args=0x7fffffffa238) at eval.c:3143
#23 0x0000000000639fc2 in Ffuncall (nargs=2, args=0x7fffffffa230) at eval.c:3068
#24 0x00007ffff0a12a0a in F636f6d702d737562722d7472616d706f6c696e652d696e7374616c6c_comp_subr_trampoline_install_0 ()
    at /home/rpluim/repos/emacs-4/native-lisp/29.0.50-04b8e366/comp-7672a6ed-a040a5e7.eln
#25 0x000000000063a3a8 in funcall_subr (subr=0xfca3a0, numargs=1, args=0x7fffffffa418) at eval.c:3143
#26 0x0000000000639fc2 in Ffuncall (nargs=2, args=0x7fffffffa410) at eval.c:3068
#27 0x00007ffff179955f in F6164766963652d2d6164642d66756e6374696f6e_advice__add_function_0 ()
    at /home/rpluim/repos/emacs-4/src/../native-lisp/29.0.50-04b8e366/preloaded/nadvice-64630aaa-4c5c4a90.eln
#28 0x000000000063a43d in funcall_subr (subr=0x7ffff225a8c0, numargs=4, args=0x7fffffffa6a8) at eval.c:3151
#29 0x0000000000639fc2 in Ffuncall (nargs=5, args=0x7fffffffa6a0) at eval.c:3068
#30 0x00007ffff179aba0 in F6164766963652d616464_advice_add_0 () at /home/rpluim/repos/emacs-4/src/../native-lisp/29.0.50-04b8e366/preloaded/nadvice-64630aaa-4c5c4a90.eln
#31 0x000000000063a43d in funcall_subr (subr=0x7ffff1fcd7f8, numargs=3, args=0x7fffffffa850) at eval.c:3151
#32 0x0000000000639fc2 in Ffuncall (nargs=4, args=0x7fffffffa848) at eval.c:3068
#33 0x0000000000685feb in exec_byte_code (bytestr=0x105bad4, vector=0x105abfd, maxdepth=0x12, args_template=0x0, nargs=0, args=0x0) at bytecode.c:632
#34 0x0000000000685556 in Fbyte_code (bytestr=0x105bad4, vector=0x105abfd, maxdepth=0x12) at bytecode.c:334
#35 0x0000000000638a28 in eval_sub (form=0x104e313) at eval.c:2549
#36 0x0000000000638115 in Feval (form=0x104e313, lexical=0x30) at eval.c:2372
#37 0x00007ffff07f145a in top_level_run () at /home/rpluim/repos/emacs-4/native-lisp/29.0.50-04b8e366/transient-376febf1-23039d56.eln
#38 0x0000000000693c1a in load_comp_unit (comp_u=0x10103c0, loading_dump=false, late_load=false) at comp.c:5093
#39 0x000000000069473b in Fnative_elisp_load (filename=0xfe51a4, late_load=0x0) at comp.c:5309
#40 0x000000000066cda6 in Fload (file=0x100e344, noerror=0x0, nomessage=0x30, nosuffix=0x0, must_suffix=0x30) at lread.c:1564
#41 0x000000000066d0e4 in save_match_data_load (file=0x100e344, noerror=0x0, nomessage=0x30, nosuffix=0x0, must_suffix=0x30) at lread.c:1628
#42 0x0000000000649046 in Frequire (feature=0x489f90 <Fcurrent_bidi_paragraph_direction+854>, filename=0x0, noerror=0x0) at fns.c:3188
#43 0x000000000063a402 in funcall_subr (subr=0xafe3a0 <Srequire>, numargs=1, args=0x7fffffffb418) at eval.c:3148
#44 0x0000000000639fc2 in Ffuncall (nargs=2, args=0x7fffffffb410) at eval.c:3068
#45 0x0000000000638f75 in Fapply (nargs=2, args=0x7fffffffb410) at eval.c:2655
#46 0x00007ffff09b195e in F627974652d636f6d70696c652d66696c652d666f726d2d72657175697265_byte_compile_file_form_require_0 () at /home/rpluim/repos/emacs-4/native-lisp/29.0.50-04b8e366/bytecomp-12882072-c5edfb79.eln
#47 0x000000000063a3a8 in funcall_subr (subr=0xc90de0, numargs=1, args=0x7fffffffb598) at eval.c:3143
#48 0x0000000000639fc2 in Ffuncall (nargs=2, args=0x7fffffffb590) at eval.c:3068
#49 0x00007ffff09b0a7a in F627974652d636f6d70696c652d66696c652d666f726d_byte_compile_file_form_0 () at /home/rpluim/repos/emacs-4/native-lisp/29.0.50-04b8e366/bytecomp-12882072-c5edfb79.eln
#50 0x000000000063a3a8 in funcall_subr (subr=0xc90bb0, numargs=1, args=0x7fffffffb6e8) at eval.c:3143
#51 0x0000000000639fc2 in Ffuncall (nargs=2, args=0x7fffffffb6e0) at eval.c:3068
#52 0x00007ffff09b0993 in F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_49 () at /home/rpluim/repos/emacs-4/native-lisp/29.0.50-04b8e366/bytecomp-12882072-c5edfb79.eln
#53 0x000000000063a3a8 in funcall_subr (subr=0xc19ad8, numargs=1, args=0x7fffffffb838) at eval.c:3143
#54 0x0000000000639fc2 in Ffuncall (nargs=2, args=0x7fffffffb830) at eval.c:3068
#55 0x00007ffff09a1fc7 in F627974652d636f6d70696c652d726563757273652d746f706c6576656c_byte_compile_recurse_toplevel_0 () at /home/rpluim/repos/emacs-4/native-lisp/29.0.50-04b8e366/bytecomp-12882072-c5edfb79.eln
#56 0x000000000063a3cf in funcall_subr (subr=0xc888b0, numargs=2, args=0x7fffffffb998) at eval.c:3145
#57 0x0000000000639fc2 in Ffuncall (nargs=3, args=0x7fffffffb990) at eval.c:3068
#58 0x00007ffff09b09f6 in F627974652d636f6d70696c652d746f706c6576656c2d66696c652d666f726d_byte_compile_toplevel_file_form_0 () at /home/rpluim/repos/emacs-4/native-lisp/29.0.50-04b8e366/bytecomp-12882072-c5edfb79.eln
#59 0x000000000063a3a8 in funcall_subr (subr=0xbf9ed0, numargs=1, args=0x7fffffffbaf8) at eval.c:3143
#60 0x0000000000639fc2 in Ffuncall (nargs=2, args=0x7fffffffbaf0) at eval.c:3068
#61 0x00007ffff09ae91f in F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_47 () at /home/rpluim/repos/emacs-4/native-lisp/29.0.50-04b8e366/bytecomp-12882072-c5edfb79.eln
#62 0x000000000063a3a8 in funcall_subr (subr=0xc19a38, numargs=1, args=0x7fffffffbcb0) at eval.c:3143
#63 0x0000000000639fc2 in Ffuncall (nargs=2, args=0x7fffffffbca8) at eval.c:3068
#64 0x00007ffff09af11d in F627974652d636f6d70696c652d66726f6d2d627566666572_byte_compile_from_buffer_0 () at /home/rpluim/repos/emacs-4/native-lisp/29.0.50-04b8e366/bytecomp-12882072-c5edfb79.eln
#65 0x000000000063a3a8 in funcall_subr (subr=0xbf9ca0, numargs=1, args=0x7fffffffbeb8) at eval.c:3143
#66 0x0000000000639fc2 in Ffuncall (nargs=2, args=0x7fffffffbeb0) at eval.c:3068
#67 0x00007ffff09ad066 in F627974652d636f6d70696c652d66696c65_byte_compile_file_0 () at /home/rpluim/repos/emacs-4/native-lisp/29.0.50-04b8e366/bytecomp-12882072-c5edfb79.eln
#68 0x000000000063a3cf in funcall_subr (subr=0xbf9c00, numargs=1, args=0x7fffffffc048) at eval.c:3145
#69 0x0000000000639fc2 in Ffuncall (nargs=2, args=0x7fffffffc040) at eval.c:3068
#70 0x0000000000685feb in exec_byte_code (bytestr=0xd26d84, vector=0xc6b685, maxdepth=0x42, args_template=0x406, nargs=1, args=0x7fffffffc850) at bytecode.c:632
#71 0x000000000063a65b in fetch_and_exec_byte_code (fun=0xc5741d, syms_left=0x406, nargs=1, args=0x7fffffffc848) at eval.c:3192
#72 0x000000000063a9e8 in funcall_lambda (fun=0xc5741d, nargs=1, arg_vector=0x7fffffffc848) at eval.c:3273
#73 0x000000000063a016 in Ffuncall (nargs=2, args=0x7fffffffc840) at eval.c:3072
#74 0x0000000000638f35 in Fapply (nargs=3, args=0x7fffffffc840) at eval.c:2651
#75 0x000000000063a2e4 in funcall_subr (subr=0xafbbe0 <Sapply>, numargs=3, args=0x7fffffffc840) at eval.c:3123
#76 0x0000000000639fc2 in Ffuncall (nargs=4, args=0x7fffffffc838) at eval.c:3068
#77 0x0000000000685feb in exec_byte_code (bytestr=0x7ffff24179ac, vector=0xeda71d, maxdepth=0x3a, args_template=0x606, nargs=1, args=0x7fffffffcd80) at bytecode.c:632
#78 0x000000000063a65b in fetch_and_exec_byte_code (fun=0xfa17e5, syms_left=0x606, nargs=1, args=0x7fffffffcd78) at eval.c:3192
#79 0x000000000063a9e8 in funcall_lambda (fun=0xfa17e5, nargs=1, arg_vector=0x7fffffffcd78) at eval.c:3273
#80 0x000000000063a016 in Ffuncall (nargs=2, args=0x7fffffffcd70) at eval.c:3072
#81 0x00007ffff0a2fc0a in F636f6d702d7370696c6c2d6c6170_comp_spill_lap_0 () at /home/rpluim/repos/emacs-4/native-lisp/29.0.50-04b8e366/comp-7672a6ed-a040a5e7.eln
#82 0x000000000063a3a8 in funcall_subr (subr=0xfb2ea0, numargs=1, args=0x7fffffffcf10) at eval.c:3143
#83 0x0000000000639fc2 in Ffuncall (nargs=2, args=0x7fffffffcf08) at eval.c:3068
#84 0x00007ffff0a68e1a in F636f6d702d2d6e61746976652d636f6d70696c65_comp__native_compile_0 () at /home/rpluim/repos/emacs-4/native-lisp/29.0.50-04b8e366/comp-7672a6ed-a040a5e7.eln
#85 0x000000000063a402 in funcall_subr (subr=0xe95150, numargs=1, args=0x7fffffffd0a8) at eval.c:3148
#86 0x0000000000639fc2 in Ffuncall (nargs=2, args=0x7fffffffd0a0) at eval.c:3068
#87 0x00007ffff0a6a1e0 in F62617463682d6e61746976652d636f6d70696c65_batch_native_compile_0 () at /home/rpluim/repos/emacs-4/native-lisp/29.0.50-04b8e366/comp-7672a6ed-a040a5e7.eln
#88 0x000000000063a3a8 in funcall_subr (subr=0xf24d60, numargs=0, args=0x7fffffffd250) at eval.c:3143
#89 0x0000000000639fc2 in Ffuncall (nargs=1, args=0x7fffffffd248) at eval.c:3068
#90 0x00007ffff0a6a360 in F62617463682d627974652b6e61746976652d636f6d70696c65_batch_bytenative_compile_0 () at /home/rpluim/repos/emacs-4/native-lisp/29.0.50-04b8e366/comp-7672a6ed-a040a5e7.eln
#91 0x000000000063a38f in funcall_subr (subr=0xf24db0, numargs=0, args=0x7fffffffd440) at eval.c:3141
#92 0x0000000000639fc2 in Ffuncall (nargs=1, args=0x7fffffffd438) at eval.c:3068
#93 0x00007ffff185652b in F636f6d6d616e642d6c696e652d31_command_line_1_0 () at /home/rpluim/repos/emacs-4/src/../native-lisp/29.0.50-04b8e366/preloaded/startup-bbc6ea72-1e61e581.eln
#94 0x000000000063a3a8 in funcall_subr (subr=0x7ffff22d8c78, numargs=1, args=0x7fffffffd7e8) at eval.c:3143
#95 0x0000000000639fc2 in Ffuncall (nargs=2, args=0x7fffffffd7e0) at eval.c:3068
#96 0x00007ffff184e2d0 in F636f6d6d616e642d6c696e65_command_line_0 () at /home/rpluim/repos/emacs-4/src/../native-lisp/29.0.50-04b8e366/preloaded/startup-bbc6ea72-1e61e581.eln
#97 0x000000000063a38f in funcall_subr (subr=0x7ffff22da5e0, numargs=0, args=0x7fffffffd990) at eval.c:3141
#98 0x0000000000639fc2 in Ffuncall (nargs=1, args=0x7fffffffd988) at eval.c:3068
#99 0x00007ffff184a354 in F6e6f726d616c2d746f702d6c6576656c_normal_top_level_0 () at /home/rpluim/repos/emacs-4/src/../native-lisp/29.0.50-04b8e366/preloaded/startup-bbc6ea72-1e61e581.eln
#100 0x000000000063899d in eval_sub (form=0x7ffff22d1feb) at eval.c:2540
#101 0x0000000000638115 in Feval (form=0x7ffff22d1feb, lexical=0x0) at eval.c:2372
#102 0x000000000057f95f in top_level_2 () at keyboard.c:1143
#103 0x0000000000636414 in internal_condition_case (bfun=0x57f93c <top_level_2>, handlers=0x90, hfun=0x57f2bb <cmd_error>) at eval.c:1495
#104 0x000000000057f9a3 in top_level_1 (ignore=0x0) at keyboard.c:1151
#105 0x0000000000635b4a in internal_catch (tag=0xe9d0, func=0x57f961 <top_level_1>, arg=0x0) at eval.c:1226
#106 0x000000000057f896 in command_loop () at keyboard.c:1111
#107 0x000000000057ee76 in recursive_edit_1 () at keyboard.c:721
#108 0x000000000057f013 in Frecursive_edit () at keyboard.c:804
#109 0x000000000057bb08 in main (argc=11, argv=0x7fffffffdf38) at emacs.c:2376

Robert
--