GNU bug report logs - #36019
27.0.50; Segfault in color_distance in emacs --batch

Previous Next

Package: emacs;

Reported by: Vitalie Spinu <spinuvit <at> gmail.com>

Date: Fri, 31 May 2019 08:31:01 UTC

Severity: normal

Found in version 27.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 36019 in the body.
You can then email your comments to 36019 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#36019; Package emacs. (Fri, 31 May 2019 08:31:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Vitalie Spinu <spinuvit <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 31 May 2019 08:31:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Vitalie Spinu <spinuvit <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 27.0.50; Segfault in color_distance in emacs --batch
Date: Fri, 31 May 2019 10:30:20 +0200
Hi,

One of my packages started segfaulting in tests after emacs 27 update. I cannot
reproduce it in an X session, nor make a simple reproducible example. Hopefully
the backtraces will be enough.

The issue appeared in the last 4-5 months. I can bisect if needed.


  Vitalie


In GNU Emacs 27.0.50 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.22.30)
 of 2019-05-31 built on Galago
Repository revision: cc71a82fc705a73fa3ef6cda3ec6bee1cb654d7e
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.11906000
System Description: Ubuntu 18.04.2 LTS

Configured using:
 'configure 'CFLAGS=-O0 -g3''

Configured features:
XPM JPEG TIFF GIF PNG RSVG SOUND GPM DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL
LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS
GTK3 X11 XDBE XIM THREADS PDUMPER LCMS2 GMP

Important settings:
  value of $LC_MONETARY: nl_NL.UTF-8
  value of $LC_NUMERIC: nl_NL.UTF-8
  value of $LC_TIME: en_DK.UTF-8
  value of $LANG: en_GB.UTF-8
  locale-coding-system: utf-8-unix


Memory information:
((conses 16 1295385 251255)
 (symbols 48 69993 1)
 (strings 32 320606 17418)
 (string-bytes 1 10407416)
 (vectors 16 96826)
 (vector-slots 8 1481065 211870)
 (floats 8 702 397)
 (intervals 56 12203 0)
 (buffers 992 27))


================================================================

Thread 1 "emacs" received signal SIGSEGV, Segmentation fault.
0x0000000000000000 in ?? ()
(gdb) bt
#0  0x0000000000000000 in  ()
#1  0x00005555556950fa in Fcolor_distance (color1=XIL(0x5555579be484), color2=XIL(0x5555570ba454), frame=XIL(0), metric=XIL(0)) at xfaces.c:4212
#2  0x00005555557a304f in funcall_subr (subr=0x555555e0f200 <Scolor_distance>, numargs=2, args=0x7fffffff2bd8) at eval.c:2884
#3  0x00005555557a2b7f in Ffuncall (nargs=3, args=0x7fffffff2bd0) at eval.c:2803
#4  0x00005555557ee947 in exec_byte_code (bytestr=XIL(0x5555570ba434), vector=XIL(0x555556f8b325), maxdepth=make_number(4), args_template=make_number(257), nargs=1, args=0x7fffffff30b8) at bytecode.c:633
#5  0x00005555557a362a in funcall_lambda (fun=XIL(0x555556f8b355), nargs=1, arg_vector=0x7fffffff30b0) at eval.c:2998
#6  0x00005555557a2bc3 in Ffuncall (nargs=2, args=0x7fffffff30a8) at eval.c:2805
#7  0x00005555557ee947 in exec_byte_code (bytestr=XIL(0x5555570ba554), vector=XIL(0x555556f8b455), maxdepth=make_number(18), args_template=make_number(770), nargs=3, args=0x7fffffff35b0) at bytecode.c:633
#8  0x00005555557a362a in funcall_lambda (fun=XIL(0x555556f8b545), nargs=3, arg_vector=0x7fffffff3598) at eval.c:2998
#9  0x00005555557a2bc3 in Ffuncall (nargs=4, args=0x7fffffff3590) at eval.c:2805
#10 0x00005555557ee947 in exec_byte_code (bytestr=XIL(0x7fffe706a324), vector=XIL(0x7fffe6f0a8bd), maxdepth=make_number(7), args_template=make_number(770), nargs=2, args=0x7fffffff3a08) at bytecode.c:633
#11 0x00005555557a362a in funcall_lambda (fun=XIL(0x7fffe6f0a88d), nargs=2, arg_vector=0x7fffffff39f8) at eval.c:2998
#12 0x00005555557a2bc3 in Ffuncall (nargs=3, args=0x7fffffff39f0) at eval.c:2805
#13 0x00005555557a1df2 in Fapply (nargs=2, args=0x7fffffff3aa0) at eval.c:2425
#14 0x00005555557a131c in eval_sub (form=XIL(0x5555567446f3)) at eval.c:2246
#15 0x000055555579d502 in Fprogn (body=XIL(0)) at eval.c:463
#16 0x000055555579d3fa in Fif (args=XIL(0x5555567440f3)) at eval.c:419
#17 0x00005555557a1115 in eval_sub (form=XIL(0x555556744103)) at eval.c:2227
#18 0x000055555579d502 in Fprogn (body=XIL(0)) at eval.c:463
#19 0x00005555557a3903 in funcall_lambda (fun=XIL(0x5555567441f3), nargs=3, arg_vector=0x7fffffff3e68) at eval.c:3069
#20 0x00005555557a2ca5 in Ffuncall (nargs=4, args=0x7fffffff3e60) at eval.c:2817
#21 0x00005555557a1df2 in Fapply (nargs=3, args=0x7fffffff4038) at eval.c:2425
#22 0x00005555557a2ec3 in funcall_subr (subr=0x555555e17f80 <Sapply>, numargs=3, args=0x7fffffff4038) at eval.c:2856
#23 0x00005555557a2b7f in Ffuncall (nargs=4, args=0x7fffffff4030) at eval.c:2803
#24 0x00005555557ee947 in exec_byte_code (bytestr=XIL(0x7fffe6eaf924), vector=XIL(0x555556054595), maxdepth=make_number(5), args_template=make_number(128), nargs=2, args=0x7fffffff44a8) at bytecode.c:633
#25 0x00005555557a362a in funcall_lambda (fun=XIL(0x555556063ad5), nargs=2, arg_vector=0x7fffffff44a8) at eval.c:2998
#26 0x00005555557a2bc3 in Ffuncall (nargs=3, args=0x7fffffff44a0) at eval.c:2805
#27 0x00005555557ee947 in exec_byte_code (bytestr=XIL(0x7fffe6fff7a4), vector=XIL(0x5555576a2075), maxdepth=make_number(10), args_template=make_number(257), nargs=1, args=0x7fffffff4b70) at bytecode.c:633
#28 0x00005555557a362a in funcall_lambda (fun=XIL(0x5555576a20c5), nargs=1, arg_vector=0x7fffffff4b68) at eval.c:2998
#29 0x00005555557a2bc3 in Ffuncall (nargs=2, args=0x7fffffff4b60) at eval.c:2805
#30 0x00005555557a1fef in run_hook_wrapped_funcall (nargs=2, args=0x7fffffff4b60) at eval.c:2532
#31 0x00005555557a226f in run_hook_with_args (nargs=2, args=0x7fffffff4b60, funcall=0x5555557a1fa3 <run_hook_wrapped_funcall>) at eval.c:2613
#32 0x00005555557a2040 in Frun_hook_wrapped (nargs=2, args=0x7fffffff4b60) at eval.c:2547
#33 0x00005555557a2ec3 in funcall_subr (subr=0x555555e180c0 <Srun_hook_wrapped>, numargs=2, args=0x7fffffff4b60) at eval.c:2856
#34 0x00005555557a2b7f in Ffuncall (nargs=3, args=0x7fffffff4b58) at eval.c:2803
#35 0x00005555557ee947 in exec_byte_code (bytestr=XIL(0x7fffe6fff88c), vector=XIL(0x7fffe6fff72d), maxdepth=make_number(19), args_template=make_number(514), nargs=2, args=0x7fffffff4fe0) at bytecode.c:633
#36 0x00005555557a362a in funcall_lambda (fun=XIL(0x7fffe6fff6fd), nargs=2, arg_vector=0x7fffffff4fd0) at eval.c:2998
#37 0x00005555557a338e in apply_lambda (fun=XIL(0x7fffe6fff6fd), args=XIL(0x555556743b73), count=125) at eval.c:2935
#38 0x00005555557a16da in eval_sub (form=XIL(0x555556743b83)) at eval.c:2319
#39 0x000055555579d502 in Fprogn (body=XIL(0)) at eval.c:463
#40 0x000055555579531f in Fsave_restriction (body=XIL(0x55555674ac03)) at editfns.c:2836
#41 0x00005555557a1115 in eval_sub (form=XIL(0x555556753bd3)) at eval.c:2227
#42 0x000055555579d3dc in Fif (args=XIL(0x555556753b03)) at eval.c:418
#43 0x00005555557a1115 in eval_sub (form=XIL(0x555556753b13)) at eval.c:2227
#44 0x000055555579f1d2 in internal_lisp_condition_case (var=XIL(0x2aaa91228098), bodyform=XIL(0x555556753b13), handlers=XIL(0x55555674ae03)) at eval.c:1323
#45 0x000055555579edb4 in Fcondition_case (args=XIL(0x5555567539f3)) at eval.c:1247
#46 0x00005555557a1115 in eval_sub (form=XIL(0x5555567539e3)) at eval.c:2227
#47 0x000055555579d502 in Fprogn (body=XIL(0x555556743813)) at eval.c:463
#48 0x000055555579e852 in Flet (args=XIL(0x555556753913)) at eval.c:986
#49 0x00005555557a1115 in eval_sub (form=XIL(0x5555567538f3)) at eval.c:2227
#50 0x000055555579d502 in Fprogn (body=XIL(0)) at eval.c:463
#51 0x000055555579d3fa in Fif (args=XIL(0x5555567538a3)) at eval.c:419
#52 0x00005555557a1115 in eval_sub (form=XIL(0x5555567538e3)) at eval.c:2227
#53 0x000055555579d502 in Fprogn (body=XIL(0x5555567536a3)) at eval.c:463
#54 0x00005555557a1115 in eval_sub (form=XIL(0x5555567537c3)) at eval.c:2227
#55 0x000055555579d3dc in Fif (args=XIL(0x555556753633)) at eval.c:418
#56 0x00005555557a1115 in eval_sub (form=XIL(0x555556753653)) at eval.c:2227
#57 0x000055555579d502 in Fprogn (body=XIL(0)) at eval.c:463
#58 0x00005555557a1115 in eval_sub (form=XIL(0x555556753613)) at eval.c:2227
#59 0x000055555579ed3a in Funwind_protect (args=XIL(0x555556753593)) at eval.c:1209
#60 0x00005555557a1115 in eval_sub (form=XIL(0x5555567535a3)) at eval.c:2227
#61 0x000055555579d502 in Fprogn (body=XIL(0)) at eval.c:463
#62 0x000055555579e494 in FletX (args=XIL(0x555556753383)) at eval.c:918
#63 0x00005555557a1115 in eval_sub (form=XIL(0x555556753373)) at eval.c:2227
#64 0x000055555579d502 in Fprogn (body=XIL(0)) at eval.c:463
#65 0x000055555579e852 in Flet (args=XIL(0x555556753353)) at eval.c:986
#66 0x00005555557a1115 in eval_sub (form=XIL(0x555556753343)) at eval.c:2227
#67 0x000055555579d502 in Fprogn (body=XIL(0)) at eval.c:463
#68 0x000055555579e852 in Flet (args=XIL(0x555556753323)) at eval.c:986
#69 0x00005555557a1115 in eval_sub (form=XIL(0x555556753313)) at eval.c:2227
#70 0x000055555579d502 in Fprogn (body=XIL(0)) at eval.c:463
#71 0x00005555557a1115 in eval_sub (form=XIL(0x555556753303)) at eval.c:2227
#72 0x000055555579d3dc in Fif (args=XIL(0x555556753243)) at eval.c:418
#73 0x00005555557a1115 in eval_sub (form=XIL(0x555556753253)) at eval.c:2227
#74 0x000055555579d502 in Fprogn (body=XIL(0)) at eval.c:463
#75 0x00005555557a3903 in funcall_lambda (fun=XIL(0x5555578a58d3), nargs=1, arg_vector=0x7fffffff6848) at eval.c:3069
#76 0x00005555557a2ca5 in Ffuncall (nargs=2, args=0x7fffffff6840) at eval.c:2817
#77 0x00005555557a131c in eval_sub (form=XIL(0x5555567429f3)) at eval.c:2246
#78 0x000055555579d502 in Fprogn (body=XIL(0x555556742b93)) at eval.c:463
#79 0x000055555579d532 in prog_ignore (body=XIL(0x5555567429a3)) at eval.c:474
#80 0x000055555579e8c6 in Fwhile (args=XIL(0x555556742943)) at eval.c:1004
#81 0x00005555557a1115 in eval_sub (form=XIL(0x555556742933)) at eval.c:2227
#82 0x000055555579d502 in Fprogn (body=XIL(0)) at eval.c:463
#83 0x000055555579e494 in FletX (args=XIL(0x555556742923)) at eval.c:918
#84 0x00005555557a1115 in eval_sub (form=XIL(0x555556742813)) at eval.c:2227
#85 0x000055555579d502 in Fprogn (body=XIL(0)) at eval.c:463
#86 0x000055555579531f in Fsave_restriction (body=XIL(0x5555567420d3)) at editfns.c:2836
#87 0x00005555557a1115 in eval_sub (form=XIL(0x5555567420c3)) at eval.c:2227
#88 0x000055555579d502 in Fprogn (body=XIL(0)) at eval.c:463
#89 0x00005555557a3903 in funcall_lambda (fun=XIL(0x555556741d03), nargs=3, arg_vector=0x7fffffff6f00) at eval.c:3069
#90 0x00005555557a338e in apply_lambda (fun=XIL(0x555556741d13), args=XIL(0x555556753003), count=91) at eval.c:2935
#91 0x00005555557a18f2 in eval_sub (form=XIL(0x555556753043)) at eval.c:2349
#92 0x000055555579d502 in Fprogn (body=XIL(0)) at eval.c:463
#93 0x000055555578db2b in Fsave_excursion (args=XIL(0x55555674df63)) at editfns.c:842
#94 0x00005555557a1115 in eval_sub (form=XIL(0x55555674df73)) at eval.c:2227
#95 0x000055555579d502 in Fprogn (body=XIL(0)) at eval.c:463
#96 0x000055555579531f in Fsave_restriction (body=XIL(0x555556752f23)) at editfns.c:2836
#97 0x00005555557a1115 in eval_sub (form=XIL(0x555556752f33)) at eval.c:2227
#98 0x000055555579d502 in Fprogn (body=XIL(0)) at eval.c:463
#99 0x000055555579e494 in FletX (args=XIL(0x555556752eb3)) at eval.c:918
#100 0x00005555557a1115 in eval_sub (form=XIL(0x555556752ea3)) at eval.c:2227
#101 0x000055555579d502 in Fprogn (body=XIL(0x55555674eb53)) at eval.c:463
#102 0x000055555579d3fa in Fif (args=XIL(0x555556752e83)) at eval.c:419
#103 0x00005555557a1115 in eval_sub (form=XIL(0x555556752e93)) at eval.c:2227
#104 0x000055555579d502 in Fprogn (body=XIL(0)) at eval.c:463
#105 0x00005555557a3903 in funcall_lambda (fun=XIL(0x555556752c73), nargs=2, arg_vector=0x7fffffff7820) at eval.c:3069
#106 0x00005555557a2ca5 in Ffuncall (nargs=3, args=0x7fffffff7818) at eval.c:2817
#107 0x00005555557ee947 in exec_byte_code (bytestr=XIL(0x7fffe70145b4), vector=XIL(0x7fffe70144a5), maxdepth=make_number(5), args_template=make_number(512), nargs=0, args=0x7fffffff7cf8) at bytecode.c:633
#108 0x00005555557a362a in funcall_lambda (fun=XIL(0x7fffe7014475), nargs=0, arg_vector=0x7fffffff7cf8) at eval.c:2998
#109 0x00005555557a2bc3 in Ffuncall (nargs=1, args=0x7fffffff7cf0) at eval.c:2805
#110 0x00005555557a1a51 in Fapply (nargs=2, args=0x7fffffff7cf0) at eval.c:2378
#111 0x00005555557a131c in eval_sub (form=XIL(0x5555567446f3)) at eval.c:2246
#112 0x000055555579d502 in Fprogn (body=XIL(0)) at eval.c:463
#113 0x000055555579d3fa in Fif (args=XIL(0x5555567440f3)) at eval.c:419
#114 0x00005555557a1115 in eval_sub (form=XIL(0x555556744103)) at eval.c:2227
#115 0x000055555579d502 in Fprogn (body=XIL(0)) at eval.c:463
#116 0x00005555557a3903 in funcall_lambda (fun=XIL(0x5555567441f3), nargs=1, arg_vector=0x7fffffff8260) at eval.c:3069
#117 0x00005555557a2ca5 in Ffuncall (nargs=2, args=0x7fffffff8258) at eval.c:2817
#118 0x00005555557a1a51 in Fapply (nargs=3, args=0x7fffffff8258) at eval.c:2378
#119 0x00005555557a2ec3 in funcall_subr (subr=0x555555e17f80 <Sapply>, numargs=3, args=0x7fffffff8258) at eval.c:2856
#120 0x00005555557a2b7f in Ffuncall (nargs=4, args=0x7fffffff8250) at eval.c:2803
#121 0x00005555557ee947 in exec_byte_code (bytestr=XIL(0x7fffe6eaf924), vector=XIL(0x5555566f3e55), maxdepth=make_number(5), args_template=make_number(128), nargs=0, args=0x7fffffff8650) at bytecode.c:633
#122 0x00005555557a362a in funcall_lambda (fun=XIL(0x5555567a8645), nargs=0, arg_vector=0x7fffffff8650) at eval.c:2998
#123 0x00005555557a338e in apply_lambda (fun=XIL(0x5555567a8645), args=XIL(0), count=71) at eval.c:2935
#124 0x00005555557a16da in eval_sub (form=XIL(0x5555567dd0e3)) at eval.c:2319
#125 0x000055555579d502 in Fprogn (body=XIL(0x555557154463)) at eval.c:463
#126 0x000055555578db6a in Fsave_current_buffer (args=XIL(0x555557155183)) at editfns.c:855
#127 0x00005555557a1115 in eval_sub (form=XIL(0x555557155173)) at eval.c:2227
#128 0x000055555579d502 in Fprogn (body=XIL(0)) at eval.c:463
#129 0x000055555579e852 in Flet (args=XIL(0x555557154493)) at eval.c:986
#130 0x00005555557a1115 in eval_sub (form=XIL(0x5555571544a3)) at eval.c:2227
#131 0x00005555557a1407 in eval_sub (form=XIL(0x5555571544b3)) at eval.c:2262
#132 0x000055555579d502 in Fprogn (body=XIL(0)) at eval.c:463
#133 0x00005555557a3903 in funcall_lambda (fun=XIL(0x5555571544d3), nargs=0, arg_vector=0x7fffffff8dc8) at eval.c:3069
#134 0x00005555557a2ca5 in Ffuncall (nargs=1, args=0x7fffffff8dc0) at eval.c:2817
#135 0x00005555557ee947 in exec_byte_code (bytestr=XIL(0x5555568344f4), vector=XIL(0x555556834b85), maxdepth=make_number(10), args_template=make_number(257), nargs=1, args=0x7fffffff9338) at bytecode.c:633
#136 0x00005555557a362a in funcall_lambda (fun=XIL(0x555556834cc5), nargs=1, arg_vector=0x7fffffff9330) at eval.c:2998
#137 0x00005555557a2bc3 in Ffuncall (nargs=2, args=0x7fffffff9328) at eval.c:2805
#138 0x00005555557ee947 in exec_byte_code (bytestr=XIL(0x555556835644), vector=XIL(0x555556834e25), maxdepth=make_number(13), args_template=make_number(257), nargs=1, args=0x7fffffff9870) at bytecode.c:633
#139 0x00005555557a362a in funcall_lambda (fun=XIL(0x555556834f55), nargs=1, arg_vector=0x7fffffff9868) at eval.c:2998
#140 0x00005555557a2bc3 in Ffuncall (nargs=2, args=0x7fffffff9860) at eval.c:2805
#141 0x00005555557ee947 in exec_byte_code (bytestr=XIL(0x55555683d2b4), vector=XIL(0x55555683d655), maxdepth=make_number(14), args_template=make_number(771), nargs=3, args=0x7fffffff9db8) at bytecode.c:633
#142 0x00005555557a362a in funcall_lambda (fun=XIL(0x55555683c545), nargs=3, arg_vector=0x7fffffff9da0) at eval.c:2998
#143 0x00005555557a2bc3 in Ffuncall (nargs=4, args=0x7fffffff9d98) at eval.c:2805
#144 0x00005555557ee947 in exec_byte_code (bytestr=XIL(0x55555683d374), vector=XIL(0x55555683d775), maxdepth=make_number(14), args_template=make_number(770), nargs=3, args=0x7fffffffa2c8) at bytecode.c:633
#145 0x00005555557a362a in funcall_lambda (fun=XIL(0x55555683d875), nargs=3, arg_vector=0x7fffffffa2b0) at eval.c:2998
#146 0x00005555557a2bc3 in Ffuncall (nargs=4, args=0x7fffffffa2a8) at eval.c:2805
#147 0x00005555557ee947 in exec_byte_code (bytestr=XIL(0x55555683e8e4), vector=XIL(0x55555683df75), maxdepth=make_number(10), args_template=make_number(256), nargs=1, args=0x7fffffffa760) at bytecode.c:633
#148 0x00005555557a362a in funcall_lambda (fun=XIL(0x55555683dfd5), nargs=1, arg_vector=0x7fffffffa758) at eval.c:2998
#149 0x00005555557a2bc3 in Ffuncall (nargs=2, args=0x7fffffffa750) at eval.c:2805
#150 0x00005555557ee947 in exec_byte_code (bytestr=XIL(0x55555683ec54), vector=XIL(0x55555683fd55), maxdepth=make_number(6), args_template=make_number(256), nargs=1, args=0x7fffffffab78) at bytecode.c:633
#151 0x00005555557a362a in funcall_lambda (fun=XIL(0x55555683e555), nargs=1, arg_vector=0x7fffffffab70) at eval.c:2998
#152 0x00005555557a338e in apply_lambda (fun=XIL(0x55555683e555), args=XIL(0x555557168633), count=37) at eval.c:2935
#153 0x00005555557a16da in eval_sub (form=XIL(0x555557168623)) at eval.c:2319
#154 0x00005555557d3e19 in readevalloop_eager_expand_eval (val=XIL(0x555557168623), macroexpand=XIL(0x2aaa9123cc88)) at lread.c:1902
#155 0x00005555557d477e in readevalloop (readcharfun=XIL(0x555556331845), infile0=0x0, sourcename=XIL(0x555556083a44), printflag=false, unibyte=XIL(0), readfun=XIL(0), start=XIL(0), end=XIL(0)) at lread.c:2085
#156 0x00005555557d4b9e in Feval_buffer (buffer=XIL(0x555556331845), printflag=XIL(0), filename=XIL(0x55555660a334), unibyte=XIL(0), do_allow_print=XIL(0xc4e0)) at lread.c:2152
#157 0x00005555557a3094 in funcall_subr (subr=0x555555e1aac0 <Seval_buffer>, numargs=5, args=0x7fffffffafa0) at eval.c:2888
#158 0x00005555557a2b7f in Ffuncall (nargs=6, args=0x7fffffffaf98) at eval.c:2803
#159 0x00005555557ee947 in exec_byte_code (bytestr=XIL(0x7fffe6f14434), vector=XIL(0x7fffe6f13afd), maxdepth=make_number(6), args_template=XIL(0), nargs=0, args=0x0) at bytecode.c:633
#160 0x00005555557a3996 in funcall_lambda (fun=XIL(0x7fffe6f13acd), nargs=4, arg_vector=0x7fffe6f13afd) at eval.c:3076
#161 0x00005555557a2bc3 in Ffuncall (nargs=5, args=0x7fffffffb4e0) at eval.c:2805
#162 0x00005555557a2564 in call4 (fn=XIL(0x2aaa91086038), arg1=XIL(0x55555660a334), arg2=XIL(0x55555660a334), arg3=XIL(0), arg4=XIL(0xc4e0)) at eval.c:2681
#163 0x00005555557d29f5 in Fload (file=XIL(0x55555660a534), noerror=XIL(0), nomessage=XIL(0xc4e0), nosuffix=XIL(0), must_suffix=XIL(0)) at lread.c:1376
#164 0x00005555557a3094 in funcall_subr (subr=0x555555e1aa40 <Sload>, numargs=3, args=0x7fffffffb8d8) at eval.c:2888
#165 0x00005555557a2b7f in Ffuncall (nargs=4, args=0x7fffffffb8d0) at eval.c:2803
#166 0x00005555557ee947 in exec_byte_code (bytestr=XIL(0x7fffe72c16dc), vector=XIL(0x7fffe72c049d), maxdepth=make_number(23), args_template=make_number(257), nargs=1, args=0x7fffffffc1f8) at bytecode.c:633
#167 0x00005555557a362a in funcall_lambda (fun=XIL(0x7fffe72c046d), nargs=1, arg_vector=0x7fffffffc1f0) at eval.c:2998
#168 0x00005555557a2bc3 in Ffuncall (nargs=2, args=0x7fffffffc1e8) at eval.c:2805
#169 0x00005555557ee947 in exec_byte_code (bytestr=XIL(0x7fffe72c52c4), vector=XIL(0x7fffe72c192d), maxdepth=make_number(12), args_template=make_number(0), nargs=0, args=0x7fffffffcd18) at bytecode.c:633
#170 0x00005555557a362a in funcall_lambda (fun=XIL(0x7fffe72c18fd), nargs=0, arg_vector=0x7fffffffcd18) at eval.c:2998
#171 0x00005555557a2bc3 in Ffuncall (nargs=1, args=0x7fffffffcd10) at eval.c:2805
#172 0x00005555557ee947 in exec_byte_code (bytestr=XIL(0x7fffe72c5f24), vector=XIL(0x7fffe72c54a5), maxdepth=make_number(12), args_template=make_number(0), nargs=0, args=0x7fffffffd300) at bytecode.c:633
#173 0x00005555557a362a in funcall_lambda (fun=XIL(0x7fffe72c5475), nargs=0, arg_vector=0x7fffffffd300) at eval.c:2998
#174 0x00005555557a338e in apply_lambda (fun=XIL(0x7fffe72c5475), args=XIL(0), count=4) at eval.c:2935
#175 0x00005555557a16da in eval_sub (form=XIL(0x7fffe741c443)) at eval.c:2319
#176 0x00005555557a0b39 in Feval (form=XIL(0x7fffe741c443), lexical=XIL(0)) at eval.c:2103
#177 0x00005555556eaa70 in top_level_2 () at keyboard.c:1100
#178 0x000055555579f282 in internal_condition_case (bfun=0x5555556eaa4d <top_level_2>, handlers=XIL(0x5550), hfun=0x5555556ea4cf <cmd_error>) at eval.c:1352
#179 0x00005555556eaab8 in top_level_1 (ignore=XIL(0)) at keyboard.c:1108
#180 0x000055555579eaf3 in internal_catch (tag=XIL(0xcb70), func=0x5555556eaa72 <top_level_1>, arg=XIL(0)) at eval.c:1113
#181 0x00005555556ea999 in command_loop () at keyboard.c:1069
#182 0x00005555556ea09e in recursive_edit_1 () at keyboard.c:714
#183 0x00005555556ea222 in Frecursive_edit () at keyboard.c:786
#184 0x00005555556e8030 in main (argc=15, argv=0x7fffffffd848) at emacs.c:1962

Lisp Backtrace:
"color-distance" (0xffff2bd8)
"css--contrasty-color" (0xffff30b0)
"css--fontify-region" (0xffff3598)
0xe6f0a888 PVEC_COMPILED
"apply" (0xffff3aa0)
"if" (0xffff3c48)
"polymode-inhibit-during-initialization" (0xffff3e68)
"apply" (0xffff4038)
"font-lock-fontify-region" (0xffff44a8)
0x576a20c0 PVEC_COMPILED
"run-hook-wrapped" (0xffff4b60)
"jit-lock--run-functions" (0xffff4fd0)
"save-restriction" (0xffff5208)
"if" (0xffff5348)
"condition-case" (0xffff5588)
"let" (0xffff5788)
"if" (0xffff58f8)
"progn" (0xffff5a38)
"if" (0xffff5b78)
"progn" (0xffff5cb8)
"unwind-protect" (0xffff5df8)
"let*" (0xffff5fa8)
"let" (0xffff61a8)
"let" (0xffff63a8)
"progn" (0xffff64e8)
"if" (0xffff6628)
0x578a58b0 Lisp type 3
"funcall" (0xffff6840)
"while" (0xffff6a18)
"let*" (0xffff6bc8)
"save-restriction" (0xffff6d48)
"pm-map-over-spans" (0xffff6f00)
"save-excursion" (0xffff7148)
"save-restriction" (0xffff72c8)
"let*" (0xffff7478)
"if" (0xffff75e8)
"poly-lock-fontify-now" (0xffff7820)
0xe7014470 PVEC_COMPILED
"apply" (0xffff7cf0)
"if" (0xffff7e98)
"polymode-inhibit-during-initialization" (0xffff8260)
"apply" (0xffff8258)
"font-lock-ensure" (0xffff8650)
"save-current-buffer" (0xffff8868)
"let" (0xffff8a78)
"kill-buffer" (0xffff8b88)
0x571544d0 Lisp type 3
"ert--run-test-internal" (0xffff9330)
"ert-run-test" (0xffff9868)
"ert-run-or-rerun-test" (0xffff9da0)
"ert-run-tests" (0xffffa2b0)
"ert-run-tests-batch" (0xffffa758)
"ert-run-tests-batch-and-exit" (0xffffab70)
"eval-buffer" (0xffffafa0)
"load-with-code-conversion" (0xffffb4e8)
"load" (0xffffb8d8)
"command-line-1" (0xffffc1f0)
"command-line" (0xffffcd18)
"normal-top-level" (0xffffd300)
(gdb) 




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#36019; Package emacs. (Fri, 31 May 2019 15:22:01 GMT) Full text and rfc822 format available.

Message #8 received at 36019 <at> debbugs.gnu.org (full text, mbox):

From: Vitalie Spinu <spinuvit <at> gmail.com>
To: 36019 <at> debbugs.gnu.org
Cc: agrambot <at> gmail.com
Subject: Re: bug#36019: 27.0.50; Segfault in color_distance in emacs --batch
Date: Fri, 31 May 2019 17:21:41 +0200
I have bisected it to:

yes: 5d8b0fadee * | Add terminal hook query_frame_background_color
err: 41e20ee4bc * | Add terminal hook defined_color_hook
err: a411517faf * | Rename generic x_* identifiers
err: da9541dd10 * | Add prefixes to some window system-dependent procedures
 no: ff4e31fa32 * |  Rename generic x_* procedures in xdisp.c

The commits marked with err: don't build. So should be one of the top 4 commits.


  Vitalie

>> On Fri, May 31 2019 10:30, Vitalie Spinu wrote:

> Hi,

> One of my packages started segfaulting in tests after emacs 27 update. I cannot
> reproduce it in an X session, nor make a simple reproducible example. Hopefully
> the backtraces will be enough.

> The issue appeared in the last 4-5 months. I can bisect if needed.

>   Vitalie

> In GNU Emacs 27.0.50 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.22.30)
>  of 2019-05-31 built on Galago
> Repository revision: cc71a82fc705a73fa3ef6cda3ec6bee1cb654d7e
> Repository branch: master
> Windowing system distributor 'The X.Org Foundation', version 11.0.11906000
> System Description: Ubuntu 18.04.2 LTS

> Configured using:
>  'configure 'CFLAGS=-O0 -g3''

> Configured features:
> XPM JPEG TIFF GIF PNG RSVG SOUND GPM DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL
> LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS
> GTK3 X11 XDBE XIM THREADS PDUMPER LCMS2 GMP

> Important settings:
>   value of $LC_MONETARY: nl_NL.UTF-8
>   value of $LC_NUMERIC: nl_NL.UTF-8
>   value of $LC_TIME: en_DK.UTF-8
>   value of $LANG: en_GB.UTF-8
>   locale-coding-system: utf-8-unix

> Memory information:
> ((conses 16 1295385 251255)
>  (symbols 48 69993 1)
>  (strings 32 320606 17418)
>  (string-bytes 1 10407416)
>  (vectors 16 96826)
>  (vector-slots 8 1481065 211870)
>  (floats 8 702 397)
>  (intervals 56 12203 0)
>  (buffers 992 27))

> ================================================================

> Thread 1 "emacs" received signal SIGSEGV, Segmentation fault.
> 0x0000000000000000 in ?? ()
> (gdb) bt
> #0  0x0000000000000000 in  ()
> #1  0x00005555556950fa in Fcolor_distance (color1=XIL(0x5555579be484), color2=XIL(0x5555570ba454), frame=XIL(0), metric=XIL(0)) at xfaces.c:4212
> #2  0x00005555557a304f in funcall_subr (subr=0x555555e0f200 <Scolor_distance>, numargs=2, args=0x7fffffff2bd8) at eval.c:2884
> #3  0x00005555557a2b7f in Ffuncall (nargs=3, args=0x7fffffff2bd0) at eval.c:2803
> #4  0x00005555557ee947 in exec_byte_code (bytestr=XIL(0x5555570ba434), vector=XIL(0x555556f8b325), maxdepth=make_number(4), args_template=make_number(257), nargs=1, args=0x7fffffff30b8) at bytecode.c:633
> #5  0x00005555557a362a in funcall_lambda (fun=XIL(0x555556f8b355), nargs=1, arg_vector=0x7fffffff30b0) at eval.c:2998
> #6  0x00005555557a2bc3 in Ffuncall (nargs=2, args=0x7fffffff30a8) at eval.c:2805
> #7  0x00005555557ee947 in exec_byte_code (bytestr=XIL(0x5555570ba554), vector=XIL(0x555556f8b455), maxdepth=make_number(18), args_template=make_number(770), nargs=3, args=0x7fffffff35b0) at bytecode.c:633
> #8  0x00005555557a362a in funcall_lambda (fun=XIL(0x555556f8b545), nargs=3, arg_vector=0x7fffffff3598) at eval.c:2998
> #9  0x00005555557a2bc3 in Ffuncall (nargs=4, args=0x7fffffff3590) at eval.c:2805
> #10 0x00005555557ee947 in exec_byte_code (bytestr=XIL(0x7fffe706a324), vector=XIL(0x7fffe6f0a8bd), maxdepth=make_number(7), args_template=make_number(770), nargs=2, args=0x7fffffff3a08) at bytecode.c:633
> #11 0x00005555557a362a in funcall_lambda (fun=XIL(0x7fffe6f0a88d), nargs=2, arg_vector=0x7fffffff39f8) at eval.c:2998
> #12 0x00005555557a2bc3 in Ffuncall (nargs=3, args=0x7fffffff39f0) at eval.c:2805
> #13 0x00005555557a1df2 in Fapply (nargs=2, args=0x7fffffff3aa0) at eval.c:2425
> #14 0x00005555557a131c in eval_sub (form=XIL(0x5555567446f3)) at eval.c:2246
> #15 0x000055555579d502 in Fprogn (body=XIL(0)) at eval.c:463
> #16 0x000055555579d3fa in Fif (args=XIL(0x5555567440f3)) at eval.c:419
> #17 0x00005555557a1115 in eval_sub (form=XIL(0x555556744103)) at eval.c:2227
> #18 0x000055555579d502 in Fprogn (body=XIL(0)) at eval.c:463
> #19 0x00005555557a3903 in funcall_lambda (fun=XIL(0x5555567441f3), nargs=3, arg_vector=0x7fffffff3e68) at eval.c:3069
> #20 0x00005555557a2ca5 in Ffuncall (nargs=4, args=0x7fffffff3e60) at eval.c:2817
> #21 0x00005555557a1df2 in Fapply (nargs=3, args=0x7fffffff4038) at eval.c:2425
> #22 0x00005555557a2ec3 in funcall_subr (subr=0x555555e17f80 <Sapply>, numargs=3, args=0x7fffffff4038) at eval.c:2856
> #23 0x00005555557a2b7f in Ffuncall (nargs=4, args=0x7fffffff4030) at eval.c:2803
> #24 0x00005555557ee947 in exec_byte_code (bytestr=XIL(0x7fffe6eaf924), vector=XIL(0x555556054595), maxdepth=make_number(5), args_template=make_number(128), nargs=2, args=0x7fffffff44a8) at bytecode.c:633
> #25 0x00005555557a362a in funcall_lambda (fun=XIL(0x555556063ad5), nargs=2, arg_vector=0x7fffffff44a8) at eval.c:2998
> #26 0x00005555557a2bc3 in Ffuncall (nargs=3, args=0x7fffffff44a0) at eval.c:2805
> #27 0x00005555557ee947 in exec_byte_code (bytestr=XIL(0x7fffe6fff7a4), vector=XIL(0x5555576a2075), maxdepth=make_number(10), args_template=make_number(257), nargs=1, args=0x7fffffff4b70) at bytecode.c:633
> #28 0x00005555557a362a in funcall_lambda (fun=XIL(0x5555576a20c5), nargs=1, arg_vector=0x7fffffff4b68) at eval.c:2998
> #29 0x00005555557a2bc3 in Ffuncall (nargs=2, args=0x7fffffff4b60) at eval.c:2805
> #30 0x00005555557a1fef in run_hook_wrapped_funcall (nargs=2, args=0x7fffffff4b60) at eval.c:2532
> #31 0x00005555557a226f in run_hook_with_args (nargs=2, args=0x7fffffff4b60, funcall=0x5555557a1fa3 <run_hook_wrapped_funcall>) at eval.c:2613
> #32 0x00005555557a2040 in Frun_hook_wrapped (nargs=2, args=0x7fffffff4b60) at eval.c:2547
> #33 0x00005555557a2ec3 in funcall_subr (subr=0x555555e180c0 <Srun_hook_wrapped>, numargs=2, args=0x7fffffff4b60) at eval.c:2856
> #34 0x00005555557a2b7f in Ffuncall (nargs=3, args=0x7fffffff4b58) at eval.c:2803
> #35 0x00005555557ee947 in exec_byte_code (bytestr=XIL(0x7fffe6fff88c), vector=XIL(0x7fffe6fff72d), maxdepth=make_number(19), args_template=make_number(514), nargs=2, args=0x7fffffff4fe0) at bytecode.c:633
> #36 0x00005555557a362a in funcall_lambda (fun=XIL(0x7fffe6fff6fd), nargs=2, arg_vector=0x7fffffff4fd0) at eval.c:2998
> #37 0x00005555557a338e in apply_lambda (fun=XIL(0x7fffe6fff6fd), args=XIL(0x555556743b73), count=125) at eval.c:2935
> #38 0x00005555557a16da in eval_sub (form=XIL(0x555556743b83)) at eval.c:2319
> #39 0x000055555579d502 in Fprogn (body=XIL(0)) at eval.c:463
> #40 0x000055555579531f in Fsave_restriction (body=XIL(0x55555674ac03)) at editfns.c:2836
> #41 0x00005555557a1115 in eval_sub (form=XIL(0x555556753bd3)) at eval.c:2227
> #42 0x000055555579d3dc in Fif (args=XIL(0x555556753b03)) at eval.c:418
> #43 0x00005555557a1115 in eval_sub (form=XIL(0x555556753b13)) at eval.c:2227
> #44 0x000055555579f1d2 in internal_lisp_condition_case (var=XIL(0x2aaa91228098), bodyform=XIL(0x555556753b13), handlers=XIL(0x55555674ae03)) at eval.c:1323
> #45 0x000055555579edb4 in Fcondition_case (args=XIL(0x5555567539f3)) at eval.c:1247
> #46 0x00005555557a1115 in eval_sub (form=XIL(0x5555567539e3)) at eval.c:2227
> #47 0x000055555579d502 in Fprogn (body=XIL(0x555556743813)) at eval.c:463
> #48 0x000055555579e852 in Flet (args=XIL(0x555556753913)) at eval.c:986
> #49 0x00005555557a1115 in eval_sub (form=XIL(0x5555567538f3)) at eval.c:2227
> #50 0x000055555579d502 in Fprogn (body=XIL(0)) at eval.c:463
> #51 0x000055555579d3fa in Fif (args=XIL(0x5555567538a3)) at eval.c:419
> #52 0x00005555557a1115 in eval_sub (form=XIL(0x5555567538e3)) at eval.c:2227
> #53 0x000055555579d502 in Fprogn (body=XIL(0x5555567536a3)) at eval.c:463
> #54 0x00005555557a1115 in eval_sub (form=XIL(0x5555567537c3)) at eval.c:2227
> #55 0x000055555579d3dc in Fif (args=XIL(0x555556753633)) at eval.c:418
> #56 0x00005555557a1115 in eval_sub (form=XIL(0x555556753653)) at eval.c:2227
> #57 0x000055555579d502 in Fprogn (body=XIL(0)) at eval.c:463
> #58 0x00005555557a1115 in eval_sub (form=XIL(0x555556753613)) at eval.c:2227
> #59 0x000055555579ed3a in Funwind_protect (args=XIL(0x555556753593)) at eval.c:1209
> #60 0x00005555557a1115 in eval_sub (form=XIL(0x5555567535a3)) at eval.c:2227
> #61 0x000055555579d502 in Fprogn (body=XIL(0)) at eval.c:463
> #62 0x000055555579e494 in FletX (args=XIL(0x555556753383)) at eval.c:918
> #63 0x00005555557a1115 in eval_sub (form=XIL(0x555556753373)) at eval.c:2227
> #64 0x000055555579d502 in Fprogn (body=XIL(0)) at eval.c:463
> #65 0x000055555579e852 in Flet (args=XIL(0x555556753353)) at eval.c:986
> #66 0x00005555557a1115 in eval_sub (form=XIL(0x555556753343)) at eval.c:2227
> #67 0x000055555579d502 in Fprogn (body=XIL(0)) at eval.c:463
> #68 0x000055555579e852 in Flet (args=XIL(0x555556753323)) at eval.c:986
> #69 0x00005555557a1115 in eval_sub (form=XIL(0x555556753313)) at eval.c:2227
> #70 0x000055555579d502 in Fprogn (body=XIL(0)) at eval.c:463
> #71 0x00005555557a1115 in eval_sub (form=XIL(0x555556753303)) at eval.c:2227
> #72 0x000055555579d3dc in Fif (args=XIL(0x555556753243)) at eval.c:418
> #73 0x00005555557a1115 in eval_sub (form=XIL(0x555556753253)) at eval.c:2227
> #74 0x000055555579d502 in Fprogn (body=XIL(0)) at eval.c:463
> #75 0x00005555557a3903 in funcall_lambda (fun=XIL(0x5555578a58d3), nargs=1, arg_vector=0x7fffffff6848) at eval.c:3069
> #76 0x00005555557a2ca5 in Ffuncall (nargs=2, args=0x7fffffff6840) at eval.c:2817
> #77 0x00005555557a131c in eval_sub (form=XIL(0x5555567429f3)) at eval.c:2246
> #78 0x000055555579d502 in Fprogn (body=XIL(0x555556742b93)) at eval.c:463
> #79 0x000055555579d532 in prog_ignore (body=XIL(0x5555567429a3)) at eval.c:474
> #80 0x000055555579e8c6 in Fwhile (args=XIL(0x555556742943)) at eval.c:1004
> #81 0x00005555557a1115 in eval_sub (form=XIL(0x555556742933)) at eval.c:2227
> #82 0x000055555579d502 in Fprogn (body=XIL(0)) at eval.c:463
> #83 0x000055555579e494 in FletX (args=XIL(0x555556742923)) at eval.c:918
> #84 0x00005555557a1115 in eval_sub (form=XIL(0x555556742813)) at eval.c:2227
> #85 0x000055555579d502 in Fprogn (body=XIL(0)) at eval.c:463
> #86 0x000055555579531f in Fsave_restriction (body=XIL(0x5555567420d3)) at editfns.c:2836
> #87 0x00005555557a1115 in eval_sub (form=XIL(0x5555567420c3)) at eval.c:2227
> #88 0x000055555579d502 in Fprogn (body=XIL(0)) at eval.c:463
> #89 0x00005555557a3903 in funcall_lambda (fun=XIL(0x555556741d03), nargs=3, arg_vector=0x7fffffff6f00) at eval.c:3069
> #90 0x00005555557a338e in apply_lambda (fun=XIL(0x555556741d13), args=XIL(0x555556753003), count=91) at eval.c:2935
> #91 0x00005555557a18f2 in eval_sub (form=XIL(0x555556753043)) at eval.c:2349
> #92 0x000055555579d502 in Fprogn (body=XIL(0)) at eval.c:463
> #93 0x000055555578db2b in Fsave_excursion (args=XIL(0x55555674df63)) at editfns.c:842
> #94 0x00005555557a1115 in eval_sub (form=XIL(0x55555674df73)) at eval.c:2227
> #95 0x000055555579d502 in Fprogn (body=XIL(0)) at eval.c:463
> #96 0x000055555579531f in Fsave_restriction (body=XIL(0x555556752f23)) at editfns.c:2836
> #97 0x00005555557a1115 in eval_sub (form=XIL(0x555556752f33)) at eval.c:2227
> #98 0x000055555579d502 in Fprogn (body=XIL(0)) at eval.c:463
> #99 0x000055555579e494 in FletX (args=XIL(0x555556752eb3)) at eval.c:918
> #100 0x00005555557a1115 in eval_sub (form=XIL(0x555556752ea3)) at eval.c:2227
> #101 0x000055555579d502 in Fprogn (body=XIL(0x55555674eb53)) at eval.c:463
> #102 0x000055555579d3fa in Fif (args=XIL(0x555556752e83)) at eval.c:419
> #103 0x00005555557a1115 in eval_sub (form=XIL(0x555556752e93)) at eval.c:2227
> #104 0x000055555579d502 in Fprogn (body=XIL(0)) at eval.c:463
> #105 0x00005555557a3903 in funcall_lambda (fun=XIL(0x555556752c73), nargs=2, arg_vector=0x7fffffff7820) at eval.c:3069
> #106 0x00005555557a2ca5 in Ffuncall (nargs=3, args=0x7fffffff7818) at eval.c:2817
> #107 0x00005555557ee947 in exec_byte_code (bytestr=XIL(0x7fffe70145b4), vector=XIL(0x7fffe70144a5), maxdepth=make_number(5), args_template=make_number(512), nargs=0, args=0x7fffffff7cf8) at bytecode.c:633
> #108 0x00005555557a362a in funcall_lambda (fun=XIL(0x7fffe7014475), nargs=0, arg_vector=0x7fffffff7cf8) at eval.c:2998
> #109 0x00005555557a2bc3 in Ffuncall (nargs=1, args=0x7fffffff7cf0) at eval.c:2805
> #110 0x00005555557a1a51 in Fapply (nargs=2, args=0x7fffffff7cf0) at eval.c:2378
> #111 0x00005555557a131c in eval_sub (form=XIL(0x5555567446f3)) at eval.c:2246
> #112 0x000055555579d502 in Fprogn (body=XIL(0)) at eval.c:463
> #113 0x000055555579d3fa in Fif (args=XIL(0x5555567440f3)) at eval.c:419
> #114 0x00005555557a1115 in eval_sub (form=XIL(0x555556744103)) at eval.c:2227
> #115 0x000055555579d502 in Fprogn (body=XIL(0)) at eval.c:463
> #116 0x00005555557a3903 in funcall_lambda (fun=XIL(0x5555567441f3), nargs=1, arg_vector=0x7fffffff8260) at eval.c:3069
> #117 0x00005555557a2ca5 in Ffuncall (nargs=2, args=0x7fffffff8258) at eval.c:2817
> #118 0x00005555557a1a51 in Fapply (nargs=3, args=0x7fffffff8258) at eval.c:2378
> #119 0x00005555557a2ec3 in funcall_subr (subr=0x555555e17f80 <Sapply>, numargs=3, args=0x7fffffff8258) at eval.c:2856
> #120 0x00005555557a2b7f in Ffuncall (nargs=4, args=0x7fffffff8250) at eval.c:2803
> #121 0x00005555557ee947 in exec_byte_code (bytestr=XIL(0x7fffe6eaf924), vector=XIL(0x5555566f3e55), maxdepth=make_number(5), args_template=make_number(128), nargs=0, args=0x7fffffff8650) at bytecode.c:633
> #122 0x00005555557a362a in funcall_lambda (fun=XIL(0x5555567a8645), nargs=0, arg_vector=0x7fffffff8650) at eval.c:2998
> #123 0x00005555557a338e in apply_lambda (fun=XIL(0x5555567a8645), args=XIL(0), count=71) at eval.c:2935
> #124 0x00005555557a16da in eval_sub (form=XIL(0x5555567dd0e3)) at eval.c:2319
> #125 0x000055555579d502 in Fprogn (body=XIL(0x555557154463)) at eval.c:463
> #126 0x000055555578db6a in Fsave_current_buffer (args=XIL(0x555557155183)) at editfns.c:855
> #127 0x00005555557a1115 in eval_sub (form=XIL(0x555557155173)) at eval.c:2227
> #128 0x000055555579d502 in Fprogn (body=XIL(0)) at eval.c:463
> #129 0x000055555579e852 in Flet (args=XIL(0x555557154493)) at eval.c:986
> #130 0x00005555557a1115 in eval_sub (form=XIL(0x5555571544a3)) at eval.c:2227
> #131 0x00005555557a1407 in eval_sub (form=XIL(0x5555571544b3)) at eval.c:2262
> #132 0x000055555579d502 in Fprogn (body=XIL(0)) at eval.c:463
> #133 0x00005555557a3903 in funcall_lambda (fun=XIL(0x5555571544d3), nargs=0, arg_vector=0x7fffffff8dc8) at eval.c:3069
> #134 0x00005555557a2ca5 in Ffuncall (nargs=1, args=0x7fffffff8dc0) at eval.c:2817
> #135 0x00005555557ee947 in exec_byte_code (bytestr=XIL(0x5555568344f4), vector=XIL(0x555556834b85), maxdepth=make_number(10), args_template=make_number(257), nargs=1, args=0x7fffffff9338) at bytecode.c:633
> #136 0x00005555557a362a in funcall_lambda (fun=XIL(0x555556834cc5), nargs=1, arg_vector=0x7fffffff9330) at eval.c:2998
> #137 0x00005555557a2bc3 in Ffuncall (nargs=2, args=0x7fffffff9328) at eval.c:2805
> #138 0x00005555557ee947 in exec_byte_code (bytestr=XIL(0x555556835644), vector=XIL(0x555556834e25), maxdepth=make_number(13), args_template=make_number(257), nargs=1, args=0x7fffffff9870) at bytecode.c:633
> #139 0x00005555557a362a in funcall_lambda (fun=XIL(0x555556834f55), nargs=1, arg_vector=0x7fffffff9868) at eval.c:2998
> #140 0x00005555557a2bc3 in Ffuncall (nargs=2, args=0x7fffffff9860) at eval.c:2805
> #141 0x00005555557ee947 in exec_byte_code (bytestr=XIL(0x55555683d2b4), vector=XIL(0x55555683d655), maxdepth=make_number(14), args_template=make_number(771), nargs=3, args=0x7fffffff9db8) at bytecode.c:633
> #142 0x00005555557a362a in funcall_lambda (fun=XIL(0x55555683c545), nargs=3, arg_vector=0x7fffffff9da0) at eval.c:2998
> #143 0x00005555557a2bc3 in Ffuncall (nargs=4, args=0x7fffffff9d98) at eval.c:2805
> #144 0x00005555557ee947 in exec_byte_code (bytestr=XIL(0x55555683d374), vector=XIL(0x55555683d775), maxdepth=make_number(14), args_template=make_number(770), nargs=3, args=0x7fffffffa2c8) at bytecode.c:633
> #145 0x00005555557a362a in funcall_lambda (fun=XIL(0x55555683d875), nargs=3, arg_vector=0x7fffffffa2b0) at eval.c:2998
> #146 0x00005555557a2bc3 in Ffuncall (nargs=4, args=0x7fffffffa2a8) at eval.c:2805
> #147 0x00005555557ee947 in exec_byte_code (bytestr=XIL(0x55555683e8e4), vector=XIL(0x55555683df75), maxdepth=make_number(10), args_template=make_number(256), nargs=1, args=0x7fffffffa760) at bytecode.c:633
> #148 0x00005555557a362a in funcall_lambda (fun=XIL(0x55555683dfd5), nargs=1, arg_vector=0x7fffffffa758) at eval.c:2998
> #149 0x00005555557a2bc3 in Ffuncall (nargs=2, args=0x7fffffffa750) at eval.c:2805
> #150 0x00005555557ee947 in exec_byte_code (bytestr=XIL(0x55555683ec54), vector=XIL(0x55555683fd55), maxdepth=make_number(6), args_template=make_number(256), nargs=1, args=0x7fffffffab78) at bytecode.c:633
> #151 0x00005555557a362a in funcall_lambda (fun=XIL(0x55555683e555), nargs=1, arg_vector=0x7fffffffab70) at eval.c:2998
> #152 0x00005555557a338e in apply_lambda (fun=XIL(0x55555683e555), args=XIL(0x555557168633), count=37) at eval.c:2935
> #153 0x00005555557a16da in eval_sub (form=XIL(0x555557168623)) at eval.c:2319
> #154 0x00005555557d3e19 in readevalloop_eager_expand_eval (val=XIL(0x555557168623), macroexpand=XIL(0x2aaa9123cc88)) at lread.c:1902
> #155 0x00005555557d477e in readevalloop (readcharfun=XIL(0x555556331845), infile0=0x0, sourcename=XIL(0x555556083a44), printflag=false, unibyte=XIL(0), readfun=XIL(0), start=XIL(0), end=XIL(0)) at lread.c:2085
> #156 0x00005555557d4b9e in Feval_buffer (buffer=XIL(0x555556331845), printflag=XIL(0), filename=XIL(0x55555660a334), unibyte=XIL(0), do_allow_print=XIL(0xc4e0)) at lread.c:2152
> #157 0x00005555557a3094 in funcall_subr (subr=0x555555e1aac0 <Seval_buffer>, numargs=5, args=0x7fffffffafa0) at eval.c:2888
> #158 0x00005555557a2b7f in Ffuncall (nargs=6, args=0x7fffffffaf98) at eval.c:2803
> #159 0x00005555557ee947 in exec_byte_code (bytestr=XIL(0x7fffe6f14434), vector=XIL(0x7fffe6f13afd), maxdepth=make_number(6), args_template=XIL(0), nargs=0, args=0x0) at bytecode.c:633
> #160 0x00005555557a3996 in funcall_lambda (fun=XIL(0x7fffe6f13acd), nargs=4, arg_vector=0x7fffe6f13afd) at eval.c:3076
> #161 0x00005555557a2bc3 in Ffuncall (nargs=5, args=0x7fffffffb4e0) at eval.c:2805
> #162 0x00005555557a2564 in call4 (fn=XIL(0x2aaa91086038), arg1=XIL(0x55555660a334), arg2=XIL(0x55555660a334), arg3=XIL(0), arg4=XIL(0xc4e0)) at eval.c:2681
> #163 0x00005555557d29f5 in Fload (file=XIL(0x55555660a534), noerror=XIL(0), nomessage=XIL(0xc4e0), nosuffix=XIL(0), must_suffix=XIL(0)) at lread.c:1376
> #164 0x00005555557a3094 in funcall_subr (subr=0x555555e1aa40 <Sload>, numargs=3, args=0x7fffffffb8d8) at eval.c:2888
> #165 0x00005555557a2b7f in Ffuncall (nargs=4, args=0x7fffffffb8d0) at eval.c:2803
> #166 0x00005555557ee947 in exec_byte_code (bytestr=XIL(0x7fffe72c16dc), vector=XIL(0x7fffe72c049d), maxdepth=make_number(23), args_template=make_number(257), nargs=1, args=0x7fffffffc1f8) at bytecode.c:633
> #167 0x00005555557a362a in funcall_lambda (fun=XIL(0x7fffe72c046d), nargs=1, arg_vector=0x7fffffffc1f0) at eval.c:2998
> #168 0x00005555557a2bc3 in Ffuncall (nargs=2, args=0x7fffffffc1e8) at eval.c:2805
> #169 0x00005555557ee947 in exec_byte_code (bytestr=XIL(0x7fffe72c52c4), vector=XIL(0x7fffe72c192d), maxdepth=make_number(12), args_template=make_number(0), nargs=0, args=0x7fffffffcd18) at bytecode.c:633
> #170 0x00005555557a362a in funcall_lambda (fun=XIL(0x7fffe72c18fd), nargs=0, arg_vector=0x7fffffffcd18) at eval.c:2998
> #171 0x00005555557a2bc3 in Ffuncall (nargs=1, args=0x7fffffffcd10) at eval.c:2805
> #172 0x00005555557ee947 in exec_byte_code (bytestr=XIL(0x7fffe72c5f24), vector=XIL(0x7fffe72c54a5), maxdepth=make_number(12), args_template=make_number(0), nargs=0, args=0x7fffffffd300) at bytecode.c:633
> #173 0x00005555557a362a in funcall_lambda (fun=XIL(0x7fffe72c5475), nargs=0, arg_vector=0x7fffffffd300) at eval.c:2998
> #174 0x00005555557a338e in apply_lambda (fun=XIL(0x7fffe72c5475), args=XIL(0), count=4) at eval.c:2935
> #175 0x00005555557a16da in eval_sub (form=XIL(0x7fffe741c443)) at eval.c:2319
> #176 0x00005555557a0b39 in Feval (form=XIL(0x7fffe741c443), lexical=XIL(0)) at eval.c:2103
> #177 0x00005555556eaa70 in top_level_2 () at keyboard.c:1100
> #178 0x000055555579f282 in internal_condition_case (bfun=0x5555556eaa4d <top_level_2>, handlers=XIL(0x5550), hfun=0x5555556ea4cf <cmd_error>) at eval.c:1352
> #179 0x00005555556eaab8 in top_level_1 (ignore=XIL(0)) at keyboard.c:1108
> #180 0x000055555579eaf3 in internal_catch (tag=XIL(0xcb70), func=0x5555556eaa72 <top_level_1>, arg=XIL(0)) at eval.c:1113
> #181 0x00005555556ea999 in command_loop () at keyboard.c:1069
> #182 0x00005555556ea09e in recursive_edit_1 () at keyboard.c:714
> #183 0x00005555556ea222 in Frecursive_edit () at keyboard.c:786
> #184 0x00005555556e8030 in main (argc=15, argv=0x7fffffffd848) at emacs.c:1962

> Lisp Backtrace:
> "color-distance" (0xffff2bd8)
> "css--contrasty-color" (0xffff30b0)
> "css--fontify-region" (0xffff3598)
> 0xe6f0a888 PVEC_COMPILED
> "apply" (0xffff3aa0)
> "if" (0xffff3c48)
> "polymode-inhibit-during-initialization" (0xffff3e68)
> "apply" (0xffff4038)
> "font-lock-fontify-region" (0xffff44a8)
> 0x576a20c0 PVEC_COMPILED
> "run-hook-wrapped" (0xffff4b60)
> "jit-lock--run-functions" (0xffff4fd0)
> "save-restriction" (0xffff5208)
> "if" (0xffff5348)
> "condition-case" (0xffff5588)
> "let" (0xffff5788)
> "if" (0xffff58f8)
> "progn" (0xffff5a38)
> "if" (0xffff5b78)
> "progn" (0xffff5cb8)
> "unwind-protect" (0xffff5df8)
> "let*" (0xffff5fa8)
> "let" (0xffff61a8)
> "let" (0xffff63a8)
> "progn" (0xffff64e8)
> "if" (0xffff6628)
> 0x578a58b0 Lisp type 3
> "funcall" (0xffff6840)
> "while" (0xffff6a18)
> "let*" (0xffff6bc8)
> "save-restriction" (0xffff6d48)
> "pm-map-over-spans" (0xffff6f00)
> "save-excursion" (0xffff7148)
> "save-restriction" (0xffff72c8)
> "let*" (0xffff7478)
> "if" (0xffff75e8)
> "poly-lock-fontify-now" (0xffff7820)
> 0xe7014470 PVEC_COMPILED
> "apply" (0xffff7cf0)
> "if" (0xffff7e98)
> "polymode-inhibit-during-initialization" (0xffff8260)
> "apply" (0xffff8258)
> "font-lock-ensure" (0xffff8650)
> "save-current-buffer" (0xffff8868)
> "let" (0xffff8a78)
> "kill-buffer" (0xffff8b88)
> 0x571544d0 Lisp type 3
> "ert--run-test-internal" (0xffff9330)
> "ert-run-test" (0xffff9868)
> "ert-run-or-rerun-test" (0xffff9da0)
> "ert-run-tests" (0xffffa2b0)
> "ert-run-tests-batch" (0xffffa758)
> "ert-run-tests-batch-and-exit" (0xffffab70)
> "eval-buffer" (0xffffafa0)
> "load-with-code-conversion" (0xffffb4e8)
> "load" (0xffffb8d8)
> "command-line-1" (0xffffc1f0)
> "command-line" (0xffffcd18)
> "normal-top-level" (0xffffd300)
> (gdb) 




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#36019; Package emacs. (Fri, 31 May 2019 20:31:02 GMT) Full text and rfc822 format available.

Message #11 received at 36019 <at> debbugs.gnu.org (full text, mbox):

From: Alex Gramiak <agrambot <at> gmail.com>
To: Vitalie Spinu <spinuvit <at> gmail.com>
Cc: 36019 <at> debbugs.gnu.org
Subject: Re: bug#36019: 27.0.50; Segfault in color_distance in emacs --batch
Date: Fri, 31 May 2019 14:30:31 -0600
[Message part 1 (text/plain, inline)]
Vitalie Spinu <spinuvit <at> gmail.com> writes:

> I have bisected it to:
>
> yes: 5d8b0fadee * | Add terminal hook query_frame_background_color
> err: 41e20ee4bc * | Add terminal hook defined_color_hook
> err: a411517faf * | Rename generic x_* identifiers
> err: da9541dd10 * | Add prefixes to some window system-dependent procedures
>  no: ff4e31fa32 * |  Rename generic x_* procedures in xdisp.c
>
> The commits marked with err: don't build. So should be one of the top 4 commits.
>
>
>   Vitalie
>
>>> On Fri, May 31 2019 10:30, Vitalie Spinu wrote:
>
>> Hi,
>
>> One of my packages started segfaulting in tests after emacs 27 update. I cannot
>> reproduce it in an X session, nor make a simple reproducible example. Hopefully
>> the backtraces will be enough.
>
>> The issue appeared in the last 4-5 months. I can bisect if needed.

I can't reproduce this, but looking at the likely culprit (41e20ee4bc)
it's likely due to the frame being the initial frame. Just to make sure,
could you test with this simple primitive check for this?

[color_distance.diff (text/x-patch, inline)]
diff --git a/src/xfaces.c b/src/xfaces.c
index d211ec8c46..10cfa50526 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -4207,6 +4207,11 @@ two lists of the form (RED GREEN BLUE) aforementioned. */)
   struct frame *f = decode_live_frame (frame);
   Emacs_Color cdef1, cdef2;
 
+  fprintf (stderr,
+           "Initial: %d, hook: %p",
+           FRAME_INITIAL_P (f),
+           FRAME_TERMINAL (f)->defined_color_hook);
+
   if (!(CONSP (color1) && parse_rgb_list (color1, &cdef1))
       && !(STRINGP (color1)
            && FRAME_TERMINAL (f)->defined_color_hook (f,
[Message part 3 (text/plain, inline)]
I expect that it will print "Initial: 1, hook: 0x0" before segfaulting.

If this is the case, then perhaps the initial frame should also have
this hook defined, though this would be the first such hook defined for
the initial frame type.

If this is correct, then the following diff should fix this:

[tty_defined_color.diff (text/x-patch, inline)]
diff --git a/src/terminal.c b/src/terminal.c
index 0ee0121e35..ed2cfead7a 100644
--- a/src/terminal.c
+++ b/src/terminal.c
@@ -624,6 +624,7 @@ init_initial_terminal (void)
   initial_terminal->kboard = initial_kboard;
   initial_terminal->delete_terminal_hook = &delete_initial_terminal;
   initial_terminal->delete_frame_hook = &initial_free_frame_resources;
+  initial_terminal->defined_color_hook = &tty_defined_color; /* xfaces.c */
   /* Other hooks are NULL by default.  */
 
   return initial_terminal;

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#36019; Package emacs. (Sat, 01 Jun 2019 06:23:02 GMT) Full text and rfc822 format available.

Message #14 received at 36019 <at> debbugs.gnu.org (full text, mbox):

From: Vitalie Spinu <spinuvit <at> gmail.com>
To: Alex Gramiak <agrambot <at> gmail.com>
Cc: 36019 <at> debbugs.gnu.org
Subject: Re: bug#36019: 27.0.50; Segfault in color_distance in emacs --batch
Date: Sat, 01 Jun 2019 08:22:23 +0200
Hi Alex,

You are right on spot. 

Before the crash:
   
   Initial: 1, hook: (nil)
   

Your fix does help and the following is printed:

  Initial: 1, hook: 0x561a49f72240Initial: 1, hook: 0x561a49f72240Initial: 1,
  hook: 0x561a49f72240Initial: 1, hook: 0x561a49f72240Initial: 1, hook:
  0x561a49f72240Initial: 1, hook: 0x561a49f72240Initial: 1, hook:
  0x561a49f72240Initial: 1, hook: 0x561a49f72240Initial: 1, hook:
  0x561a49f72240Initial: 1, hook: 0x561a49f72240
  

Thanks for the quick resolution. 


  Vitalie

>> On Fri, May 31 2019 14:30, Alex Gramiak wrote:

> Vitalie Spinu <spinuvit <at> gmail.com> writes:

>> I have bisected it to:
>>
>> yes: 5d8b0fadee * | Add terminal hook query_frame_background_color
>> err: 41e20ee4bc * | Add terminal hook defined_color_hook
>> err: a411517faf * | Rename generic x_* identifiers
>> err: da9541dd10 * | Add prefixes to some window system-dependent procedures
>>  no: ff4e31fa32 * |  Rename generic x_* procedures in xdisp.c
>>
>> The commits marked with err: don't build. So should be one of the top 4 commits.
>>
>>
>>   Vitalie
>>
>>>> On Fri, May 31 2019 10:30, Vitalie Spinu wrote:
>>
>>> Hi,
>>
>>> One of my packages started segfaulting in tests after emacs 27 update. I cannot
>>> reproduce it in an X session, nor make a simple reproducible example. Hopefully
>>> the backtraces will be enough.
>>
>>> The issue appeared in the last 4-5 months. I can bisect if needed.

> I can't reproduce this, but looking at the likely culprit (41e20ee4bc)
> it's likely due to the frame being the initial frame. Just to make sure,
> could you test with this simple primitive check for this?

> diff --git a/src/xfaces.c b/src/xfaces.c
> index d211ec8c46..10cfa50526 100644
> --- a/src/xfaces.c
> +++ b/src/xfaces.c
> @@ -4207,6 +4207,11 @@ two lists of the form (RED GREEN BLUE) aforementioned. */)
>    struct frame *f = decode_live_frame (frame);
>    Emacs_Color cdef1, cdef2;

> +  fprintf (stderr,
> +           "Initial: %d, hook: %p",
> +           FRAME_INITIAL_P (f),
> +           FRAME_TERMINAL (f)->defined_color_hook);
> +
>    if (!(CONSP (color1) && parse_rgb_list (color1, &cdef1))
>        && !(STRINGP (color1)
>             && FRAME_TERMINAL (f)->defined_color_hook (f,


> I expect that it will print "Initial: 1, hook: 0x0" before segfaulting.

> If this is the case, then perhaps the initial frame should also have
> this hook defined, though this would be the first such hook defined for
> the initial frame type.

> If this is correct, then the following diff should fix this:

> diff --git a/src/terminal.c b/src/terminal.c
> index 0ee0121e35..ed2cfead7a 100644
> --- a/src/terminal.c
> +++ b/src/terminal.c
> @@ -624,6 +624,7 @@ init_initial_terminal (void)
>    initial_terminal->kboard = initial_kboard;
>    initial_terminal->delete_terminal_hook = &delete_initial_terminal;
>    initial_terminal->delete_frame_hook = &initial_free_frame_resources;
> +  initial_terminal->defined_color_hook = &tty_defined_color; /* xfaces.c */
>    /* Other hooks are NULL by default.  */

>    return initial_terminal;




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#36019; Package emacs. (Wed, 07 Aug 2019 06:58:02 GMT) Full text and rfc822 format available.

Message #17 received at 36019 <at> debbugs.gnu.org (full text, mbox):

From: Vitalie Spinu <spinuvit <at> gmail.com>
To: Alex Gramiak <agrambot <at> gmail.com>
Cc: 36019 <at> debbugs.gnu.org
Subject: Re: bug#36019: 27.0.50; Segfault in color_distance in emacs --batch
Date: Wed, 07 Aug 2019 08:57:15 +0200
Hi Alex,

The bug is still in the master. Would it be ok to push the fix?

Thanks,

  Vitalie

>> On Sat, Jun 01 2019 08:22, Vitalie Spinu wrote:

> Hi Alex,

> You are right on spot. 

> Before the crash:

>    Initial: 1, hook: (nil)

> Your fix does help and the following is printed:

>   Initial: 1, hook: 0x561a49f72240Initial: 1, hook: 0x561a49f72240Initial: 1,
>   hook: 0x561a49f72240Initial: 1, hook: 0x561a49f72240Initial: 1, hook:
>   0x561a49f72240Initial: 1, hook: 0x561a49f72240Initial: 1, hook:
>   0x561a49f72240Initial: 1, hook: 0x561a49f72240Initial: 1, hook:
>   0x561a49f72240Initial: 1, hook: 0x561a49f72240

> Thanks for the quick resolution. 

>   Vitalie

>>> On Fri, May 31 2019 14:30, Alex Gramiak wrote:

>> Vitalie Spinu <spinuvit <at> gmail.com> writes:

>>> I have bisected it to:
>>>
>>> yes: 5d8b0fadee * | Add terminal hook query_frame_background_color
>>> err: 41e20ee4bc * | Add terminal hook defined_color_hook
>>> err: a411517faf * | Rename generic x_* identifiers
>>> err: da9541dd10 * | Add prefixes to some window system-dependent procedures
>>>  no: ff4e31fa32 * |  Rename generic x_* procedures in xdisp.c
>>>
>>> The commits marked with err: don't build. So should be one of the top 4 commits.
>>>
>>>
>>>   Vitalie
>>>
>>>>> On Fri, May 31 2019 10:30, Vitalie Spinu wrote:
>>>
>>>> Hi,
>>>
>>>> One of my packages started segfaulting in tests after emacs 27 update. I cannot
>>>> reproduce it in an X session, nor make a simple reproducible example. Hopefully
>>>> the backtraces will be enough.
>>>
>>>> The issue appeared in the last 4-5 months. I can bisect if needed.

>> I can't reproduce this, but looking at the likely culprit (41e20ee4bc)
>> it's likely due to the frame being the initial frame. Just to make sure,
>> could you test with this simple primitive check for this?

>> diff --git a/src/xfaces.c b/src/xfaces.c
>> index d211ec8c46..10cfa50526 100644
>> --- a/src/xfaces.c
>> +++ b/src/xfaces.c
>> @@ -4207,6 +4207,11 @@ two lists of the form (RED GREEN BLUE) aforementioned. */)
>>    struct frame *f = decode_live_frame (frame);
>>    Emacs_Color cdef1, cdef2;

>> +  fprintf (stderr,
>> +           "Initial: %d, hook: %p",
>> +           FRAME_INITIAL_P (f),
>> +           FRAME_TERMINAL (f)->defined_color_hook);
>> +
>>    if (!(CONSP (color1) && parse_rgb_list (color1, &cdef1))
>>        && !(STRINGP (color1)
>>             && FRAME_TERMINAL (f)->defined_color_hook (f,

>> I expect that it will print "Initial: 1, hook: 0x0" before segfaulting.

>> If this is the case, then perhaps the initial frame should also have
>> this hook defined, though this would be the first such hook defined for
>> the initial frame type.

>> If this is correct, then the following diff should fix this:

>> diff --git a/src/terminal.c b/src/terminal.c
>> index 0ee0121e35..ed2cfead7a 100644
>> --- a/src/terminal.c
>> +++ b/src/terminal.c
>> @@ -624,6 +624,7 @@ init_initial_terminal (void)
>>    initial_terminal->kboard = initial_kboard;
>>    initial_terminal->delete_terminal_hook = &delete_initial_terminal;
>>    initial_terminal->delete_frame_hook = &initial_free_frame_resources;
>> +  initial_terminal->defined_color_hook = &tty_defined_color; /* xfaces.c */
>>    /* Other hooks are NULL by default.  */

>>    return initial_terminal;




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#36019; Package emacs. (Wed, 07 Aug 2019 14:30:02 GMT) Full text and rfc822 format available.

Message #20 received at 36019 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Vitalie Spinu <spinuvit <at> gmail.com>
Cc: 36019 <at> debbugs.gnu.org, agrambot <at> gmail.com
Subject: Re: bug#36019: 27.0.50; Segfault in color_distance in emacs --batch
Date: Wed, 07 Aug 2019 17:29:23 +0300
> From: Vitalie Spinu <spinuvit <at> gmail.com>
> Date: Wed, 07 Aug 2019 08:57:15 +0200
> Cc: 36019 <at> debbugs.gnu.org
> 
> Hi Alex,
> 
> The bug is still in the master. Would it be ok to push the fix?

Sorry for the delay.  I will look into it in a couple of days if no
one beats me to it.




Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Sat, 10 Aug 2019 08:48:01 GMT) Full text and rfc822 format available.

Notification sent to Vitalie Spinu <spinuvit <at> gmail.com>:
bug acknowledged by developer. (Sat, 10 Aug 2019 08:48:02 GMT) Full text and rfc822 format available.

Message #25 received at 36019-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: spinuvit <at> gmail.com
Cc: 36019-done <at> debbugs.gnu.org, agrambot <at> gmail.com
Subject: Re: bug#36019: 27.0.50; Segfault in color_distance in emacs --batch
Date: Sat, 10 Aug 2019 11:47:45 +0300
> Date: Wed, 07 Aug 2019 17:29:23 +0300
> From: Eli Zaretskii <eliz <at> gnu.org>
> Cc: 36019 <at> debbugs.gnu.org, agrambot <at> gmail.com
> 
> > From: Vitalie Spinu <spinuvit <at> gmail.com>
> > Date: Wed, 07 Aug 2019 08:57:15 +0200
> > Cc: 36019 <at> debbugs.gnu.org
> > 
> > Hi Alex,
> > 
> > The bug is still in the master. Would it be ok to push the fix?
> 
> Sorry for the delay.  I will look into it in a couple of days if no
> one beats me to it.

Done.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 07 Sep 2019 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 229 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.