From unknown Tue Jun 17 01:46:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#7740: Crash calling substring on a menu string in post-command-hook (w32) Resent-From: Lennart Borgman Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 27 Dec 2010 04:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 7740 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 7740@debbugs.gnu.org X-Debbugs-Original-To: Emacs Bugs Received: via spool by submit@debbugs.gnu.org id=B.129342350420174 (code B ref -1); Mon, 27 Dec 2010 04:19:02 +0000 Received: (at submit) by debbugs.gnu.org; 27 Dec 2010 04:18:24 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PX4XP-0005FL-QS for submit@debbugs.gnu.org; Sun, 26 Dec 2010 23:18:24 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PX4XO-0005F9-2N for submit@debbugs.gnu.org; Sun, 26 Dec 2010 23:18:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PX4dv-0000Eb-St for submit@debbugs.gnu.org; Sun, 26 Dec 2010 23:25:09 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:57902) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PX4dv-0000EW-Ph for submit@debbugs.gnu.org; Sun, 26 Dec 2010 23:25:07 -0500 Received: from [140.186.70.92] (port=52673 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PX4du-000151-Ao for bug-gnu-emacs@gnu.org; Sun, 26 Dec 2010 23:25:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PX4ds-0000De-P5 for bug-gnu-emacs@gnu.org; Sun, 26 Dec 2010 23:25:06 -0500 Received: from mail-ew0-f41.google.com ([209.85.215.41]:49831) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PX4ds-0000D3-FY for bug-gnu-emacs@gnu.org; Sun, 26 Dec 2010 23:25:04 -0500 Received: by ewy27 with SMTP id 27so4993370ewy.0 for ; Sun, 26 Dec 2010 20:25:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:from:date :message-id:subject:to:content-type; bh=lz59zgcZ6p+dqNl9dn8WhVjfpt1sCdQLQAVfKvCoaWY=; b=w/lTi0LZp8AmmJGTb5AcrQuLjMJ42vSCEPnPAD2JUV0hKWL9u/ZZMphoN7PSz9GqFg h48fN0g9xj9EX5qTE+0ePya90kaKvNgO1cnR4YcfO+LOcCjEKHjl1WbryT6dbb+PArZl /pb5GG0ZxD7beqlyORUnGpJtWH1Zj1DzfUSWk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=UIZAZ3JCSxcRQeUE+uAKuLvC+QGQQKNSomkX+hbpdydDH7FE4Pgyuna23lfOKWGolr 5obDDTwYnx40uX/EzNiEVqgEPVsisiEx6pvHNSpZ+MsnzXaMwAtCyCU+jPamR7qJxoRj mW7mXzBTvk9qeVc7QK3QuRhKGZTJ6+Dgx/jpw= Received: by 10.213.35.209 with SMTP id q17mr9424047ebd.97.1293423903058; Sun, 26 Dec 2010 20:25:03 -0800 (PST) MIME-Version: 1.0 Received: by 10.213.20.148 with HTTP; Sun, 26 Dec 2010 20:24:42 -0800 (PST) From: Lennart Borgman Date: Mon, 27 Dec 2010 05:24:42 +0100 Message-ID: Content-Type: text/plain; charset=UTF-8 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Spam-Score: -4.7 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.7 (----) A new crash, related to menu handling. It occurs in post-command-hook while grabbing a substring from a string returned by tmm (or a slightly modified version of it). I notice that so far most of the crashes I have seen earlier has been related to the system. I wonder if this one is it too in some way. (Could the menu strings have been changed in some ways by the system calls?) I can't find much information. Below is the backtrace and the few variable I know how to get. (The library menuacc is in the repository for nXhtml. I see no reason to copy part of the code here.) My patched version: GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600) from trunk 2010-10-19 on LENNART-69DE564 (patched) (gdb) p i $1 = (INTERVAL) 0x55bb290 (gdb) p old_diff $2 = 48345856 (gdb) p new_diff $3 = 67373824 (gdb) Program received signal SIGSEGV, Segmentation fault. 0x011ddddd in balance_an_interval (i=0x55bb290) at intervals.c:410 410 old_diff = LEFT_TOTAL_LENGTH (i) - RIGHT_TOTAL_LENGTH (i); (gdb) bt #0 0x011ddddd in balance_an_interval (i=0x55bb290) at intervals.c:410 #1 0x011de39a in balance_possible_root_interval (interval=0x55bb290) at intervals.c:454 #2 0x011de5b7 in find_interval (tree=0x55bb290, position=0) at intervals.c:639 #3 0x01193b4f in validate_interval_range (object=68189697, begin=0x82c9c0, end=0x82c9c4, force=0) at textprop.c:183 #4 0x01197687 in copy_text_properties (start=0, end=12, src=68189697, pos=0, dest=63578305, prop=45488154) at textprop.c:1830 #5 0x010459af in Fsubstring (string=68189697, from=0, to=12) at fns.c:1189 #6 0x0102058e in Feval (form=48161934) at eval.c:2358 #7 0x010204b1 in Feval (form=48161918) at eval.c:2337 #8 0x0101d20b in Fand (args=48161974) at eval.c:319 #9 0x01020299 in Feval (form=48161862) at eval.c:2297 #10 0x0101d247 in Fif (args=63290438) at eval.c:341 #11 0x01020299 in Feval (form=63290430) at eval.c:2297 #12 0x0102081b in Feval (form=48161854) at eval.c:2410 #13 0x0101d33d in Fprogn (args=48162078) at eval.c:395 #14 0x01020299 in Feval (form=48161846) at eval.c:2297 #15 0x0101d26a in Fif (args=48161838) at eval.c:345 #16 0x01020299 in Feval (form=48161814) at eval.c:2297 #17 0x0101d33d in Fprogn (args=62617958) at eval.c:395 #18 0x01020299 in Feval (form=63290790) at eval.c:2297 #19 0x0101d26a in Fif (args=63290774) at eval.c:345 #20 0x01020299 in Feval (form=63290766) at eval.c:2297 #21 0x0102081b in Feval (form=48163518) at eval.c:2410 #22 0x0101d33d in Fprogn (args=48161150) at eval.c:395 #23 0x0101e526 in Flet (args=48163510) at eval.c:1052 #24 0x01020299 in Feval (form=48163390) at eval.c:2297 #25 0x0101d33d in Fprogn (args=63527430) at eval.c:395 #26 0x01021d38 in funcall_lambda (fun=63527382, nargs=1, arg_vector=0x82d93c) at eval.c:3167 #27 0x01021863 in Ffuncall (nargs=2, args=0x82d938) at eval.c:3047 #28 0x010210c9 in call1 (fn=63527382, arg1=46608126) at eval.c:2789 #29 0x01048a07 in mapcar1 (leni=13, vals=0x0, fn=63527382, seq=63715758) at fns.c:2356 #30 0x01048dad in Fmapc (function=63527382, sequence=63715758) at fns.c:2445 #31 0x0102055e in Feval (form=48163326) at eval.c:2355 #32 0x0101d33d in Fprogn (args=63528414) at eval.c:395 #33 0x0101e600 in Fwhile (args=63528398) at eval.c:1074 #34 0x01020299 in Feval (form=63528094) at eval.c:2297 #35 0x0101d33d in Fprogn (args=63528086) at eval.c:395 #36 0x0101e526 in Flet (args=63527902) at eval.c:1052 #37 0x01020299 in Feval (form=63527734) at eval.c:2297 #38 0x0101d33d in Fprogn (args=63527526) at eval.c:395 #39 0x0101e89e in internal_catch (tag=56118802, func=0x101d314 , arg=63527526) at eval.c:1204 #40 0x0101e809 in Fcatch (args=63527478) at eval.c:1175 #41 0x01020299 in Feval (form=63527470) at eval.c:2297 #42 0x010204b1 in Feval (form=63527438) at eval.c:2337 #43 0x0102081b in Feval (form=63527534) at eval.c:2410 #44 0x0102081b in Feval (form=48163262) at eval.c:2410 #45 0x0101d33d in Fprogn (args=63836654) at eval.c:395 #46 0x0101e600 in Fwhile (args=63835942) at eval.c:1074 #47 0x01020299 in Feval (form=63835918) at eval.c:2297 #48 0x0101d33d in Fprogn (args=63835630) at eval.c:395 #49 0x0101e526 in Flet (args=63835622) at eval.c:1052 #50 0x01020299 in Feval (form=63729254) at eval.c:2297 #51 0x0101d33d in Fprogn (args=62617102) at eval.c:395 #52 0x0101e89e in internal_catch (tag=56118802, func=0x101d314 , arg=62617102) at eval.c:1204 #53 0x0101e809 in Fcatch (args=63462958) at eval.c:1175 #54 0x01020299 in Feval (form=63462934) at eval.c:2297 #55 0x010204b1 in Feval (form=63462486) at eval.c:2337 #56 0x0102081b in Feval (form=63729030) at eval.c:2410 #57 0x0102081b in Feval (form=48163190) at eval.c:2410 #58 0x0101d33d in Fprogn (args=48161198) at eval.c:395 #59 0x0101e526 in Flet (args=48163126) at eval.c:1052 #60 0x01020299 in Feval (form=48162942) at eval.c:2297 #61 0x0101d33d in Fprogn (args=48161206) at eval.c:395 #62 0x01020299 in Feval (form=48162934) at eval.c:2297 #63 0x0101d33d in Fprogn (args=48161214) at eval.c:395 #64 0x01021d38 in funcall_lambda (fun=48161222, nargs=1, arg_vector=0x82f0c0) at eval.c:3167 #65 0x01021a4e in apply_lambda (fun=48161222, args=48161286, eval_flag=1) at eval.c:3100 #66 0x01020845 in Feval (form=48161278) at eval.c:2412 #67 0x0101d33d in Fprogn (args=48161294) at eval.c:395 #68 0x01021d38 in funcall_lambda (fun=48161534, nargs=1, arg_vector=0x82f300) at eval.c:3167 #69 0x01021a4e in apply_lambda (fun=48161534, args=48159886, eval_flag=1) at eval.c:3100 #70 0x01020845 in Feval (form=48159878) at eval.c:2412 #71 0x0101d33d in Fprogn (args=48159894) at eval.c:395 #72 0x0101e526 in Flet (args=48159806) at eval.c:1052 #73 0x01020299 in Feval (form=48161758) at eval.c:2297 #74 0x0101eca3 in internal_lisp_condition_case (var=45733034, bodyform=48161758, handlers=48159966) at eval.c:1407 #75 0x0101eac5 in Fcondition_case (args=48161750) at eval.c:1349 #76 0x01020299 in Feval (form=48161742) at eval.c:2297 #77 0x0101d33d in Fprogn (args=48159974) at eval.c:395 #78 0x01021d38 in funcall_lambda (fun=48159982, nargs=0, arg_vector=0x82fa38) at eval.c:3167 #79 0x01021863 in Ffuncall (nargs=1, args=0x82fa34) at eval.c:3047 #80 0x01020f02 in run_hook_with_args (nargs=1, args=0x82fa34, cond=to_completion) at eval.c:2679 #81 0x01020c95 in Frun_hooks (nargs=1, args=0x82faec) at eval.c:2542 #82 0x010214c1 in Ffuncall (nargs=2, args=0x82fae8) at eval.c:2971 #83 0x010210c9 in call1 (fn=45644402, arg1=45533738) at eval.c:2789 #84 0x01005b86 in safe_run_hooks_1 () at keyboard.c:2020 #85 0x0101edad in internal_condition_case (bfun=0x1005b53 , handlers=45488178, hfun=0x1005b8e ) at eval.c:1460 #86 0x01005c26 in safe_run_hooks (hook=45533738) at keyboard.c:2046 #87 0x01004f02 in command_loop_1 () at keyboard.c:1743 #88 0x0101edad in internal_condition_case (bfun=0x10047e9 , handlers=45541738, hfun=0x10041de ) at eval.c:1460 #89 0x0100454e in command_loop_2 (ignore=45488154) at keyboard.c:1327 #90 0x0101e89e in internal_catch (tag=45539858, func=0x100452b , arg=45488154) at eval.c:1204 #91 0x01004506 in command_loop () at keyboard.c:1306 #92 0x01003dfa in recursive_edit_1 () at keyboard.c:929 #93 0x01003f5e in Frecursive_edit () at keyboard.c:991 #94 0x0100266f in main (argc=1, argv=0xa941b0) at emacs.c:1721 Lisp Backtrace: "substring" (0x82ca60) "string=" (0x82cc00) "and" (0x82cd50) "if" (0x82cea0) "when" (0x82cfb0) "progn" (0x82d100) "if" (0x82d250) "progn" (0x82d3a0) "if" (0x82d4f0) "when" (0x82d600) "let" (0x82d7f0) 0x3c959d6 Lisp type 6 "mapc" (0x82da70) "while" (0x82dcb0) "let" (0x82dea0) "catch" (0x82e0b0) "cl-block-wrapper" (0x82e1c0) "block" (0x82e2d0) "dolist" (0x82e3e0) "while" (0x82e590) "let" (0x82e780) "catch" (0x82e990) "cl-block-wrapper" (0x82eaa0) "block" (0x82ebb0) "dolist" (0x82ecc0) "let" (0x82eec0) "progn" (0x82f010) "menuacc-add-accel-1" (0x82f0c0) "menuacc-add-accel" (0x82f300) "let" (0x82f680) "condition-case" (0x82f880) "menuacc-add-accel-from-post-command-hook" (0x82fa38) "run-hooks" (0x82faec) (gdb) From unknown Tue Jun 17 01:46:31 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.428 (Entity 5.428) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Lennart Borgman Subject: bug#7740: closed (Re: bug#7740: Crash calling substring on a menu string in post-command-hook (w32)) Message-ID: References: <3hhalb8wbk.fsf@fencepost.gnu.org> X-Gnu-PR-Message: they-closed 7740 X-Gnu-PR-Package: emacs,w32 Reply-To: 7740@debbugs.gnu.org Date: Sun, 17 Feb 2013 03:17:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1361071022-24732-1" This is a multi-part message in MIME format... ------------=_1361071022-24732-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #7740: Crash calling substring on a menu string in post-command-hook (w32) which was filed against the emacs,w32 package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 7740@debbugs.gnu.org. --=20 7740: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D7740 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1361071022-24732-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 7740-done) by debbugs.gnu.org; 17 Feb 2013 03:16:38 +0000 Received: from localhost ([127.0.0.1]:59811 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U6uk2-0006Q6-AH for submit@debbugs.gnu.org; Sat, 16 Feb 2013 22:16:38 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:59835) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U6ujz-0006Pz-Hh for 7740-done@debbugs.gnu.org; Sat, 16 Feb 2013 22:16:36 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1U6uj9-0003Ya-Fe; Sat, 16 Feb 2013 22:15:43 -0500 From: Glenn Morris To: 7740-done@debbugs.gnu.org Subject: Re: bug#7740: Crash calling substring on a menu string in post-command-hook (w32) References: X-Spook: morse mailbomb lynch Afghanistan InfoSec George W. Bush X-Ran: dBuGj`.m^`dl/_:~_%4Pe@lwY-/Z`/eQv$?-5J)lyYLF=?g)Fk`jFvW1_Y}8T@G X-Hue: cyan X-Attribution: GM Date: Sat, 16 Feb 2013 22:15:43 -0500 In-Reply-To: (Lennart Borgman's message of "Mon, 27 Dec 2010 05:24:42 +0100") Message-ID: <3hhalb8wbk.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: 7740-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.5 (-----) Sorry no-one ever replied. After so much time, I don't think we can do anything without a recipe to reproduce this issue, or a live GDB session. If it happens again with the current version of Emacs (currently 24.2), please make a new report and hopefully we do better next time. ------------=_1361071022-24732-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 27 Dec 2010 04:18:24 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PX4XP-0005FL-QS for submit@debbugs.gnu.org; Sun, 26 Dec 2010 23:18:24 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PX4XO-0005F9-2N for submit@debbugs.gnu.org; Sun, 26 Dec 2010 23:18:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PX4dv-0000Eb-St for submit@debbugs.gnu.org; Sun, 26 Dec 2010 23:25:09 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:57902) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PX4dv-0000EW-Ph for submit@debbugs.gnu.org; Sun, 26 Dec 2010 23:25:07 -0500 Received: from [140.186.70.92] (port=52673 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PX4du-000151-Ao for bug-gnu-emacs@gnu.org; Sun, 26 Dec 2010 23:25:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PX4ds-0000De-P5 for bug-gnu-emacs@gnu.org; Sun, 26 Dec 2010 23:25:06 -0500 Received: from mail-ew0-f41.google.com ([209.85.215.41]:49831) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PX4ds-0000D3-FY for bug-gnu-emacs@gnu.org; Sun, 26 Dec 2010 23:25:04 -0500 Received: by ewy27 with SMTP id 27so4993370ewy.0 for ; Sun, 26 Dec 2010 20:25:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:from:date :message-id:subject:to:content-type; bh=lz59zgcZ6p+dqNl9dn8WhVjfpt1sCdQLQAVfKvCoaWY=; b=w/lTi0LZp8AmmJGTb5AcrQuLjMJ42vSCEPnPAD2JUV0hKWL9u/ZZMphoN7PSz9GqFg h48fN0g9xj9EX5qTE+0ePya90kaKvNgO1cnR4YcfO+LOcCjEKHjl1WbryT6dbb+PArZl /pb5GG0ZxD7beqlyORUnGpJtWH1Zj1DzfUSWk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=UIZAZ3JCSxcRQeUE+uAKuLvC+QGQQKNSomkX+hbpdydDH7FE4Pgyuna23lfOKWGolr 5obDDTwYnx40uX/EzNiEVqgEPVsisiEx6pvHNSpZ+MsnzXaMwAtCyCU+jPamR7qJxoRj mW7mXzBTvk9qeVc7QK3QuRhKGZTJ6+Dgx/jpw= Received: by 10.213.35.209 with SMTP id q17mr9424047ebd.97.1293423903058; Sun, 26 Dec 2010 20:25:03 -0800 (PST) MIME-Version: 1.0 Received: by 10.213.20.148 with HTTP; Sun, 26 Dec 2010 20:24:42 -0800 (PST) From: Lennart Borgman Date: Mon, 27 Dec 2010 05:24:42 +0100 Message-ID: Subject: Crash calling substring on a menu string in post-command-hook (w32) To: Emacs Bugs Content-Type: text/plain; charset=UTF-8 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Spam-Score: -4.7 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.7 (----) A new crash, related to menu handling. It occurs in post-command-hook while grabbing a substring from a string returned by tmm (or a slightly modified version of it). I notice that so far most of the crashes I have seen earlier has been related to the system. I wonder if this one is it too in some way. (Could the menu strings have been changed in some ways by the system calls?) I can't find much information. Below is the backtrace and the few variable I know how to get. (The library menuacc is in the repository for nXhtml. I see no reason to copy part of the code here.) My patched version: GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600) from trunk 2010-10-19 on LENNART-69DE564 (patched) (gdb) p i $1 = (INTERVAL) 0x55bb290 (gdb) p old_diff $2 = 48345856 (gdb) p new_diff $3 = 67373824 (gdb) Program received signal SIGSEGV, Segmentation fault. 0x011ddddd in balance_an_interval (i=0x55bb290) at intervals.c:410 410 old_diff = LEFT_TOTAL_LENGTH (i) - RIGHT_TOTAL_LENGTH (i); (gdb) bt #0 0x011ddddd in balance_an_interval (i=0x55bb290) at intervals.c:410 #1 0x011de39a in balance_possible_root_interval (interval=0x55bb290) at intervals.c:454 #2 0x011de5b7 in find_interval (tree=0x55bb290, position=0) at intervals.c:639 #3 0x01193b4f in validate_interval_range (object=68189697, begin=0x82c9c0, end=0x82c9c4, force=0) at textprop.c:183 #4 0x01197687 in copy_text_properties (start=0, end=12, src=68189697, pos=0, dest=63578305, prop=45488154) at textprop.c:1830 #5 0x010459af in Fsubstring (string=68189697, from=0, to=12) at fns.c:1189 #6 0x0102058e in Feval (form=48161934) at eval.c:2358 #7 0x010204b1 in Feval (form=48161918) at eval.c:2337 #8 0x0101d20b in Fand (args=48161974) at eval.c:319 #9 0x01020299 in Feval (form=48161862) at eval.c:2297 #10 0x0101d247 in Fif (args=63290438) at eval.c:341 #11 0x01020299 in Feval (form=63290430) at eval.c:2297 #12 0x0102081b in Feval (form=48161854) at eval.c:2410 #13 0x0101d33d in Fprogn (args=48162078) at eval.c:395 #14 0x01020299 in Feval (form=48161846) at eval.c:2297 #15 0x0101d26a in Fif (args=48161838) at eval.c:345 #16 0x01020299 in Feval (form=48161814) at eval.c:2297 #17 0x0101d33d in Fprogn (args=62617958) at eval.c:395 #18 0x01020299 in Feval (form=63290790) at eval.c:2297 #19 0x0101d26a in Fif (args=63290774) at eval.c:345 #20 0x01020299 in Feval (form=63290766) at eval.c:2297 #21 0x0102081b in Feval (form=48163518) at eval.c:2410 #22 0x0101d33d in Fprogn (args=48161150) at eval.c:395 #23 0x0101e526 in Flet (args=48163510) at eval.c:1052 #24 0x01020299 in Feval (form=48163390) at eval.c:2297 #25 0x0101d33d in Fprogn (args=63527430) at eval.c:395 #26 0x01021d38 in funcall_lambda (fun=63527382, nargs=1, arg_vector=0x82d93c) at eval.c:3167 #27 0x01021863 in Ffuncall (nargs=2, args=0x82d938) at eval.c:3047 #28 0x010210c9 in call1 (fn=63527382, arg1=46608126) at eval.c:2789 #29 0x01048a07 in mapcar1 (leni=13, vals=0x0, fn=63527382, seq=63715758) at fns.c:2356 #30 0x01048dad in Fmapc (function=63527382, sequence=63715758) at fns.c:2445 #31 0x0102055e in Feval (form=48163326) at eval.c:2355 #32 0x0101d33d in Fprogn (args=63528414) at eval.c:395 #33 0x0101e600 in Fwhile (args=63528398) at eval.c:1074 #34 0x01020299 in Feval (form=63528094) at eval.c:2297 #35 0x0101d33d in Fprogn (args=63528086) at eval.c:395 #36 0x0101e526 in Flet (args=63527902) at eval.c:1052 #37 0x01020299 in Feval (form=63527734) at eval.c:2297 #38 0x0101d33d in Fprogn (args=63527526) at eval.c:395 #39 0x0101e89e in internal_catch (tag=56118802, func=0x101d314 , arg=63527526) at eval.c:1204 #40 0x0101e809 in Fcatch (args=63527478) at eval.c:1175 #41 0x01020299 in Feval (form=63527470) at eval.c:2297 #42 0x010204b1 in Feval (form=63527438) at eval.c:2337 #43 0x0102081b in Feval (form=63527534) at eval.c:2410 #44 0x0102081b in Feval (form=48163262) at eval.c:2410 #45 0x0101d33d in Fprogn (args=63836654) at eval.c:395 #46 0x0101e600 in Fwhile (args=63835942) at eval.c:1074 #47 0x01020299 in Feval (form=63835918) at eval.c:2297 #48 0x0101d33d in Fprogn (args=63835630) at eval.c:395 #49 0x0101e526 in Flet (args=63835622) at eval.c:1052 #50 0x01020299 in Feval (form=63729254) at eval.c:2297 #51 0x0101d33d in Fprogn (args=62617102) at eval.c:395 #52 0x0101e89e in internal_catch (tag=56118802, func=0x101d314 , arg=62617102) at eval.c:1204 #53 0x0101e809 in Fcatch (args=63462958) at eval.c:1175 #54 0x01020299 in Feval (form=63462934) at eval.c:2297 #55 0x010204b1 in Feval (form=63462486) at eval.c:2337 #56 0x0102081b in Feval (form=63729030) at eval.c:2410 #57 0x0102081b in Feval (form=48163190) at eval.c:2410 #58 0x0101d33d in Fprogn (args=48161198) at eval.c:395 #59 0x0101e526 in Flet (args=48163126) at eval.c:1052 #60 0x01020299 in Feval (form=48162942) at eval.c:2297 #61 0x0101d33d in Fprogn (args=48161206) at eval.c:395 #62 0x01020299 in Feval (form=48162934) at eval.c:2297 #63 0x0101d33d in Fprogn (args=48161214) at eval.c:395 #64 0x01021d38 in funcall_lambda (fun=48161222, nargs=1, arg_vector=0x82f0c0) at eval.c:3167 #65 0x01021a4e in apply_lambda (fun=48161222, args=48161286, eval_flag=1) at eval.c:3100 #66 0x01020845 in Feval (form=48161278) at eval.c:2412 #67 0x0101d33d in Fprogn (args=48161294) at eval.c:395 #68 0x01021d38 in funcall_lambda (fun=48161534, nargs=1, arg_vector=0x82f300) at eval.c:3167 #69 0x01021a4e in apply_lambda (fun=48161534, args=48159886, eval_flag=1) at eval.c:3100 #70 0x01020845 in Feval (form=48159878) at eval.c:2412 #71 0x0101d33d in Fprogn (args=48159894) at eval.c:395 #72 0x0101e526 in Flet (args=48159806) at eval.c:1052 #73 0x01020299 in Feval (form=48161758) at eval.c:2297 #74 0x0101eca3 in internal_lisp_condition_case (var=45733034, bodyform=48161758, handlers=48159966) at eval.c:1407 #75 0x0101eac5 in Fcondition_case (args=48161750) at eval.c:1349 #76 0x01020299 in Feval (form=48161742) at eval.c:2297 #77 0x0101d33d in Fprogn (args=48159974) at eval.c:395 #78 0x01021d38 in funcall_lambda (fun=48159982, nargs=0, arg_vector=0x82fa38) at eval.c:3167 #79 0x01021863 in Ffuncall (nargs=1, args=0x82fa34) at eval.c:3047 #80 0x01020f02 in run_hook_with_args (nargs=1, args=0x82fa34, cond=to_completion) at eval.c:2679 #81 0x01020c95 in Frun_hooks (nargs=1, args=0x82faec) at eval.c:2542 #82 0x010214c1 in Ffuncall (nargs=2, args=0x82fae8) at eval.c:2971 #83 0x010210c9 in call1 (fn=45644402, arg1=45533738) at eval.c:2789 #84 0x01005b86 in safe_run_hooks_1 () at keyboard.c:2020 #85 0x0101edad in internal_condition_case (bfun=0x1005b53 , handlers=45488178, hfun=0x1005b8e ) at eval.c:1460 #86 0x01005c26 in safe_run_hooks (hook=45533738) at keyboard.c:2046 #87 0x01004f02 in command_loop_1 () at keyboard.c:1743 #88 0x0101edad in internal_condition_case (bfun=0x10047e9 , handlers=45541738, hfun=0x10041de ) at eval.c:1460 #89 0x0100454e in command_loop_2 (ignore=45488154) at keyboard.c:1327 #90 0x0101e89e in internal_catch (tag=45539858, func=0x100452b , arg=45488154) at eval.c:1204 #91 0x01004506 in command_loop () at keyboard.c:1306 #92 0x01003dfa in recursive_edit_1 () at keyboard.c:929 #93 0x01003f5e in Frecursive_edit () at keyboard.c:991 #94 0x0100266f in main (argc=1, argv=0xa941b0) at emacs.c:1721 Lisp Backtrace: "substring" (0x82ca60) "string=" (0x82cc00) "and" (0x82cd50) "if" (0x82cea0) "when" (0x82cfb0) "progn" (0x82d100) "if" (0x82d250) "progn" (0x82d3a0) "if" (0x82d4f0) "when" (0x82d600) "let" (0x82d7f0) 0x3c959d6 Lisp type 6 "mapc" (0x82da70) "while" (0x82dcb0) "let" (0x82dea0) "catch" (0x82e0b0) "cl-block-wrapper" (0x82e1c0) "block" (0x82e2d0) "dolist" (0x82e3e0) "while" (0x82e590) "let" (0x82e780) "catch" (0x82e990) "cl-block-wrapper" (0x82eaa0) "block" (0x82ebb0) "dolist" (0x82ecc0) "let" (0x82eec0) "progn" (0x82f010) "menuacc-add-accel-1" (0x82f0c0) "menuacc-add-accel" (0x82f300) "let" (0x82f680) "condition-case" (0x82f880) "menuacc-add-accel-from-post-command-hook" (0x82fa38) "run-hooks" (0x82faec) (gdb) ------------=_1361071022-24732-1-- From unknown Tue Jun 17 01:46:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#7740: Crash calling substring on a menu string in post-command-hook (w32) Resent-From: Lennart Borgman Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 17 Feb 2013 03:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7740 X-GNU-PR-Package: emacs,w32 X-GNU-PR-Keywords: To: 7740@debbugs.gnu.org, Glenn Morris , Lennart Borgman Cc: 7740-done@debbugs.gnu.org Received: via spool by 7740-submit@debbugs.gnu.org id=B7740.136107321231991 (code B ref 7740); Sun, 17 Feb 2013 03:54:01 +0000 Received: (at 7740) by debbugs.gnu.org; 17 Feb 2013 03:53:32 +0000 Received: from localhost ([127.0.0.1]:59869 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U6vJj-0008Jv-Ux for submit@debbugs.gnu.org; Sat, 16 Feb 2013 22:53:32 -0500 Received: from mail-we0-f176.google.com ([74.125.82.176]:55165) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U6vJi-0008Jl-0F; Sat, 16 Feb 2013 22:53:30 -0500 Received: by mail-we0-f176.google.com with SMTP id s43so3962772wey.35 for ; Sat, 16 Feb 2013 19:52:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=pm2KISLGCJ3mkkn88rvMDNoi3CcN4a7JoGqaz16eFtM=; b=ITjTNKPt3fZttxSzlF97D2KPq5VJtqc5T9JfqzqSUIC62X1LOnH3hXwXflCOHiXSdk SGgbZI4kYtehzmlhB+jS1QQeaEKHYu4JscdlcG9DaZEO45KC87hJh+x9VvMjfJiboaj7 7MKub5VoZ0oAvbC+R0DlYPEL7nm0kkIDuEbSaCTZHw8z8XzIF+E4BwOELj6vDvPgN7Qs g4tS18HdY/LjXCDOe6xHKkBDC10/KLeLp0SxqvTJwpy0fdCbg2RYHCqs8kcxQw+9jz8q KmJ9dS431EhcYd+ieNApbgvtitJqt1CMk0mucFoFe48obP8ykCQgkTCgiF/mMXCiQBPx 9SaA== X-Received: by 10.180.79.104 with SMTP id i8mr11460131wix.24.1361073157263; Sat, 16 Feb 2013 19:52:37 -0800 (PST) MIME-Version: 1.0 Received: by 10.194.124.71 with HTTP; Sat, 16 Feb 2013 19:52:07 -0800 (PST) In-Reply-To: <3hhalb8wbk.fsf@fencepost.gnu.org> References: <3hhalb8wbk.fsf@fencepost.gnu.org> From: Lennart Borgman Date: Sun, 17 Feb 2013 04:52:07 +0100 Message-ID: Content-Type: multipart/alternative; boundary=f46d0442811c0d506604d5e38a39 X-Spam-Score: 0.1 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -0.7 (/) --f46d0442811c0d506604d5e38a39 Content-Type: text/plain; charset=UTF-8 Thanks Glenn. I do not have time now. I use my old build of EmacsW32. On Sun, Feb 17, 2013 at 4:15 AM, Glenn Morris wrote: > > Sorry no-one ever replied. After so much time, I don't think we can do > anything without a recipe to reproduce this issue, or a live GDB > session. If it happens again with the current version of Emacs > (currently 24.2), please make a new report and hopefully we do better > next time. > > > > --f46d0442811c0d506604d5e38a39 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thanks Glenn. I do not have time now. I use my old build o= f EmacsW32.


On Sun, Feb 17, 2013 at 4:15 AM, Glenn Morris <rgm@gnu.org> wr= ote:

Sorry no-one ever replied. After so much time, I don't think we can do<= br> anything without a recipe to reproduce this issue, or a live GDB
session. If it happens again with the current version of Emacs
(currently 24.2), please make a new report and hopefully we do better
next time.




--f46d0442811c0d506604d5e38a39--