From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Antipov Newsgroups: gmane.emacs.bugs Subject: bug#18180: 24.3.92; Segfault in mark_object Date: Mon, 04 Aug 2014 13:15:32 +0400 Message-ID: <53DF4F34.4070504@yandex.ru> References: <10cc0bec4b1a02bab469e3721cacc2ad@SDF.ORG> <53DF0A95.7040707@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1407143849 6419 80.91.229.3 (4 Aug 2014 09:17:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 4 Aug 2014 09:17:29 +0000 (UTC) Cc: 18180@debbugs.gnu.org To: Mat Smiglarski Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Aug 04 11:17:22 2014 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 1XEEOO-0005bd-Ng for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Aug 2014 11:17:20 +0200 Original-Received: from localhost ([::1]:51146 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEEON-0006tc-Ub for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Aug 2014 05:17:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49718) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEEOE-0006sd-EF for bug-gnu-emacs@gnu.org; Mon, 04 Aug 2014 05:17:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XEEO7-00086U-8x for bug-gnu-emacs@gnu.org; Mon, 04 Aug 2014 05:17:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49706) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEEO7-00086P-2Q for bug-gnu-emacs@gnu.org; Mon, 04 Aug 2014 05:17:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XEEO6-0003WO-KX for bug-gnu-emacs@gnu.org; Mon, 04 Aug 2014 05:17:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Antipov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 04 Aug 2014 09:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18180 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18180-submit@debbugs.gnu.org id=B18180.140714376213439 (code B ref 18180); Mon, 04 Aug 2014 09:17:02 +0000 Original-Received: (at 18180) by debbugs.gnu.org; 4 Aug 2014 09:16:02 +0000 Original-Received: from localhost ([127.0.0.1]:56649 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XEEN7-0003UR-MZ for submit@debbugs.gnu.org; Mon, 04 Aug 2014 05:16:02 -0400 Original-Received: from forward2h.mail.yandex.net ([84.201.187.147]:38699) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XEEN5-0003UD-0u for 18180@debbugs.gnu.org; Mon, 04 Aug 2014 05:15:59 -0400 Original-Received: from smtp3h.mail.yandex.net (smtp3h.mail.yandex.net [84.201.186.20]) by forward2h.mail.yandex.net (Yandex) with ESMTP id 16BA7701961; Mon, 4 Aug 2014 13:15:35 +0400 (MSK) Original-Received: from smtp3h.mail.yandex.net (localhost [127.0.0.1]) by smtp3h.mail.yandex.net (Yandex) with ESMTP id 8A1AF1B44E87; Mon, 4 Aug 2014 13:15:35 +0400 (MSK) Original-Received: from mail.dev.rtsoft.ru (mail.dev.rtsoft.ru [213.79.90.226]) by smtp3h.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id lvxplsKBdC-FZauBMHX; Mon, 4 Aug 2014 13:15:35 +0400 (using TLSv1.2 with cipher AES128-SHA (128/128 bits)) (Client certificate not present) X-Yandex-Uniq: 4caf8dc4-e302-4fa7-9dd2-4bc679f7ebfe DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1407143735; bh=0YTpkPWLTs/lLS2GtTbAtum0BJSVS0eAqGSrwxJfq1A=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=MCpsrGc9ABjHae45rEi7c2fOg6trFOEDYd4JRk4SQLSgXaf703H+0H5mjEWoy5R78 SP1zyVoQXkKFWtCIav9YpO0fZcngzcuVeXIzK1/N3jAxNPcdL5DKRthu7T6usanYBW AiPwCIqFmZnfyfwlTvr57gMI9899DiJvGZk0m8Lo= Authentication-Results: smtp3h.mail.yandex.net; dkim=pass header.i=@yandex.ru User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0 In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.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:92094 Archived-At: On 08/04/2014 10:46 AM, Mat Smiglarski wrote: > I have not been able to reproduce this by automating the calls to stress-speed-read. Reproduced with (dotimes (i 100) (stress-speed-read (current-buffer)))). Ugh, it seems that we never initialize undo-list of indirect buffer. You can use this trivial fix just to avoid crash: === modified file 'src/buffer.c' --- src/buffer.c 2014-07-27 13:21:30 +0000 +++ src/buffer.c 2014-08-04 09:06:08 +0000 @@ -825,6 +825,7 @@ name = Fcopy_sequence (name); set_string_intervals (name, NULL); bset_name (b, name); + bset_undo_list (b, BVAR (b->base_buffer, undo_list)); reset_buffer (b); reset_buffer_local_variables (b, 1); But this bug raises an interesting question: should an indirect buffer's undo list be always the same as the one of its base buffer? Dmitry