bug-global
[Top][All Lists]
Advanced

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

Re: gtags GRTAGS file is too small (only 16Kbytes) in global 6.3.2-6.3.4


From: Shigio YAMAGUCHI
Subject: Re: gtags GRTAGS file is too small (only 16Kbytes) in global 6.3.2-6.3.4 on CentOS 7 x86_64
Date: Sat, 21 Feb 2015 16:30:01 +0900

Hi,
> Unfortunately with 6.3.2-6.3.4 on CentOS 7 x86_64, gtags never creates
> a GRTAGS file larger than 16K and therefore reverse lookups always
> fail (return no output).  On CentOS 6 everything seems to be ok.

The GRTAGS seems an empty file.
Don't you use ctags parser? If so, ctags parser cannot generate GRTAGS records.
You can see the parser of your using by the --debug option of gtags(1).

$ gtags --debug 
...
File './yacc.c' is handled as follows:
        suffix:   |.c|
        language: |C|
        parser:   |parser|
        library:  |/usr/local/lib/gtags/exuberant-ctags.la| <= ctags parser 

Would you please check it?


2015-02-20 3:18 GMT+09:00 Anthony Jackson <address@hidden>:
First of all, thank you for all of your hard work on GNU global.  My
ability to understand code is greatly enhanced by this excellent tool.

Unfortunately with 6.3.2-6.3.4 on CentOS 7 x86_64, gtags never creates
a GRTAGS file larger than 16K and therefore reverse lookups always
fail (return no output).  On CentOS 6 everything seems to be ok.

OS: CentOS 7 x86_64
Global versions tried: 6.3.2, 6.3.3, 6.3.4

Example run on CentOS 6 x86_64 that works (expected behavior):
$ cd linux-2.6.37
$ gtags
ls -l
...
-rw-r--r--  1 user user   6610944 Feb 18 10:38 GPATH
-rw-r--r--  1 user user 239206400 Feb 18 10:38 GRTAGS
-rw-r--r--  1 user user  98590720 Feb 18 10:37 GTAGS
...
$ global -x get_user_pages
get_user_pages   1549 mm/memory.c      int get_user_pages(struct
task_struct *tsk, struct mm_struct *mm,
get_user_pages    177 mm/nommu.c       int get_user_pages(struct
task_struct *tsk, struct mm_struct *mm,
$ global -xr get_user_pages
get_user_pages   1947 arch/arm/mach-bcmring/dma.c             rc =
get_user_pages(userTask,    /* task */
get_user_pages   2724 arch/cris/arch-v32/drivers/cryptocop.c     err =
get_user_pages(current,
get_user_pages   2741 arch/cris/arch-v32/drivers/cryptocop.c
err = get_user_pages(current,
...

Example run on CentOS 7 (unexpected behavior):
$ cd linux-2.6.37
$ gtags
ls -l
...
-rw-r--r--  1 user user   6610944 Feb 18 11:03 GPATH
-rw-r--r--  1 user user     16384 Feb 18 11:03 GRTAGS
-rw-r--r--  1 user user  98590720 Feb 18 11:04 GTAGS
...
$ global -x get_user_pages
get_user_pages   1549 mm/memory.c      int get_user_pages(struct
task_struct *tsk, struct mm_struct *mm,
get_user_pages    177 mm/nommu.c       int get_user_pages(struct
task_struct *tsk, struct mm_struct *mm,
$ global -xr get_user_pages
<no output!>

Notice that the GRTAGS file is tiny (exactly 16K) as compared to
CentOS 6, and how there is no output from "global -xr get_user_pages".

A similar issue was encountered back in December of 2012, but I didn't
see any resolution on this mailing list.

See http://lists.gnu.org/archive/html/bug-global/2012-12/msg00001.html

Thanks for you consideration.  BTW, I'm highly motivated to solve this
issue.  If you need additional information or tests you need me to run
on our platform, please let me know.

Anthony

_______________________________________________
Bug-global mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/bug-global



--
Shigio YAMAGUCHI <address@hidden>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3

reply via email to

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