From unknown Sun Jun 15 08:44:16 2025 X-Loop: help-debbugs@gnu.org Subject: bug#36019: 27.0.50; Segfault in color_distance in emacs --batch Resent-From: Vitalie Spinu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 31 May 2019 08:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 36019 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 36019@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.155929144320916 (code B ref -1); Fri, 31 May 2019 08:31:01 +0000 Received: (at submit) by debbugs.gnu.org; 31 May 2019 08:30:43 +0000 Received: from localhost ([127.0.0.1]:34756 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hWcvx-0005RF-MZ for submit@debbugs.gnu.org; Fri, 31 May 2019 04:30:42 -0400 Received: from eggs.gnu.org ([209.51.188.92]:42968) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hWcvv-0005Qq-Fp for submit@debbugs.gnu.org; Fri, 31 May 2019 04:30:40 -0400 Received: from lists.gnu.org ([209.51.188.17]:46198) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hWcvq-0004BE-BC for submit@debbugs.gnu.org; Fri, 31 May 2019 04:30:34 -0400 Received: from eggs.gnu.org ([209.51.188.92]:57326) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hWcvj-0000oo-MM for bug-gnu-emacs@gnu.org; Fri, 31 May 2019 04:30:34 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hWcvg-0003mp-9C for bug-gnu-emacs@gnu.org; Fri, 31 May 2019 04:30:27 -0400 Received: from mail-ed1-x52d.google.com ([2a00:1450:4864:20::52d]:36169) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hWcvf-0003hm-UE for bug-gnu-emacs@gnu.org; Fri, 31 May 2019 04:30:24 -0400 Received: by mail-ed1-x52d.google.com with SMTP id a8so13373980edx.3 for ; Fri, 31 May 2019 01:30:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=jLc+8hufmHvcmjWeUwQ0ZlGjAIEF0f+kyti3DLfZF3g=; b=rfR2bWNxfFeLfXB7DGniTTgMD4SFoQoRL5ZyKkJw+n6nfqO8XoV5+uxUXvh6Vk81La jbHnFWq1LGxN1n5BxvGbm+kBgw9YPzpbvFBrDWoyzK0jH4wVLVuPm87eh3bXADW6JI3j soZEZsUBa5qY1L/CjkDAiAOk00kwb9ymUBQ+Lg0F61+UW9DdaLiUQ0jjgTi8bbvT0FLX LB/OINu2ItdcojAC6JCZcrmPD1LqUMkabxMVtDaMpkVB75ltSYp7BX996D9AnJsE3+pB FrrlLVL7mf1ej9QjPYWGQo8j0j+jeIrnzNg1A+uLLFHTi+jljvcE8ltNZnmasvpC/PDo lbuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=jLc+8hufmHvcmjWeUwQ0ZlGjAIEF0f+kyti3DLfZF3g=; b=i4R6wM3cOwpKhfyLM7koxldbBiAhA80Dj06fWvpzE9kSQKUjYTnf0gvOtUgcT2F4q6 vCrfGJqwIfNwBOukdZpdkObuwrPXYtTIlJbSymLbNwF81ntUOcicl6t5mAx3Ee4EuJyn R0zrSdJ0Nk5DExBW98zKvGRL2xy89euuVx7mGu7QddOmu6jy1W95HMzy+hKCILc6h2H/ 3SACB6tVl9BbXWsWw8xZqNcjGI1LHhx5kheGsHGFr90PyieFDTd96QJZWmid39oqQmqH BF5Yb8/xlFWsFxYPqX4aA2oNBcvMJ9MdNsIyBtcnV5jkD3MBi/EWI/kAiTYh9KXvW4UB WLeg== X-Gm-Message-State: APjAAAW6dWvp73LY20ZmmXAPGlajYVyvZFWTR9M8HNk5W7Ffkk0B6xs+ vCxf52A/mB3X4TO8gNUSeqHUUyJP X-Google-Smtp-Source: APXvYqyUOC3ePLXnqrcb5o7BpcCDvva4HsmgB2b/b1PF1ALwx5QxdxZQD6P55gLBJYBcNIhOm5GliQ== X-Received: by 2002:a50:d791:: with SMTP id w17mr9766391edi.223.1559291421621; Fri, 31 May 2019 01:30:21 -0700 (PDT) Received: from localhost ([145.5.121.125]) by smtp.gmail.com with ESMTPSA id e46sm1403998edd.80.2019.05.31.01.30.20 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 31 May 2019 01:30:20 -0700 (PDT) From: Vitalie Spinu Date: Fri, 31 May 2019 10:30:20 +0200 Message-ID: <87y32nqb4z.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::52d X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) 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 , 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 , 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 ) 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 , 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 , 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 , 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 , 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 , handlers=XIL(0x5550), hfun=0x5555556ea4cf ) 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 , 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) From unknown Sun Jun 15 08:44:16 2025 X-Loop: help-debbugs@gnu.org Subject: bug#36019: 27.0.50; Segfault in color_distance in emacs --batch Resent-From: Vitalie Spinu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 31 May 2019 15:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36019 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 36019@debbugs.gnu.org Cc: agrambot@gmail.com Received: via spool by 36019-submit@debbugs.gnu.org id=B36019.155931611418643 (code B ref 36019); Fri, 31 May 2019 15:22:01 +0000 Received: (at 36019) by debbugs.gnu.org; 31 May 2019 15:21:54 +0000 Received: from localhost ([127.0.0.1]:35960 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hWjLt-0004qW-6g for submit@debbugs.gnu.org; Fri, 31 May 2019 11:21:54 -0400 Received: from mail-ed1-f67.google.com ([209.85.208.67]:46270) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hWjLq-0004q8-CS for 36019@debbugs.gnu.org; Fri, 31 May 2019 11:21:51 -0400 Received: by mail-ed1-f67.google.com with SMTP id n12so7125421edt.13 for <36019@debbugs.gnu.org>; Fri, 31 May 2019 08:21:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=tw2dc/+1UPT+Jx7K2pRWGQFYf6jcGp8W9vVI1dvPwzk=; b=tgfBwqiiGpb+KYdOLAfxis2FjxzqbZ9C3ciIcXRlndUl8Am6DnOJVjoS5pPojbdjZ9 XUeyOklAM8Qh/q3Z3Ip1C5lAYkdtUeP5j4Fj56TUYeuLuyeCxng/apLP2kwXroXN62/O wAsB1hxh3Ss3FW0i0slSn5HC8YDy5xdrtkvfF8vuCW7qDeXB+y+VcJ78cl+EjS3ImVn5 bNcw1f+S/W+xTBS2iqFkvWxjl3S9GqlKv+EAe/T9RVoC2xHyZmRAf7rvIyWZ5m8A1nKW oyH1JX2zMICLDyjbIR66kF5c/yECnZVL4j1CM2+W8mNxmNA09XkptGZXDyuprsNRQSNJ +9WQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=tw2dc/+1UPT+Jx7K2pRWGQFYf6jcGp8W9vVI1dvPwzk=; b=C7mSEvMmtnx/hMOOqAAgU8MBKJKicAYxbfa+M9Y72utK1qHvN4vccI981dCM/sQNfb qxxYNsgzS1GVN6c5S1eSLIwJof3avGOs9zQlpj/QDiz7plqi0aCRdkaajPERiDfUsM7D LzY9LN2fvrVEVQZbHj/xV3He44rN+6pKIo7G0j4FAZiouS00mmlV68In4FwkP4MB5c4b /7EnnGFFb+ZXgvIl4jfjqyO6wVqbZurpjn/+Y8k2U2RmXGgQEVqkjeSQYnv8IgONBd61 /KPHPo7vnQZ4uIFcqJkCpLjWtMsNZO7Cn7OGftcChX3uJJf6qc1LAnLOApAwa98uAZD1 LbYg== X-Gm-Message-State: APjAAAXW/xVhesTUKlWUE69HYhJjiIyEbXue3K3Iy+8DsnqJUvdY7qL3 endkx5t9Bj/AvuAs5m10FleA0EcQ X-Google-Smtp-Source: APXvYqyxYosT4VqA//BAHMbC+3hmetCbojb6tzlbc7AM2E8ITd10vhwRnE4lkjRPbSxxW0dRTiRHwA== X-Received: by 2002:a17:906:259a:: with SMTP id m26mr9946878ejb.230.1559316102933; Fri, 31 May 2019 08:21:42 -0700 (PDT) Received: from localhost ([145.5.121.125]) by smtp.gmail.com with ESMTPSA id x6sm1030721eju.33.2019.05.31.08.21.41 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 31 May 2019 08:21:42 -0700 (PDT) From: Vitalie Spinu References: <87y32nqb4z.fsf@gmail.com> Date: Fri, 31 May 2019 17:21:41 +0200 In-Reply-To: <87y32nqb4z.fsf@gmail.com> (Vitalie Spinu's message of "Fri, 31 May 2019 10:30:20 +0200") Message-ID: <87blzik5tm.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.4 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.4 (-) 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 , 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 , 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 ) 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 , 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 , 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 , 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 , 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 , handlers=XIL(0x5550), hfun=0x5555556ea4cf ) 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 , 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) From unknown Sun Jun 15 08:44:16 2025 X-Loop: help-debbugs@gnu.org Subject: bug#36019: 27.0.50; Segfault in color_distance in emacs --batch Resent-From: Alex Gramiak Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 31 May 2019 20:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36019 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Vitalie Spinu Cc: 36019@debbugs.gnu.org Received: via spool by 36019-submit@debbugs.gnu.org id=B36019.155933463512438 (code B ref 36019); Fri, 31 May 2019 20:31:02 +0000 Received: (at 36019) by debbugs.gnu.org; 31 May 2019 20:30:35 +0000 Received: from localhost ([127.0.0.1]:36344 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hWoAd-0003EY-BF for submit@debbugs.gnu.org; Fri, 31 May 2019 16:30:35 -0400 Received: from mail-pl1-f176.google.com ([209.85.214.176]:41450) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hWoAa-0003EE-MV for 36019@debbugs.gnu.org; Fri, 31 May 2019 16:30:33 -0400 Received: by mail-pl1-f176.google.com with SMTP id s24so4306228plr.8 for <36019@debbugs.gnu.org>; Fri, 31 May 2019 13:30:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=beOb9FNINl4KVer3Gwb7Mg/sSmjg5yWVkvQpW1BSMCg=; b=fdwlw769TodqTc879PKACWhJibdHWqDdXWl+7A+Keu5wg0TwJVOAQ+il3CGnacp5fu wqBaQHcw9dPOOZraMDXSDFkzQtt4bMO3bUdSyBv16WoPEce22hP0M3CrEr5bR1G6S0p+ DcBTZtRfoTvOHEFEj6egsGCtGJl6oq8RWl2yzv2d1dzgbCXCd3pmNP6AH+SzwMQM6GPe 8jRxGYYhvUa23xPHm9KpDU8fdk6lQUxnl+nj5ABov05t8Z7wxDIejo7QgaEXssnUtbLe H+9i95tFwgg8U2KX5iZVt+w5J1o0PoLBMOiIsUmBHSfipLjtCSRUpTtclO2VGrZu3mRp 4nxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=beOb9FNINl4KVer3Gwb7Mg/sSmjg5yWVkvQpW1BSMCg=; b=NiWaBiBkCQlS+avYxlz6pSkrWGZ5UoB6XABGeiw53Et6dChRELiAAJGqHj8bniOPVM LX6JfLVTSau/dUZyAXRNS/7b825e/8JkQQNmUCyu+2OutHbz4OqFR+XdPeCkWzjCRe4R kWzpoez3YLeGgYwKpAzYIGBTekvT2VuZhcv8hEeM7Pi4jCVvHirm9dunFh1WO/qbRXeY 0TlN2SlEkAv78frY7K9gWi8d9RMbYPGXwI5I7IiTB+rb3druqe+4xflqPqQbMcEH53a0 OJTCoooa1U1/62KQzLOlrzeK6RzSi27V9eJBoyCKYqo+z0rPNNut3+R91eNB0bwji66t gMOg== X-Gm-Message-State: APjAAAW+iNho9YayBkGNqP3o1C20E6Wvk3iW2asoUWT8jVKIxBho7CLk XHA+Uvr0f5HBaf4prWYABnxdHN5m X-Google-Smtp-Source: APXvYqz1gGcR8oUTwawGicPlhhw/kjnE3IzxXLRcDIkbMZnf0hsZw9pfdDf/AdSPTAkGQliQU2MJdQ== X-Received: by 2002:a17:902:b083:: with SMTP id p3mr11832627plr.151.1559334626767; Fri, 31 May 2019 13:30:26 -0700 (PDT) Received: from lylat ([2604:3d09:e37f:1500:1a72:4878:e793:7302]) by smtp.gmail.com with ESMTPSA id q6sm10038236pfg.7.2019.05.31.13.30.24 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 31 May 2019 13:30:25 -0700 (PDT) From: Alex Gramiak References: <87y32nqb4z.fsf@gmail.com> <87blzik5tm.fsf@gmail.com> Date: Fri, 31 May 2019 14:30:31 -0600 In-Reply-To: <87blzik5tm.fsf@gmail.com> (Vitalie Spinu's message of "Fri, 31 May 2019 17:21:41 +0200") Message-ID: <87ftouicyg.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain Vitalie Spinu 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? --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=color_distance.diff 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, --=-=-= Content-Type: text/plain 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: --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=tty_defined_color.diff Content-Description: tty_defined_color 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; --=-=-=-- From unknown Sun Jun 15 08:44:16 2025 X-Loop: help-debbugs@gnu.org Subject: bug#36019: 27.0.50; Segfault in color_distance in emacs --batch Resent-From: Vitalie Spinu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 01 Jun 2019 06:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36019 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Alex Gramiak Cc: 36019@debbugs.gnu.org Received: via spool by 36019-submit@debbugs.gnu.org id=B36019.155937015524220 (code B ref 36019); Sat, 01 Jun 2019 06:23:02 +0000 Received: (at 36019) by debbugs.gnu.org; 1 Jun 2019 06:22:35 +0000 Received: from localhost ([127.0.0.1]:36849 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hWxPX-0006IZ-35 for submit@debbugs.gnu.org; Sat, 01 Jun 2019 02:22:35 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:37363) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hWxPV-0006IM-Ek for 36019@debbugs.gnu.org; Sat, 01 Jun 2019 02:22:34 -0400 Received: by mail-ed1-f68.google.com with SMTP id w37so18047597edw.4 for <36019@debbugs.gnu.org>; Fri, 31 May 2019 23:22:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=/MVrD/TgXVDf4QWS6nMnMFOwIS+2R/oASbDQux0O5GE=; b=NbXSfBSkD2QSwMB7SxHv4b43aeAu5qFHJcG3+vGVdFh6ph0CUSE9q78ATFriS545bh A0K8KqNmH8jbhPYx89nMRKgSBPeOkCLzp/9VFB8KV1pSafYmnTvS3r96mo9QJn9RAyem wn4EBFp+ERINeOjC62PPsTyly4yQFh9q7SlT8WUxn5DpZRjqSkIdlZltGm0jPPgBPB5B HBSNM2Oz8tYPCxx4fChkn2CfROTtud395vgKNCo0npncbkKl2YNv8yNSyYzHseUoltve J7Xq4+86Rzhrz1HW3IroE1VNonW9BwMW+/zUN0Jz43V8fuJaT0nQi139/5sYTeOv76mN MzjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=/MVrD/TgXVDf4QWS6nMnMFOwIS+2R/oASbDQux0O5GE=; b=S3BejXtPpub9dNwqE6ocMc5WIiPc7Luc8sFCSfFkfVA4Un3HIA9/EnTXb7CAcuVbzg ANUxeIP/UkuVT3/OJpQNIdCuhKtdMEhCLl3ynR5JocW4SZZrrBKfm+dkWXWdrs8ODgo1 7ER9aMjVuc6/+4AJrJGU6nmTVuHMDfYjzfJ0ezPJUuUlQWeKWpE2LLcRDj08EAPxl39b qfcKj/pZ+0d6HpsMeFBUPMCafopLUFwe2jaFyIDbYToTQ1TZF378j+IURShnWO4JEUXv q5e5UXqxuc6Ga4/dHEnY5lEJil8UE4LOpyLXZP7Bz+zZ4fVQQl+bPAjdj/1iq661I6KF pufA== X-Gm-Message-State: APjAAAUag5Ix2OHxYLC38g+D9TzVTsyOoqjOlwxZMlq0ujGqGqNLfoAg alvoUSMR0PxyMD3jHB9OjuI= X-Google-Smtp-Source: APXvYqyVYNZglQpy2bGDsj+v88IY4x/YlQkszGUX3WsCUOPRsRpkM1MO/cZ9pd8LYkIG0LHM9xPYOA== X-Received: by 2002:a17:906:e9d3:: with SMTP id kb19mr12737181ejb.248.1559370147262; Fri, 31 May 2019 23:22:27 -0700 (PDT) Received: from localhost (2001-1c00-0a17-1300-ec5d-7b0c-b812-9602.cable.dynamic.v6.ziggo.nl. [2001:1c00:a17:1300:ec5d:7b0c:b812:9602]) by smtp.gmail.com with ESMTPSA id e45sm2100844edb.12.2019.05.31.23.22.25 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 31 May 2019 23:22:26 -0700 (PDT) From: Vitalie Spinu References: <87y32nqb4z.fsf@gmail.com> <87blzik5tm.fsf@gmail.com> <87ftouicyg.fsf@gmail.com> Date: Sat, 01 Jun 2019 08:22:23 +0200 In-Reply-To: <87ftouicyg.fsf@gmail.com> (Alex Gramiak's message of "Fri, 31 May 2019 14:30:31 -0600") Message-ID: <877ea5keow.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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 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; From unknown Sun Jun 15 08:44:16 2025 X-Loop: help-debbugs@gnu.org Subject: bug#36019: 27.0.50; Segfault in color_distance in emacs --batch Resent-From: Vitalie Spinu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 07 Aug 2019 06:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36019 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Alex Gramiak Cc: 36019@debbugs.gnu.org Received: via spool by 36019-submit@debbugs.gnu.org id=B36019.156516105022376 (code B ref 36019); Wed, 07 Aug 2019 06:58:02 +0000 Received: (at 36019) by debbugs.gnu.org; 7 Aug 2019 06:57:30 +0000 Received: from localhost ([127.0.0.1]:38051 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hvFt4-0005op-Ex for submit@debbugs.gnu.org; Wed, 07 Aug 2019 02:57:30 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:41660) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hvFt2-0005oW-JH for 36019@debbugs.gnu.org; Wed, 07 Aug 2019 02:57:29 -0400 Received: by mail-wr1-f65.google.com with SMTP id c2so86955990wrm.8 for <36019@debbugs.gnu.org>; Tue, 06 Aug 2019 23:57:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=8G3lq7gXwmovo5qLqeWpbo/6RvPvnRstZW9d09dHpzE=; b=r7qQanrwyU7EiJM3RYjZhKEnqnORN+oIRktiGzslbqJAl/H9ZcKfOJDKxrgXD1NDle 3WmitnoEmHhBHL1OMjr2GQ7sBoRXS8xbs6/MDhtujl9HbF8p8n0+b4iSwPRA8hvQfuGB Wf53tVgx5ZdgBdgfauAlkbmOzwS0ILO9eotlDcU/lVRluCuFAf+NozfEC9ATeJ31EOs6 LB1woK4G+AzDdxkvgL/cFidCLKjPeAjZyMUJQ/R+rX6+wWVTLkkwqkF+7Rcp/7kwJ5sJ NNRop/jRSF5Taa79nJMprZzFV/LCTo6WT2Dw2HjmjjkD4yM1fpsQ3l/wGf1Bf3qv6P4z PENA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=8G3lq7gXwmovo5qLqeWpbo/6RvPvnRstZW9d09dHpzE=; b=bcKt1ejiQJjvTz4HRw5xsUijiUYcwqXn+erx5AVYXKaC/AL1g9r/HwKtYLoU3OCoRi 9iRMwvIkLM9lEUX9afkT+0FQcmju70s7/H7xkuvQL8b/efOsh1FOdXIkqUyt3wUImHdL leDxwUfanFwjb46QQx1cLynFKCEMlROJoRPchD7Rpmmc29GMzgDAG3xpbwOinh00GrGI WV/yLkITSIzQqXu//DF6TWtzhpsEE1+8XQSbF/ausqAtC6t+HuVeUsyDghhQDAjQHtZR 2FesgcugHkBw4FQtZdXlmgUB/HObyP03DLt57cZx/BwpdtbFuIPs8/dDm2eoTZtQ264n YaNA== X-Gm-Message-State: APjAAAUzabNSmaVVuaLDaILXoXsoWOPEx8Yobzo0ClqJLZPZMY+mHhSS AQ9dCnFUqyjrECKI9fb3zW4= X-Google-Smtp-Source: APXvYqy3b5K848apGOt04i/Ms8mw8SdxIBKcO5q4S9FPwCmaS7YlV3wUjNZQHdJC3rEnx3vL52jTMw== X-Received: by 2002:adf:ea82:: with SMTP id s2mr8651328wrm.91.1565161042486; Tue, 06 Aug 2019 23:57:22 -0700 (PDT) Received: from localhost ([91.65.211.131]) by smtp.gmail.com with ESMTPSA id k9sm24324739wrd.46.2019.08.06.23.57.20 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 06 Aug 2019 23:57:21 -0700 (PDT) From: Vitalie Spinu References: <87y32nqb4z.fsf@gmail.com> <87blzik5tm.fsf@gmail.com> <87ftouicyg.fsf@gmail.com> <877ea5keow.fsf@gmail.com> Date: Wed, 07 Aug 2019 08:57:15 +0200 In-Reply-To: <877ea5keow.fsf@gmail.com> (Vitalie Spinu's message of "Sat, 01 Jun 2019 08:22:23 +0200") Message-ID: <8736idxy2c.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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 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; From unknown Sun Jun 15 08:44:16 2025 X-Loop: help-debbugs@gnu.org Subject: bug#36019: 27.0.50; Segfault in color_distance in emacs --batch Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 07 Aug 2019 14:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36019 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Vitalie Spinu Cc: 36019@debbugs.gnu.org, agrambot@gmail.com Received: via spool by 36019-submit@debbugs.gnu.org id=B36019.156518818213201 (code B ref 36019); Wed, 07 Aug 2019 14:30:02 +0000 Received: (at 36019) by debbugs.gnu.org; 7 Aug 2019 14:29:42 +0000 Received: from localhost ([127.0.0.1]:39182 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hvMwf-0003Qr-La for submit@debbugs.gnu.org; Wed, 07 Aug 2019 10:29:41 -0400 Received: from eggs.gnu.org ([209.51.188.92]:56412) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hvMwd-0003QZ-Nx for 36019@debbugs.gnu.org; Wed, 07 Aug 2019 10:29:40 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:45558) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hvMwY-0003Da-J3; Wed, 07 Aug 2019 10:29:34 -0400 Received: from [176.228.60.248] (port=1581 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hvMwX-0002EK-8S; Wed, 07 Aug 2019 10:29:33 -0400 Date: Wed, 07 Aug 2019 17:29:23 +0300 Message-Id: <83v9v9aw1o.fsf@gnu.org> From: Eli Zaretskii In-reply-to: <8736idxy2c.fsf@gmail.com> (message from Vitalie Spinu on Wed, 07 Aug 2019 08:57:15 +0200) References: <87y32nqb4z.fsf@gmail.com> <87blzik5tm.fsf@gmail.com> <87ftouicyg.fsf@gmail.com> <877ea5keow.fsf@gmail.com> <8736idxy2c.fsf@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Vitalie Spinu > Date: Wed, 07 Aug 2019 08:57:15 +0200 > Cc: 36019@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. From unknown Sun Jun 15 08:44:16 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Vitalie Spinu Subject: bug#36019: closed (Re: bug#36019: 27.0.50; Segfault in color_distance in emacs --batch) Message-ID: References: <83y3018kzy.fsf@gnu.org> <87y32nqb4z.fsf@gmail.com> X-Gnu-PR-Message: they-closed 36019 X-Gnu-PR-Package: emacs Reply-To: 36019@debbugs.gnu.org Date: Sat, 10 Aug 2019 08:48:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1565426882-22011-1" This is a multi-part message in MIME format... ------------=_1565426882-22011-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #36019: 27.0.50; Segfault in color_distance in emacs --batch which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 36019@debbugs.gnu.org. --=20 36019: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D36019 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1565426882-22011-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 36019-done) by debbugs.gnu.org; 10 Aug 2019 08:48:00 +0000 Received: from localhost ([127.0.0.1]:43429 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hwN2e-0005ip-Du for submit@debbugs.gnu.org; Sat, 10 Aug 2019 04:48:00 -0400 Received: from eggs.gnu.org ([209.51.188.92]:46840) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hwN2b-0005ia-EL for 36019-done@debbugs.gnu.org; Sat, 10 Aug 2019 04:47:58 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:51027) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hwN2W-0002eI-8c; Sat, 10 Aug 2019 04:47:52 -0400 Received: from [176.228.60.248] (port=1587 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hwN2V-0004aw-76; Sat, 10 Aug 2019 04:47:52 -0400 Date: Sat, 10 Aug 2019 11:47:45 +0300 Message-Id: <83y3018kzy.fsf@gnu.org> From: Eli Zaretskii To: spinuvit@gmail.com In-reply-to: <83v9v9aw1o.fsf@gnu.org> (message from Eli Zaretskii on Wed, 07 Aug 2019 17:29:23 +0300) Subject: Re: bug#36019: 27.0.50; Segfault in color_distance in emacs --batch References: <87y32nqb4z.fsf@gmail.com> <87blzik5tm.fsf@gmail.com> <87ftouicyg.fsf@gmail.com> <877ea5keow.fsf@gmail.com> <8736idxy2c.fsf@gmail.com> <83v9v9aw1o.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 36019-done Cc: 36019-done@debbugs.gnu.org, agrambot@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Wed, 07 Aug 2019 17:29:23 +0300 > From: Eli Zaretskii > Cc: 36019@debbugs.gnu.org, agrambot@gmail.com > > > From: Vitalie Spinu > > Date: Wed, 07 Aug 2019 08:57:15 +0200 > > Cc: 36019@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. ------------=_1565426882-22011-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 31 May 2019 08:30:43 +0000 Received: from localhost ([127.0.0.1]:34756 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hWcvx-0005RF-MZ for submit@debbugs.gnu.org; Fri, 31 May 2019 04:30:42 -0400 Received: from eggs.gnu.org ([209.51.188.92]:42968) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hWcvv-0005Qq-Fp for submit@debbugs.gnu.org; Fri, 31 May 2019 04:30:40 -0400 Received: from lists.gnu.org ([209.51.188.17]:46198) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hWcvq-0004BE-BC for submit@debbugs.gnu.org; Fri, 31 May 2019 04:30:34 -0400 Received: from eggs.gnu.org ([209.51.188.92]:57326) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hWcvj-0000oo-MM for bug-gnu-emacs@gnu.org; Fri, 31 May 2019 04:30:34 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hWcvg-0003mp-9C for bug-gnu-emacs@gnu.org; Fri, 31 May 2019 04:30:27 -0400 Received: from mail-ed1-x52d.google.com ([2a00:1450:4864:20::52d]:36169) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hWcvf-0003hm-UE for bug-gnu-emacs@gnu.org; Fri, 31 May 2019 04:30:24 -0400 Received: by mail-ed1-x52d.google.com with SMTP id a8so13373980edx.3 for ; Fri, 31 May 2019 01:30:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=jLc+8hufmHvcmjWeUwQ0ZlGjAIEF0f+kyti3DLfZF3g=; b=rfR2bWNxfFeLfXB7DGniTTgMD4SFoQoRL5ZyKkJw+n6nfqO8XoV5+uxUXvh6Vk81La jbHnFWq1LGxN1n5BxvGbm+kBgw9YPzpbvFBrDWoyzK0jH4wVLVuPm87eh3bXADW6JI3j soZEZsUBa5qY1L/CjkDAiAOk00kwb9ymUBQ+Lg0F61+UW9DdaLiUQ0jjgTi8bbvT0FLX LB/OINu2ItdcojAC6JCZcrmPD1LqUMkabxMVtDaMpkVB75ltSYp7BX996D9AnJsE3+pB FrrlLVL7mf1ej9QjPYWGQo8j0j+jeIrnzNg1A+uLLFHTi+jljvcE8ltNZnmasvpC/PDo lbuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=jLc+8hufmHvcmjWeUwQ0ZlGjAIEF0f+kyti3DLfZF3g=; b=i4R6wM3cOwpKhfyLM7koxldbBiAhA80Dj06fWvpzE9kSQKUjYTnf0gvOtUgcT2F4q6 vCrfGJqwIfNwBOukdZpdkObuwrPXYtTIlJbSymLbNwF81ntUOcicl6t5mAx3Ee4EuJyn R0zrSdJ0Nk5DExBW98zKvGRL2xy89euuVx7mGu7QddOmu6jy1W95HMzy+hKCILc6h2H/ 3SACB6tVl9BbXWsWw8xZqNcjGI1LHhx5kheGsHGFr90PyieFDTd96QJZWmid39oqQmqH BF5Yb8/xlFWsFxYPqX4aA2oNBcvMJ9MdNsIyBtcnV5jkD3MBi/EWI/kAiTYh9KXvW4UB WLeg== X-Gm-Message-State: APjAAAW6dWvp73LY20ZmmXAPGlajYVyvZFWTR9M8HNk5W7Ffkk0B6xs+ vCxf52A/mB3X4TO8gNUSeqHUUyJP X-Google-Smtp-Source: APXvYqyUOC3ePLXnqrcb5o7BpcCDvva4HsmgB2b/b1PF1ALwx5QxdxZQD6P55gLBJYBcNIhOm5GliQ== X-Received: by 2002:a50:d791:: with SMTP id w17mr9766391edi.223.1559291421621; Fri, 31 May 2019 01:30:21 -0700 (PDT) Received: from localhost ([145.5.121.125]) by smtp.gmail.com with ESMTPSA id e46sm1403998edd.80.2019.05.31.01.30.20 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 31 May 2019 01:30:20 -0700 (PDT) From: Vitalie Spinu To: bug-gnu-emacs@gnu.org Subject: 27.0.50; Segfault in color_distance in emacs --batch Date: Fri, 31 May 2019 10:30:20 +0200 Message-ID: <87y32nqb4z.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::52d X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) 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 , 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 , 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 ) 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 , 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 , 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 , 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 , 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 , handlers=XIL(0x5550), hfun=0x5555556ea4cf ) 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 , 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) ------------=_1565426882-22011-1--