From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Andreas Politz Newsgroups: gmane.emacs.bugs Subject: bug#26047: 26.0.50; emacs crash by cl-caff2 Date: Fri, 10 Mar 2017 21:56:45 +0100 Message-ID: <87wpbwyho2.fsf@luca> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1489179505 10668 195.159.176.226 (10 Mar 2017 20:58:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 10 Mar 2017 20:58:25 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: 26047@debbugs.gnu.org To: Leo Liu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Mar 10 21:58:20 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cmRc7-0001nY-DG for geb-bug-gnu-emacs@m.gmane.org; Fri, 10 Mar 2017 21:58:15 +0100 Original-Received: from localhost ([::1]:40948 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cmRcD-0005rA-Hu for geb-bug-gnu-emacs@m.gmane.org; Fri, 10 Mar 2017 15:58:21 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59037) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cmRc0-0005oe-Cr for bug-gnu-emacs@gnu.org; Fri, 10 Mar 2017 15:58:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cmRbv-0004PM-Gt for bug-gnu-emacs@gnu.org; Fri, 10 Mar 2017 15:58:08 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51835) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cmRbv-0004PA-74 for bug-gnu-emacs@gnu.org; Fri, 10 Mar 2017 15:58:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cmRbu-0001Up-Gy for bug-gnu-emacs@gnu.org; Fri, 10 Mar 2017 15:58:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Andreas Politz Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 10 Mar 2017 20:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26047 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 26047-submit@debbugs.gnu.org id=B26047.14891794275690 (code B ref 26047); Fri, 10 Mar 2017 20:58:02 +0000 Original-Received: (at 26047) by debbugs.gnu.org; 10 Mar 2017 20:57:07 +0000 Original-Received: from localhost ([127.0.0.1]:50034 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cmRb1-0001Tf-2z for submit@debbugs.gnu.org; Fri, 10 Mar 2017 15:57:07 -0500 Original-Received: from gateway-a.fh-trier.de ([143.93.54.181]:53924) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cmRay-0001TA-UR for 26047@debbugs.gnu.org; Fri, 10 Mar 2017 15:57:06 -0500 X-Virus-Scanned: by Amavisd-new + McAfee uvscan + ClamAV [Rechenzentrum Hochschule Trier (RZ/HT)] Original-Received: from localhost (ip5f5bdeea.dynamic.kabel-deutschland.de [95.91.222.234]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: politza) by gateway-a.fh-trier.de (Postfix) with ESMTPSA id 113AD179B2BD; Fri, 10 Mar 2017 21:56:46 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha1; c=simple/simple; d=hochschule-trier.de; s=default; t=1489179406; bh=gFimFH5AV/6Qn1tedXqJm6bfAis=; h=From:To:Cc:Subject:References:Date:Message-ID:MIME-Version: Content-Type; b=qXjtq8chwL6lMW6kPXoseQWAaPipyj/r25C5tLgXVg/+EBRAy2ugF/mLSvGvMXOka 0lRRI7ru2HsQ4DAzrCH7cIZ56dlD5EqD9jn7X+nSJNAVZs/O/cQHqzWbC4JL5r+7fF 4+1WIKm0kDjhtrEsRikdKSnK8vbWepvumZTJOBC4= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:130456 Archived-At: Below is a slightly simpler test-case and a full back-trace. Looks like the function byte-compile-inline-expand, which is the value of cl-concatenate's byte-optimizer property, creates bad byte-code; because this bug does not occur after setting this property to nil. #+BEGIN_SRC emacs-lisp (require 'cl-lib) (cl-concatenate 'string "abcd" "efg") (provide 'foo) #+END_SRC Save this to foo.el, byte-compile it and start emacs like this $ emacs -Q -l foo.elc Thread 1 "emacs" received signal SIGSEGV, Segmentation fault. Ffuncall (nargs=2, args=) at eval.c:2761 (gdb) bt #0 Ffuncall (nargs=2, args=) at eval.c:2761 #1 exec_byte_code (bytestr=..., vector=..., maxdepth=..., args_template=..., nargs=0, args=) at bytecode.c:641 #2 Fbyte_code (bytestr=..., vector=..., maxdepth=...) at bytecode.c:321 #3 eval_sub (form=...) at eval.c:2247 #4 readevalloop (readcharfun=..., stream=, sourcename=..., printflag=false, unibyte=..., readfun=..., start=..., end=...) at lread.c:1927 #5 Fload (file=..., noerror=..., nomessage=..., nosuffix=..., must_suffix=...) at lread.c:1332 #6 funcall_subr (subr=, numargs=4, args=) at eval.c:2852 #7 Ffuncall (nargs=5, args=) at eval.c:2765 #8 exec_byte_code (bytestr=..., vector=..., maxdepth=..., args_template=..., nargs=1, args=) at bytecode.c:641 #9 funcall_lambda (fun=..., nargs=1, arg_vector=) at eval.c:2965 #10 apply_lambda (fun=..., args=..., count=37) at eval.c:2902 #11 eval_sub (form=...) at eval.c:2286 #12 readevalloop_eager_expand_eval (val=..., macroexpand=...) at lread.c:1757 #13 readevalloop (readcharfun=..., stream=, sourcename=..., printflag=false, unibyte=..., readfun=..., start=..., end=...) at lread.c:1925 #14 Feval_buffer (buffer=..., printflag=..., filename=..., unibyte=..., do_allow_print=...) at lread.c:1991 #15 funcall_subr (subr=, numargs=5, args=) at eval.c:2852 #16 Ffuncall (nargs=6, args=) at eval.c:2765 #17 exec_byte_code (bytestr=..., vector=..., maxdepth=..., args_template=..., nargs=0, args=) at bytecode.c:641 #18 funcall_lambda (fun=..., nargs=4, arg_vector=) at eval.c:3043 #19 Ffuncall (nargs=5, args=) at eval.c:2767 #20 call4 (fn=..., arg1=..., arg2=..., arg3=..., arg4=...) at eval.c:2652 #21 Fload (file=..., noerror=..., nomessage=..., nosuffix=..., must_suffix=...) at lread.c:1276 #22 funcall_subr (subr=, numargs=3, args=) at eval.c:2852 #23 Ffuncall (nargs=4, args=) at eval.c:2765 #24 exec_byte_code (bytestr=..., vector=..., maxdepth=..., args_template=..., nargs=1, args=) at bytecode.c:641 #25 funcall_lambda (fun=..., nargs=1, arg_vector=) at eval.c:2965 #26 Ffuncall (nargs=2, args=) at eval.c:2767 #27 exec_byte_code (bytestr=..., vector=..., maxdepth=..., args_template=..., nargs=0, args=) at bytecode.c:641 #28 funcall_lambda (fun=..., nargs=0, arg_vector=) at eval.c:2965 #29 Ffuncall (nargs=1, args=) at eval.c:2767 #30 exec_byte_code (bytestr=..., vector=..., maxdepth=..., args_template=..., nargs=0, args=) at bytecode.c:641 #31 funcall_lambda (fun=..., nargs=0, arg_vector=) at eval.c:2965 #32 apply_lambda (fun=..., args=..., count=4) at eval.c:2902 #33 eval_sub (form=...) at eval.c:2286 #34 Feval (form=..., lexical=...) at eval.c:2063 #35 top_level_2 () at keyboard.c:1121 #36 internal_condition_case (bfun=, handlers=..., hfun=) at eval.c:1324 #37 top_level_1 (ignore=...) at keyboard.c:1129 #38 internal_catch (tag=..., func=, arg=...) at eval.c:1091 #39 command_loop () at keyboard.c:1090 #40 recursive_edit_1 () at keyboard.c:697 #41 Frecursive_edit () at keyboard.c:768 #42 main (argc=4, argv=) at emacs.c:1688 Lisp Backtrace: Cannot access memory at address 0x800000dd5608 (gdb) pp args[0] # (gdb) pp args[1] # -ap