From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stephen Perry Newsgroups: gmane.emacs.bugs Subject: bug#46426: 28.0.50; Emacs crashes when call-process destination argument is a cons cell Date: Wed, 10 Feb 2021 17:09:38 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13018"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.5.7; emacs 28.0.50 To: 46426@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 10 18:41:14 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l9tUI-0003HG-NR for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 10 Feb 2021 18:41:14 +0100 Original-Received: from localhost ([::1]:43964 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l9tUH-0004pz-IM for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 10 Feb 2021 12:41:13 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49902) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l9t30-0007vu-Ro for bug-gnu-emacs@gnu.org; Wed, 10 Feb 2021 12:13:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45600) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l9t30-0000Ny-Ji for bug-gnu-emacs@gnu.org; Wed, 10 Feb 2021 12:13:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l9t30-0001Xr-E8 for bug-gnu-emacs@gnu.org; Wed, 10 Feb 2021 12:13:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Perry Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 10 Feb 2021 17:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 46426 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16129771515901 (code B ref -1); Wed, 10 Feb 2021 17:13:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 10 Feb 2021 17:12:31 +0000 Original-Received: from localhost ([127.0.0.1]:57146 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l9t2V-0001X6-2O for submit@debbugs.gnu.org; Wed, 10 Feb 2021 12:12:31 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:56396) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l9t2R-0001Ww-Rp for submit@debbugs.gnu.org; Wed, 10 Feb 2021 12:12:30 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49760) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l9t2R-0006zZ-AW for bug-gnu-emacs@gnu.org; Wed, 10 Feb 2021 12:12:27 -0500 Original-Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]:53820) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l9t2P-0000DN-Fl for bug-gnu-emacs@gnu.org; Wed, 10 Feb 2021 12:12:27 -0500 Original-Received: by mail-wm1-x331.google.com with SMTP id j11so2405740wmi.3 for ; Wed, 10 Feb 2021 09:12:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=user-agent:from:to:subject:date:message-id:mime-version; bh=ASSo69cX84fYgqGadykSp4CV71XKkCOKOdZFi+PGE/o=; b=Pi3YeO33JcuWKKCqeZg8h4Pow7EwRtI5VLspOSpPep5nbPlrkKQ72u0C5j1xa3TZ0u Ofc3W+K6lUysfyORSMdl4e/3U8TPxwdMYk/1jl9/I+1x3yKh6TECaz3Rc8ghIIx6+UB7 Nshi+N8mO5Sne+kM9QbZzu7XaSAm2iqA9dAbweT2IPY+xUYcAmdaBa89qemojiVoDuWn LxQ57dkYPJ9+/blOuVjsWVPuw/nbq+n+ynLWNET8JwdXSj0jogYEcOq6w0krh4RmmqLn hwRExK1lzpbsmWA0YS/C3QQNK6MCUrHCzyi2GcwvGW+H3jK2ehHeQQPOMF9qVOzJ/UKz ebrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:user-agent:from:to:subject:date:message-id :mime-version; bh=ASSo69cX84fYgqGadykSp4CV71XKkCOKOdZFi+PGE/o=; b=kjVvuhRIjssz2jyLdjDWUmf6IGgIrpFehp1sbGuyTzSbr9AKBqDNjCj7fR1xLAP8W9 G9Gc97EkgCBsIeYDsLbloqVSsOF7IiJax56cak9FzVNcPrSIoEYm9EWSVtZxteOK7N2g /oB8WYMTXZuRMjgIZxWccfBrGz/TCi3akK4quJm6jsYm9UfyZPLl4SwWL88m9pYv74eF /UAkt1Xc1Gh6BOX3qPCxEjcN1N6w7uGLXlaDrLgMv40GGeR4kzkVvcWppMrUYiDBc6eK x+97/LGF6xRisccy1lrpgDOaIEplUKa5mIqIMe4evFqR5fVBJ7xzwI1BJTIjQmCFxjrN Lj1g== X-Gm-Message-State: AOAM5333a+YN6yvKfbywACzmgSjKSuA1Rrf2Zzj49tH2E51jrgQK2bPu 2JeYdnqF6XErrKkMMvVF8hhNZA38fzA= X-Google-Smtp-Source: ABdhPJzgsYWBhT4J6buoTEnCvPoeIimFFmH6vDDLnmN0N8/tFg7NjbqyYuFS61Hcy3CfBJ3apB71kQ== X-Received: by 2002:a1c:bc46:: with SMTP id m67mr3831154wmf.82.1612977143304; Wed, 10 Feb 2021 09:12:23 -0800 (PST) Original-Received: from localhost ([86.12.208.56]) by smtp.gmail.com with ESMTPSA id j23sm1021338wmo.18.2021.02.10.09.12.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Feb 2021 09:12:22 -0800 (PST) Received-SPF: pass client-ip=2a00:1450:4864:20::331; envelope-from=stevoooo@gmail.com; helo=mail-wm1-x331.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HK_RANDOM_ENVFROM=0.001, HK_RANDOM_FROM=0.998, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:199788 Archived-At: Hi - got my destination argument to call-process wrong by using a cons cell instead of a list and managed to kill my Emacs. Have also reproduced it using the following in Emacs 26.1 on Debian and Emacs 27.1 on macOS: emacs -Q --eval '(call-process "wc" nil (cons :file "/tmp/foo"))' Backtrace from 28.0.50 on macOS: Process 41314 stopped * thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=EXC_I386_GPFLT) frame #0: 0x000000010017e01f /Users/stp/src/emacs/src/emacs`print_object [inlined] SYMBOL_NAME(sym=0xff00000000000000) at /Users/stp/src/emacs/src/lisp.h:2196:29 [opt] 2193 INLINE Lisp_Object 2194 SYMBOL_NAME (Lisp_Object sym) 2195 { -> 2196 return XSYMBOL (sym)->u.s.name; ^ 2197 } 2198 2199 /* Value is true if SYM is an interned symbol. */ Target 0: (emacs) stopped. (lldb) p sym p sym (Lisp_Object) $0 = 0xff00000000000000 (lldb) bt * thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=EXC_I386_GPFLT) * frame #0: 0x000000010017e01f /Users/stp/src/emacs/src/emacs`print_object [inlined] SYMBOL_NAME(sym=0xff00000000000000) at /Users/stp/src/emacs/src/lisp.h:2196:29 [opt] frame #1: 0x000000010017e018 /Users/stp/src/emacs/src/emacs`print_object(obj=0xff00000000000000, printcharfun=0x0000000000000030, escapeflag=true) at /Users/stp/src/emacs/src/print.c:2061 [opt] frame #2: 0x000000010017b179 /Users/stp/src/emacs/src/emacs`print(obj=, printcharfun=, escapeflag=) at /Users/stp/src/emacs/src/print.c:1145:3 [opt] [artificial] frame #3: 0x000000010017ad41 /Users/stp/src/emacs/src/emacs`Fprin1(object=0xff00000000000000, printcharfun=0x0000000000000030) at /Users/stp/src/emacs/src/print.c:651:3 [opt] frame #4: 0x000000010017cbbf /Users/stp/src/emacs/src/emacs`print_error_message(data=, stream=, context=, caller=) at /Users/stp/src/emacs/src/print.c:977:4 [opt] frame #5: 0x00000001000d4b07 /Users/stp/src/emacs/src/emacs`Fcommand_error_default_function(data=0x000000010c8a6db3, context=0x00000001070236ac, signal=0x0000000000005700) at /Users/stp/src/emacs/src/keyboard.c:1032:7 [opt] frame #6: 0x000000010015cb71 /Users/stp/src/emacs/src/emacs`funcall_subr(subr=0x0000000100280870, numargs=3, args=) at /Users/stp/src/emacs/src/eval.c:2987:19 [opt] frame #7: 0x000000010015c131 /Users/stp/src/emacs/src/emacs`Ffuncall(nargs=, args=) at /Users/stp/src/emacs/src/eval.c:2909:11 [opt] frame #8: 0x000000010015bc80 /Users/stp/src/emacs/src/emacs`Fapply(nargs=2, args=0x00007ffeefbff0d8) at /Users/stp/src/emacs/src/eval.c:2539:24 [opt] frame #9: 0x000000010015c131 /Users/stp/src/emacs/src/emacs`Ffuncall(nargs=, args=) at /Users/stp/src/emacs/src/eval.c:2909:11 [opt] frame #10: 0x00000001001a03a0 /Users/stp/src/emacs/src/emacs`exec_byte_code(bytestr=, vector=0x0000000107a105bd, maxdepth=, args_template=, nargs=, args=) at /Users/stp/src/emacs/src/bytecode.c:632:12 [opt] frame #11: 0x000000010015d0b4 /Users/stp/src/emacs/src/emacs`funcall_lambda [inlined] fetch_and_exec_byte_code(fun=, syms_left=, nargs=, args=) at /Users/stp/src/emacs/src/eval.c:3031:10 [opt] [artificial] frame #12: 0x000000010015c0cf /Users/stp/src/emacs/src/emacs`Ffuncall(nargs=, args=) at /Users/stp/src/emacs/src/eval.c:0:4 [opt] frame #13: 0x000000010015c804 /Users/stp/src/emacs/src/emacs`call3(fn=0x0000000107a1058d, arg1=0x000000010c8a6db3, arg2=, arg3=) at /Users/stp/src/emacs/src/eval.c:2783:10 [opt] frame #14: 0x00000001000e53c0 /Users/stp/src/emacs/src/emacs`cmd_error [inlined] cmd_error_internal(data=0x000000010c8a6db3, context="") at /Users/stp/src/emacs/src/keyboard.c:987:5 [opt] frame #15: 0x00000001000e5350 /Users/stp/src/emacs/src/emacs`cmd_error(data=0x000000010c8a6db3) at /Users/stp/src/emacs/src/keyboard.c:956 [opt] frame #16: 0x000000010015a5b2 /Users/stp/src/emacs/src/emacs`internal_condition_case(bfun=(emacs`top_level_2 at keyboard.c:1102), handlers=0x0000000000000090, hfun=(emacs`cmd_error at keyboard.c:922)) at /Users/stp/src/emacs/src/eval.c:1437:14 [opt] frame #17: 0x00000001000e51cd /Users/stp/src/emacs/src/emacs`top_level_1(ignore=) at /Users/stp/src/emacs/src/keyboard.c:1111:5 [opt] frame #18: 0x0000000100159d82 /Users/stp/src/emacs/src/emacs`internal_catch(tag=0x000000000000d0b0, func=(emacs`top_level_1 at keyboard.c:1108), arg=0x0000000000000000) at /Users/stp/src/emacs/src/eval.c:1185:25 [opt] frame #19: 0x00000001002245e6 /Users/stp/src/emacs/src/emacs`recursive_edit_1.cold.1 at /Users/stp/src/emacs/src/keyboard.c:1072:2 [opt] frame #20: 0x00000001000d44b9 /Users/stp/src/emacs/src/emacs`recursive_edit_1 [inlined] command_loop at /Users/stp/src/emacs/src/keyboard.c:1070:5 [opt] frame #21: 0x00000001000d44b4 /Users/stp/src/emacs/src/emacs`recursive_edit_1 at /Users/stp/src/emacs/src/keyboard.c:720 [opt] frame #22: 0x00000001000d464b /Users/stp/src/emacs/src/emacs`Frecursive_edit at /Users/stp/src/emacs/src/keyboard.c:789:3 [opt] frame #23: 0x00000001000d36d2 /Users/stp/src/emacs/src/emacs`main(argc=, argv=) at /Users/stp/src/emacs/src/emacs.c:2049:3 [opt] frame #24: 0x00007fff2037c621 /usr/lib/system/libdyld.dylib`start + 1 frame #25: 0x00007fff2037c621 /usr/lib/system/libdyld.dylib`start + 1 Cheers! In GNU Emacs 28.0.50 (build 1, x86_64-apple-darwin20.2.0, NS appkit-2022.20 Version 11.1 (Build 20C69)) of 2021-01-23 built on stephens-mbp.lan Repository revision: 6a6fde0375d499a418f81a0dafe803d6cb0d4c97 Repository branch: master Windowing system distributor 'Apple', version 10.3.2022 System Description: macOS 11.1 Configured using: 'configure LDFLAGS=-L/opt/local/lib CPPFLAGS=-I/opt/local/include --with-imagemagick --with-x-toolkit=gtk3 --with-xwidgets' Configured features: ACL DBUS GIF GLIB GMP GNUTLS IMAGEMAGICK JPEG JSON LCMS2 LIBXML2 MODULES NOTIFY KQUEUE NS PDUMPER PNG RSVG THREADS TIFF TOOLKIT_SCROLL_BARS XIM XWIDGETS ZLIB Important settings: value of $LANG: en_GB.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: text-scale-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs rfc822 mml easymenu mml-sec epa derived epg epg-config gnus-util rmail rmail-loaddefs auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json map text-property-search time-date subr-x seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils face-remap iso-transl tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads xwidget-internal dbusbind kqueue cocoa ns lcms2 multi-tty make-network-process emacs) Memory information: ((conses 16 51323 6299) (symbols 48 6869 1) (strings 32 18623 2178) (string-bytes 1 612643) (vectors 16 11639) (vector-slots 8 171397 10089) (floats 8 24 36) (intervals 56 195 0) (buffers 984 10))