From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Yagnesh Raghava Yakkala Newsgroups: gmane.emacs.bugs Subject: bug#18815: 25.0.50; emacs crash Date: Tue, 28 Oct 2014 03:36:04 +0900 Message-ID: <8738a9mkbv.fsf@sealion.lowtem.hokudai.ac.jp> References: <87vbn94rvj.fsf@sealion.lowtem.hokudai.ac.jp> <8361f97hkl.fsf@gnu.org> <8338ad7gde.fsf@gnu.org> <87fvedid43.fsf@sealion.lowtem.hokudai.ac.jp> <83ppdh5kz8.fsf@gnu.org> <87zjckak6n.fsf@sealion.lowtem.hokudai.ac.jp> <83a94k641h.fsf@gnu.org> <87vbn79z5t.fsf@sealion.lowtem.hokudai.ac.jp> <83oasy4yr8.fsf@gnu.org> <87r3xua17f.fsf@sealion.lowtem.hokudai.ac.jp> <83vbn52zyw.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1414435045 3645 80.91.229.3 (27 Oct 2014 18:37:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 27 Oct 2014 18:37:25 +0000 (UTC) Cc: 18815@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 27 19:37:17 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XipAL-0006oI-0r for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Oct 2014 19:37:17 +0100 Original-Received: from localhost ([::1]:35476 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XipAK-0007aU-M7 for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Oct 2014 14:37:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43987) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XipAC-0007Zc-IC for bug-gnu-emacs@gnu.org; Mon, 27 Oct 2014 14:37:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XipA7-0000EV-5M for bug-gnu-emacs@gnu.org; Mon, 27 Oct 2014 14:37:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44855) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XipA7-0000EG-0U for bug-gnu-emacs@gnu.org; Mon, 27 Oct 2014 14:37:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XipA6-0001Qc-62 for bug-gnu-emacs@gnu.org; Mon, 27 Oct 2014 14:37:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Yagnesh Raghava Yakkala Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 27 Oct 2014 18:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18815 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18815-submit@debbugs.gnu.org id=B18815.14144349825437 (code B ref 18815); Mon, 27 Oct 2014 18:37:02 +0000 Original-Received: (at 18815) by debbugs.gnu.org; 27 Oct 2014 18:36:22 +0000 Original-Received: from localhost ([127.0.0.1]:36953 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xip9R-0001Pd-Mg for submit@debbugs.gnu.org; Mon, 27 Oct 2014 14:36:22 -0400 Original-Received: from mail1.hines.hokudai.ac.jp ([133.87.1.140]:56364) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xip9J-0001PB-H5 for 18815@debbugs.gnu.org; Mon, 27 Oct 2014 14:36:19 -0400 Original-Received: from mail1.hines.hokudai.ac.jp (localhost [127.0.0.1]) by localhost.hines.hokudai.ac.jp (Postfix) with ESMTP id DDAB1280AC9; Tue, 28 Oct 2014 03:36:05 +0900 (JST) Original-Received: from smtp.hines.hokudai.ac.jp (sealion.lowtem.hokudai.ac.jp [133.87.217.30]) by mail1.hines.hokudai.ac.jp (Postfix) with ESMTPS id 85E65280352; Tue, 28 Oct 2014 03:36:04 +0900 (JST) In-Reply-To: <83vbn52zyw.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 27 Oct 2014 19:18:31 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) X-TM-AS-MML: disable X-TM-AS-Product-Ver: IMSS-7.1.0.1589-7.5.0.1018-21058.002 X-TM-AS-Result: No--18.896-5.0-31-10 X-imss-scan-details: No--18.896-5.0-31-10 X-TMASE-MatchedRID: yypHRYOSnoaPvrMjLFD6eMo3MPo0IsVYuPSKAaI54qFawoq5zq9PrMkU hKWc+gwPtD234oOck5rXauRFGy4F+ABT1NXE3ZWCYwaJXrf2IXT/lBG+uXYJkEENV4Lwnu7B0S+ TvGOUgqKnwH7cXJFcYlBi+V5Q8p6TDHlMveoJOAQER9Ta+6BEXahA0BFekm+nOamSzixwT6Ne9t X9WdS/SjhW+KXME+DbWp4p+TCn2UopiQbfusdLxTCIlN/eSPB9X6IRwqkp2m5KAmkguqn3hqPqR wHtrh0+rgz/7WLQK46y7ec+ITUwMxfZpHGUFFKOpvwZ9GmdwDM7UrmIzxDooMUdzAovpQT/RC5i IdbESQPy3VIfewNEIqNa+9YuL7Z/E7s4gX/8TkPAJnGRMfFxye/kl6iUzyK72viB/Jr4D1R4uYr yv5HBXlskARxFcRYJWnBKFmk4qe8YB2fOueQzj4MbH85DUZXyHpSfU35Tjw151TqU12Mb2uloYg zjonrskGUtrowrXLg= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:95168 Hello Eli, On Oct 28 2014, Eli Zaretskii wrote: >> From: Yagnesh Raghava Yakkala >> Cc: 18815@debbugs.gnu.org >> Date: Mon, 27 Oct 2014 07:57:40 +0900 >>=20 >> (gdb) frame 5 >> #5 0x000000000050fa9d in bidi_level_of_next_char (bidi_it=3D0x7fffffff3= 768) at bidi.c:3092 >> 3092 type =3D bidi_type_of_next_char (bidi_it); >> (gdb) p bidi_it->string >> $1 =3D { >> lstring =3D 17660721,=20 >> s =3D 0x0,=20 >> schars =3D 8,=20 >> bufpos =3D 0,=20 >> from_disp_str =3D false,=20 >> unibyte =3D true >> } >> (gdb) p bidi_it->string.lstring >> $2 =3D 17660721 >> (gdb) xtype >> Lisp_String >> (gdb) xstring >> $3 =3D (struct Lisp_String *) 0x10d7b30 >> " (%l,%c)" > > This string comes from column-number-mode. But if I invoke > column-number-mode, I still cannot reproduce the problem, so there's > something else at work here. Can you describe what you do to > reproduce the crash? Crashes on different tasks. Using magit, some times C-x C-f. But one relia= ble way was, selecting a url in a buffer with M-x ffap and RET. > Also, please show what the following commands produce: > > (gdb) frame 3 > (gdb) p bidi_it->charpos > (gdb) p bidi_it->next_for_neutral > (gdb) p bidi_it->prev_for_neutral > (gdb) p bidi_it->bracket_pairing_pos > (gdb) p bidi_it->bracket_enclosed_type > (gdb) p bidi_cache_idx > (gdb) p bidi_cache_start Turns out, I don't even know how to run those commands and get the output f= rom gnome-terminal. With the execution of first command above, bidi.c file came out in a little box on the top of gnome-terminal which is hindering me to c= opy and paste. Anyway, I tried "M-x gud-gdb" first time ever and got this, let me know I m= ade a mistake in executing listed commands. --8<---------------cut here---------------start------------->8--- (gdb) run Starting program: /home/yagnesh/bin/emacs=20 [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [New Thread 0x7fffec5b1700 (LWP 31087)] [New Thread 0x7fffeb29f700 (LWP 31088)] [New Thread 0x7fffe9681700 (LWP 31089)] bidi.c:2856: Emacs fatal error: assertion failed: bidi_it->next_for_neutral= .charpos > bidi_it->charpos || (bidi_it->next_for_neutral.charpos =3D=3D bi= di_it->charpos && bidi_it->type =3D=3D PDI) Fatal error 6: Aborted Backtrace: /home/yagnesh/bin/emacs[0x59d66f] /home/yagnesh/bin/emacs[0x573081] /home/yagnesh/bin/emacs[0x5fb968] /home/yagnesh/bin/emacs[0x50f332] /home/yagnesh/bin/emacs[0x50f83c] /home/yagnesh/bin/emacs[0x50fa9d] /home/yagnesh/bin/emacs[0x510094] /home/yagnesh/bin/emacs[0x45368b] /home/yagnesh/bin/emacs[0x45396e] /home/yagnesh/bin/emacs[0x450dbb] /home/yagnesh/bin/emacs[0x48871a] /home/yagnesh/bin/emacs[0x484c83] /home/yagnesh/bin/emacs[0x4857f3] /home/yagnesh/bin/emacs[0x4857f3] /home/yagnesh/bin/emacs[0x4857f3] /home/yagnesh/bin/emacs[0x4857f3] /home/yagnesh/bin/emacs[0x48415c] /home/yagnesh/bin/emacs[0x483cb1] /home/yagnesh/bin/emacs[0x46eed4] /home/yagnesh/bin/emacs[0x46448c] /home/yagnesh/bin/emacs[0x61a4c6] /home/yagnesh/bin/emacs[0x4643fa] /home/yagnesh/bin/emacs[0x4632b3] /home/yagnesh/bin/emacs[0x463d5e] /home/yagnesh/bin/emacs[0x674772] /home/yagnesh/bin/emacs[0x4242e9] /home/yagnesh/bin/emacs[0x57b27e] /home/yagnesh/bin/emacs[0x58a3ae] /home/yagnesh/bin/emacs[0x577c32] /home/yagnesh/bin/emacs[0x61a352] /home/yagnesh/bin/emacs[0x5774bf] /home/yagnesh/bin/emacs[0x6197a0] /home/yagnesh/bin/emacs[0x57746d] /home/yagnesh/bin/emacs[0x576a91] /home/yagnesh/bin/emacs[0x576c79] /home/yagnesh/bin/emacs[0x574a78] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5)[0x7ffff13cab45] /home/yagnesh/bin/emacs[0x4152d9] Program received signal SIGABRT, Aborted. 0x00007ffff176079b in raise (sig=3D6) at ../nptl/sysdeps/unix/sysv/linux/pt= -raise.c:37 37 ../nptl/sysdeps/unix/sysv/linux/pt-raise.c: No such file or directory. (gdb) frame 5 #5 0x000000000050fa9d in bidi_level_of_next_char (bidi_it=3D0x7fffffff36a8= ) at bidi.c:3092 (gdb) p bidi_it->string $1 =3D {lstring =3D 17660721, s =3D 0x0, schars =3D 8, bufpos =3D 0, from_d= isp_str =3D false, unibyte =3D true} (gdb) p bidi_it->string.lstring $2 =3D 17660721 (gdb) xtype Undefined command: "xtype". Try "help". (gdb) source ~/git/build-emacs/emacs/src/.gdbinit Warning: /home/yagnesh/../lwlib: No such file or directory. SIGINT is used by the debugger. Are you sure you want to change it? (y or n) [answered Y; input not from te= rminal] DISPLAY =3D :0 TERM =3D dumb Breakpoint 1 at 0x573002: file emacs.c, line 361. Temporary breakpoint 2 at 0x59bd81: file sysdep.c, line 915. (gdb) xtype Lisp_String (gdb) xstring $3 =3D (struct Lisp_String *) 0x10d7b30 " (%l,%c)" (gdb) frame 3 #3 0x000000000050f332 in bidi_resolve_neutral (bidi_it=3D0x7fffffff36a8) a= t bidi.c:2852 (gdb) p bidi_it->charpos $4 =3D 7 (gdb) p bidi_it->next_for_neutral $5 =3D { charpos =3D 7,=20 type =3D STRONG_L,=20 orig_type =3D UNKNOWN_BT } (gdb) p bidi_it->prev_for_neutral $6 =3D { charpos =3D 6,=20 type =3D STRONG_L,=20 orig_type =3D STRONG_L } (gdb) p bidi_it->bracket_pairing_pos $7 =3D -1 (gdb) p bidi_it->bracket_enclosed_type $8 =3D UNKNOWN_BT (gdb) p bidi_cache_idx $9 =3D 3 (gdb) p bidi_cache_start $10 =3D 2 (gdb) --8<---------------cut here---------------end--------------->8--- Thanks., --=20 =E0=B0=8E=E0=B0=82=E0=B0=A6=E0=B0=B0=E0=B1=8B =E0=B0=AE=E0=B0=B9=E0=B0=BE= =E0=B0=A8=E0=B1=81=E0=B0=AD=E0=B0=BE=E0=B0=B5=E0=B1=81=E0=B0=B2=E0=B1=81 = =E0=B0=85=E0=B0=82=E0=B0=A6=E0=B0=B0=E0=B0=BF=E0=B0=95=E0=B0=BF =E0=B0=B5= =E0=B0=82=E0=B0=A6=E0=B0=A8=E0=B0=AE=E0=B1=81=E0=B0=B2=E0=B1=81. YYR