[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: segfault with latest gtags
From: |
Aneesh Kumar |
Subject: |
Re: segfault with latest gtags |
Date: |
Mon, 15 Feb 2010 23:17:28 +0530 |
On Sat, Feb 13, 2010 at 6:24 PM, Hideki IWAMOTO
<address@hidden> wrote:
> Hi.
> On Thu, 11 Feb 2010 23:22:51 +0530, Aneesh Kumar wrote...
>> address@hidden /home/opensource/sources/global/gtags/gtags -c -i -f
>> gtags.files
>> gtags: primary key size == 0.
>
> Backtrace information when this message is displayed is needed.
> Could you execute gtags on GDB like this?
> $ gdb /home/opensource/sources/global/gtags/gtags
> (gdb) b die
> (gdb) r -c -i -f gtags.files
> (gdb) bt
>
>> "/home/opensource/sources/linux-2.6",
>> root=0xbf91d98a "/home/opensource/sources/linux-2.6",
>
> Which version of the linux source code did you process?
> I cannot reproduce the bug that you reported with linux-2.6.32.8 and
> linux-2.6.33-rc7.
>
i am using the git version. But i guess you should be able to
reproduce it on other versions too.
BTW after creating the G* files you need to checkout an older version
and try to recreate using
-c -i -f . I am attaching below the gdb details
(gdb) r -c -i -f gtags.files
Starting program: /home/opensource/sources/global/gtags/gtags -c -i -f
gtags.files
Program received signal SIGSEGV, Segmentation fault.
dbop_next (dbop=0xaf84710) at dbop.c:362
362 else if (ismeta(dat.data))
(gdb) where
#0 dbop_next (dbop=0xaf84710) at dbop.c:362
#1 0x0805ae65 in gtags_delete (gtop=0xaf80488, deleteset=0x80a9720)
at gtagsop.c:624
#2 0x0804a7af in updatetags_using_builtin_parser (dbpath=0xbfffdc3b
"/home/opensource/sources/linux-2.6",
root=0xbfffcc3a "/home/opensource/sources/linux-2.6",
deleteset=0x80a9720, addlist=0x80a96e0) at gtags.c:1103
#3 0x0804b327 in incremental (dbpath=0xbfffdc3b
"/home/opensource/sources/linux-2.6",
root=0xbfffcc3a "/home/opensource/sources/linux-2.6") at gtags.c:693
#4 0x0804c481 in main (argc=<value optimized out>, argv=<value
optimized out>) at gtags.c:471
(gdb) p dat
$1 = {data = 0x3d597273, size = 57}
(gdb) p *(dat.data)
Attempt to dereference a generic pointer.
(gdb)
address@hidden /home/opensource/sources/global/gtags/gtags --version
gtags - GNU GLOBAL 5.8
Copyright (c) 2010 Tama Communications Corporation
-aneesh
- segfault with latest gtags, Aneesh Kumar, 2010/02/11
- Re: segfault with latest gtags, Hideki IWAMOTO, 2010/02/11
- Re: segfault with latest gtags, Aneesh Kumar, 2010/02/12
- Re: segfault with latest gtags, Hideki IWAMOTO, 2010/02/13
- Re: segfault with latest gtags,
Aneesh Kumar <=
- Re: segfault with latest gtags, Hideki IWAMOTO, 2010/02/17
- Message not available
- Fwd: segfault with latest gtags, Aneesh Kumar, 2010/02/17
- Re: Fwd: segfault with latest gtags, Shigio YAMAGUCHI, 2010/02/17
- Re: Fwd: segfault with latest gtags, Aneesh Kumar, 2010/02/18
- Re: Fwd: segfault with latest gtags, Hideki IWAMOTO, 2010/02/18
- Re: Fwd: segfault with latest gtags, Hideki IWAMOTO, 2010/02/18
- Re: Fwd: segfault with latest gtags, Aneesh Kumar, 2010/02/18