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: Wed, 12 Oct 2016 21:29:34 -0400 Message-ID: <87h98hujcx.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> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1476322244 3045 195.159.176.226 (13 Oct 2016 01:30:44 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 13 Oct 2016 01:30:44 +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 Thu Oct 13 03:30:40 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 1buUqe-0005y1-Og for geb-bug-gnu-emacs@m.gmane.org; Thu, 13 Oct 2016 03:30:16 +0200 Original-Received: from localhost ([::1]:36714 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1buUqd-0007Hp-GB for geb-bug-gnu-emacs@m.gmane.org; Wed, 12 Oct 2016 21:30:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56550) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1buUqW-0007FH-PJ for bug-gnu-emacs@gnu.org; Wed, 12 Oct 2016 21:30:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1buUqQ-0008MZ-Q6 for bug-gnu-emacs@gnu.org; Wed, 12 Oct 2016 21:30:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47356) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1buUqQ-0008MI-Mu for bug-gnu-emacs@gnu.org; Wed, 12 Oct 2016 21:30:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1buUqQ-0007ik-BP for bug-gnu-emacs@gnu.org; Wed, 12 Oct 2016 21:30: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: Thu, 13 Oct 2016 01:30: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.147632214929571 (code B ref 24358); Thu, 13 Oct 2016 01:30:02 +0000 Original-Received: (at 24358) by debbugs.gnu.org; 13 Oct 2016 01:29:09 +0000 Original-Received: from localhost ([127.0.0.1]:53546 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1buUpZ-0007gs-8C for submit@debbugs.gnu.org; Wed, 12 Oct 2016 21:29:09 -0400 Original-Received: from mail-io0-f171.google.com ([209.85.223.171]:36024) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1buUpX-0007gb-Ht for 24358@debbugs.gnu.org; Wed, 12 Oct 2016 21:29:08 -0400 Original-Received: by mail-io0-f171.google.com with SMTP id j37so69500668ioo.3 for <24358@debbugs.gnu.org>; Wed, 12 Oct 2016 18:29:07 -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=GaUhpJ/LwRd4eEMDRbisG41q3czjhJgjoLKecjKEin0=; b=K6IkEZLUBvHL9i2KT6hoQvncJ3BgdK2qJXaJUPCzxFsn6wbTSIZQoAHy16X/V9Iu/7 eSEZ0bq1LZ4Iex+0lDuOK5U5Qcoh2gYS8Wf7Ret+SxiwXqAS+/WTvQYUpmoJ7nt5QhBZ 4lfSPd90Nh50NmfiWq644DfxcV0ahrt+4X7aX8g/gMVbi1V3V9huMAoXlZYUOeDM8ssk eKaRlGpmO8P9U1FmxLSK2V/ip3uE9EsO0y7ubJOoLMEqnbOGnSbmBJs3uoLE0kLHlok9 mLFBD4ulNJZ8TRaNl2AW9/1SVt5Utt+gXnY/JKGE9GWcKRB+7zU6C2jWspTzO/NFoB6e z7aA== 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=GaUhpJ/LwRd4eEMDRbisG41q3czjhJgjoLKecjKEin0=; b=HSGc6sald6TYxg58yADR7sh+icGYSUOjC5T7NCPzIB715+Sv+yL3x2UIi2N8Ym7oFw sfZRekTpAbNQysMR8OFBVjkay+DeLa5N0p4P/HOEeU0XT9yCisicUumFec905aULk1a9 MArWOjedV1oBtFHuGELHxHJBazT5rw3xEY6jF3iNYlaPXNeeZZmcD0o6bgUmlSGXPWN4 +RlLf24oL7ESm/xmlQ53x5YoANgGyra8Tb2wK0Bw84BU94sqzZOLsU1rE+Wv6CXvGY80 TF3ipIzVeE2PsZgY4/gfGGb7pcPT14tivJJNXdMnQROa7wStcQ3t+2Uq6hJerafaFwDK OQdA== X-Gm-Message-State: AA6/9RnRd+YYyvuNo2Um7dC0FDYb+F+iomOydcsrLNf3OENSfplXKX2Zhv3bshH8csX3ow== X-Received: by 10.107.131.213 with SMTP id n82mr4305319ioi.125.1476322142029; Wed, 12 Oct 2016 18:29:02 -0700 (PDT) Original-Received: from zony ([45.2.7.130]) by smtp.googlemail.com with ESMTPSA id t70sm4695566ita.22.2016.10.12.18.29.00 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 12 Oct 2016 18:29:01 -0700 (PDT) In-Reply-To: <831szqhbc2.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 08 Oct 2016 22:47:41 +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:124422 Archived-At: I wrote: >>>> So possible solutions I can would be to pass down the lisp reference to >>>> re_match_2_internal, [...] Eli Zaretskii writes: >>> (Once we establish this is the problem, we could talk about the fix. >>> IME, pointers could still be passed, but some extra caution is needed >>> when using them.) [...] > 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.