bug-global
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

htags segmentation fault


From: Hideki IWAMOTO
Subject: htags segmentation fault
Date: Sun, 05 Sep 2004 17:08:00 +0900

If htags is run in empty source tree, segmentation fault will happen.

address@hidden:/tmp/a>ls -l
total 0
address@hidden:/tmp/a>gtags -w
address@hidden:/tmp/a>htags -w
Segmentation fault (core dumped)
address@hidden:/tmp/a>gdb htags core.8402
GNU gdb 6.2
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...Using host libthread_db 
library "/lib/tls/libthread_db.so.1".

Core was generated by `htags -w'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/tls/libc.so.6...done.
Loaded symbols for /lib/tls/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
#0  0x45627369 in vfprintf () from /lib/tls/libc.so.6
(gdb) bt
#0  0x45627369 in vfprintf () from /lib/tls/libc.so.6
#1  0x4563139f in fprintf () from /lib/tls/libc.so.6
#2  0x0804fc53 in makedefineindex (file=0x45713a14 " 9qEx\006", total=0, 
defines=0x808a170) at defineindex.c:270
#3  0x0804d8bc in main (argc=0, argv=0x8088ee0) at htags.c:1752
(gdb) up
#1  0x4563139f in fprintf () from /lib/tls/libc.so.6
(gdb) 
#2  0x0804fc53 in makedefineindex (file=0x45713a14 " 9qEx\006", total=0, 
defines=0x808a170) at defineindex.c:270
270                             fprintf(ALPHA, "%s\n", br);
(gdb) p ALPHA
$1 = (FILE *) 0x0
(gdb) 



----
Hideki IWAMOTO  address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]