From MAILER-DAEMON Wed Jul 02 12:36:18 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19Xk72-0004GN-Rs
	for mharc-bug-global@gnu.org; Wed, 02 Jul 2003 12:05:40 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19XjhJ-00076C-Qt
	for bug-global@gnu.org; Wed, 02 Jul 2003 11:39:05 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19XjFk-00026y-22
	for bug-global@gnu.org; Wed, 02 Jul 2003 11:10:38 -0400
Received: from sproxy03.hi-ho.ne.jp ([202.224.159.198])
	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19XiZu-0003fn-UY
	for bug-global@gnu.org; Wed, 02 Jul 2003 10:27:23 -0400
Received: from k7.kit.hi-ho.ne.jp (eaosk18-p60.hi-ho.ne.jp [202.224.161.61])
 by sproxy03.hi-ho.ne.jp (hi-ho Mail Server)
 with SMTP id <0HHE00ILRITHJ7@sproxy03.hi-ho.ne.jp> for bug-global@gnu.org;
 Wed,  2 Jul 2003 23:27:18 +0900 (JST)
Date: Wed, 02 Jul 2003 23:27:25 +0900
From: Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
To: shigio@tamacom.com
Message-id: <200307021427.AA00662@k7.kit.hi-ho.ne.jp>
MIME-version: 1.0
X-Mailer: AL-Mail32 Version 1.13
Content-type: text/plain; charset=us-ascii
cc: bug-global@gnu.org
Subject: plans.html
X-BeenThere: bug-global@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Bug reports for GNU GLOBAL <bug-global.gnu.org>
List-Help: <mailto:bug-global-request@gnu.org?subject=help>
List-Post: <mailto:bug-global@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-global>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Wed, 02 Jul 2003 16:05:40 -0000

You committed only plans.in.
Probably you forget to commit plans.html corresponding to it.

iwamoto@napoleon:/home/iwamoto>cvs -z3 -d:pserver:anoncvs@subversions.gnu.org:/webcvs history -a -c -z JST -p software/global -D yesterday 
M 2003-07-02 12:59 JST shigio 1.5  gctags.ref         software/global == <remote>
M 2003-07-02 12:59 JST shigio 1.5  global.ref         software/global == <remote>
M 2003-07-02 12:59 JST shigio 1.4  global.txi         software/global == <remote>
M 2003-07-02 12:59 JST shigio 1.20 globaldoc.html     software/global == <remote>
M 2003-07-02 12:59 JST shigio 1.24 globaldoc_toc.html software/global == <remote>
M 2003-07-02 12:59 JST shigio 1.20 globaldoc_toc.in   software/global == <remote>
M 2003-07-02 12:59 JST shigio 1.3  gozilla.ref        software/global == <remote>
M 2003-07-02 12:59 JST shigio 1.6  gtags.ref          software/global == <remote>
M 2003-07-02 12:59 JST shigio 1.7  htags.ref          software/global == <remote>
M 2003-07-02 12:59 JST shigio 1.8  version.texi       software/global == <remote>
M 2003-07-02 12:59 JST shigio 1.39 whatsnew.html      software/global == <remote>
M 2003-07-02 12:59 JST shigio 1.31 whatsnew.in        software/global == <remote>
M 2003-07-02 17:36 JST shigio 1.20 plans.in           software/global == <remote>

----
Hideki IWAMOTO  h-iwamoto@kit.hi-ho.ne.jp




From MAILER-DAEMON Wed Jul 02 12:43:44 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19Xkdu-000323-B8
	for mharc-bug-global@gnu.org; Wed, 02 Jul 2003 12:39:38 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19Xkah-00029K-FJ
	for bug-global@gnu.org; Wed, 02 Jul 2003 12:36:19 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19XkUg-000130-CM
	for bug-global@gnu.org; Wed, 02 Jul 2003 12:30:07 -0400
Received: from sproxy03.hi-ho.ne.jp ([202.224.159.198])
	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19XkDM-0005Qk-J8; Wed, 02 Jul 2003 12:12:12 -0400
Received: from k7.kit.hi-ho.ne.jp (eaosk18-p60.hi-ho.ne.jp [202.224.161.61])
 by sproxy03.hi-ho.ne.jp (hi-ho Mail Server)
 with SMTP id <0HHE00ALENO90G@sproxy03.hi-ho.ne.jp>; Thu,
 3 Jul 2003 01:12:10 +0900 (JST)
Date: Thu, 03 Jul 2003 01:12:18 +0900
From: Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
In-reply-to: <200307020359.h623xSD73235@tamacom.com>
To: Shigio Yamaguchi <shigio@gnu.org>
Message-id: <200307021612.AA00663@k7.kit.hi-ho.ne.jp>
MIME-version: 1.0
X-Mailer: AL-Mail32 Version 1.13
Content-type: multipart/mixed;	boundary="--------------------7533448222935206"
References: <200307020359.h623xSD73235@tamacom.com>
cc: bug-global@gnu.org
Subject: Re: GLOBAL-4.6 released.
X-BeenThere: bug-global@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Bug reports for GNU GLOBAL <bug-global.gnu.org>
List-Help: <mailto:bug-global-request@gnu.org?subject=help>
List-Post: <mailto:bug-global@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-global>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Wed, 02 Jul 2003 16:39:36 -0000

This is multipart message.

----------------------7533448222935206
Content-Type: text/plain; charset=us-ascii

On Wed, 02 Jul 2003 12:59:28 +0900, Shigio Yamaguchi wrote...
> * Added .cvsrc,.cvsignore,.cvspass,.cvswrappers,autom4te.cache/
>   to the default skip list.
> 

autom4te.cache was only added to gtags.conf and is not included in gtags.
Attached patch updates libutil/conf.h and gtags/manual.in.

----
Hideki IWAMOTO  h-iwamoto@kit.hi-ho.ne.jp

----------------------7533448222935206
Content-Type: application/octet-stream;
	name="global-skip.patch"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
	filename="global-skip.patch"

SW5kZXg6IGxpYnV0aWwvY29uZi5oCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KUkNTIGZpbGU6IC9jdnNyb290
L2dsb2JhbC9nbG9iYWwvbGlidXRpbC9jb25mLmgsdgpyZXRyaWV2aW5nIHJldmlzaW9uIDEu
MTUKZGlmZiAtdSAtdSAtcjEuMTUgY29uZi5oCi0tLSBsaWJ1dGlsL2NvbmYuaAkyNyBKdW4g
MjAwMyAxNTo1MTozNCAtMDAwMAkxLjE1CisrKyBsaWJ1dGlsL2NvbmYuaAkyIEp1bCAyMDAz
IDE2OjAwOjAyIC0wMDAwCkBAIC0zNyw3ICszNyw3IEBACiAjZW5kaWYKICNkZWZpbmUgREVG
QVVMVExBQkVMICAgICJkZWZhdWx0IgogI2RlZmluZSBERUZBVUxUU1VGRklYRVMgImMsaCx5
LGMrKyxjYyxjcHAsY3h4LGh4eCxDLEgscyxTLGphdmEscGhwLHBocDMscGh0bWwiCi0jZGVm
aW5lIERFRkFVTFRTS0lQICAgICAiR1BBVEgsR1RBR1MsR1JUQUdTLEdTWU1TLEhUTUwvLHRh
Z3MsVEFHUyxJRCx5LnRhYi5jLHkudGFiLmgsLm5vdGZ1bmN0aW9uLGNzY29wZS5vdXQsU0ND
Uy8sUkNTLyxDVlMvLENWU1JPT1QvLC5kZXBzLyx7YXJjaH0vLC5jdnNyYywuY3ZzaWdub3Jl
LC5jdnNwYXNzLC5jdnN3cmFwcGVycyIKKyNkZWZpbmUgREVGQVVMVFNLSVAgICAgICJHUEFU
SCxHVEFHUyxHUlRBR1MsR1NZTVMsSFRNTC8sdGFncyxUQUdTLElELHkudGFiLmMseS50YWIu
aCwubm90ZnVuY3Rpb24sY3Njb3BlLm91dCxTQ0NTLyxSQ1MvLENWUy8sQ1ZTUk9PVC8se2Fy
Y2h9LywuY3ZzcmMsLmN2c2lnbm9yZSwuY3ZzcGFzcywuY3Zzd3JhcHBlcnMsLmRlcHMvLGF1
dG9tNHRlLmNhY2hlLyIKIAogdm9pZCBvcGVuY29uZih2b2lkKTsKIGludCBnZXRjb25mbihj
b25zdCBjaGFyICosIGludCAqKTsKSW5kZXg6IGd0YWdzL21hbnVhbC5pbgo9PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09ClJDUyBmaWxlOiAvY3Zzcm9vdC9nbG9iYWwvZ2xvYmFsL2d0YWdzL21hbnVhbC5pbix2
CnJldHJpZXZpbmcgcmV2aXNpb24gMS4yNwpkaWZmIC11IC11IC1yMS4yNyBtYW51YWwuaW4K
LS0tIGd0YWdzL21hbnVhbC5pbgkyOCBKdW4gMjAwMyAwMToxNjozNSAtMDAwMAkxLjI3Cisr
KyBndGFncy9tYW51YWwuaW4JMiBKdWwgMjAwMyAxNjowMDowMiAtMDAwMApAQCAtMTM0LDcg
KzEzNCw3IEBACiAJCUFzIGEgc3BlY2lhbCBleGNlcHRpb24sIEBuYW1le2d0YWdzfSBjb2xs
ZWN0IHZhbHVlcyBmcm9tIG11bHRpcGxlIEBjb2Rle3NraXB9IHZhcmlhYmxlcy4KIAkJSWYg
dGhlIHZhbHVlIGVuZHMgd2l0aCAnLycsIGl0IGFzc3VtZWQgYXMgYSBkaXJlY3RvcnkgYW5k
IEBuYW1le2d0YWdzfSBza2lwcyBhbGwgZmlsZXMgdW5kZXIgaXQuCiAJCUlmIHRoZSB2YWx1
ZSBzdGFydCB3aXRoICcvJywgaXQgYXNzdW1lZCByZWxhdGl2ZSBwYXRoIGZyb20gdGhlIHJv
b3Qgb2Ygc291cmNlIGRpcmVjdG9yeS4KLQkJQnkgZGVmYXVsdCwgaXQgYXNzdW1lcyBHUEFU
SCwgR1RBR1MsIEdSVEFHUywgR1NZTVMsIEhUTUwvLCB0YWdzLCBUQUdTLCBJRCwgeS50YWIu
YywgeS50YWIuaCwgLm5vdGZ1bmN0aW9uLCBjc2NvcGUub3V0LCBTQ0NTLywgUkNTLywgQ1ZT
LywgQ1ZTUk9PVC8sIC5kZXBzLywgQHthcmNoQH0vLCAuY3ZzcmMsIC5jdnNpZ25vcmUsIC5j
dnNwYXNzLCAuY3Zzd3JhcHBlcnMuCisJCUJ5IGRlZmF1bHQsIGl0IGFzc3VtZXMgR1BBVEgs
IEdUQUdTLCBHUlRBR1MsIEdTWU1TLCBIVE1MLywgdGFncywgVEFHUywgSUQsIHkudGFiLmMs
IHkudGFiLmgsIC5ub3RmdW5jdGlvbiwgY3Njb3BlLm91dCwgU0NDUy8sIFJDUy8sIENWUy8s
IENWU1JPT1QvLCBAe2FyY2hAfS8sIC5jdnNyYywgLmN2c2lnbm9yZSwgLmN2c3Bhc3MsIC5j
dnN3cmFwcGVycywgLmRlcHMvLCBhdXRvbTR0ZS5jYWNoZS8uCiAJQGl0ZW17QGNvZGV7c3Vm
Zml4ZXN9KGNvbW1hIHNlcGFyYXRlZCBsaXN0KX0KIAkJU3VmZml4ZXMgb2YgdGFyZ2V0IHNv
dXJjZSBmaWxlLgogCQlBcyBhIHNwZWNpYWwgZXhjZXB0aW9uLCBAbmFtZXtndGFnc30gY29s
bGVjdCB2YWx1ZXMgZnJvbSBtdWx0aXBsZSBAY29kZXtzdWZmaXhlc30gdmFyaWFibGVzLgo=

----------------------7533448222935206--




From MAILER-DAEMON Wed Jul 02 21:18:09 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19Xsjh-0007F9-LX
	for mharc-bug-global@gnu.org; Wed, 02 Jul 2003 21:18:09 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19Xsjf-0007DS-Re
	for bug-global@gnu.org; Wed, 02 Jul 2003 21:18:07 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19Xsje-0007CI-Cw
	for bug-global@gnu.org; Wed, 02 Jul 2003 21:18:06 -0400
Received: from mfep1.odn.ne.jp ([143.90.131.179] helo=t-mta1.odn.ne.jp)
	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19Xsjd-0007Az-Oe
	for bug-global@gnu.org; Wed, 02 Jul 2003 21:18:05 -0400
Received: from choota.signet.or.jp ([211.121.57.106]) by t-mta1.odn.ne.jp
          with ESMTP
          id <20030703011804238.POGN.139418.t-mta1.odn.ne.jp@mta1.odn.ne.jp>;
          Thu, 3 Jul 2003 10:18:04 +0900
Received: from choota.signet.or.jp (localhost [127.0.0.1]) by
	choota.signet.or.jp (8.11.3/) with ESMTP id h631GDj00621; Thu, 3 Jul 2003
	10:16:13 +0900 (JST)
Message-Id: <200307030116.h631GDj00621@tamacom.com>
To: Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
References: <200307021612.AA00663@k7.kit.hi-ho.ne.jp>
In-reply-to: Message from Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
	<200307021612.AA00663@k7.kit.hi-ho.ne.jp>
Date: Thu, 03 Jul 2003 10:16:13 +0900
From: Shigio Yamaguchi <shigio@tamacom.com>
cc: bug-global@gnu.org
Subject: Re: GLOBAL-4.6 released.
X-BeenThere: bug-global@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Bug reports for GNU GLOBAL <bug-global.gnu.org>
List-Help: <mailto:bug-global-request@gnu.org?subject=help>
List-Post: <mailto:bug-global@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-global>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Thu, 03 Jul 2003 01:18:08 -0000

> autom4te.cache was only added to gtags.conf and is not included in gtags.
> Attached patch updates libutil/conf.h and gtags/manual.in.

Fixed.
I will develop a mechanism to unify the content of the definitions.

Thank you!
--
Shigio Yamaguchi <shigio@tamacom.com> - Tama Communications Corporation
Spare mail address: <shigio@par.odn.ne.jp>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3



From MAILER-DAEMON Sun Jul 06 11:13:54 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19ZBD8-0004oe-6U
	for mharc-bug-global@gnu.org; Sun, 06 Jul 2003 11:13:54 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19ZBCy-0004SW-4d
	for bug-global@gnu.org; Sun, 06 Jul 2003 11:13:44 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19ZBCs-0004Kp-4f
	for bug-global@gnu.org; Sun, 06 Jul 2003 11:13:41 -0400
Received: from sproxy03.hi-ho.ne.jp ([202.224.159.198])
	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19ZBCG-0003OB-Hi
	for bug-global@gnu.org; Sun, 06 Jul 2003 11:13:00 -0400
Received: from k7.kit.hi-ho.ne.jp (eaosk18-p60.hi-ho.ne.jp [202.224.161.61])
 by sproxy03.hi-ho.ne.jp (hi-ho Mail Server)
 with SMTP id <0HHL005JYZLBQD@sproxy03.hi-ho.ne.jp> for bug-global@gnu.org;
 Mon,  7 Jul 2003 00:12:49 +0900 (JST)
Date: Mon, 07 Jul 2003 00:12:56 +0900
From: Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
In-reply-to: <200305260243.h4Q2hB700552@tamacom.com>
To: Shigio Yamaguchi <shigio@tamacom.com>
Message-id: <200307061512.AA00669@k7.kit.hi-ho.ne.jp>
MIME-version: 1.0
X-Mailer: AL-Mail32 Version 1.13
Content-type: text/plain; charset=us-ascii
References: <200305260243.h4Q2hB700552@tamacom.com>
cc: bug-global@gnu.org
Subject: Re: [PATCH] add option --no-cache-file and configuration variable
 no_cache_file
X-BeenThere: bug-global@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Bug reports for GNU GLOBAL <bug-global.gnu.org>
List-Help: <mailto:bug-global-request@gnu.org?subject=help>
List-Post: <mailto:bug-global@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-global>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Sun, 06 Jul 2003 15:13:52 -0000

On Mon, 26 May 2003 11:43:11 +0900, Shigio Yamaguchi wrote...
> > Subject: [PATCH] add option --no-cache-file and configuration variable
> >  no_cache_file
> > If there are enough memory, it is not necessary to make tag cache files.
> 
> If enough memory exists, it is faster to execute all on memory.
> I agree with you for this respect.
> 

As a result of comparing execution time, it turns out that it is applied only
when perl is configured so that vfork might be used.
It is faster to use cache file, when using fork.

Though regrettable, in perl-5.8, vfork is not used any longer. 
usevfork is disregarded and fork is always used.
Is there any workaround except using old perl?

--------------+--------------------------------------
              |              tag cache
  perl        |       file               memory
--------------+--------------------------------------
  5.6.1       | 1332u 494s 35:50   1135u 1203s 40:03
  5.6.1 vfork | 1404u 233s 30:59   1222u  206s 26:14
  5.8.0       | 1772u 495s 40:32   1603u 1140s 46:32
--------------+--------------------------------------
Conditions:  
  .globalrc
     format=compact
     htags_options=-acDfFnos
  environment
     GTAGSCACHE=50000000
  Target source code
     linux-2.4.21


perl-5.6.1, cache file
------------------------------------------------------
iwamoto@napoleon:/home/iwamoto/work/linux-2.4.21>time htags --statistics
- Elapsed time of making duplicate entries ............        283 seconds.
- Elapsed time of making function index ...............         20 seconds.
- Elapsed time of making file index ...................         73 seconds.
- Elapsed time of making hypertext ....................       1762 seconds.
- The entire elapsed time .............................       2151 seconds.
1332.430u 494.390s 35:50.95 84.9%       0+0k 0+0io 28354486pf+0w

iwamoto@napoleon:/home/iwamoto/work/linux-2.4.21>strace -c htags --statistics
execve("/home/iwamoto/global/bin/htags", ["htags", "--statistics"], [/* 32 vars */]) = 0
- Elapsed time of making duplicate entries ............        216 seconds.
- Elapsed time of making function index ...............         23 seconds.
- Elapsed time of making file index ...................         35 seconds.
- Elapsed time of making hypertext ....................       1838 seconds.
- The entire elapsed time .............................       2121 seconds.
% time     seconds  usecs/call     calls    errors syscall
------ ----------- ----------- --------- --------- ----------------
 40.67  115.863350        2145     54003           clone
 35.12  100.057296         279    358557           read
 14.44   41.140623          15   2784349           pread
  3.83   10.913670          21    525639           pwrite
  1.70    4.849756          21    230585           close
  1.54    4.379560          19    232210           write
  1.22    3.467718          63     55462           munmap
  0.47    1.334962          25     54003           wait4
  0.38    1.079261          10    108006           pipe
  0.20    0.557749           2    324023           rt_sigaction
  0.12    0.348765          34     10296        57 stat64
  0.10    0.272129           3    107969           fcntl64
  0.07    0.193143           3     56913           fstat64
  0.07    0.186068           3     55468           mmap2
  0.04    0.102294           2     54211     54003 _llseek
  0.01    0.028357           2     13102           dup2
  0.01    0.027357          18      1495        24 open
  0.01    0.021448        1341        16        13 unlink
  0.01    0.016725           5      3681           brk
  0.01    0.014588        2431         6           fsync
  0.00    0.009519           4      2526           mremap
  0.00    0.000339          48         7           mkdir
  0.00    0.000130           4        29           old_mmap
  0.00    0.000084           2        52           rt_sigprocmask
  0.00    0.000054          14         4           link
  0.00    0.000047           9         5           chmod
  0.00    0.000023           2        14           time
  0.00    0.000013           7         2           chdir
  0.00    0.000005           2         3           getgroups32
  0.00    0.000004           4         1           uname
  0.00    0.000003           2         2           getpid
  0.00    0.000003           3         1           set_thread_area
  0.00    0.000002           2         1           geteuid32
  0.00    0.000002           2         1           set_tid_address
  0.00    0.000001           1         1           getrlimit
  0.00    0.000001           1         1           getuid32
  0.00    0.000001           1         1           getgid32
  0.00    0.000001           1         1           getegid32
------ ----------- ----------- --------- --------- ----------------
100.00  284.865051               5032646     54097 total

perl-5.6.1, memory cache
------------------------------------------------------
iwamoto@napoleon:/home/iwamoto/work/linux-2.4.21>time htags --statistics
- Elapsed time of making duplicate entries ............        104 seconds.
- Elapsed time of making function index ...............          8 seconds.
- Elapsed time of making file index ...................         81 seconds.
- Elapsed time of making hypertext ....................       2210 seconds.
- The entire elapsed time .............................       2403 seconds.
1135.190u 1203.750s 40:03.06 97.3%      0+0k 0+0io 28715200pf+0w

iwamoto@napoleon:/home/iwamoto/work/linux-2.4.21>strace -c htags --statistics
execve("/home/iwamoto/global/bin/htags", ["htags", "--statistics"], [/* 32 vars */]) = 0
- Elapsed time of making duplicate entries ............         96 seconds.
- Elapsed time of making function index ...............          8 seconds.
- Elapsed time of making file index ...................         81 seconds.
- Elapsed time of making hypertext ....................       2307 seconds.
- The entire elapsed time .............................       2501 seconds.
% time     seconds  usecs/call     calls    errors syscall
------ ----------- ----------- --------- --------- ----------------
 75.08  489.464445        9064     54003           clone
 21.98  143.260619         400    358326           read
  0.75    4.863868          21    232210           write
  0.65    4.260534          18    230561           close
  0.51    3.345478          60     55449           munmap
  0.38    2.505259          46     54003           wait4
  0.16    1.047058          10    108006           pipe
  0.15    1.003537           9    107963           fcntl64
  0.12    0.778255          14     56889           fstat64
  0.09    0.565831           2    324022           rt_sigaction
  0.05    0.352155          34     10252        23 stat64
  0.03    0.186513           3     55468           mmap2
  0.02    0.106448           2     54003     54003 _llseek
  0.02    0.099768           4     26033           brk
  0.00    0.027878           2     13102           dup2
  0.00    0.025685          18      1448         1 open
  0.00    0.009239           4      2421           mremap
  0.00    0.000339          48         7           mkdir
  0.00    0.000066           3        19           old_mmap
  0.00    0.000050          13         4           link
  0.00    0.000044           9         5           chmod
  0.00    0.000024           6         4         4 unlink
  0.00    0.000020           2        11           time
  0.00    0.000012           6         2           chdir
  0.00    0.000005           2         3           rt_sigprocmask
  0.00    0.000005           2         3           getgroups32
  0.00    0.000004           4         1           uname
  0.00    0.000003           3         1           set_thread_area
  0.00    0.000002           2         1           getpid
  0.00    0.000001           1         1           getuid32
  0.00    0.000001           1         1           getgid32
  0.00    0.000001           1         1           geteuid32
  0.00    0.000001           1         1           getegid32
------ ----------- ----------- --------- --------- ----------------
100.00  651.903148               1744224     54031 total

perl-5.6.1 configured with -Dusevfork, cache file
------------------------------------------------------
iwamoto@napoleon:/home/iwamoto/work/linux-2.4.21>time htags --statistics
- Elapsed time of making duplicate entries ............        346 seconds.
- Elapsed time of making function index ...............         17 seconds.
- Elapsed time of making file index ...................         63 seconds.
- Elapsed time of making hypertext ....................       1420 seconds.
- The entire elapsed time .............................       1859 seconds.
1404.590u 233.880s 30:59.36 88.1%       0+0k 0+0io 30992092pf+0w

iwamoto@napoleon:/home/iwamoto/work/linux-2.4.21>strace -c htags --statistics
execve("/home/iwamoto/global/bin/htags", ["htags", "--statistics"], [/* 32 vars */]) = 0
- Elapsed time of making duplicate entries ............        293 seconds.
- Elapsed time of making function index ...............         23 seconds.
- Elapsed time of making file index ...................         26 seconds.
- Elapsed time of making hypertext ....................       1601 seconds.
- The entire elapsed time .............................       1953 seconds.
% time     seconds  usecs/call     calls    errors syscall
------ ----------- ----------- --------- --------- ----------------
 63.35  260.559716        4825     54003           vfork
 19.91   81.870234         228    358564           read
  9.53   39.206486          14   2784349           pread
  2.44   10.038321          19    525639           pwrite
  1.78    7.312749          32    230587           close
  1.12    4.604114          20    235003           write
  0.93    3.835889          69     55463           munmap
  0.30    1.234117          23     54003           wait4
  0.25    1.015581           9    108006           pipe
  0.13    0.542714           2    324023           rt_sigaction
  0.08    0.321896          31     10296        57 stat64
  0.05    0.205328           2    107970           fcntl64
  0.05    0.202836           4     55470           mmap2
  0.03    0.127015           2     56916           fstat64
  0.03    0.115794           2     54211     54003 _llseek
  0.01    0.030074           2     13102           dup2
  0.01    0.024283          16      1497        24 open
  0.01    0.020877        1305        16        13 unlink
  0.00    0.013707           4      3687           brk
  0.00    0.007573           4      2120           mremap
  0.00    0.006111        1019         6           fsync
  0.00    0.000311          44         7           mkdir
  0.00    0.000117           4        29           old_mmap
  0.00    0.000084           2        52           rt_sigprocmask
  0.00    0.000050          13         4           link
  0.00    0.000045           9         5           chmod
  0.00    0.000043           3        14           time
  0.00    0.000014          14         1           set_thread_area
  0.00    0.000011           6         2           chdir
  0.00    0.000005           2         3           getgroups32
  0.00    0.000004           2         2           getpid
  0.00    0.000003           3         1           uname
  0.00    0.000002           2         1           getuid32
  0.00    0.000002           2         1           geteuid32
  0.00    0.000002           2         1           set_tid_address
  0.00    0.000001           1         1           getrlimit
  0.00    0.000001           1         1           getgid32
  0.00    0.000001           1         1           getegid32
------ ----------- ----------- --------- --------- ----------------
100.00  411.296111               5035057     54097 total

perl-5.6.1 configured with -Dusevfork, memory cache
------------------------------------------------------
iwamoto@napoleon:/home/iwamoto/work/linux-2.4.21>time htags --statistics
- Elapsed time of making duplicate entries ............        212 seconds.
- Elapsed time of making function index ...............          8 seconds.
- Elapsed time of making file index ...................         77 seconds.
- Elapsed time of making hypertext ....................       1276 seconds.
- The entire elapsed time .............................       1574 seconds.
1222.560u 206.770s 26:14.69 90.7%       0+0k 0+0io 30992071pf+0w

iwamoto@napoleon:/home/iwamoto/work/linux-2.4.21>strace -c htags --statistics
execve("/home/iwamoto/global/bin/htags", ["htags", "--statistics"], [/* 32 vars */]) = 0
- Elapsed time of making duplicate entries ............        220 seconds.
- Elapsed time of making function index ...............          7 seconds.
- Elapsed time of making file index ...................         27 seconds.
- Elapsed time of making hypertext ....................       1325 seconds.
- The entire elapsed time .............................       1580 seconds.
% time     seconds  usecs/call     calls    errors syscall
------ ----------- ----------- --------- --------- ----------------
 72.04  262.900245        4868     54003           vfork
 22.59   82.449608         230    358326           read
  2.00    7.288686          32    230562           close
  1.18    4.314676          19    232210           write
  1.09    3.975190          72     55449           munmap
  0.30    1.087627          20     54003           wait4
  0.27    1.000662           9    108006           pipe
  0.17    0.631923          24     26173           brk
  0.15    0.537633           2    324022           rt_sigaction
  0.05    0.187639           3     55471           mmap2
  0.05    0.186763           2    107963           fcntl64
  0.03    0.120161           2     56890           fstat64
  0.03    0.095478           2     54003     54003 _llseek
  0.02    0.085809           8     10252        23 stat64
  0.01    0.027259           2     13102           dup2
  0.01    0.025613          18      1449         1 open
  0.00    0.015730           6      2424           mremap
  0.00    0.000306          44         7           mkdir
  0.00    0.000062           3        19           old_mmap
  0.00    0.000049          12         4           link
  0.00    0.000044           9         5           chmod
  0.00    0.000024           6         4         4 unlink
  0.00    0.000019           2        11           time
  0.00    0.000009           5         2           chdir
  0.00    0.000005           2         3           getgroups32
  0.00    0.000004           4         1           uname
  0.00    0.000004           1         3           rt_sigprocmask
  0.00    0.000003           3         1           set_thread_area
  0.00    0.000002           2         1           getpid
  0.00    0.000001           1         1           getuid32
  0.00    0.000001           1         1           getgid32
  0.00    0.000001           1         1           geteuid32
  0.00    0.000001           1         1           getegid32
------ ----------- ----------- --------- --------- ----------------
100.00  364.931237               1744373     54031 total

perl-5.8.0 shipped with Redhat9, cache file
------------------------------------------------------
iwamoto@napoleon:/home/iwamoto/work/linux-2.4.21>time htags --statistics
- Elapsed time of making duplicate entries ............        325 seconds.
- Elapsed time of making function index ...............         18 seconds.
- Elapsed time of making file index ...................         48 seconds.
- Elapsed time of making hypertext ....................       2036 seconds.
- The entire elapsed time .............................       2432 seconds.
1772.070u 495.610s 40:32.28 93.2%       0+0k 0+0io 31061355pf+0w

iwamoto@napoleon:/home/iwamoto/work/linux-2.4.21>strace -c htags --statistics
execve("/home/iwamoto/global/bin/htags", ["htags", "--statistics"], [/* 32 vars */]) = 0
- Elapsed time of making duplicate entries ............        523 seconds.
- Elapsed time of making function index ...............         30 seconds.
- Elapsed time of making file index ...................         73 seconds.
- Elapsed time of making hypertext ....................       2127 seconds.
- The entire elapsed time .............................       2768 seconds.
% time     seconds  usecs/call     calls    errors syscall
------ ----------- ----------- --------- --------- ----------------
 54.13  150.610476          39   3857967           read
 26.78   74.507895        1380     54003           clone
  7.35   20.439800          10   1952949           write
  7.24   20.148240           4   4651438           lseek
  1.63    4.538740          21    217476           close
  1.42    3.950332          12    324024           rt_sigaction
  0.48    1.337720          25     54003           wait4
  0.36    0.994502           9    108006           pipe
  0.22    0.612423          59     10309        77 stat64
  0.14    0.387668           4    109439    105700 _llseek
  0.10    0.267077           5     55455     55452 ioctl
  0.09    0.238764           4     53960           fcntl64
  0.02    0.067787          45      1515        51 open
  0.01    0.033390           3     13102           dup2
  0.01    0.030108        1882        16        13 unlink
  0.01    0.029410           8      3589           brk
  0.01    0.028888          11      2646           mremap
  0.00    0.009785        1631         6           fsync
  0.00    0.003733           3      1455           fstat64
  0.00    0.000893         128         7           mkdir
  0.00    0.000652          59        11           mmap2
  0.00    0.000100           3        29           old_mmap
  0.00    0.000054          27         2           munmap
  0.00    0.000051          13         4           link
  0.00    0.000051          10         5           chmod
  0.00    0.000043          43         1           readlink
  0.00    0.000022           2        11           time
  0.00    0.000014           7         2           chdir
  0.00    0.000004           4         1           uname
  0.00    0.000004           1         3           getgroups32
  0.00    0.000004           4         1           set_thread_area
  0.00    0.000003           2         2           rt_sigprocmask
  0.00    0.000003           3         1           futex
  0.00    0.000002           2         1           getpid
  0.00    0.000002           2         1           getppid
  0.00    0.000002           2         1           getrlimit
  0.00    0.000002           2         1           getuid32
  0.00    0.000002           2         1           getegid32
  0.00    0.000002           2         1           set_tid_address
  0.00    0.000001           1         1           getgid32
  0.00    0.000001           1         1           geteuid32
------ ----------- ----------- --------- --------- ----------------
100.00  278.238650              11471446    161293 total

perl-5.8.0 shipped with Redhat9, memory cache
------------------------------------------------------
iwamoto@napoleon:/home/iwamoto/work/linux-2.4.21>time htags --statistics
- Elapsed time of making duplicate entries ............        221 seconds.
- Elapsed time of making function index ...............         11 seconds.
- Elapsed time of making file index ...................         72 seconds.
- Elapsed time of making hypertext ....................       2481 seconds.
- The entire elapsed time .............................       2792 seconds.
1603.400u 1140.840s 46:32.42 98.2%      0+0k 0+0io 31045633pf+0w

iwamoto@napoleon:/home/iwamoto/work/linux-2.4.21>strace -c htags --statistics
execve("/home/iwamoto/global/bin/htags", ["htags", "--statistics"], [/* 32 vars */]) = 0
- Elapsed time of making duplicate entries ............        205 seconds.
- Elapsed time of making function index ...............         11 seconds.
- Elapsed time of making file index ...................         96 seconds.
- Elapsed time of making hypertext ....................       2630 seconds.
- The entire elapsed time .............................       2943 seconds.
% time     seconds  usecs/call     calls    errors syscall
------ ----------- ----------- --------- --------- ----------------
 71.34  472.489683        8749     54003           clone
 25.78  170.714074         476    358328           read
  0.73    4.811766          21    232255           write
  0.62    4.083742          19    217462           close
  0.60    3.997911          12    324024           rt_sigaction
  0.35    2.332727          43     54003           wait4
  0.15    1.007399           9    108006           pipe
  0.14    0.936249          17     55446     55443 ioctl
  0.14    0.924226           8    109424    105700 _llseek
  0.10    0.649236          26     25119           brk
  0.02    0.163186           3     53960           fcntl64
  0.01    0.091147           9     10262        32 stat64
  0.01    0.055727          38      1465        15 open
  0.01    0.034922           3     13102           dup2
  0.00    0.009131           4      2265           mremap
  0.00    0.003886           3      1450           fstat64
  0.00    0.000822          27        30           mmap2
  0.00    0.000322          46         7           mkdir
  0.00    0.000241          34         7           munmap
  0.00    0.000098           4        25           old_mmap
  0.00    0.000054          14         4           link
  0.00    0.000047           9         5           chmod
  0.00    0.000038          38         1           readlink
  0.00    0.000030           8         4         4 unlink
  0.00    0.000025           2        11           time
  0.00    0.000014           7         2           chdir
  0.00    0.000005           2         3           getgroups32
  0.00    0.000004           4         1           set_thread_area
  0.00    0.000003           3         1           uname
  0.00    0.000002           2         1           getpid
  0.00    0.000002           1         2           rt_sigprocmask
  0.00    0.000002           2         1           getegid32
  0.00    0.000002           2         1           set_tid_address
  0.00    0.000001           1         1           getppid
  0.00    0.000001           1         1           getrlimit
  0.00    0.000001           1         1           getuid32
  0.00    0.000001           1         1           getgid32
  0.00    0.000001           1         1           geteuid32
------ ----------- ----------- --------- --------- ----------------
100.00  662.306728               1620685    161194 total





----
Hideki IWAMOTO  h-iwamoto@kit.hi-ho.ne.jp




From MAILER-DAEMON Mon Jul 07 01:22:44 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19ZOSZ-00027v-Lp
	for mharc-bug-global@gnu.org; Mon, 07 Jul 2003 01:22:43 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19ZOSP-0001Wn-4u
	for bug-global@gnu.org; Mon, 07 Jul 2003 01:22:33 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19ZOSH-00016k-PD
	for bug-global@gnu.org; Mon, 07 Jul 2003 01:22:28 -0400
Received: from mfep3.odn.ne.jp ([143.90.131.181] helo=t-mta3.odn.ne.jp)
	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19ZOS1-0007fC-DC
	for bug-global@gnu.org; Mon, 07 Jul 2003 01:22:09 -0400
Received: from choota.signet.or.jp ([211.3.78.177]) by t-mta3.odn.ne.jp
          with ESMTP
          id <20030707052129456.IBII.2021.t-mta3.odn.ne.jp@mta3.odn.ne.jp>;
          Mon, 7 Jul 2003 14:21:29 +0900
Received: from choota.signet.or.jp (localhost [127.0.0.1]) by
	choota.signet.or.jp (8.11.3/) with ESMTP id h675JWN18576; Mon, 7 Jul 2003
	14:19:32 +0900 (JST)
Message-Id: <200307070519.h675JWN18576@tamacom.com>
To: Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
References: <200307061512.AA00669@k7.kit.hi-ho.ne.jp>
In-reply-to: Message from Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
	<200307061512.AA00669@k7.kit.hi-ho.ne.jp>
Date: Mon, 07 Jul 2003 14:19:32 +0900
From: Shigio Yamaguchi <shigio@tamacom.com>
cc: bug-global@gnu.org
Subject: Re: [PATCH] add option --no-cache-file and configuration variable
 no_cache_file
X-BeenThere: bug-global@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Bug reports for GNU GLOBAL <bug-global.gnu.org>
List-Help: <mailto:bug-global-request@gnu.org?subject=help>
List-Post: <mailto:bug-global@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-global>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Mon, 07 Jul 2003 05:22:42 -0000

Hi,
> As a result of comparing execution time, it turns out that it is applied only
> when perl is configured so that vfork might be used.
> It is faster to use cache file, when using fork.
> 
> Though regrettable, in perl-5.8, vfork is not used any longer. 
> usevfork is disregarded and fork is always used.
> Is there any workaround except using old perl?

I think there is no way except for asking perl people to use vfork.
But there might be some reasons for it.

Originally, a suitable way for UNIX is to make a lot of small processes
using interprocess communication. Using process memory cache means a big
process which needs a lot of time to copy.

If we cannot use vfork(2) then we should select one of the following strategy:

(1) a small process which fork a lot of processes.
(2) a big process which fork lesser processes.

Since we have made a decision adding more processes in anchor'load(),
we had better select (1).
--
Shigio Yamaguchi <shigio@tamacom.com> - Tama Communications Corporation
Spare mail address: <shigio@par.odn.ne.jp>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3



From MAILER-DAEMON Mon Jul 07 12:59:46 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19ZZL7-0006RR-NC
	for mharc-bug-global@gnu.org; Mon, 07 Jul 2003 12:59:45 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19ZZBV-0004r0-8Q
	for bug-global@gnu.org; Mon, 07 Jul 2003 12:49:49 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19ZY4Z-000620-PX
	for bug-global@gnu.org; Mon, 07 Jul 2003 11:38:38 -0400
Received: from gnuftp.gnu.org ([199.232.41.6])
	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19ZXpj-0003YT-0b
	for bug-global@gnu.org; Mon, 07 Jul 2003 11:23:15 -0400
Received: from sproxy03.hi-ho.ne.jp ([202.224.159.198])
	by gnuftp.gnu.org with esmtp (Exim 4.20)
	id 19ZVZT-0005tf-VT
	for bug-global@gnu.org; Mon, 07 Jul 2003 08:58:20 -0400
Received: from k7.kit.hi-ho.ne.jp (eaosk18-p60.hi-ho.ne.jp [202.224.161.61])
 by sproxy03.hi-ho.ne.jp (hi-ho Mail Server)
 with SMTP id <0HHN005EBNJHIK@sproxy03.hi-ho.ne.jp> for bug-global@gnu.org;
 Mon,  7 Jul 2003 21:47:43 +0900 (JST)
Date: Mon, 07 Jul 2003 21:47:49 +0900
From: Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
To: bug-global@gnu.org
Message-id: <200307071247.AA00670@k7.kit.hi-ho.ne.jp>
MIME-version: 1.0
X-Mailer: AL-Mail32 Version 1.13
Content-type: text/plain; charset=us-ascii
Subject: [PATCH] change comment about no_cache_file
X-BeenThere: bug-global@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Bug reports for GNU GLOBAL <bug-global.gnu.org>
List-Help: <mailto:bug-global-request@gnu.org?subject=help>
List-Post: <mailto:bug-global@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-global>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Mon, 07 Jul 2003 16:59:44 -0000



Index: htags/htags.in
===================================================================
RCS file: /cvsroot/global/global/htags/htags.in,v
retrieving revision 1.162
diff -u -u -r1.162 htags.in
--- htags/htags.in	3 Jul 2003 03:42:51 -0000	1.162
+++ htags/htags.in	7 Jul 2003 12:42:57 -0000
@@ -221,7 +221,9 @@
 	$'map_file = 0;
 }
 #
-# If enough momory exist, set this variable.
+# If enough momory exist and perl is configured so that vfork might be used,
+# set this variable.
+# Note that vfork is no longer used in perl-5.8.
 #
 if (&'getconf('no_cache_file')) {	# undocumented
 	$'use_cache_file = 0;

----
Hideki IWAMOTO  h-iwamoto@kit.hi-ho.ne.jp




From MAILER-DAEMON Mon Jul 07 14:56:35 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19Zb14-0006qP-BR
	for mharc-bug-global@gnu.org; Mon, 07 Jul 2003 14:47:10 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19Zb0C-0006Uh-Ss
	for bug-global@gnu.org; Mon, 07 Jul 2003 14:46:16 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19ZZAA-0004W4-T7
	for bug-global@gnu.org; Mon, 07 Jul 2003 12:48:28 -0400
Received: from mfep3.odn.ne.jp ([143.90.131.181] helo=t-mta3.odn.ne.jp)
	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19ZYOy-00085N-Nm
	for bug-global@gnu.org; Mon, 07 Jul 2003 11:59:40 -0400
Received: from choota.signet.or.jp ([211.3.78.177]) by t-mta3.odn.ne.jp
          with ESMTP
          id <20030707155911684.YRVX.2021.t-mta3.odn.ne.jp@mta3.odn.ne.jp>;
          Tue, 8 Jul 2003 00:59:11 +0900
Received: from choota.signet.or.jp (localhost [127.0.0.1]) by
	choota.signet.or.jp (8.11.3/) with ESMTP id h67FvAN72016; Tue, 8 Jul 2003
	00:57:10 +0900 (JST)
Message-Id: <200307071557.h67FvAN72016@tamacom.com>
To: Shigio Yamaguchi <shigio@tamacom.com>
References: <200307070519.h675JWN18576@tamacom.com>
In-reply-to: Message from Shigio Yamaguchi <shigio@tamacom.com>
  of "Mon, 07 Jul 2003 14:19:32 JST." <200307070519.h675JWN18576@tamacom.com>
Date: Tue, 08 Jul 2003 00:57:09 +0900
From: Shigio Yamaguchi <shigio@tamacom.com>
cc: bug-global@gnu.org
Subject: Re: [PATCH] add option --no-cache-file and configuration variable
 no_cache_file
X-BeenThere: bug-global@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Bug reports for GNU GLOBAL <bug-global.gnu.org>
List-Help: <mailto:bug-global-request@gnu.org?subject=help>
List-Post: <mailto:bug-global@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-global>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Mon, 07 Jul 2003 18:47:09 -0000

> I think there is no way except for asking perl people to use vfork.

I had forgotten 'copy-on-write' technique.
Recent fork(2) is sure to be impremented using 'copy-on-write' technique
that delay copy of process until the first access to the memory.
Taking time for the copy might mean that extra access was done after
fork(2)/clone(2) before exec(2) in perl.
--
Shigio Yamaguchi <shigio@tamacom.com> - Tama Communications Corporation
Spare mail address: <shigio@par.odn.ne.jp>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3



From MAILER-DAEMON Mon Jul 07 20:35:24 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19ZgRO-0006Ds-MJ
	for mharc-bug-global@gnu.org; Mon, 07 Jul 2003 20:34:42 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19ZgRM-0006Au-Ik
	for bug-global@gnu.org; Mon, 07 Jul 2003 20:34:40 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19ZgQs-00062A-4i
	for bug-global@gnu.org; Mon, 07 Jul 2003 20:34:10 -0400
Received: from mfep3.odn.ne.jp ([143.90.131.181] helo=t-mta3.odn.ne.jp)
	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19ZgQU-0005zk-Jz
	for bug-global@gnu.org; Mon, 07 Jul 2003 20:33:46 -0400
Received: from choota.signet.or.jp ([211.3.78.177]) by t-mta3.odn.ne.jp
          with ESMTP
          id <20030708003345258.FHXX.2021.t-mta3.odn.ne.jp@mta3.odn.ne.jp>;
          Tue, 8 Jul 2003 09:33:45 +0900
Received: from choota.signet.or.jp (localhost [127.0.0.1]) by
	choota.signet.or.jp (8.11.3/) with ESMTP id h680Vkr00410; Tue, 8 Jul 2003
	09:31:46 +0900 (JST)
Message-Id: <200307080031.h680Vkr00410@tamacom.com>
To: Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
References: <200307071247.AA00670@k7.kit.hi-ho.ne.jp>
In-reply-to: Message from Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
	<200307071247.AA00670@k7.kit.hi-ho.ne.jp>
Date: Tue, 08 Jul 2003 09:31:46 +0900
From: Shigio Yamaguchi <shigio@tamacom.com>
cc: bug-global@gnu.org
Subject: Re: [PATCH] change comment about no_cache_file
X-BeenThere: bug-global@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Bug reports for GNU GLOBAL <bug-global.gnu.org>
List-Help: <mailto:bug-global-request@gnu.org?subject=help>
List-Post: <mailto:bug-global@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-global>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Tue, 08 Jul 2003 00:34:42 -0000

Committed. Thank you.

> Index: htags/htags.in
> ===================================================================
> RCS file: /cvsroot/global/global/htags/htags.in,v
> retrieving revision 1.162
> diff -u -u -r1.162 htags.in
> --- htags/htags.in	3 Jul 2003 03:42:51 -0000	1.162
> +++ htags/htags.in	7 Jul 2003 12:42:57 -0000
> @@ -221,7 +221,9 @@
>  	$'map_file = 0;
>  }
>  #
> -# If enough momory exist, set this variable.
> +# If enough momory exist and perl is configured so that vfork might be used,
> +# set this variable.
> +# Note that vfork is no longer used in perl-5.8.
>  #
>  if (&'getconf('no_cache_file')) {	# undocumented
>  	$'use_cache_file = 0;
> 
> ----
> Hideki IWAMOTO  h-iwamoto@kit.hi-ho.ne.jp
--
Shigio Yamaguchi <shigio@tamacom.com> - Tama Communications Corporation
Spare mail address: <shigio@par.odn.ne.jp>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3



From MAILER-DAEMON Tue Jul 08 09:44:28 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19ZsWr-0008OL-9a
	for mharc-bug-global@gnu.org; Tue, 08 Jul 2003 09:29:09 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19ZnuX-0008SO-6H
	for bug-global@gnu.org; Tue, 08 Jul 2003 04:33:17 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19Zntm-0007gE-FF
	for bug-global@gnu.org; Tue, 08 Jul 2003 04:32:31 -0400
Received: from ns.webtt.biz ([64.239.29.225])
	by monty-python.gnu.org with smtp (Exim 4.20)
	id 19ZntT-0007IW-So
	for bug-global@gnu.org; Tue, 08 Jul 2003 04:32:11 -0400
Received: (qmail 5008 invoked from network); 8 Jul 2003 08:34:28 -0000
Received: from unknown (HELO ?217.129.151.121?)
	(rui@ruilopes.com@217.129.151.121)
	by ns.webtt.biz with SMTP; 8 Jul 2003 08:34:28 -0000
From: Rui Lopes <rui@ruilopes.com>
To: bug-global@gnu.org
Content-Type: text/plain
Message-Id: <1057655358.653.23.camel@localhost>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.4.0 
Date: 08 Jul 2003 10:09:18 +0100
Content-Transfer-Encoding: 7bit
X-Mailman-Approved-At: Tue, 08 Jul 2003 09:29:07 -0400
Subject: Global documentation quirk
X-BeenThere: bug-global@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Bug reports for GNU GLOBAL <bug-global.gnu.org>
List-Help: <mailto:bug-global-request@gnu.org?subject=help>
List-Post: <mailto:bug-global@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-global>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Tue, 08 Jul 2003 08:33:38 -0000

Hi,


This is just a quirk, but Global documentation should refer to the
Assembly language as `Assembly' and not `assembler'. ;)



Regards,
Rui Lopes




From MAILER-DAEMON Tue Jul 08 11:02:27 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19ZtdU-0002ih-E8
	for mharc-bug-global@gnu.org; Tue, 08 Jul 2003 10:40:04 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19ZtdH-0002co-Pk
	for bug-global@gnu.org; Tue, 08 Jul 2003 10:39:51 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19ZtdA-0002Zf-Fe
	for bug-global@gnu.org; Tue, 08 Jul 2003 10:39:45 -0400
Received: from mfep3.odn.ne.jp ([143.90.131.181] helo=t-mta3.odn.ne.jp)
	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19ZtHF-0004yp-Sd
	for bug-global@gnu.org; Tue, 08 Jul 2003 10:17:06 -0400
Received: from choota.signet.or.jp ([211.3.78.177]) by t-mta3.odn.ne.jp
          with ESMTP
          id <20030708141703986.BLGK.2021.t-mta3.odn.ne.jp@mta3.odn.ne.jp>;
          Tue, 8 Jul 2003 23:17:03 +0900
Received: from choota.signet.or.jp (localhost [127.0.0.1]) by
	choota.signet.or.jp (8.11.3/) with ESMTP id h68EF4H00501; Tue, 8 Jul 2003
	23:15:04 +0900 (JST)
Message-Id: <200307081415.h68EF4H00501@tamacom.com>
To: Rui Lopes <rui@ruilopes.com>
References: <1057655358.653.23.camel@localhost>
In-reply-to: Message from Rui Lopes <rui@ruilopes.com>
  of "08 Jul 2003 10:09:18 +0100." <1057655358.653.23.camel@localhost>
Date: Tue, 08 Jul 2003 23:15:04 +0900
From: Shigio Yamaguchi <shigio@tamacom.com>
cc: bug-global@gnu.org
Subject: Re: Global documentation quirk
X-BeenThere: bug-global@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Bug reports for GNU GLOBAL <bug-global.gnu.org>
List-Help: <mailto:bug-global-request@gnu.org?subject=help>
List-Post: <mailto:bug-global@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-global>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Tue, 08 Jul 2003 14:40:02 -0000

Hi,
> This is just a quirk, but Global documentation should refer to the
> Assembly language as `Assembly' and not `assembler'. ;)

I have fixed the faults.
Thank you!

Index: gctags/manual.in
===================================================================
RCS file: /cvsroot/global/global/gctags/manual.in,v
retrieving revision 1.14
diff -r1.14 manual.in
32c32
< 	from the specified C, C++, yacc, java, PHP and assembler source
---
> 	from the specified C, C++, yacc, java, PHP and Assembly source
Index: global/manual.in
===================================================================
RCS file: /cvsroot/global/global/global/manual.in,v
retrieving revision 1.24
diff -r1.24 manual.in
39c39
< 	in C, C++, Yacc, Java, PHP and assembler source files.
---
> 	in C, C++, Yacc, Java, PHP and Assembly source files.
Index: gtags/manual.in
===================================================================
RCS file: /cvsroot/global/global/gtags/manual.in,v
retrieving revision 1.28
diff -r1.28 manual.in
40c40
< 	C, C++, yacc, java, PHP and assembler source files are supported.
---
> 	C, C++, yacc, java, PHP and Assembly source files are supported.
176c176
< 	Symbols in assembler source files are not extracted for @file{GSYMS}.
---
> 	Symbols in Assembly source files are not extracted for @file{GSYMS}.
Index: htags/manual.in
===================================================================
RCS file: /cvsroot/global/global/htags/manual.in,v
retrieving revision 1.56
diff -r1.56 manual.in
31c31
< 	@name{Htags} makes hypertext from C, C++, Yacc, Java, PHP and assembler source code.
---
> 	@name{Htags} makes hypertext from C, C++, Yacc, Java, PHP and Assembly source code.
--
Shigio Yamaguchi <shigio@tamacom.com> - Tama Communications Corporation
Spare mail address: <shigio@par.odn.ne.jp>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3



From MAILER-DAEMON Tue Jul 08 12:32:35 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19ZvK2-0007zF-Pp
	for mharc-bug-global@gnu.org; Tue, 08 Jul 2003 12:28:06 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19ZvDX-0005rQ-Gz
	for bug-global@gnu.org; Tue, 08 Jul 2003 12:21:23 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19Zv5e-0002tN-Kr
	for bug-global@gnu.org; Tue, 08 Jul 2003 12:13:15 -0400
Received: from sproxy03.hi-ho.ne.jp ([202.224.159.198])
	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19ZurC-0000RP-IA
	for bug-global@gnu.org; Tue, 08 Jul 2003 11:58:18 -0400
Received: from k7.kit.hi-ho.ne.jp (eaosk34-p17.hi-ho.ne.jp [202.224.131.18])
 by sproxy03.hi-ho.ne.jp (hi-ho Mail Server)
 with SMTP id <0HHP000AKR11T1@sproxy03.hi-ho.ne.jp> for bug-global@gnu.org;
 Wed,  9 Jul 2003 00:58:14 +0900 (JST)
Date: Wed, 09 Jul 2003 00:58:23 +0900
From: Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
In-reply-to: <200307071557.h67FvAN72016@tamacom.com>
To: Shigio Yamaguchi <shigio@tamacom.com>
Message-id: <200307081558.AA00671@k7.kit.hi-ho.ne.jp>
MIME-version: 1.0
X-Mailer: AL-Mail32 Version 1.13
Content-type: multipart/mixed;	boundary="--------------------6515284205483811"
References: <200307071557.h67FvAN72016@tamacom.com>
cc: bug-global@gnu.org
Subject: Re: [PATCH] add option --no-cache-file and configuration variable
 no_cache_file
X-BeenThere: bug-global@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Bug reports for GNU GLOBAL <bug-global.gnu.org>
List-Help: <mailto:bug-global-request@gnu.org?subject=help>
List-Post: <mailto:bug-global@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-global>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Tue, 08 Jul 2003 16:28:00 -0000

This is multipart message.

----------------------6515284205483811
Content-Type: text/plain; charset=us-ascii

On Tue, 08 Jul 2003 00:57:09 +0900, Shigio Yamaguchi wrote...
> > I think there is no way except for asking perl people to use vfork.
> 
> I had forgotten 'copy-on-write' technique.
> Recent fork(2) is sure to be impremented using 'copy-on-write' technique
> that delay copy of process until the first access to the memory.
> Taking time for the copy might mean that extra access was done after
> fork(2)/clone(2) before exec(2) in perl.

I think that this difference is an unescapable overhead accompanying use of fork(2).
The almost same difference as htags arises in the attached simple test program.



iwamoto@napoleon:/home/iwamoto/work/test>time ./test2 15000000 54003 'cat /dev/null'
64.720u 189.970s 4:17.59 98.8%  0+0k 0+0io 19171140pf+0w
iwamoto@napoleon:/home/iwamoto/work/test>time ./test2 80000000 54003 'cat /dev/null'
66.700u 758.560s 14:26.62 95.2% 0+0k 0+0io 19171158pf+0w
iwamoto@napoleon:/home/iwamoto/work/test>strace -c ./test2 15000000 54003 'cat /dev/null'
execve("./test2", ["./test2", "15000000", "54003", "cat /dev/null"], [/* 32 vars */]) = 0
% time     seconds  usecs/call     calls    errors syscall
------ ----------- ----------- --------- --------- ----------------
 80.57   58.270417        1079     54003           clone
 18.74   13.550315         251     54003           wait4
  0.49    0.353061           2    216012           rt_sigaction
  0.20    0.147972           1    108006           rt_sigprocmask
  0.00    0.002395        1198         2           munmap
  0.00    0.000021           7         3         1 open
  0.00    0.000020           3         6           old_mmap
  0.00    0.000003           3         1           read
  0.00    0.000003           3         1           uname
  0.00    0.000003           3         1           mmap2
  0.00    0.000003           2         2           fstat64
  0.00    0.000003           3         1           set_thread_area
  0.00    0.000002           1         2           close
  0.00    0.000002           2         1           brk
------ ----------- ----------- --------- --------- ----------------
100.00   72.324220                432044         1 total
iwamoto@napoleon:/home/iwamoto/work/test>strace -c ./test2 80000000 54003 'cat /dev/null'
execve("./test2", ["./test2", "80000000", "54003", "cat /dev/null"], [/* 32 vars */]) = 0
% time     seconds  usecs/call     calls    errors syscall
------ ----------- ----------- --------- --------- ----------------
 78.76  384.163277        7114     54003           clone
 21.13  103.075143        1909     54003           wait4
  0.07    0.362153           2    216012           rt_sigaction
  0.03    0.155021           1    108006           rt_sigprocmask
  0.00    0.015072        7536         2           munmap
  0.00    0.000096          16         6           old_mmap
  0.00    0.000020           7         3         1 open
  0.00    0.000005           3         2           fstat64
  0.00    0.000003           3         1           read
  0.00    0.000003           3         1           uname
  0.00    0.000003           3         1           mmap2
  0.00    0.000002           1         2           close
  0.00    0.000002           2         1           set_thread_area
  0.00    0.000001           1         1           brk
------ ----------- ----------- --------- --------- ----------------
100.00  487.770801                432044         1 total

======= source of system(3) ======
#ifdef FORK
  pid = FORK ();
#else
  pid = __fork ();
#endif
  if (pid == (pid_t) 0)
    {
      /* Child side.  */
      const char *new_argv[4];
      new_argv[0] = SHELL_NAME;
      new_argv[1] = "-c";
      new_argv[2] = line;
      new_argv[3] = NULL;

      /* Restore the signals.  */
      (void) __sigaction (SIGINT, &intr, (struct sigaction *) NULL);
      (void) __sigaction (SIGQUIT, &quit, (struct sigaction *) NULL);
      (void) __sigprocmask (SIG_SETMASK, &omask, (sigset_t *) NULL);
      INIT_LOCK ();

      /* Exec the shell.  */
      (void) __execve (SHELL_PATH, (char *const *) new_argv, __environ);
      _exit (127);
    }
  else if (pid < (pid_t) 0)

----
Hideki IWAMOTO  h-iwamoto@kit.hi-ho.ne.jp

----------------------6515284205483811
Content-Type: application/octet-stream;
	name="test2.c"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
	filename="test2.c"

I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KCmludAptYWluKGludCBh
cmdjLCBjaGFyICoqYXJndikKewoJaW50CQljYWxsb2NzaXplLCBsb29wczsKCWludAkJaTsK
CXZvaWQJCSptZW07CgljaGFyCQkqY29tbWFuZDsKCglpZiAoYXJnYyAhPSA0KSB7CgkJZnBy
aW50ZihzdGRlcnIsICJVc2FnZTogJXMgY2FsbG9jc2l6ZSBsb29wcyBjb21tYW5kXG4iLCBh
cmd2WzBdKTsKCQlyZXR1cm4gMTsKCX0KCgljYWxsb2NzaXplID0gYXRvaShhcmd2WzFdKTsK
CWxvb3BzID0gYXRvaShhcmd2WzJdKTsKCWNvbW1hbmQgPSBhcmd2WzNdOwoKCW1lbSA9IGNh
bGxvYyhjYWxsb2NzaXplLCAxKTsKCglmb3IgKGkgPSAwOyBpIDwgbG9vcHM7IGkrKykKCQlz
eXN0ZW0oY29tbWFuZCk7CgoJZnJlZShtZW0pOwoKCXJldHVybiAwOwp9Cg==

----------------------6515284205483811--




From MAILER-DAEMON Tue Jul 08 23:47:03 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19a5ty-0002FM-Lc
	for mharc-bug-global@gnu.org; Tue, 08 Jul 2003 23:45:54 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19a3QM-0003LG-7f
	for bug-global@gnu.org; Tue, 08 Jul 2003 21:07:10 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19a3GQ-0001Pr-GK
	for bug-global@gnu.org; Tue, 08 Jul 2003 20:57:25 -0400
Received: from gnuftp.gnu.org ([199.232.41.6])
	by monty-python.gnu.org with esmtp (Exim 4.20) id 19a35v-0007RJ-A8
	for bug-global@gnu.org; Tue, 08 Jul 2003 20:46:03 -0400
Received: from mail-out1.apple.com ([17.254.0.52])
	by gnuftp.gnu.org with esmtp (Exim 4.20) id 19a2ip-0001hr-PS
	for bug-global@gnu.org; Tue, 08 Jul 2003 20:22:11 -0400
Received: from mailgate2.apple.com (A17-129-100-225.apple.com [17.129.100.225])
	by mail-out1.apple.com (8.12.9/8.12.9) with ESMTP id h690M5iB026894
	for <bug-global@gnu.org>; Tue, 8 Jul 2003 17:22:05 -0700 (PDT)
Received: from scv3.apple.com (scv3.apple.com) by mailgate2.apple.com
	(Content Technologies SMTPRS 4.2.1) with ESMTP id
	<T634f57fa50118164e16b0@mailgate2.apple.com> for
	<bug-global@gnu.org>; Tue, 8 Jul 2003 17:22:08 -0700
Received: from apple.com (wojdju2.apple.com [17.202.20.168])
	by scv3.apple.com (8.12.9/8.12.9) with ESMTP id h6908O0L001061
	for <bug-global@gnu.org>; Tue, 8 Jul 2003 17:22:00 -0700 (PDT)
Mime-Version: 1.0 (Apple Message framework v578)
Content-Transfer-Encoding: 7bit
Message-Id: <81AF1B16-B1A3-11D7-A7F1-000A957D6388@apple.com>
Content-Type: text/plain; charset=US-ASCII; format=flowed
To: bug-global@gnu.org
From: Justin Wojdacki <jwojdacki@apple.com>
Date: Tue, 8 Jul 2003 17:23:04 -0700
X-Mailer: Apple Mail (2.578)
X-Mailman-Approved-At: Tue, 08 Jul 2003 23:45:52 -0400
Subject: htags doesn't properly escape characters in filenames
X-BeenThere: bug-global@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Bug reports for GNU GLOBAL  <bug-global.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-global>
List-Post: <mailto:bug-global@gnu.org>
List-Help: <mailto:bug-global-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 09 Jul 2003 01:13:08 -0000


i've observed that if the input source filename contains a regex 
special character such as '+', then at line 645 of htags, where a link 
is being built up, there will be a problem.

i noticed this originally because a header is named like "foo++.h". a 
simple solution to this would be to add the following one line prior, 
but it doesn't address other regex special characters.

                 $name =~ s/\+/\\\+/g;

justin wojdacki
jwojdacki@apple.com




From MAILER-DAEMON Wed Jul 09 01:04:01 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19a77X-0007JQ-JS
	for mharc-bug-global@gnu.org; Wed, 09 Jul 2003 01:03:59 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19a76O-0005Sx-Uu
	for bug-global@gnu.org; Wed, 09 Jul 2003 01:02:48 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19a75l-0004qN-G6
	for bug-global@gnu.org; Wed, 09 Jul 2003 01:02:40 -0400
Received: from mfep3.odn.ne.jp ([143.90.131.181] helo=t-mta3.odn.ne.jp)
	by monty-python.gnu.org with esmtp (Exim 4.20) id 19a75f-0004bR-8U
	for bug-global@gnu.org; Wed, 09 Jul 2003 01:02:03 -0400
Received: from choota.signet.or.jp ([211.3.78.177]) by t-mta3.odn.ne.jp
	with ESMTP
	id <20030709050134586.RKVC.2021.t-mta3.odn.ne.jp@mta3.odn.ne.jp>;
	Wed, 9 Jul 2003 14:01:34 +0900
Received: from choota.signet.or.jp (localhost [127.0.0.1]) by
	choota.signet.or.jp (8.11.3/) with ESMTP id h694xXJ19020;
	Wed, 9 Jul 2003 13:59:33 +0900 (JST)
Message-Id: <200307090459.h694xXJ19020@tamacom.com>
To: Justin Wojdacki <jwojdacki@apple.com>
References: <81AF1B16-B1A3-11D7-A7F1-000A957D6388@apple.com>
In-reply-to: Message from Justin Wojdacki <jwojdacki@apple.com> of "Tue,
	08 Jul 2003 17:23:04 MST."
	<81AF1B16-B1A3-11D7-A7F1-000A957D6388@apple.com>
Date: Wed, 09 Jul 2003 13:59:32 +0900
From: Shigio Yamaguchi <shigio@tamacom.com>
Cc: bug-global@gnu.org
Subject: Re: htags doesn't properly escape characters in filenames
X-BeenThere: bug-global@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Bug reports for GNU GLOBAL  <bug-global.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-global>
List-Post: <mailto:bug-global@gnu.org>
List-Help: <mailto:bug-global-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 09 Jul 2003 05:03:57 -0000

Hi,
> i've observed that if the input source filename contains a regex 
> special character such as '+', then at line 645 of htags, where a link 
> is being built up, there will be a problem.
> 
> i noticed this originally because a header is named like "foo++.h". a 
> simple solution to this would be to add the following one line prior, 
> but it doesn't address other regex special characters.
> 
>                  $name =~ s/\+/\\\+/g;

I have fixed the bug in CVS repository version, I think.
Thank you for your report!

Index: htags.in
===================================================================
RCS file: /cvsroot/global/global/htags/htags.in,v
retrieving revision 1.163
diff -r1.163 htags.in
548a549
> 		$name =~ s/([^\w])/\\\1/g;	# Quote name
--
Shigio Yamaguchi <shigio@tamacom.com> - Tama Communications Corporation
Spare mail address: <shigio@par.odn.ne.jp>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3



From MAILER-DAEMON Wed Jul 09 11:44:47 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19aH7e-0007a3-V0
	for mharc-bug-global@gnu.org; Wed, 09 Jul 2003 11:44:46 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19aH7c-0007Z1-1D
	for bug-global@gnu.org; Wed, 09 Jul 2003 11:44:44 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19aH75-0007Q1-4W
	for bug-global@gnu.org; Wed, 09 Jul 2003 11:44:42 -0400
Received: from mfep1.odn.ne.jp ([143.90.131.179] helo=t-mta1.odn.ne.jp)
	by monty-python.gnu.org with esmtp (Exim 4.20) id 19aGzU-0006M8-04
	for bug-global@gnu.org; Wed, 09 Jul 2003 11:36:20 -0400
Received: from choota.signet.or.jp ([211.3.78.177]) by t-mta1.odn.ne.jp
	with ESMTP
	id <20030709153618108.SAN.86450.t-mta1.odn.ne.jp@mta1.odn.ne.jp>;
	Thu, 10 Jul 2003 00:36:18 +0900
Received: from choota.signet.or.jp (localhost [127.0.0.1]) by
	choota.signet.or.jp (8.11.3/) with ESMTP id h69FYHJ58130;
	Thu, 10 Jul 2003 00:34:17 +0900 (JST)
Message-Id: <200307091534.h69FYHJ58130@tamacom.com>
To: Andrs Azar <azar@controles.com>
References: <002a01c34617$ad561d80$0400a8c0@Controles>
In-reply-to: Message from Andrs Azar <azar@controles.com> of "Wed,
	09 Jul 2003 09:43:14 -0300." <002a01c34617$ad561d80$0400a8c0@Controles>
Date: Thu, 10 Jul 2003 00:34:17 +0900
From: Shigio Yamaguchi <shigio@tamacom.com>
Cc: bug-global@gnu.org
Subject: Re: Bug in htags?
X-BeenThere: bug-global@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Bug reports for GNU GLOBAL  <bug-global.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-global>
List-Post: <mailto:bug-global@gnu.org>
List-Help: <mailto:bug-global-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 09 Jul 2003 15:44:44 -0000

Hi,
> Apparently, the problem is due to using  perl dbm* commands on a FAT drive.
> 
> Please, see http://cygwin.com/ml/cygwin/2003-07/msg00267.html

Thank you for information.

I have understood. I'll add new item to GLOBAL FAQ like this:

Q. I'm running GLOBAL on Cygwin.
   When I ran htags, it returned the following message: 

        htags: cannot make cache file '/tmp/htagd79287565'.

   Any workaround?

A. It seems that some Cygwin perl have a bug and the dbmopen() doesn't work
   on FAT file system. You can take the following workaround until Cygwin perl
   is fixed.
   
   With 'no_cache_file' variable set, htags doesn't use dbmopen() any longer.
   Instead, more memory might be requred for execution of htags.

        gtags.conf:
        +-----------------------------------------------------
        |
        |...
        |common:\
        |       :skip=GPATH,GTAGS,GRTAGS,GSYMS,HTML/,tags,...
        |       :format=standard:\
        |       :no_cache_file:                 <== ADD

What do you think?
--
Shigio Yamaguchi <shigio@tamacom.com> - Tama Communications Corporation
Spare mail address: <shigio@par.odn.ne.jp>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3



From MAILER-DAEMON Wed Jul 09 20:44:20 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19aPXo-0004Q1-4D
	for mharc-bug-global@gnu.org; Wed, 09 Jul 2003 20:44:20 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19aHHW-0000na-Ar
	for bug-global@gnu.org; Wed, 09 Jul 2003 11:54:58 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19aGGX-0007Fj-1a
	for bug-global@gnu.org; Wed, 09 Jul 2003 10:50:25 -0400
Received: from mail.tecnet.com.uy ([207.3.116.131])
	by monty-python.gnu.org with esmtp (Exim 4.20) id 19aEXV-00059D-Iu
	for bug-global@gnu.org; Wed, 09 Jul 2003 08:59:18 -0400
Received: (from root@localhost)
	by mail.tecnet.com.uy (8.12.8/8.12.1) id h69CxDof019213;
	Wed, 9 Jul 2003 09:59:14 -0300
Received: from AndresA (r200-40-86-26.adsl.anteldata.net.uy [200.40.86.26])
	by mail.tecnet.com.uy (8.12.8/8.12.1) with SMTP id h69Cx6jK019136;
	Wed, 9 Jul 2003 09:59:08 -0300
Message-ID: <002a01c34617$ad561d80$0400a8c0@Controles>
From: =?iso-8859-1?Q?Andr=E9s_Azar?= <azar@controles.com>
To: "Shigio Yamaguchi" <shigio@tamacom.com>
References: <000701c33745$6d8af440$0400a8c0@Controles>
	<200306201625.h5KGPxh65812@tamacom.com>
Date: Wed, 9 Jul 2003 09:43:14 -0300
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by mail.tecnet.com.uy id
	h69CxDof019213
X-Mailman-Approved-At: Wed, 09 Jul 2003 20:44:18 -0400
Cc: bug-global@gnu.org
Subject: Re: Bug in htags?
X-BeenThere: bug-global@gnu.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: Bug reports for GNU GLOBAL  <bug-global.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-global>
List-Post: <mailto:bug-global@gnu.org>
List-Help: <mailto:bug-global-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 09 Jul 2003 18:29:18 -0000

Apparently, the problem is due to using  perl dbm* commands on a FAT driv=
e.

Please, see http://cygwin.com/ml/cygwin/2003-07/msg00267.html

    Andr=E9s Azar.

----- Original Message -----
From: "Shigio Yamaguchi" <shigio@tamacom.com>
To: "Andrs Azar" <azar@controles.com>
Cc: <bug-global@gnu.org>
Sent: Friday, June 20, 2003 1:25 PM
Subject: Re: Bug in htags?


> > $ perl -e 'dbmopen(%A,"/tmp/htagd79287565",0600) && print"OK\n"'
> >
> > $ ls -l /tmp/htag*
> > -rw-r--r--    1 andresa  all          3072 Jun 20 12:57
> > /tmp/htagd79287565.pag
>
> Dbmopen seems to have failed.
> It is sure to generate *.dir file besides *.pag file.
> There might be a trouble in the perl which you are using.
> --
> Shigio Yamaguchi <shigio@tamacom.com> - Tama Communications Corporation
> Spare mail address: <shigio@par.odn.ne.jp>
> PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3




