GNU bug report logs - #18032
Crash with etags

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Paul Eggert <eggert@HIDDEN>; dated Wed, 16 Jul 2014 13:43:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 16 Jul 2014 13:42:58 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jul 16 09:42:58 2014
Received: from localhost ([127.0.0.1]:56248 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1X7PTy-0008CH-Rn
	for submit <at> debbugs.gnu.org; Wed, 16 Jul 2014 09:42:58 -0400
Received: from eggs.gnu.org ([208.118.235.92]:40683)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <eggert@HIDDEN>) id 1X7PTt-0008C0-Ul
 for submit <at> debbugs.gnu.org; Wed, 16 Jul 2014 09:42:53 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <eggert@HIDDEN>) id 1X7PTj-0006Qq-8Q
 for submit <at> debbugs.gnu.org; Wed, 16 Jul 2014 09:42:44 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_40,WEIRD_PORT
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:39069)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <eggert@HIDDEN>) id 1X7PTj-0006Qk-4S
 for submit <at> debbugs.gnu.org; Wed, 16 Jul 2014 09:42:39 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:42281)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <eggert@HIDDEN>) id 1X7PTd-0008L4-HQ
 for bug-gnu-emacs@HIDDEN; Wed, 16 Jul 2014 09:42:39 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <eggert@HIDDEN>) id 1X7PTY-0006Nu-5G
 for bug-gnu-emacs@HIDDEN; Wed, 16 Jul 2014 09:42:33 -0400
Received: from smtp.cs.ucla.edu ([131.179.128.62]:45268)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <eggert@HIDDEN>) id 1X7PTX-0006Nh-T6
 for bug-gnu-emacs@HIDDEN; Wed, 16 Jul 2014 09:42:28 -0400
Received: from localhost (localhost.localdomain [127.0.0.1])
 by smtp.cs.ucla.edu (Postfix) with ESMTP id 9928539E801B;
 Wed, 16 Jul 2014 06:42:25 -0700 (PDT)
X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu
Received: from smtp.cs.ucla.edu ([127.0.0.1])
 by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id GBVkiS-NCECN; Wed, 16 Jul 2014 06:42:21 -0700 (PDT)
Received: from [192.168.1.9] (pool-108-0-233-62.lsanca.fios.verizon.net
 [108.0.233.62])
 by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 2512D39E801D;
 Wed, 16 Jul 2014 06:42:21 -0700 (PDT)
Message-ID: <53C68133.6070103@HIDDEN>
Date: Wed, 16 Jul 2014 06:42:11 -0700
From: Paul Eggert <eggert@HIDDEN>
Organization: UCLA Computer Science Department
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
 rv:24.0) Gecko/20100101 Thunderbird/24.6.0
MIME-Version: 1.0
To: Emacs bug reports and feature requests <bug-gnu-emacs@HIDDEN>
Subject: Crash with etags
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
Cc: "Dr. Werner Fink" <werner@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.0 (----)

[This bug report is taken from:
http://lists.gnu.org/archive/html/emacs-devel/2014-07/msg00209.html
I'm filing it here to give it a proper bug number and thread.
Dr. Werner Fink <werner@HIDDEN> writes:]

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/debug/usr/bin/etags.debug...done.
      done.
      [New LWP 14768]
      Core was generated by `etags -a 
--regex=^\(ENTRY\|_GLOBAL\)(\([^)]*\)).* \2 / --regex=^SYSCALL_DEFINE['.
      Program terminated with signal SIGSEGV, Segmentation fault.
      #0  __memcpy_sse2_unaligned () at 
../sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S:37
      37      ../sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: No 
such file or directory.
      (gdb) up
      #1  0x000000000040376c in memcpy (__len=90, __src=<optimized out>, 
__dest=0x18ea090) at /usr/include/bits/string3.h:51
      51        return __builtin___memcpy_chk (__dest, __src, __len, 
__bos0 (__dest));
      (gdb) up
      #2  substitute (in=0x17048f0 "ENTRY(lguest_entry)", out=0x1707301 
"2", regs=0x1705dc8, regs=0x1705dc8)
          at /usr/src/debug/emacs-24.3/lib-src/etags.c:5792
      5792            memcpy (t, in + regs->start[dig], diglen);
      (gdb) list
      5787      for (t = result; *out != '\0'; out++)
      5788        if (*out == '\\' && ISDIGIT (*++out))
      5789          {
      5790            dig = *out - '0';
      5791            diglen = regs->end[dig] - regs->start[dig];
      5792            memcpy (t, in + regs->start[dig], diglen);
      5793            t += diglen;
      5794          }
      5795        else
      5796          *t++ = *out;
      (gdb) print *out - '0'
      $1 = 2
      (gdb) print regs->end[dig] - regs->start[dig]
      value has been optimized out
      (gdb) print regs->end[dig]
      value has been optimized out
      (gdb) print regs
      $2 = (struct re_registers *) 0x1705dc8
      (gdb) print *regs
      $3 = {num_regs = 4, start = 0x18d1d40, end = 0x18d4fc0}
      (gdb) print *regs->end
      $4 = 21474836499
      (gdb) print regs->end
      $5 = (regoff_t *) 0x18d4fc0
      (gdb) print *regs->end
      $6 = 21474836499
      (gdb) print *regs->start
      $7 = 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=887483

Werner

-- "Having a smoking section in a restaurant is like having a peeing 
section in a swimming pool." -- Edward Burr




Acknowledgement sent to Paul Eggert <eggert@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#18032; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.