[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: "make tags" segfaults
From: |
Francesco Potorti` |
Subject: |
Re: "make tags" segfaults |
Date: |
03 Sep 2002 13:11:17 +0200 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.90 |
(gdb) run --include=TAGS-LISP --include=../lwlib/TAGS --regex='/[
]*DEFVAR_[A-Z_ (]+"\([^"]+\)"/'
/home-local/grossjoh/work/gnu/emacs/src/[xyzXYZ]*.[hc]
/home-local/grossjoh/work/gnu/emacs/src/[a-wA-W]*.[hc]
Starting program: /home-local/grossjoh/work/gnu/emacs/lib-src/etags
--include=TAGS-LISP --include=../lwlib/TAGS --regex='/[ ]*DEFVAR_[A-Z_
(]+"\([^"]+\)"/'
/home-local/grossjoh/work/gnu/emacs/src/[xyzXYZ]*.[hc]
/home-local/grossjoh/work/gnu/emacs/src/[a-wA-W]*.[hc]
Program received signal SIGSEGV, Segmentation fault.
0x4008d219 in malloc () from /lib/libc.so.6
(gdb) w
Ambiguous command "w": watch, wh, whatis, where, while, while-stepping,
winheight, ws.
(gdb) where
#0 0x4008d219 in malloc () from /lib/libc.so.6
#1 0x4008d074 in malloc () from /lib/libc.so.6
#2 0x0805042e in xmalloc (size=20)
at /home-local/grossjoh/work/gnu/emacs/lib-src/etags.c:6602
This should mean that there has been memory corruption in the malloc
structures :-(
I cannot reproduce the bug, and none of my tests fail. Moreover, I
cannot easily deduce where the memory corruption happens. When
developing, I usually instrument etags with a small checkmalloc library.
If you can use a malloc checking library yourself, please try to do so
and report the results to me.
Else, I can send you the two source files needed for that library and
the small modifications to the Makefile for building and running etags
with malloc instrumentation.