From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Sam Halliday Newsgroups: gmane.emacs.bugs Subject: bug#24358: 25.1.50; re-search-forward errors with "Variable binding depth exceeds max-specpdl-size" Date: Sun, 23 Oct 2016 16:58:07 +0100 Message-ID: References: <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> <87eg3jvfj6.fsf@users.sourceforge.net> <8360ov8lbu.fsf@gnu.org> <877f95uj66.fsf@users.sourceforge.net> <83zim0vn1t.fsf@gnu.org> <874m48v7wj.fsf@users.sourceforge.net> <83insov1zr.fsf@gnu.org> <87zilztzd5.fsf@users.sourceforge.net> <83oa2ftnvp.fsf@gnu.org> <87wph2ts1a.fsf@users.sourceforge.net> <83oa2erx0k.fsf@gnu.org> <87lgxht8hp.fsf@users.sourceforge.net> <871sz8kq2v.fsf@gmail.com> <87shroroh8.fsf@users.sourceforge.net> <838ttfpnxt.fsf@gnu.org> <83vawjo21l.fsf@gnu.org> <83bmybnopx.fsf@gnu.org> <8360ojnk0n.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: blaine.gmane.org 1477238364 29786 195.159.176.226 (23 Oct 2016 15:59:24 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 23 Oct 2016 15:59:24 +0000 (UTC) Cc: 24358@debbugs.gnu.org, npostavs@users.sourceforge.net To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Oct 23 17:59:19 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 1byLAz-0005sB-Nm for geb-bug-gnu-emacs@m.gmane.org; Sun, 23 Oct 2016 17:59:09 +0200 Original-Received: from localhost ([::1]:41512 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1byLB2-0006Aa-6L for geb-bug-gnu-emacs@m.gmane.org; Sun, 23 Oct 2016 11:59:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56367) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1byLAv-0006AJ-C1 for bug-gnu-emacs@gnu.org; Sun, 23 Oct 2016 11:59:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1byLAs-0001W6-90 for bug-gnu-emacs@gnu.org; Sun, 23 Oct 2016 11:59:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:33812) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1byLAs-0001Vw-54 for bug-gnu-emacs@gnu.org; Sun, 23 Oct 2016 11:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1byLAr-0001M2-QA for bug-gnu-emacs@gnu.org; Sun, 23 Oct 2016 11:59:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Sam Halliday Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 23 Oct 2016 15:59:01 +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: patch fixed Original-Received: via spool by 24358-submit@debbugs.gnu.org id=B24358.14772382955151 (code B ref 24358); Sun, 23 Oct 2016 15:59:01 +0000 Original-Received: (at 24358) by debbugs.gnu.org; 23 Oct 2016 15:58:15 +0000 Original-Received: from localhost ([127.0.0.1]:49207 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1byLA7-0001L1-FP for submit@debbugs.gnu.org; Sun, 23 Oct 2016 11:58:15 -0400 Original-Received: from mail-it0-f47.google.com ([209.85.214.47]:35295) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1byLA6-0001Ko-2B for 24358@debbugs.gnu.org; Sun, 23 Oct 2016 11:58:14 -0400 Original-Received: by mail-it0-f47.google.com with SMTP id 198so82610477itw.0 for <24358@debbugs.gnu.org>; Sun, 23 Oct 2016 08:58:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=V8Z8C3Oq5hopBDJ5TgrIqjtzP58pbkwDW+mUqcp4TWk=; b=MzU8UMDDO0T1s2JY1gyh8p2SQ4qxCMvRx1Dzax0MCNbRnBo2reYrqzuHBannNVw6c8 UGPS3ElObFO4HNjDfG/nP9k1/UizzpoRV3AUMDK+xTwQ9mqq/Lfo+Kxqg2/2SLeV6u0g KcgN7dcXMr9fjKM1Z23hYXzz2gSs/vq0q290VQBCLz88ewtJUZnrtjSnM8OjGofGMLtY T3n2QsQUFjebcrcR4LOOBYoVFGj5uBDveBP1Zz5tKGzx99b4vzSm6wQrvStNuxYQAQCn MXGjCvEFjdWi5EXH0EqTWTdf9bzCYOngAa66toWTb/VFDeXxiIlfXQo5A1XwEldmdtBW 2zcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=V8Z8C3Oq5hopBDJ5TgrIqjtzP58pbkwDW+mUqcp4TWk=; b=WUDFx5N19l9g147uR+SRBsWI5IXn4RGkYtSEm1Z60AhfCB065dAAqg8NkJd6Y7bDdT H/xq0ORuqosuS0Pk+0vAJ+mVHpEZ4YW1yo29QjSutQ4ZMjnGXPfOYcGbPkE7DZnTa8tc 5VK5lSWv2k6ISg5yCG+pMaK73m2UFMcNQ1pPYfEc45KZGmrjZsDnsdAGoFRIp2yIg8zt L+LlA/ZR5wwxuy3PWpkyinNVw2cf9XbDhfw0L1v2JQQf7G0QfhN88Tl4SKZfyPwcZdvP mgRu207zcvTb4SF0IIpJTSmfrRAW57BmsRxjSY+pdSd96nyalkmerfCIzVmJhcMgaPjT 5OZA== X-Gm-Message-State: ABUngvdhxcsDTgI4LImfWGNOY5mE40iE2boobRQzBPVJJd0hlAPyViumOGjk2yrInSGvgXG+ZAtb7ageflH6Pw== X-Received: by 10.36.50.149 with SMTP id j143mr9531823ita.9.1477238288231; Sun, 23 Oct 2016 08:58:08 -0700 (PDT) Original-Received: by 10.50.40.3 with HTTP; Sun, 23 Oct 2016 08:58:07 -0700 (PDT) In-Reply-To: <8360ojnk0n.fsf@gnu.org> 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:124907 Archived-At: ok, that worked to source the .gdbinit and xbacktrace works now... (this is a fresh session). I don't know how to print out the parameters to this function. I tried "info" (see below) but it's still giving ... EMACSLOADPATH= gdb ../src/emacs GNU gdb (GDB) 7.12 Copyright (C) 2016 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-pc-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from ../src/emacs...done. (gdb) break Fsigna Function "Fsigna" not defined. Make breakpoint pending on future shared library load? (y or [n]) y Breakpoint 1 (Fsigna) pending. (gdb) break Fsignal Breakpoint 2 at 0x634e00: file eval.c, line 1476. (gdb) source ../src/.gdbinit SIGINT is used by the debugger. Are you sure you want to change it? (y or n) [answered Y; input not from terminal] DISPLAY = :0 TERM = rxvt-unicode-256color Breakpoint 3 at 0x583686: file emacs.c, line 354. Temporary breakpoint 4 at 0x5ae0bc: file sysdep.c, line 915. (gdb) run -batch --no-site-file --no-site-lisp -batch -l ja-dic-cnv -f batch-skkdic-convert -dir "./../lisp/leim/ja-dic" "SKK-DIC/SKK-JISYO.L" Starting program: /home/fommil/build/emacs-git/emacs/src/emacs -batch --no-site-file --no-site-lisp -batch -l ja-dic-cnv -f batch-skkdic-convert -dir "./../lisp/leim/ja-dic" "SKK-DIC/SKK-JISYO.L" [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib/libthread_db.so.1". [New Thread 0x7fffe72e5700 (LWP 24197)] Reading file "/home/fommil/build/emacs-git/emacs/leim/SKK-DIC/SKK-JISYO.L" ... Processing OKURI-ARI entries ... Processing POSTFIX entries ... Processing PREFIX entries ... Collecting OKURI-NASI entries ... collected 26% ... collected 30% ... collected 40% ... collected 50% ... collected 60% ... collected 70% ... collected 80% ... collected 90% ... Processing OKURI-NASI entries ... processed 10% ... processed 20% ... processed 30% ... processed 40% ... Thread 1 "emacs" hit Breakpoint 2, Fsignal (error_symbol=..., data=...) at eval.c:1476 1476 = (NILP (error_symbol) ? Fcar (data) : error_symbol); (gdb) xbacktrace "substring" (0xffff6f00) "string=" (0xffff70a0) "if" (0xffff7230) "while" (0xffff7400) "catch" (0xffff7600) "let" (0xffff7860) "and" (0xffff79f0) "let" (0xffff7c50) "and" (0xffff7de0) "or" (0xffff7f70) "let" (0xffff81d0) "skkdic-breakup-string" (0xffff8380) "or" (0xffff8690) "and" (0xffff8820) "or" (0xffff89b0) "if" (0xffff8b40) "let" (0xffff8da0) "while" (0xffff8f70) "let" (0xffff91e0) "and" (0xffff9370) "or" (0xffff9500) "let" (0xffff9760) "skkdic-breakup-string" (0xffff9910) "not" (0xffff9be0) "and" (0xffff9d70) "or" (0xffff9f00) "if" (0xffffa090) "while" (0xffffa260) "let" (0xffffa4c0) "skkdic-reduced-candidates" (0xffffa670) "setq" (0xffffa9b0) "if" (0xffffab40) "let" (0xffffada0) "while" (0xffffaf70) "let" (0xffffb1e0) "save-current-buffer" (0xffffb390) "skkdic-convert-okuri-nasi" (0xffffb540) "let" (0xffffb900) "save-current-buffer" (0xffffbab0) "let*" (0xffffbcc0) "skkdic-convert" (0xffffbe70) "let" (0xffffc230) "if" (0xffffc3f0) "batch-skkdic-convert" (0xffffc6e8) "command-line-1" (0xffffcf80) "command-line" (0xffffd878) "normal-top-level" (0xffffe040) (gdb) bt #0 0x0000000000634e00 in Fsignal (error_symbol=..., data=...) at eval.c:1476 #1 0x00000000006351d9 in xsignal (error_symbol=..., data=...) at eval.c:1582 #2 0x00000000006352ae in xsignal3 (error_symbol=..., arg1=..., arg2=..., arg3=...) at eval.c:1609 #3 0x0000000000614d16 in args_out_of_range_3 (a1=..., a2=..., a3=...) at data.c:169 #4 0x000000000063f687 in validate_subarray (array=..., from=..., to=..., size=4, ifrom=0x7fffffff6e18, ito=0x7fffffff6e10) at fns.c:1210 #5 0x000000000063f70c in Fsubstring (string=..., from=..., to=...) at fns.c:1235 #6 0x0000000000636da4 in eval_sub (form=...) at eval.c:2177 #7 0x0000000000636c98 in eval_sub (form=...) at eval.c:2159 #8 0x0000000000631bb4 in Fif (args=...) at eval.c:385 #9 0x00000000006369df in eval_sub (form=...) at eval.c:2124 #10 0x0000000000631e85 in Fprogn (body=...) at eval.c:431 (gdb) info f Stack level 1, frame at 0x7fffffff6cf0: rip = 0x6351d9 in xsignal (eval.c:1582); saved rip = 0x6352ae called by frame at 0x7fffffff6d40, caller of frame at 0x7fffffff6cc0 source language c. Arglist at 0x7fffffff6ce0, args: error_symbol=..., data=... Locals at 0x7fffffff6ce0, Previous frame's sp is 0x7fffffff6cf0 Saved registers: rbp at 0x7fffffff6ce0, rip at 0x7fffffff6ce8 On 23 October 2016 at 16:48, Eli Zaretskii wrote: >> From: Sam Halliday >> Date: Sun, 23 Oct 2016 16:42:20 +0100 >> Cc: npostavs@users.sourceforge.net, 24358@debbugs.gnu.org >> >> breaking on Fsignal is hitting the problem... not sure what to do >> here. I can type "bt" but that's where my gdb skillz end... do you >> want me to do anything else or is this enough? > > "bt" is a good start, thanks. After that, the results of "xbacktrace" > will help more. > >> I'd imagine seeing the contents of error_symbol and data would be >> pretty useful. I'm not sure the etc/DEBUG .gdbinit file is being >> loaded properly when invoked from the leim directory. > > You can read .gdbinit manually: > > (gdb) source ../src/.gdbinit > > And yes, making sure error_symbol and data are as we expect them would > be a good start. > > Thanks.