From: "Dr. Werner Fink" <werner@suse.de>
To: emacs-devel@gnu.org
Subject: Crash with etags
Date: Wed, 16 Jul 2014 11:19:18 +0200 [thread overview]
Message-ID: <20140716091918.GA815@boole.suse.de> (raw)
[-- Attachment #1: Type: text/plain, Size: 2613 bytes --]
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
[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]
next reply other threads:[~2014-07-16 9:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-16 9:19 Dr. Werner Fink [this message]
2014-07-16 14:00 ` Crash with etags Paul Eggert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140716091918.GA815@boole.suse.de \
--to=werner@suse.de \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.