From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: npostavs@users.sourceforge.net Newsgroups: gmane.emacs.bugs Subject: bug#24358: 25.1.50; re-search-forward errors with "Variable binding depth exceeds max-specpdl-size" Date: Thu, 13 Oct 2016 22:19:09 -0400 Message-ID: <87eg3jvfj6.fsf@users.sourceforge.net> References: <87twe6sx2g.fsf@users.sourceforge.net> <87eg51ng4r.fsf_-_@users.sourceforge.net> <87k2djwumn.fsf@users.sourceforge.net> <83h98nidvd.fsf@gnu.org> <87eg3rvtsf.fsf@users.sourceforge.net> <83k2dihpm9.fsf@gnu.org> <8760p2wzgj.fsf@users.sourceforge.net> <838ttyhhzu.fsf@gnu.org> <871szqwu51.fsf@users.sourceforge.net> <831szqhbc2.fsf@gnu.org> <87h98hujcx.fsf@users.sourceforge.net> <831szkahyz.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1476411560 7666 195.159.176.226 (14 Oct 2016 02:19:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 14 Oct 2016 02:19:20 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) Cc: 24358@debbugs.gnu.org, peder@klingenberg.no To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 14 04:19:16 2016 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 1bus5Z-00010y-9W for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Oct 2016 04:19:13 +0200 Original-Received: from localhost ([::1]:44609 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bus5X-00060P-UI for geb-bug-gnu-emacs@m.gmane.org; Thu, 13 Oct 2016 22:19:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53948) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bus5S-00060K-Iv for bug-gnu-emacs@gnu.org; Thu, 13 Oct 2016 22:19:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bus5O-0006Wh-Gb for bug-gnu-emacs@gnu.org; Thu, 13 Oct 2016 22:19:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48477) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bus5O-0006Wb-Cx for bug-gnu-emacs@gnu.org; Thu, 13 Oct 2016 22:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bus5O-0007lF-5W for bug-gnu-emacs@gnu.org; Thu, 13 Oct 2016 22:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: npostavs@users.sourceforge.net Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Oct 2016 02:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24358 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24358-submit@debbugs.gnu.org id=B24358.147641152529812 (code B ref 24358); Fri, 14 Oct 2016 02:19:02 +0000 Original-Received: (at 24358) by debbugs.gnu.org; 14 Oct 2016 02:18:45 +0000 Original-Received: from localhost ([127.0.0.1]:54667 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bus56-0007kl-N8 for submit@debbugs.gnu.org; Thu, 13 Oct 2016 22:18:45 -0400 Original-Received: from mail-io0-f180.google.com ([209.85.223.180]:34614) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bus55-0007kY-4P for 24358@debbugs.gnu.org; Thu, 13 Oct 2016 22:18:43 -0400 Original-Received: by mail-io0-f180.google.com with SMTP id r30so107147065ioi.1 for <24358@debbugs.gnu.org>; Thu, 13 Oct 2016 19:18:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=hBsk/a47Bqi5te9dWpTmt5Uu3+PhE/awpT9MXZbGQN8=; b=YIqxF99RLn7/9C5iK+oFhwtUHgxfyURDbmSxnUqgqZ0YroDt3h9KEobQIMMJ6RWhg5 lIUp3ErZ8wJkJXio96qXSC/pI3ntYZ9E6qlbkBVKJHfQDo7CfHoKjpHIrN/vmbOKR8jc Poy0pDF9MBkBH3laOekuF2qvvRQ7dnZr+30wYUebNBebDBoeh4YqYV/GXKwwLLoEqzWh 8FjP4CHbpxtxdMa5PilUUJ5cFZRnqdlfQdDTehLeg9+ljpn51v1cSpWPCVp+IDeo+RaI pOcuhsWwAn37ZXVi81Vbw2QnF3VoBeeDPPzWfntFoU7YIdhRjtagK7StsrgKSeFs3F3+ 1acA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=hBsk/a47Bqi5te9dWpTmt5Uu3+PhE/awpT9MXZbGQN8=; b=G73R0Ax0NBasg0EQHo6eTwgbMtUy4L5RVmCISbXuDNMtd6BbpkNP8iMljfZHWwnLJg lUTQVK+Y+GDNeab1RuW6e7zhlKh34+++sxl8oD/CH7ezBsqzl0q0+kS1BY2g4XKOkaUR 1zEgyA+uBD5HIFu55/U6Eq17PtUjtsO7Ijc97QeBcPBoPTJ55iaE6TtBBxJmUtiVhAnz ck7gQ8hl9UkDo0ck2lsh5Ph8xXABePz2Fql8BW9Tzzfite3KlJWkPPyvN5ud860Z4/ks Mn7V27+wKgjjBCsZenIM7WzS4DldWXjB3FXa2CMUxRjFRY6k2Xgw2AbKLR0h8s0hVFxL VCNg== X-Gm-Message-State: AA6/9Rnn3Z/MzWaxzFq4UlpJzB32rSZUD3YCpg+pLRReCAX1L90o78di8KeF0gfwcJlhDQ== X-Received: by 10.107.175.218 with SMTP id p87mr11345176ioo.80.1476411517509; Thu, 13 Oct 2016 19:18:37 -0700 (PDT) Original-Received: from zony ([45.2.7.130]) by smtp.googlemail.com with ESMTPSA id t141sm691929ita.0.2016.10.13.19.18.35 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 13 Oct 2016 19:18:36 -0700 (PDT) In-Reply-To: <831szkahyz.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 13 Oct 2016 09:19:48 +0300") 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:124455 Archived-At: Eli Zaretskii writes: >> From: npostavs@users.sourceforge.net >> Cc: 24358@debbugs.gnu.org, peder@klingenberg.no >> Date: Wed, 12 Oct 2016 21:29:34 -0400 >> >> > Anyway, the way to countermand this is to record in a local variable >> > the offset from beginning of buffer text to the value of the C pointer >> > before the call to record_xmalloc, then apply the offset after the >> > call to the new buffer text address. (Let me know if this is clear >> > enough.) >> > >> > You can find an example of this in coding.c:decode_coding_emacs_mule >> > (search for "relocated" in that function). >> >> This does involve passing down the lisp reference, right? Just want to >> make sure I'm not missing something obvious before I start changing the >> interface on a bunch of functions. > > Aren't we talking about searching buffer text in this case? If so, > the start address of the buffer text is known globally, it is given by > current_buffer->text->beg. The particular crash reported is during a buffer search, but the bug is in re_match_2_internal which (if I understand correctly) may be called for string search as well.