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:59 +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 1477238432 28980 195.159.176.226 (23 Oct 2016 16:00:32 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 23 Oct 2016 16:00:32 +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 18:00:25 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 1byLC7-0005wx-IL for geb-bug-gnu-emacs@m.gmane.org; Sun, 23 Oct 2016 18:00:19 +0200 Original-Received: from localhost ([::1]:41542 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1byLC9-0006VV-Rr for geb-bug-gnu-emacs@m.gmane.org; Sun, 23 Oct 2016 12:00:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56808) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1byLBu-0006O3-DI for bug-gnu-emacs@gnu.org; Sun, 23 Oct 2016 12:00:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1byLBr-0001r7-AS for bug-gnu-emacs@gnu.org; Sun, 23 Oct 2016 12:00:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:33817) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1byLBr-0001qm-61 for bug-gnu-emacs@gnu.org; Sun, 23 Oct 2016 12:00:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1byLBq-0001OF-Vb for bug-gnu-emacs@gnu.org; Sun, 23 Oct 2016 12:00:02 -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 16:00: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: patch fixed Original-Received: via spool by 24358-submit@debbugs.gnu.org id=B24358.14772383485243 (code B ref 24358); Sun, 23 Oct 2016 16:00:02 +0000 Original-Received: (at 24358) by debbugs.gnu.org; 23 Oct 2016 15:59:08 +0000 Original-Received: from localhost ([127.0.0.1]:49215 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1byLAx-0001MV-Sh for submit@debbugs.gnu.org; Sun, 23 Oct 2016 11:59:08 -0400 Original-Received: from mail-it0-f54.google.com ([209.85.214.54]:34923) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1byLAw-0001Lu-1R for 24358@debbugs.gnu.org; Sun, 23 Oct 2016 11:59:06 -0400 Original-Received: by mail-it0-f54.google.com with SMTP id 198so82644146itw.0 for <24358@debbugs.gnu.org>; Sun, 23 Oct 2016 08:59:05 -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=kARsO/G7zlxalBnrOT7mPIYgDW7cwPB7Ub8UT4nZlmE=; b=C8PH/KsuvQULwgk0sXHamSk89zfea+B8KHjajSMMiVDGD4tZX8EY0qMT13nYPHdrtK pvJY1DoRadGBlkDLPglSF6wyQ7El9f1OtjrKRoyZGhq0cj9W+T4FC9Q3RsrXsBKQtCWa hDDcmZT9QAo00wJQbsrqHJjLLQlHuJxUkweCyTXPf4r0KVvhTAQUcKX9j75FZwHajg6T gCgEsJILmhujoFLR+PTPafGqdeSvQ2Dp8hRX6Jgq6yCLfayaTZGLozK+UEM6e26FSZep Af+kqW0yMTEmkJJH4Bwzm8J8BULw0RhgUiZ6N6kK8EzCci8zvZTn42uZI/fJPhOI0emJ WxDw== 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=kARsO/G7zlxalBnrOT7mPIYgDW7cwPB7Ub8UT4nZlmE=; b=QTsNtTiHPxaW7E0cvnT/ACNMoEb+iadc7GrMXZW0gEe3mjgZwLbW0pnhldkBQYCQUm BSgmddo0mw1T3l069yyY3MuvB3EQFxU2/74Wod01yGEodyRA3FLd6j+PPqDrReUfPWiB S/7s2u0JhaCcXyGxO2qFWdPvR1QOK1bW44QN3ojvFpMGFS3Wnj3wunkSeS90do6tdQp+ YdBRC1u15OlQsSY3a4+b+cAgJz+bdLToGoi33LEwIrLWGGLVt6ro//AezT2Aw5J4FRNk Vy+ZjZVcuhAxcwwBakTLqQXeEJT91M5+fxtUw9XJUfMjHtBBRo/kWCWBJIYdAE91Fo1Y zzbg== X-Gm-Message-State: ABUngveqmo7ohvP2TH654KLn1N38aA75CwgtHrj0AsZP7d9LYoz/QYA33bCS+Fnq75/D7evn5M+APCDY/YqNLw== X-Received: by 10.36.26.212 with SMTP id 203mr7568140iti.55.1477238340491; Sun, 23 Oct 2016 08:59:00 -0700 (PDT) Original-Received: by 10.50.40.3 with HTTP; Sun, 23 Oct 2016 08:58:59 -0700 (PDT) In-Reply-To: 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:124908 Archived-At: aha! Found out how to print the args (gdb) info args error_symbol = { i = 9600 } data = { i = 116316307 } (gdb) f 2 #2 0x00000000006352ae in xsignal3 (error_symbol=..., arg1=..., arg2=..., arg3=...) at eval.c:1609 1609 xsignal (error_symbol, list3 (arg1, arg2, arg3)); (gdb) info args error_symbol = { i = 9600 } arg1 = { i = 63960004 } arg2 = { i = -18 } arg3 = { i = 0 } On 23 October 2016 at 16:58, Sam Halliday wrote: > 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.