all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Glenn Morris <rgm@gnu.org>
Cc: 12306@debbugs.gnu.org, viking_r@george24.com
Subject: bug#12306: etags crashes
Date: Fri, 31 Aug 2012 18:54:17 +0300	[thread overview]
Message-ID: <83wr0foy52.fsf@gnu.org> (raw)
In-Reply-To: <risjb59lz5.fsf@fencepost.gnu.org>

> From: Glenn Morris <rgm@gnu.org>
> Date: Wed, 29 Aug 2012 22:01:34 -0400
> Cc: 12306@debbugs.gnu.org
> 
> Viking Rollo wrote:
> 
> >>svn co svn://svn.gna.org/svn/gnustep/trunk gnustep
> >
> >>cd gnustep
> >>find . -iname "*.[mh]" -print | c:\EMACS\NTEmacs\bin\etags.exe -
> 
> Works fine for me on x86_64 GNU/Linux.

Crashes for me on x86_64 GNU/Linux:

  Program received signal SIGSEGV, Segmentation fault.
  0x00007ffff7ae06d1 in mempcpy () from /lib/libc.so.6
  (gdb) bt
  #0  0x00007ffff7ae06d1 in mempcpy () from /lib/libc.so.6
  #1  0x00007ffff7acd197 in _IO_file_xsputn () from /lib/libc.so.6
  #2  0x00007ffff7ac2b0c in fputs () from /lib/libc.so.6
  #3  0x0000000000403654 in put_entries (np=0x647410)
      at /home/e/eliz/bzr/emacs/trunk/lib-src/etags.c:2190
  #4  0x0000000000402b81 in process_file (fh=0x63cf20,
      fn=0x647640 "./modules/dev-libs/gscoredata/DataBuilder/Document.m",
      lang=0x0) at /home/e/eliz/bzr/emacs/trunk/lib-src/etags.c:1673
  #5  0x0000000000402918 in process_file_name (
      file=0x623280 "./modules/dev-libs/gscoredata/DataBuilder/Document.m",
      lang=0x0) at /home/e/eliz/bzr/emacs/trunk/lib-src/etags.c:1597
  #6  0x0000000000402180 in main (argc=2, argv=0x7fffffffe5b8)
      at /home/e/eliz/bzr/emacs/trunk/lib-src/etags.c:1273
  (gdb) frame 3
  #3  0x0000000000403654 in put_entries (np=0x647410)
      at /home/e/eliz/bzr/emacs/trunk/lib-src/etags.c:2190
  2190              fputs (np->regex, tagf);
  (gdb) l
  2185                  fdp = np->fdp;
  2186                  fprintf (tagf, "\f\n%s,%d\n",
  2187                           fdp->taggedfname, total_size_of_entries (np));
  2188                  fdp->written = TRUE;
  2189                }
  2190              fputs (np->regex, tagf);
  2191              fputc ('\177', tagf);
  2192              if (np->name != NULL)
  2193                {
  2194                  fputs (np->name, tagf);
  (gdb) p np->regex
  $1 = 0x647d30 "  * const ConfigurationsDidChangeNotification "
  (gdb) p *np
  $2 = {left = 0x0, right = 0x6473a0, fdp = 0x646d70, name = 0x0,
    regex = 0x647d30 "  * const ConfigurationsDidChangeNotification ",
    valid = 1, is_func = 0, been_warned = 0, lno = 39, cno = 1134}

Not sure why it crashes (stack smashed?).





  reply	other threads:[~2012-08-31 15:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-29 13:32 bug#12306: etags crashes Viking Rollo
2012-08-30  2:01 ` Glenn Morris
2012-08-31 15:54   ` Eli Zaretskii [this message]
2012-08-31 16:55     ` Andreas Schwab

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=83wr0foy52.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=12306@debbugs.gnu.org \
    --cc=rgm@gnu.org \
    --cc=viking_r@george24.com \
    /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.