all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* etags segfault
@ 2003-08-26  1:18 Tak Ota
  0 siblings, 0 replies; 5+ messages in thread
From: Tak Ota @ 2003-08-26  1:18 UTC (permalink / raw)


Without the following patch etags causes a segmentation fault.

-Tak


ota@tak-4100 /cygdrive/d/pub/emacs/emacs-21.3.50/lib-src
$ diff -c ../../pure/emacs-21.3.50/lib-src/etags.c etags.c
*** ../../pure/emacs-21.3.50/lib-src/etags.c	Tue Jul 29 07:39:03 2003
--- etags.c	Mon Aug 25 18:02:34 2003
***************
*** 3116,3122 ****
  	      fvdef = vignore;
  	      return FALSE;
  	    }
! 	  if (strneq (str+len-10, "::operator", 10))
  	    {
  	      if (*c_extp & C_AUTO) /* automatic detection of C++ */
  		*c_extp = (*c_extp | C_PLPL) & ~C_AUTO;
--- 3116,3122 ----
  	      fvdef = vignore;
  	      return FALSE;
  	    }
! 	  if (len-10 > 0 && strneq (str+len-10, "::operator", 10))
  	    {
  	      if (*c_extp & C_AUTO) /* automatic detection of C++ */
  		*c_extp = (*c_extp | C_PLPL) & ~C_AUTO;

ota@tak-4100 /cygdrive/d/pub/emacs/emacs-21.3.50/lib-src
$ diff -c ../../pure/emacs-21.3.50/lib-src/ChangeLog ChangeLog
*** ../../pure/emacs-21.3.50/lib-src/ChangeLog	Fri Aug 22 06:37:32 2003
--- ChangeLog	Mon Aug 25 18:15:05 2003
***************
*** 1,3 ****
--- 1,8 ----
+ 2003-08-25  Takaaki Ota  <Takaaki.Ota@am.sony.com>
+ 
+ 	* etags.c (consider_token): check C++ `operator' only when the
+ 	token len is long enough.
+ 
  2003-08-20  Dave Love  <fx@gnu.org>
  
  	* Makefile.in: Remove obsolete references to alloca.

^ permalink raw reply	[flat|nested] 5+ messages in thread
* etags segfault
@ 2008-08-22  1:30 Kenichi Handa
  2008-08-25  7:56 ` Francesco Potorti`
  0 siblings, 1 reply; 5+ messages in thread
From: Kenichi Handa @ 2008-08-22  1:30 UTC (permalink / raw)
  To: emacs-devel

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=ISO-2022-JP-2, Size: 813 bytes --]

Latest CVS Emacs has a bug in lib-src/etags.

% cd emacs/src
% make tags
../lib-src/etags --include=TAGS-LISP --include=../lwlib//TAGS --regex='/[ 	]*DEFVAR_[A-Z_ 	(]+"\([^"]+\)"/' /usr/local/work/emacs/src/[xyzXYZ]*.[hc] /usr/local/work/emacs/src/[a-wA-W]*.[hc]
make: *** [TAGS] Segmentation fault

The seqfault occurs on GNU/Linux at this line (the last line
of the function incanonicalize_filename):

  *fn = '\0';

I suspect this change introduced this bug.

2008-08-17  Francesco Potort^[$(D+@^[(B  <pot@gnu.org>

	* etags.c (main): Use canonicalize_filename on tags file name.
	(relative_filename): Revert 3.85: do not collapse slashes here.
	(absolute_dirname): Remove useless call to canonicalize_filename.
	(canonicalize_filename): Collapse multiple slashes here.

---
Kenichi Handa
handa@ni.aist.go.jp




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-08-26  1:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-26  1:18 etags segfault Tak Ota
  -- strict thread matches above, loose matches on Subject: below --
2008-08-22  1:30 Kenichi Handa
2008-08-25  7:56 ` Francesco Potorti`
2008-08-25 11:49   ` Kenichi Handa
2008-08-26  1:58   ` Bob Rogers

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.