From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#13743: 24.2.93; Segmentation fault when trying to [s]teal a file opened elsewhere Date: Sat, 23 Feb 2013 07:37:09 +0400 Message-ID: <51283965.2020107@yandex.ru> References: <5125ADA9.3070603@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1361590682 30581 80.91.229.3 (23 Feb 2013 03:38:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 23 Feb 2013 03:38:02 +0000 (UTC) Cc: 13743@debbugs.gnu.org To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 23 04:38:24 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1U95wN-0005mY-2G for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 Feb 2013 04:38:23 +0100 Original-Received: from localhost ([::1]:36494 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U95w2-0004U6-0w for geb-bug-gnu-emacs@m.gmane.org; Fri, 22 Feb 2013 22:38:02 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:54957) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U95vr-0004Ky-7v for bug-gnu-emacs@gnu.org; Fri, 22 Feb 2013 22:38:00 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U95vk-0007nt-5B for bug-gnu-emacs@gnu.org; Fri, 22 Feb 2013 22:37:51 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39537) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U95vk-0007np-0R for bug-gnu-emacs@gnu.org; Fri, 22 Feb 2013 22:37:44 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1U95x5-0002dI-Po for bug-gnu-emacs@gnu.org; Fri, 22 Feb 2013 22:39:09 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Feb 2013 03:39:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13743 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13743-submit@debbugs.gnu.org id=B13743.136159072010076 (code B ref 13743); Sat, 23 Feb 2013 03:39:06 +0000 Original-Received: (at 13743) by debbugs.gnu.org; 23 Feb 2013 03:38:40 +0000 Original-Received: from localhost ([127.0.0.1]:45000 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U95wc-0002cQ-ID for submit@debbugs.gnu.org; Fri, 22 Feb 2013 22:38:40 -0500 Original-Received: from mail-lb0-f176.google.com ([209.85.217.176]:41163) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U95wX-0002cG-Dr for 13743@debbugs.gnu.org; Fri, 22 Feb 2013 22:38:36 -0500 Original-Received: by mail-lb0-f176.google.com with SMTP id s4so1014760lbc.7 for <13743@debbugs.gnu.org>; Fri, 22 Feb 2013 19:37:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=mZTC48ol5Hl6u7bqa9buXOdxmTdxyLAjEIc2L0lMTO4=; b=dU5vsJnsh14yO0UB9hmtKKLHI4QA/RLPKH3EKu49jAotXC/GgY91RabqYvII/smb3C uLqz0ug1TTRTxNszlBpcAFE/dCXOqWmkFG5NllpgFaVz0a1UxBUqxwFG/ls9IISLED41 5lCQM0lXBCPh2tuf6MSTDFoQU9qnQApKDVA4Wy55q8zFR3ZyOYivlF+pjeEqM1Pw7OVw we9T6r4sityVvR4CEZjHVwFwBRpKWWjIJNUkXp9xE8FNya8aoA5TudPuuzcm4GP9SAz+ JDsb5wDL8DSNipQTOdpQ0p/ne+v4nHZ4086Wf3Nb31gN4PDeZtnLgaGRslfgXtiNbBQD S/Hw== X-Received: by 10.152.134.40 with SMTP id ph8mr3626105lab.39.1361590626675; Fri, 22 Feb 2013 19:37:06 -0800 (PST) Original-Received: from [127.0.0.1] ([178.252.98.87]) by mx.google.com with ESMTPS id fz16sm2341069lab.5.2013.02.22.19.37.05 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 22 Feb 2013 19:37:05 -0800 (PST) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130215 Thunderbird/17.0.3 In-Reply-To: <5125ADA9.3070603@cs.ucla.edu> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:71694 Archived-At: On 21.02.2013 9:16, Paul Eggert wrote: >> is there an easier way to compile without optimizations than >> assigning CFLAGS before running configure? > > Here's what I do: > > make clean > make CFLAGS='-g3' > > I suggest compiling with ENABLE_CHECKING, too, i.e.: > > make clean > make CFLAGS='-g3 -DENABLE_CHECKING' So, I compiled it with checking and it crashes with a failed assertion in the same place. Not sure how useful that is. (gdb) xbacktrace "put-text-property" (0xffff6af0) "jit-lock-refontify" (0xffff7000) "jit-lock-mode" (0xffff7530) "jit-lock-register" (0xffff7a30) "font-lock-turn-on-thing-lock" (0xffff7f40) "font-lock-mode-internal" (0xffff8440) "font-lock-default-function" (0xffff8940) "font-lock-mode" (0xffff8e40) "turn-on-font-lock" (0xffff9320) "turn-on-font-lock-if-desired" (0xffff9810) "global-font-lock-mode-enable-in-buffers" (0xffff9d98) "run-hooks" (0xffff9e78) "apply" (0xffffa020) "run-mode-hooks" (0xffffa520) "html-erb-mode" (0xffffaa30) "mmm-update-mode-info" (0xffffaf30) "mmm-mode-on" (0xffffb360) "cond" (0xffffb620) "mmm-mode-on-maybe" (0xffffb8d8) "funcall" (0xffffb8d0) "progn" (0xffffbab0) "condition-case" (0xffffbdd0) "while" (0xffffbfc0) ---Type to continue, or q to quit--- "let" (0xffffc230) "progn" (0xffffc3d0) "mmm-run-major-mode-hook" (0xffffc5b0) "save-current-buffer" (0xffffc850) "progn" (0xffffc9f0) "if" (0xffffcb90) "while" (0xffffcd80) "let" (0xffffcff0) "progn" (0xffffd190) "mmm-check-changed-buffers" (0xffffd440) (gdb) bt full #0 terminate_due_to_signal (sig=6, backtrace_limit=2147483647) at emacs.c:317 No locals. #1 0x000000000069a6c2 in die (msg=0x8c9ac4 "assertion failed: i != 0", file=0x8c8fa8 "textprop.c", line=1173) at alloc.c:6440 No locals. #2 0x0000000000768f5b in Fadd_text_properties (start=4, end=3068, properties=30489510, object=30971749) at textprop.c:1173 i = 0x0 unchanged = 0x7fffffffc130 s = 1 len = 558 modified = 19 gcpro1 = { next = 0xcac4d5 , var = 0xcac461 , nvars = 579820584989 } #3 0x00000000007692dd in Fput_text_property (start=4, end=3068, property=15947874, value=15708706, object=15708706) at textprop.c:1229 No locals. #4 0x00000000006c4bc4 in Ffuncall (nargs=5, args=0x7fffffff6ae8) at eval.c:2794 fun = 15085301 ---Type to continue, or q to quit--- original_fun = 15895858 funcar = 7103860 numargs = 4 lisp_numargs = 140737488317136 val = 19377766 backtrace = { next = 0x7fffffff6fa0, function = 15895858, args = 0x7fffffff6af0, nargs = 4, debug_on_exit = 0 } internal_args = 0x7fffffff69f0 i = 5 #5 0x00000000007360e5 in exec_byte_code (bytestr=13303329, vector=13303509, maxdepth=24, args_template=15708706, nargs=0, args=0x0) at bytecode.c:900 targets = {0x739d87 , 0x739d96 , 0x739d98 , 0x739d9a , 0x739d9c , 0x739d9c , 0x739e06 , 0x739e7a , 0x73571e , 0x735720 , 0x735722 , 0x735724 , 0x735726 , ---Type to continue, or q to quit--- 0x735726 , 0x73572f , 0x7356e9 , 0x735cd6 , 0x735cd8 , 0x735cda , 0x735cdc , 0x735cde , 0x735cde , 0x735d1c , 0x735ce7 , 0x735fda , 0x735fdc , 0x735fde , 0x735fe0 , 0x735fe2 , 0x735fe2 , 0x735f8b , 0x735fa5 , 0x7360a3 , 0x7360a5 , 0x7360a7 , 0x7360a9 , 0x7360ab , 0x7360ab , 0x736054 , 0x73606e , 0x73616f , 0x736171 , 0x736173 , 0x736175 , 0x736177 , 0x736177 , 0x736120 , 0x73613a , 0x739d87 , 0x739d87 , 0x739d87 , 0x739d87 , 0x739d87 , 0x739d87 , 0x739d87 , 0x739d87 , 0x73718f , 0x737325 , 0x737382 , ---Type to continue, or q to quit--- 0x7373df , 0x73743c , 0x735b16 , 0x735b8d , 0x7374af , 0x735a3e , 0x735bfd , 0x737510 , 0x737580 , 0x7375d7 , 0x73765c , 0x7376b3 , 0x737797 , 0x7377e4 , 0x737854 , 0x7378e4 , 0x737931 , 0x73797e , 0x7379ee , 0x737a5e , 0x737ace , 0x737b5e , 0x737bb5 , 0x737c0c , 0x737cf0 , 0x737d86 , 0x737e1c , 0x738149 , 0x7381b9 , 0x738229 , 0x738299 , 0x738309 , 0x738360 , 0x7383fa , 0x738451 , 0x7384a8 , 0x7384ff , 0x73861d , 0x736dc6 , 0x738680 , 0x7386cd , 0x7387a9 , 0x73880c , 0x73886f , 0x7388bc , 0x738912 , ---Type to continue, or q to quit--- 0x738968 , 0x7389c2 , 0x739d87 , 0x738a19 , 0x738a61 , 0x738aa9 , 0x738af1 , 0x738b39 , 0x738b81 , 0x736dc6 , 0x739d87 , 0x738bce , 0x738c16 , 0x738c63 , 0x738cb0 , 0x738d20 , 0x738d90 , 0x738ddd , 0x7391da , 0x73924a , 0x7392ba , 0x73932a , 0x739372 , 0x739d87 , 0x736cf1 , 0x73623e , 0x7358ff , 0x736350 , 0x73648f , 0x7365c5 , 0x736c5c , 0x736cb8 , 0x735f30 , 0x736d83 , 0x736dfc , 0x736e9b , 0x736ede , 0x736f50 , 0x736fa0 , 0x737030 , 0x7370ee , 0x7361f4 , 0x7393bf , 0x73944f , 0x73949c , 0x7394e9 , ---Type to continue, or q to quit--- 0x739536 , 0x739583 , 0x7395f3 , 0x739663 , 0x7396d3 , 0x739743 , 0x739930 , 0x7399a0 , 0x739a10 , 0x739a5d , 0x739acd , 0x739b37 , 0x739bce , 0x739c66 , 0x738556 , 0x7385ad , 0x739cbd , 0x739d2b , 0x739d87 , 0x7366fb , 0x7367e0 , 0x7368fe , 0x736a1c , 0x736b3c , 0x73770a , 0x737c63 , 0x73871c , 0x739f16 , 0x739f8a , 0x739d87 , 0x739d87 , 0x73a026 , 0x739d87 , 0x739d87 , 0x739d87 , 0x739d87 , 0x739d87 , 0x739d87 , 0x739d87 , 0x739d87 , 0x739d87 , 0x73a0c4 } count = 34 ---Type to continue, or q to quit--- op = 4 vectorp = 0xcafee0 stack = { pc = 0xde6949 ".\n\207", byte_string = 13303329, byte_string_start = 0xde6921 "\306\030\307 \031\032\033\306\034\035\036\f\310\036\r\214~\210\312\016\016\206\037", constants = 13303509, next = 0x7fffffff73a0 } top = 0x7fffffff6ae8 result = 140737488317664 #6 0x00000000006c5a29 in funcall_lambda (fun=13303277, nargs=0, arg_vector=0x7fffffff7000) at eval.c:3010 val = 19942912 syms_left = 15708706 next = 19040098 lexenv = 15708706 count = 32 i = 0 optional = true rest = false #7 0x00000000006c4e06 in Ffuncall (nargs=1, args=0x7fffffff6ff8) ---Type to continue, or q to quit--- at eval.c:2827 fun = 13303277 original_fun = 23441314 funcar = 23441122 numargs = 0 lisp_numargs = 15708754 val = 140737488318432 backtrace = { next = 0x7fffffff74d0, function = 23441314, args = 0x7fffffff7000, nargs = 0, debug_on_exit = 0 } internal_args = 0x7fffffff7530 i = 6940436 #8 0x00000000007360e5 in exec_byte_code (bytestr=13301729, vector=13302021, maxdepth=44, args_template=15708706, nargs=0, args=0x0) at bytecode.c:900 targets = {0x739d87 , 0x739d96 , 0x739d98 , 0x739d9a , 0x739d9c , 0x739d9c , 0x739e06 , 0x739e7a , 0x73571e , ---Type to continue, or q to quit--- 0x735720 , 0x735722 , 0x735724 , 0x735726 , 0x735726 , 0x73572f , 0x7356e9 , 0x735cd6 , 0x735cd8 , 0x735cda , 0x735cdc , 0x735cde , 0x735cde , 0x735d1c , 0x735ce7 , 0x735fda , 0x735fdc , 0x735fde , 0x735fe0 , 0x735fe2 , 0x735fe2 , 0x735f8b , 0x735fa5 , 0x7360a3 , 0x7360a5 , 0x7360a7 , 0x7360a9 , 0x7360ab , 0x7360ab , 0x736054 , 0x73606e , 0x73616f , 0x736171 , 0x736173 , 0x736175 , 0x736177 , 0x736177 , 0x736120 , 0x73613a , 0x739d87 , 0x739d87 , 0x739d87 , 0x739d87 , 0x739d87 , 0x739d87 , 0x739d87 , ---Type to continue, or q to quit--- 0x739d87 , 0x73718f , 0x737325 , 0x737382 , 0x7373df , 0x73743c , 0x735b16 , 0x735b8d , 0x7374af , 0x735a3e , 0x735bfd , 0x737510 , 0x737580 , 0x7375d7 , 0x73765c , 0x7376b3 , 0x737797 , 0x7377e4 , 0x737854 , 0x7378e4 , 0x737931 , 0x73797e , 0x7379ee , 0x737a5e , 0x737ace , 0x737b5e , 0x737bb5 , 0x737c0c , 0x737cf0 , 0x737d86 , 0x737e1c , 0x738149 , 0x7381b9 , 0x738229 , 0x738299 , 0x738309 , 0x738360 , 0x7383fa , 0x738451 , 0x7384a8 , 0x7384ff , 0x73861d , 0x736dc6 , 0x738680 , 0x7386cd , 0x7387a9 , ---Type to continue, or q to quit--- 0x73880c , 0x73886f , 0x7388bc , 0x738912 , 0x738968 , 0x7389c2 , 0x739d87 , 0x738a19 , 0x738a61 , 0x738aa9 , 0x738af1 , 0x738b39 , 0x738b81 , 0x736dc6 , 0x739d87 , 0x738bce , 0x738c16 , 0x738c63 , 0x738cb0 , 0x738d20 , 0x738d90 , 0x738ddd , 0x7391da , 0x73924a , 0x7392ba , 0x73932a , 0x739372 , 0x739d87 , 0x736cf1 , 0x73623e , 0x7358ff , 0x736350 , 0x73648f , 0x7365c5 , 0x736c5c , 0x736cb8 , 0x735f30 , 0x736d83 , 0x736dfc , 0x736e9b , 0x736ede , 0x736f50 , 0x736fa0 , 0x737030 , 0x7370ee , 0x7361f4 , ---Type to continue, or q to quit--- 0x7393bf , 0x73944f , 0x73949c , 0x7394e9 , 0x739536 , 0x739583 , 0x7395f3 , 0x739663 , 0x7396d3 , 0x739743 , 0x739930 , 0x7399a0 , 0x739a10 , 0x739a5d , 0x739acd , 0x739b37 , 0x739bce , 0x739c66 , 0x738556 , 0x7385ad , 0x739cbd , 0x739d2b , 0x739d87 , 0x7366fb , 0x7367e0 , 0x7368fe , 0x736a1c , 0x736b3c , 0x73770a , 0x737c63 , 0x73871c , 0x739f16 , 0x739f8a , 0x739d87 , 0x739d87 , 0x73a026 , 0x739d87 , 0x739d87 , 0x739d87 , 0x739d87 , 0x739d87 , 0x739d87 , 0x739d87 , 0x739d87 , 0x739d87 , ---Type to continue, or q to quit--- 0x73a0c4 } count = 32 op = 0 vectorp = 0xcaf910 stack = { pc = 0xde69af "\210\n\203\027", byte_string = 13301729, byte_string_start = 0xde69a7 "\b\211\021\203j", constants = 13302021, next = 0x7fffffff78a0 } top = 0x7fffffff6ff8 result = 30500326 #9 0x00000000006c5a29 in funcall_lambda (fun=13301677, nargs=1, arg_vector=0x7fffffff7530) at eval.c:3010 val = 30500326 syms_left = 15708706 next = 19011106 lexenv = 15708706 count = 31 i = 1 optional = false rest = false ---Type to continue, or q to quit--- #10 0x00000000006c4e06 in Ffuncall (nargs=2, args=0x7fffffff7528) at eval.c:2827 fun = 13301677 original_fun = 23441122 funcar = 23445122 numargs = 1 lisp_numargs = 15708754 val = 140737488319760 backtrace = { next = 0x7fffffff79d0, function = 23441122, args = 0x7fffffff7530, nargs = 1, debug_on_exit = 0 } internal_args = 0x7fffffff7a30 i = 6940436 #11 0x00000000007360e5 in exec_byte_code (bytestr=13302705, vector=13302829, maxdepth=20, args_template=15708706, nargs=0, args=0x0) at bytecode.c:900 targets = {0x739d87 , 0x739d96 , 0x739d98 , 0x739d9a , 0x739d9c , 0x739d9c , 0x739e06 , ---Type to continue, or q to quit--- 0x739e7a , 0x73571e , 0x735720 , 0x735722 , 0x735724 , 0x735726 , 0x735726 , 0x73572f , 0x7356e9 , 0x735cd6 , 0x735cd8 , 0x735cda , 0x735cdc , 0x735cde , 0x735cde , 0x735d1c , 0x735ce7 , 0x735fda , 0x735fdc , 0x735fde , 0x735fe0 , 0x735fe2 , 0x735fe2 , 0x735f8b , 0x735fa5 , 0x7360a3 , 0x7360a5 , 0x7360a7 , 0x7360a9 , 0x7360ab , 0x7360ab , 0x736054 , 0x73606e , 0x73616f , 0x736171 , 0x736173 , 0x736175 , 0x736177 , 0x736177 , 0x736120 , 0x73613a , 0x739d87 , 0x739d87 , 0x739d87 , 0x739d87 , 0x739d87 , ---Type to continue, or q to quit--- 0x739d87 , 0x739d87 , 0x739d87 , 0x73718f , 0x737325 , 0x737382 , 0x7373df , 0x73743c , 0x735b16 , 0x735b8d , 0x7374af , 0x735a3e , 0x735bfd , 0x737510 , 0x737580 , 0x7375d7 , 0x73765c , 0x7376b3 , 0x737797 , 0x7377e4 , 0x737854 , 0x7378e4 , 0x737931 , 0x73797e , 0x7379ee , 0x737a5e , 0x737ace , 0x737b5e , 0x737bb5 , 0x737c0c , 0x737cf0 , 0x737d86 , 0x737e1c , 0x738149 , 0x7381b9 , 0x738229 , 0x738299 , 0x738309 , 0x738360 , 0x7383fa , 0x738451 , 0x7384a8 , 0x7384ff , 0x73861d , 0x736dc6 , 0x738680 , ---Type to continue, or q to quit--- 0x7386cd , 0x7387a9 , 0x73880c , 0x73886f , 0x7388bc , 0x738912 , 0x738968 , 0x7389c2 , 0x739d87 , 0x738a19 , 0x738a61 , 0x738aa9 , 0x738af1 , 0x738b39 , 0x738b81 , 0x736dc6 , 0x739d87 , 0x738bce , 0x738c16 , 0x738c63 , 0x738cb0 , 0x738d20 , 0x738d90 , 0x738ddd , 0x7391da , 0x73924a , 0x7392ba , 0x73932a , 0x739372 , 0x739d87 , 0x736cf1 , 0x73623e , 0x7358ff , 0x736350 , 0x73648f , 0x7365c5 , 0x736c5c , 0x736cb8 , 0x735f30 , 0x736d83 , 0x736dfc , 0x736e9b , 0x736ede , 0x736f50 , 0x736fa0 , 0x737030 , ---Type to continue, or q to quit--- 0x7370ee , 0x7361f4 , 0x7393bf , 0x73944f , 0x73949c , 0x7394e9 , 0x739536 , 0x739583 , 0x7395f3 , 0x739663 , 0x7396d3 , 0x739743 , 0x739930 , 0x7399a0 , 0x739a10 , 0x739a5d , 0x739acd , 0x739b37 , 0x739bce , 0x739c66 , 0x738556 , 0x7385ad , 0x739cbd , 0x739d2b , 0x739d87 , 0x7366fb , 0x7367e0 , 0x7368fe , 0x736a1c , 0x736b3c , 0x73770a , 0x737c63 , 0x73871c , 0x739f16 , 0x739f8a , 0x739d87 , 0x739d87 , 0x73a026 , 0x739d87 , 0x739d87 , 0x739d87 , 0x739d87 , 0x739d87 , 0x739d87 , 0x739d87 , 0x739d87 , ---Type to continue, or q to quit---