From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Dr. Werner Fink" Newsgroups: gmane.emacs.devel Subject: Crash with etags Date: Wed, 16 Jul 2014 11:19:18 +0200 Message-ID: <20140716091918.GA815@boole.suse.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="cNdxnHkX5QqsyA0e" X-Trace: ger.gmane.org 1405502387 6487 80.91.229.3 (16 Jul 2014 09:19:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Jul 2014 09:19:47 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 16 11:19:40 2014 Return-path: Envelope-to: ged-emacs-devel@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 1X7LND-0000OC-Rx for ged-emacs-devel@m.gmane.org; Wed, 16 Jul 2014 11:19:40 +0200 Original-Received: from localhost ([::1]:38264 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X7LND-0007lx-CX for ged-emacs-devel@m.gmane.org; Wed, 16 Jul 2014 05:19:39 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43123) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X7LN3-0007lk-FJ for emacs-devel@gnu.org; Wed, 16 Jul 2014 05:19:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X7LMw-0003p1-Nl for emacs-devel@gnu.org; Wed, 16 Jul 2014 05:19:29 -0400 Original-Received: from cantor2.suse.de ([195.135.220.15]:54947 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X7LMw-0003oj-D9 for emacs-devel@gnu.org; Wed, 16 Jul 2014 05:19:22 -0400 Original-Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id BF5E1AC2A for ; Wed, 16 Jul 2014 09:19:20 +0000 (UTC) Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-Received-From: 195.135.220.15 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:173044 Archived-At: --cNdxnHkX5QqsyA0e Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, after installing the linux kernel sources, I see cd /usr/src/linux ulimit -c unlimited make TAGS GEN TAGS xargs: etags: terminated by signal 11 gdb /usr/bin/etags core [...] Reading symbols from /usr/bin/etags...Reading symbols from /usr/lib/de= bug/usr/bin/etags.debug...done. done. [New LWP 14768] Core was generated by `etags -a --regex=3D^\(ENTRY\|_GLOBAL\)(\([^)]*\= )).* \2 / --regex=3D^SYSCALL_DEFINE['. Program terminated with signal SIGSEGV, Segmentation fault. #0 __memcpy_sse2_unaligned () at ../sysdeps/x86_64/multiarch/memcpy-s= se2-unaligned.S:37 37 ../sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: No such f= ile or directory. (gdb) up #1 0x000000000040376c in memcpy (__len=3D90, __src=3D,= __dest=3D0x18ea090) at /usr/include/bits/string3.h:51 51 return __builtin___memcpy_chk (__dest, __src, __len, __bos0 = (__dest)); (gdb) up #2 substitute (in=3D0x17048f0 "ENTRY(lguest_entry)", out=3D0x1707301 = "2", regs=3D0x1705dc8, regs=3D0x1705dc8) at /usr/src/debug/emacs-24.3/lib-src/etags.c:5792 5792 memcpy (t, in + regs->start[dig], diglen); (gdb) list =20 5787 for (t =3D result; *out !=3D '\0'; out++) 5788 if (*out =3D=3D '\\' && ISDIGIT (*++out)) 5789 { 5790 dig =3D *out - '0'; 5791 diglen =3D regs->end[dig] - regs->start[dig]; 5792 memcpy (t, in + regs->start[dig], diglen); 5793 t +=3D diglen; 5794 } 5795 else 5796 *t++ =3D *out; (gdb) print *out - '0' $1 =3D 2 (gdb) print regs->end[dig] - regs->start[dig]=20 value has been optimized out (gdb) print regs->end[dig] =20 value has been optimized out (gdb) print regs =20 $2 =3D (struct re_registers *) 0x1705dc8 (gdb) print *regs $3 =3D {num_regs =3D 4, start =3D 0x18d1d40, end =3D 0x18d4fc0} (gdb) print *regs->end $4 =3D 21474836499 (gdb) print regs->end $5 =3D (regoff_t *) 0x18d4fc0 (gdb) print *regs->end $6 =3D 21474836499 (gdb) print *regs->start $7 =3D 0 (gdb) print *regs->end[2] Cannot access memory at address 0x70000000000005f I've also an other bug report about etags and kernel source tree, see the cloned bug at http://rudin.suse.de:8888/show_bug.cgi?id=3D887483 Werner --=20 "Having a smoking section in a restaurant is like having a peeing section in a swimming pool." -- Edward Burr --cNdxnHkX5QqsyA0e Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (GNU/Linux) iQIcBAABAgAGBQJTxkOVAAoJEFDpDVUdwWsuL98QAMwX2UzDaYmlJdSGxJT2QKzC /AaRviYP77bN2wV3ay+YOMfkk3pfwIyczm48Kq1uO76J7bwp4wmTCo7sss+PenPQ jC+nl5DTEx1hirCnK5VtE7RYAH4p1fUiSOB8i44cQJBp9P2TUBYcznoFvD6v99fE SRtY+PsCGGaKTfcr4FE+5/L1ojjI9RTHtPh4CDm3myQ0MV3yjXTL+nXpbedP3n77 GSNqQFQ7g91mbXjMYTTjGVisy6VvDxUg4Z+0um01Oux5ys70nEY7a4QwzKDsXNn4 vnnpm6owlKECLh53FHcFbEzeCSt5bdVwYyQB/4F4+yyZJkYRbYOyVW+GKeojrLur np1fGX4dBKw3WHyNsQjIB9Q/iIFX4I9sGAfZ852usIYxJIqhHwf/QYNvAi4JBDUD FUbdiHBD6t9Rm63LhwlixDBG4bvpsanOhx4fJ6hItJXpa3qF2UHexbtDhnYBT36H jOyfarREGwV7QfXK9yHYOTCra6cqVixsmC45cf/6pWn+SXHlADXhO//LUfNej/FP 9MVsSo6yqwblUwoT9E//IL3sRDXD0itnkUqehEp1x4LrrcW6r4eKPtVBJpz8a9kO 2E84NGejkUtEh8mOO3g5G83oZZ1CrKU2HwQzP0gY8o19qozUwwm7Hym5UQMhop3l Pl06W6sXIBXRlOfp5j+9 =h4+q -----END PGP SIGNATURE----- --cNdxnHkX5QqsyA0e--