From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#12426: 24.2.50; Emacs is closed unexpectedly after query-replace Date: Fri, 14 Sep 2012 16:40:48 +0300 Message-ID: <834nn0vi1r.fsf@gnu.org> References: <837grzw0ek.fsf@gnu.org> <83627jvzd8.fsf@gnu.org> <50514C9C.8010004@yandex.ru> <83zk4tvpi4.fsf@gnu.org> <5053247C.9050708@yandex.ru> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1347630083 11686 80.91.229.3 (14 Sep 2012 13:41:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 14 Sep 2012 13:41:23 +0000 (UTC) Cc: 12426@debbugs.gnu.org, rms@gnu.org To: Dmitry Antipov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 14 15:41:24 2012 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 1TCW92-0003MA-65 for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Sep 2012 15:41:20 +0200 Original-Received: from localhost ([::1]:37920 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCW8v-0005lo-L9 for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Sep 2012 09:41:13 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52767) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCW8s-0005lL-VQ for bug-gnu-emacs@gnu.org; Fri, 14 Sep 2012 09:41:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TCW8n-0002Qs-5K for bug-gnu-emacs@gnu.org; Fri, 14 Sep 2012 09:41:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51947) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCW8n-0002Qo-1n for bug-gnu-emacs@gnu.org; Fri, 14 Sep 2012 09:41:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TCW9i-00013s-51 for bug-gnu-emacs@gnu.org; Fri, 14 Sep 2012 09:42:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Sep 2012 13:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12426 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12426-submit@debbugs.gnu.org id=B12426.13476301064056 (code B ref 12426); Fri, 14 Sep 2012 13:42:02 +0000 Original-Received: (at 12426) by debbugs.gnu.org; 14 Sep 2012 13:41:46 +0000 Original-Received: from localhost ([127.0.0.1]:33260 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TCW9R-00013N-SL for submit@debbugs.gnu.org; Fri, 14 Sep 2012 09:41:46 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:52970) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TCW9P-00013E-5m for 12426@debbugs.gnu.org; Fri, 14 Sep 2012 09:41:44 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MAC00400DVJNR00@a-mtaout20.012.net.il> for 12426@debbugs.gnu.org; Fri, 14 Sep 2012 16:40:33 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MAC003PTDZKXQB0@a-mtaout20.012.net.il>; Fri, 14 Sep 2012 16:40:32 +0300 (IDT) In-reply-to: <5053247C.9050708@yandex.ru> X-012-Sender: halo1@inter.net.il 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 (newer, 2) 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:64281 Archived-At: > Date: Fri, 14 Sep 2012 16:35:08 +0400 > From: Dmitry Antipov > CC: Richard Stallman , dmoncayo@gmail.com, > 12426@debbugs.gnu.org > > On 09/13/2012 08:47 PM, Eli Zaretskii wrote: > > > But marker_position and marker_byte_position are simple getters of > > these two attributes of a marker. If these attributes can be out of > > range for some window of time, then the getters shouldn't enforce this > > limitation. Otherwise, they are getters that cannot be used in some > > situations, which is IMO bad SE. At the very least that should be > > documented. > > IIUC no, since this window of time is very short and it's entirely > within adjust_markers_for_* functions. The length of the window has no importance whatsoever. It just takes a couple of machine instructions to trigger the assertion violation. This isn't a stock exchange or a poker game, where we could build on chances. This is software that is supposed to be stable, and you are talking about its most inner and intimate internals. If you can figure out how to avoid the crash, please do. Otherwise, please remove the eassert calls, because they make Emacs completely unusable.