From MAILER-DAEMON Sun Jun 01 01:57:13 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19MLpn-0007xS-V5
	for mharc-bug-global@gnu.org; Sun, 01 Jun 2003 01:56:47 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19MKLh-00086p-Ke
	for bug-global@gnu.org; Sun, 01 Jun 2003 00:21:37 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19MKLg-00083D-89
	for bug-global@gnu.org; Sun, 01 Jun 2003 00:21:36 -0400
Received: from sproxy03.hi-ho.ne.jp ([202.224.159.198])
	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19MKLf-0007xB-Hn
	for bug-global@gnu.org; Sun, 01 Jun 2003 00:21:35 -0400
Received: from k7.kit.hi-ho.ne.jp (eaosk46-p33.hi-ho.ne.jp [218.228.126.34])
 by sproxy03.hi-ho.ne.jp (hi-ho Mail Server)
 with SMTP id <0HFS008FSC3SY6@sproxy03.hi-ho.ne.jp> for bug-global@gnu.org;
 Sun,  1 Jun 2003 13:21:29 +0900 (JST)
Date: Sun, 01 Jun 2003 13:21:28 +0900
From: Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
To: bug-global@gnu.org
Message-id: <200306010421.AA00559@k7.kit.hi-ho.ne.jp>
MIME-version: 1.0
X-Mailer: AL-Mail32 Version 1.13
Content-type: text/plain; charset=us-ascii
X-Mailman-Approved-At: Sun, 01 Jun 2003 01:56:46 -0400
Subject: question about the rule of this mailing list
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, 01 Jun 2003 04:21:38 -0000

Is there any rule about the encoding method of an attached file
and partition of mail in this mailing list?

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




From MAILER-DAEMON Sun Jun 01 02:46:52 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19MMcD-0005oK-Qa
	for mharc-bug-global@gnu.org; Sun, 01 Jun 2003 02:46:49 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19MMZ7-0004Gm-FK
	for bug-global@gnu.org; Sun, 01 Jun 2003 02:43:37 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19MMYz-0003oq-Tl
	for bug-global@gnu.org; Sun, 01 Jun 2003 02:43:32 -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 19MMYy-0003hZ-MX
	for bug-global@gnu.org; Sun, 01 Jun 2003 02:43:28 -0400
Received: from choota.signet.or.jp ([211.121.58.115]) by t-mta1.odn.ne.jp
          with ESMTP
          id <20030601064327284.HQT.233227.t-mta1.odn.ne.jp@mta1.odn.ne.jp>;
          Sun, 1 Jun 2003 15:43:27 +0900
Received: from choota.signet.or.jp (localhost [127.0.0.1]) by
	choota.signet.or.jp (8.11.3/) with ESMTP id h516gPv53320; Sun, 1 Jun 2003
	15:42:25 +0900 (JST)
Message-Id: <200306010642.h516gPv53320@tamacom.com>
To: Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
References: <200305311640.AA00552@k7.kit.hi-ho.ne.jp>
In-reply-to: Message from Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
	<200305311640.AA00552@k7.kit.hi-ho.ne.jp>
Date: Sun, 01 Jun 2003 15:42:25 +0900
From: Shigio Yamaguchi <shigio@tamacom.com>
X-Mailman-Approved-At: Sun, 01 Jun 2003 02:46:48 -0400
cc: bug-global@gnu.org
Subject: Re: question about option -g of global
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, 01 Jun 2003 06:43:41 -0000

> When there is no grep command, an extended regular expression
> can be used in global -g. 
> However, only a basic regular expression can be used in the case where
> grep command is available.
> Why doesn't global use option -E of grep?

You are right.
I'll remove the contradiction and describe clearly in the online manual
that a pattern specifiable for global(1) is extended regular expressions.

Thank you for your report.
--
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 Jun 01 02:57:08 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19MMlz-0006ky-9X
	for mharc-bug-global@gnu.org; Sun, 01 Jun 2003 02:56:55 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19MMjD-00006j-78
	for bug-global@gnu.org; Sun, 01 Jun 2003 02:54:03 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19MMjB-00005e-TL
	for bug-global@gnu.org; Sun, 01 Jun 2003 02:54:02 -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 19MMh2-0007i9-Un
	for bug-global@gnu.org; Sun, 01 Jun 2003 02:51:49 -0400
Received: from choota.signet.or.jp ([211.121.58.115]) by t-mta1.odn.ne.jp
          with ESMTP
          id <20030601065147675.IHQ.233227.t-mta1.odn.ne.jp@mta1.odn.ne.jp>;
          Sun, 1 Jun 2003 15:51:47 +0900
Received: from choota.signet.or.jp (localhost [127.0.0.1]) by
	choota.signet.or.jp (8.11.3/) with ESMTP id h516okv53365; Sun, 1 Jun 2003
	15:50:46 +0900 (JST)
Message-Id: <200306010650.h516okv53365@tamacom.com>
To: Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
References: <200306010421.AA00559@k7.kit.hi-ho.ne.jp>
In-reply-to: Message from Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
	<200306010421.AA00559@k7.kit.hi-ho.ne.jp>
Date: Sun, 01 Jun 2003 15:50:46 +0900
From: Shigio Yamaguchi <shigio@tamacom.com>
X-Mailman-Approved-At: Sun, 01 Jun 2003 02:56:53 -0400
cc: bug-global@gnu.org
Subject: Re: question about the rule of this mailing list
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, 01 Jun 2003 06:54:03 -0000

> Is there any rule about the encoding method of an attached file
> and partition of mail in this mailing list?

At present, there is especially no rule.
How about tar + gzip + MIME(base64) or tar + gzip + uuencode ?
--
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 Jun 01 04:22:37 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19MO6g-0002Xu-KZ
	for mharc-bug-global@gnu.org; Sun, 01 Jun 2003 04:22:22 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19MNLw-0003De-26
	for bug-global@gnu.org; Sun, 01 Jun 2003 03:34:04 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19MNLt-00038h-Qm
	for bug-global@gnu.org; Sun, 01 Jun 2003 03:34:02 -0400
Received: from sproxy03.hi-ho.ne.jp ([202.224.159.198])
	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19MNKo-0001tp-G8
	for bug-global@gnu.org; Sun, 01 Jun 2003 03:32:54 -0400
Received: from k7.kit.hi-ho.ne.jp (eaosk18-p204.hi-ho.ne.jp [202.224.161.205])
 by sproxy03.hi-ho.ne.jp (hi-ho Mail Server)
 with SMTP id <0HFS00H5BKYOWQ@sproxy03.hi-ho.ne.jp> for bug-global@gnu.org;
 Sun,  1 Jun 2003 16:32:49 +0900 (JST)
Date: Sun, 01 Jun 2003 16:32:49 +0900
From: Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
In-reply-to: <200306010650.h516okv53365@tamacom.com>
To: Shigio Yamaguchi <shigio@tamacom.com>
Message-id: <200306010732.AA00560@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: <200306010650.h516okv53365@tamacom.com>
X-Mailman-Approved-At: Sun, 01 Jun 2003 04:22:21 -0400
cc: bug-global@gnu.org
Subject: Re: question about the rule of this mailing list
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, 01 Jun 2003 07:34:05 -0000

On Sun, 01 Jun 2003 15:50:46 +0900, Shigio Yamaguchi wrote...
> > Is there any rule about the encoding method of an attached file
> > and partition of mail in this mailing list?
> 
> At present, there is especially no rule.
> How about tar + gzip + MIME(base64) or tar + gzip + uuencode ?

OK. I understood that both BASE64 and uuencode are acceptable.

What do you think about dividing big mail?
Could you see the PNG image which I sent yesterday?

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




From MAILER-DAEMON Sun Jun 01 04:30:08 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19MOE7-00059k-Ps
	for mharc-bug-global@gnu.org; Sun, 01 Jun 2003 04:30:03 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19MO6c-0002Jl-Mu
	for bug-global@gnu.org; Sun, 01 Jun 2003 04:22:18 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19MO6O-0001Uf-MV
	for bug-global@gnu.org; Sun, 01 Jun 2003 04:22:05 -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 19MO6A-0000ob-T6
	for bug-global@gnu.org; Sun, 01 Jun 2003 04:21:51 -0400
Received: from choota.signet.or.jp ([211.121.58.115]) by t-mta1.odn.ne.jp
          with ESMTP
          id <20030601082149787.QOM.233227.t-mta1.odn.ne.jp@mta1.odn.ne.jp>;
          Sun, 1 Jun 2003 17:21:49 +0900
Received: from choota.signet.or.jp (localhost [127.0.0.1]) by
	choota.signet.or.jp (8.11.3/) with ESMTP id h518Khv58030; Sun, 1 Jun 2003
	17:20:43 +0900 (JST)
Message-Id: <200306010820.h518Khv58030@tamacom.com>
To: Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
References: <200306010732.AA00560@k7.kit.hi-ho.ne.jp>
In-reply-to: Message from Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
	<200306010732.AA00560@k7.kit.hi-ho.ne.jp>
Date: Sun, 01 Jun 2003 17:20:43 +0900
From: Shigio Yamaguchi <shigio@tamacom.com>
X-Mailman-Approved-At: Sun, 01 Jun 2003 04:30:00 -0400
cc: bug-global@gnu.org
Subject: Re: question about the rule of this mailing list
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, 01 Jun 2003 08:22:22 -0000

> What do you think about dividing big mail?
> Could you see the PNG image which I sent yesterday?

Yes, I could. Dividing is unnecessary.

But as much as possible, I want you not to send images to this list.
We might be able to communicate each other only by a plain mail about GLOBAL.

Thank you for your cooperation.
--
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 Jun 01 04:31:00 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19MOE9-0005ET-01
	for mharc-bug-global@gnu.org; Sun, 01 Jun 2003 04:30:05 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19MOBM-0003yQ-D5
	for bug-global@gnu.org; Sun, 01 Jun 2003 04:27:12 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19MOBK-0003vC-Is
	for bug-global@gnu.org; Sun, 01 Jun 2003 04:27:11 -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 19MOBK-0003uv-1I
	for bug-global@gnu.org; Sun, 01 Jun 2003 04:27:10 -0400
Received: from choota.signet.or.jp ([211.121.58.115]) by t-mta1.odn.ne.jp
          with ESMTP
          id <20030601082708843.REB.233227.t-mta1.odn.ne.jp@mta1.odn.ne.jp>;
          Sun, 1 Jun 2003 17:27:08 +0900
Received: from choota.signet.or.jp (localhost [127.0.0.1]) by
	choota.signet.or.jp (8.11.3/) with ESMTP id h518Q7v58115; Sun, 1 Jun 2003
	17:26:07 +0900 (JST)
Message-Id: <200306010826.h518Q7v58115@tamacom.com>
To: Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
References: <200305311737.AA00555@k7.kit.hi-ho.ne.jp>
In-reply-to: Message from Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
	<200305311737.AA00555@k7.kit.hi-ho.ne.jp>
Date: Sun, 01 Jun 2003 17:26:07 +0900
From: Shigio Yamaguchi <shigio@tamacom.com>
X-Mailman-Approved-At: Sun, 01 Jun 2003 04:30:00 -0400
cc: bug-global@gnu.org
Subject: Re: enable_grep and enable_idutils are insecure [1/2]
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, 01 Jun 2003 08:27:13 -0000

I think I have shut the security hole.
Thank you for your report!

Index: global/global.c
===================================================================
RCS file: /cvsroot/global/global/global/global.c,v
retrieving revision 1.65
diff -r1.65 global.c
687,689c687
< 	strbuf_putc(ib, '\'');
< 	strbuf_puts(ib, pattern);
< 	strbuf_putc(ib, '\'');
---
> 	strbuf_puts(ib, quote_string(pattern));
Index: libutil/char.c
===================================================================
RCS file: /cvsroot/global/global/libutil/char.c,v
retrieving revision 1.1
diff -r1.1 char.c
25a26
> #include "strbuf.h"
73a75,95
> }
> /*
>  * quote string.
>  *
>  *	'aaa' => \'\a\a\a\'
>  */
> char *
> quote_string(s)
> char *s;
> {
> 	static STRBUF *sb = NULL;
> 
> 	if (sb == NULL)
> 		sb = strbuf_open(0);
> 	else
> 		strbuf_reset(sb);
> 	for (; *s; s++) {
> 		strbuf_putc(sb, '\\');
> 		strbuf_putc(sb, *s);
> 	}
> 	return strbuf_value(sb);
Index: libutil/char.h
===================================================================
RCS file: /cvsroot/global/global/libutil/char.h,v
retrieving revision 1.1
diff -r1.1 char.h
25a26
> char *quote_string(char *);
--
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 Jun 01 19:54:12 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19McdB-0001ef-Tk
	for mharc-bug-global@gnu.org; Sun, 01 Jun 2003 19:52:53 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19McNf-00035N-99
	for bug-global@gnu.org; Sun, 01 Jun 2003 19:36:51 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19McCW-0008HD-Dy
	for bug-global@gnu.org; Sun, 01 Jun 2003 19:25:21 -0400
Received: from sproxy03.hi-ho.ne.jp ([202.224.159.198])
	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19McBg-0007xY-HP
	for bug-global@gnu.org; Sun, 01 Jun 2003 19:24:28 -0400
Received: from k7.kit.hi-ho.ne.jp (eaosk18-p204.hi-ho.ne.jp [202.224.161.205])
 by sproxy03.hi-ho.ne.jp (hi-ho Mail Server)
 with SMTP id <0HFT00F97T0NHR@sproxy03.hi-ho.ne.jp> for bug-global@gnu.org;
 Mon,  2 Jun 2003 08:24:24 +0900 (JST)
Date: Mon, 02 Jun 2003 08:24:23 +0900
From: Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
To: bug-global@gnu.org
Message-id: <200306012324.AA00577@k7.kit.hi-ho.ne.jp>
MIME-version: 1.0
X-Mailer: AL-Mail32 Version 1.13
Content-type: text/plain; charset=us-ascii
X-Mailman-Approved-At: Sun, 01 Jun 2003 19:52:51 -0400
Subject: [PATCH] update comments in find.[ch]
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, 01 Jun 2003 23:36:54 -0000


* libutil/find.c: Change findxxx to find_xxx. 
* libutil/find.h: Remove prototype of issource(). It does not exist any longer.


Index: libutil/find.c
===================================================================
RCS file: /cvsroot/global/global/libutil/find.c,v
retrieving revision 1.24
diff -u -r1.24 find.c
--- libutil/find.c	17 May 2003 14:07:01 -0000	1.24
+++ libutil/find.c	1 Jun 2003 23:16:08 -0000
@@ -20,7 +20,7 @@
  */
 
 /*
- * If find(1) is available the use it to traverse directory tree.
+ * If find(1) is available, then use it to traverse directory tree.
  * Otherwise use dirent(3).
  */
 #ifdef HAVE_CONFIG_H
@@ -62,13 +62,13 @@
 #include "strlimcpy.h"
 
 /*
- * usage of ?findxxx()
+ * usage of find_xxx()
  *
- *	?findopen();
- *	while (path = ?findread()) {
+ *	find_open();
+ *	while (path = find_read()) {
  *		...
  *	}
- *	?findclose();
+ *	find_close();
  *
  */
 static regex_t	skip_area;
@@ -323,7 +323,7 @@
 }
 #ifndef HAVE_FIND
 /*----------------------------------------------------------------------*/
-/* dirent version findxxx()						*/
+/* dirent version find_xxx()						*/
 /*----------------------------------------------------------------------*/
 #define STACKSIZE 50
 static  char    dir[MAXPATHLEN+1];		/* directory path */
@@ -568,7 +568,7 @@
 		 */
 		p = path + strlen(path) - 1;
 		if (*p != '\n')
-			die("output of find(1) is wrong (findread).");
+			die("output of find(1) is wrong (find_read).");
 		*p = 0;
 		if (skipthisfile(path))
 			continue;
Index: libutil/find.h
===================================================================
RCS file: /cvsroot/global/global/libutil/find.h,v
retrieving revision 1.6
diff -u -r1.6 find.h
--- libutil/find.h	5 Jul 2002 07:16:47 -0000	1.6
+++ libutil/find.h	1 Jun 2003 23:16:08 -0000
@@ -22,7 +22,6 @@
 #ifndef _FIND_H_
 #define _FIND_H_
 
-int	issource(char *);
 void	find_open(void);
 char	*find_read(void);
 void	find_close(void);


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




From MAILER-DAEMON Sun Jun 01 20:06:47 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19Mcpv-0003Xk-4l
	for mharc-bug-global@gnu.org; Sun, 01 Jun 2003 20:06:03 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19Mclo-0006DM-3C
	for bug-global@gnu.org; Sun, 01 Jun 2003 20:01:48 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19MclM-00061V-H8
	for bug-global@gnu.org; Sun, 01 Jun 2003 20:01:21 -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 19Mcjk-0005Sc-MH
	for bug-global@gnu.org; Sun, 01 Jun 2003 19:59:40 -0400
Received: from choota.signet.or.jp ([211.121.58.115]) by t-mta1.odn.ne.jp
          with ESMTP
          id <20030601235911341.EJSG.233227.t-mta1.odn.ne.jp@mta1.odn.ne.jp>;
          Mon, 2 Jun 2003 08: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 h51Nw8700551; Mon, 2 Jun 2003
	08:58:08 +0900 (JST)
Message-Id: <200306012358.h51Nw8700551@tamacom.com>
To: Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
References: <200306012324.AA00577@k7.kit.hi-ho.ne.jp>
In-reply-to: Message from Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
	<200306012324.AA00577@k7.kit.hi-ho.ne.jp>
Date: Mon, 02 Jun 2003 08:58:08 +0900
From: Shigio Yamaguchi <shigio@tamacom.com>
X-Mailman-Approved-At: Sun, 01 Jun 2003 20:06:01 -0400
cc: bug-global@gnu.org
Subject: Re: [PATCH] update comments in find.[ch]
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, 02 Jun 2003 00:02:43 -0000

Committed. Thank you.
 
> * libutil/find.c: Change findxxx to find_xxx. 
> * libutil/find.h: Remove prototype of issource(). It does not exist any longe
r.
> 
> 
> Index: libutil/find.c
> ===================================================================
> RCS file: /cvsroot/global/global/libutil/find.c,v
> retrieving revision 1.24
> diff -u -r1.24 find.c
> --- libutil/find.c	17 May 2003 14:07:01 -0000	1.24
> +++ libutil/find.c	1 Jun 2003 23:16:08 -0000
> @@ -20,7 +20,7 @@
>   */
>  
>  /*
> - * If find(1) is available the use it to traverse directory tree.
> + * If find(1) is available, then use it to traverse directory tree.
>   * Otherwise use dirent(3).
>   */
>  #ifdef HAVE_CONFIG_H
> @@ -62,13 +62,13 @@
>  #include "strlimcpy.h"
>  
>  /*
> - * usage of ?findxxx()
> + * usage of find_xxx()
>   *
> - *	?findopen();
> - *	while (path = ?findread()) {
> + *	find_open();
> + *	while (path = find_read()) {
>   *		...
>   *	}
> - *	?findclose();
> + *	find_close();
>   *
>   */
>  static regex_t	skip_area;
> @@ -323,7 +323,7 @@
>  }
>  #ifndef HAVE_FIND
>  /*----------------------------------------------------------------------*/
> -/* dirent version findxxx()						*/
> +/* dirent version find_xxx()						*/
>  /*----------------------------------------------------------------------*/
>  #define STACKSIZE 50
>  static  char    dir[MAXPATHLEN+1];		/* directory path */
> @@ -568,7 +568,7 @@
>  		 */
>  		p = path + strlen(path) - 1;
>  		if (*p != '\n')
> -			die("output of find(1) is wrong (findread).");
> +			die("output of find(1) is wrong (find_read).");
>  		*p = 0;
>  		if (skipthisfile(path))
>  			continue;
> Index: libutil/find.h
> ===================================================================
> RCS file: /cvsroot/global/global/libutil/find.h,v
> retrieving revision 1.6
> diff -u -r1.6 find.h
> --- libutil/find.h	5 Jul 2002 07:16:47 -0000	1.6
> +++ libutil/find.h	1 Jun 2003 23:16:08 -0000
> @@ -22,7 +22,6 @@
>  #ifndef _FIND_H_
>  #define _FIND_H_
>  
> -int	issource(char *);
>  void	find_open(void);
>  char	*find_read(void);
>  void	find_close(void);
> 
> 
> ----
> 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 Jun 03 16:49:56 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19NIi9-0002c0-OV
	for mharc-bug-global@gnu.org; Tue, 03 Jun 2003 16:48:49 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19NEHg-0006T0-Mg
	for bug-global@gnu.org; Tue, 03 Jun 2003 12:05:12 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19NEB4-0005Wm-NL
	for bug-global@gnu.org; Tue, 03 Jun 2003 11:58:23 -0400
Received: from sproxy03.hi-ho.ne.jp ([202.224.159.198])
	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19NE2A-00037S-QI
	for bug-global@gnu.org; Tue, 03 Jun 2003 11:49:11 -0400
Received: from k7.kit.hi-ho.ne.jp (eaosk18-p1.hi-ho.ne.jp [202.224.161.2])
 by sproxy03.hi-ho.ne.jp (hi-ho Mail Server)
 with SMTP id <0HFW00863X9QT5@sproxy03.hi-ho.ne.jp> for bug-global@gnu.org;
 Wed,  4 Jun 2003 00:49:04 +0900 (JST)
Date: Wed, 04 Jun 2003 00:49:04 +0900
From: Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
In-reply-to: <200306010642.h516gPv53320@tamacom.com>
To: Shigio Yamaguchi <shigio@tamacom.com>
Message-id: <200306031549.AA00578@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: <200306010642.h516gPv53320@tamacom.com>
X-Mailman-Approved-At: Tue, 03 Jun 2003 16:48:42 -0400
cc: bug-global@gnu.org
Subject: Re: question about option -g of global
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, 03 Jun 2003 16:14:56 -0000

On Sun, 01 Jun 2003 15:42:25 +0900, Shigio Yamaguchi wrote...
> I'll remove the contradiction and describe clearly in the online manual
> that a pattern specifiable for global(1) is extended regular expressions.

Option -o (--other) was supported only in implementation using xargs+grep.
Although this option does not work now, it still remains in the manual.
Are you going to implement this option again?

In the former version, when option -o was specified, option -l was disregarded.
If you revive -o, please make use possible simultaneously with -l.

How is a binary file treated when option -o is specified?
In the former version, a match of the binary file had terminated global.

>global -gxo main > /dev/null
global: invalid grep output format. 'Binary file ./gctags/gctags.o matches'
>xargs: grep: terminated by signal 13


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




From MAILER-DAEMON Tue Jun 03 20:48:35 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19NMOG-0003VZ-Av
	for mharc-bug-global@gnu.org; Tue, 03 Jun 2003 20:44:32 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19NMEp-0007PG-U4
	for bug-global@gnu.org; Tue, 03 Jun 2003 20:34:47 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19NMEJ-0006Rg-1g
	for bug-global@gnu.org; Tue, 03 Jun 2003 20:34:18 -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 19NME8-0005ZL-Bt
	for bug-global@gnu.org; Tue, 03 Jun 2003 20:34:04 -0400
Received: from choota.signet.or.jp ([211.3.75.173]) by t-mta1.odn.ne.jp
          with ESMTP
          id <20030604003334928.SWII.233227.t-mta1.odn.ne.jp@mta1.odn.ne.jp>;
          Wed, 4 Jun 2003 09:33:34 +0900
Received: from choota.signet.or.jp (localhost [127.0.0.1]) by
	choota.signet.or.jp (8.11.3/) with ESMTP id h540WUn52204; Wed, 4 Jun 2003
	09:32:30 +0900 (JST)
Message-Id: <200306040032.h540WUn52204@tamacom.com>
To: Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
References: <200306031549.AA00578@k7.kit.hi-ho.ne.jp>
In-reply-to: Message from Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
	<200306031549.AA00578@k7.kit.hi-ho.ne.jp>
Date: Wed, 04 Jun 2003 09:32:30 +0900
From: Shigio Yamaguchi <shigio@tamacom.com>
X-Mailman-Approved-At: Tue, 03 Jun 2003 20:44:30 -0400
cc: bug-global@gnu.org
Subject: Re: question about option -g of global
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, 04 Jun 2003 00:35:09 -0000

> Option -o (--other) was supported only in implementation using xargs+grep.
> Although this option does not work now, it still remains in the manual.
> Are you going to implement this option again?

OK. I have done in the cvs version.

> In the former version, when option -o was specified, option -l was disregarded.
> If you revive -o, please make use possible simultaneously with -l.

The cvs version works well with -lo option.

> How is a binary file treated when option -o is specified?
> In the former version, a match of the binary file had terminated global.
> 
> >global -gxo main > /dev/null
> global: invalid grep output format. 'Binary file ./gctags/gctags.o matches'
> >xargs: grep: terminated by signal 13

At least, current cvs version doesn't abort. But in fact, it doesn't
distinguish text and binary.
--
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 Thu Jun 05 09:57:09 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19Nv2E-0003qs-6u
	for mharc-bug-global@gnu.org; Thu, 05 Jun 2003 09:44:06 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19NumG-0004ve-WB
	for bug-global@gnu.org; Thu, 05 Jun 2003 09:27:36 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19NuiU-0003gY-Sl
	for bug-global@gnu.org; Thu, 05 Jun 2003 09:23:44 -0400
Received: from sproxy03.hi-ho.ne.jp ([202.224.159.198])
	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19Nuh9-0003Sk-4p
	for bug-global@gnu.org; Thu, 05 Jun 2003 09:22:19 -0400
Received: from k7.kit.hi-ho.ne.jp (eaosk18-p1.hi-ho.ne.jp [202.224.161.2])
 by sproxy03.hi-ho.ne.jp (hi-ho Mail Server)
 with SMTP id <0HG000H1PFT1TZ@sproxy03.hi-ho.ne.jp> for bug-global@gnu.org;
 Thu,  5 Jun 2003 22:22:15 +0900 (JST)
Date: Thu, 05 Jun 2003 22:22:15 +0900
From: Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
To: bug-global@gnu.org
Message-id: <200306051322.AA00579@k7.kit.hi-ho.ne.jp>
MIME-version: 1.0
X-Mailer: AL-Mail32 Version 1.13
Content-type: text/plain; charset=us-ascii
X-Mailman-Approved-At: Thu, 05 Jun 2003 09:44:05 -0400
Subject: [PATCH] Use -Wall if compiler is gcc
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, 05 Jun 2003 13:28:23 -0000

Copied from configure.in which Glade generated.


Index: configure.ac
===================================================================
RCS file: /cvsroot/global/global/configure.ac,v
retrieving revision 1.9
diff -u -r1.9 configure.ac
--- configure.ac	5 Jun 2003 01:45:42 -0000	1.9
+++ configure.ac	5 Jun 2003 13:16:33 -0000
@@ -123,6 +123,16 @@
         AC_MSG_RESULT(no)
 ])
 
+dnl Use -Wall if we have gcc.
+changequote(,)dnl
+if test "x$GCC" = "xyes"; then
+  case " $CFLAGS " in
+  *[\ \	]-Wall[\ \	]*) ;;
+  *) CFLAGS="$CFLAGS -Wall" ;;
+  esac
+fi
+changequote([,])dnl
+
 AC_SUBST(INCLUDES)
 AC_SUBST(LDADD)
 

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




From MAILER-DAEMON Thu Jun 05 12:13:10 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19NxBD-00032y-7j
	for mharc-bug-global@gnu.org; Thu, 05 Jun 2003 12:01:31 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19NwtN-0006BZ-2x
	for bug-global@gnu.org; Thu, 05 Jun 2003 11:43:05 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19NwqD-0005B2-6H
	for bug-global@gnu.org; Thu, 05 Jun 2003 11:39:49 -0400
Received: from mfep2.odn.ne.jp ([143.90.131.180] helo=t-mta2.odn.ne.jp)
	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19NwnD-00049C-Dm
	for bug-global@gnu.org; Thu, 05 Jun 2003 11:36:43 -0400
Received: from choota.signet.or.jp ([211.3.75.173]) by t-mta2.odn.ne.jp
          with ESMTP
          id <20030605153641879.IJLI.282310.t-mta2.odn.ne.jp@mta2.odn.ne.jp>;
          Fri, 6 Jun 2003 00:36:41 +0900
Received: from choota.signet.or.jp (localhost [127.0.0.1]) by
	choota.signet.or.jp (8.11.3/) with ESMTP id h55FZYi48284; Fri, 6 Jun 2003
	00:35:34 +0900 (JST)
Message-Id: <200306051535.h55FZYi48284@tamacom.com>
To: Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
References: <200306051322.AA00579@k7.kit.hi-ho.ne.jp>
In-reply-to: Message from Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
	<200306051322.AA00579@k7.kit.hi-ho.ne.jp>
Date: Fri, 06 Jun 2003 00:35:34 +0900
From: Shigio Yamaguchi <shigio@tamacom.com>
X-Mailman-Approved-At: Thu, 05 Jun 2003 12:01:29 -0400
cc: bug-global@gnu.org
Subject: Re: [PATCH] Use -Wall if compiler is gcc
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, 05 Jun 2003 15:47:07 -0000

> +dnl Use -Wall if we have gcc.
> +changequote(,)dnl
> +if test "x$GCC" = "xyes"; then
> +  case " $CFLAGS " in
> +  *[\ \	]-Wall[\ \	]*) ;;
> +  *) CFLAGS="$CFLAGS -Wall" ;;
> +  esac
> +fi
> +changequote([,])dnl

It seems that this method compels the -Wall option to the end user.
Instead, isn't it better to specify options at the execution of
configure command?

        ./configure CFLAGS="-g -O2 -Wall"

This method never compels a specific option to the user.
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 Thu Jun 05 13:29:27 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19NyXc-0006ed-An
	for mharc-bug-global@gnu.org; Thu, 05 Jun 2003 13:28:44 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19NxtW-0000DU-CN
	for bug-global@gnu.org; Thu, 05 Jun 2003 12:47:18 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19NxoO-0006kb-Sx
	for bug-global@gnu.org; Thu, 05 Jun 2003 12:42:02 -0400
Received: from sproxy03.hi-ho.ne.jp ([202.224.159.198])
	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19Nxnu-0006Uq-WC
	for bug-global@gnu.org; Thu, 05 Jun 2003 12:41:31 -0400
Received: from k7.kit.hi-ho.ne.jp (eaosk18-p1.hi-ho.ne.jp [202.224.161.2])
 by sproxy03.hi-ho.ne.jp (hi-ho Mail Server)
 with SMTP id <0HG000KHSP12JB@sproxy03.hi-ho.ne.jp> for bug-global@gnu.org;
 Fri,  6 Jun 2003 01:41:27 +0900 (JST)
Date: Fri, 06 Jun 2003 01:41:29 +0900
From: Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
To: bug-global@gnu.org
Message-id: <200306051641.AA00581@k7.kit.hi-ho.ne.jp>
MIME-version: 1.0
X-Mailer: AL-Mail32 Version 1.13
Content-type: text/plain; charset=us-ascii
X-Mailman-Approved-At: Thu, 05 Jun 2003 13:28:35 -0400
Subject: [PATCH] update comment of grep()
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, 05 Jun 2003 16:54:02 -0000



Index: global/global.c
===================================================================
RCS file: /cvsroot/global/global/global/global.c,v
retrieving revision 1.71
diff -u -r1.71 global.c
--- global/global.c	4 Jun 2003 02:39:13 -0000	1.71
+++ global/global.c	5 Jun 2003 16:39:55 -0000
@@ -755,7 +755,6 @@
  * grep: grep pattern
  *
  *	i)	pattern	POSIX regular expression
- *	i)	dbpath	GTAGS directory
  */
 void
 grep(pattern)

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




From MAILER-DAEMON Thu Jun 05 13:29:34 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19NyXc-0006eq-UZ
	for mharc-bug-global@gnu.org; Thu, 05 Jun 2003 13:28:44 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19Nxlx-0005sL-7z
	for bug-global@gnu.org; Thu, 05 Jun 2003 12:39:29 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19Nxha-0004C9-QV
	for bug-global@gnu.org; Thu, 05 Jun 2003 12:35:01 -0400
Received: from sproxy03.hi-ho.ne.jp ([202.224.159.198])
	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19Nxdz-0002oD-Kw
	for bug-global@gnu.org; Thu, 05 Jun 2003 12:31:15 -0400
Received: from k7.kit.hi-ho.ne.jp (eaosk18-p1.hi-ho.ne.jp [202.224.161.2])
 by sproxy03.hi-ho.ne.jp (hi-ho Mail Server)
 with SMTP id <0HG000JGFOK0T4@sproxy03.hi-ho.ne.jp> for bug-global@gnu.org;
 Fri,  6 Jun 2003 01:31:13 +0900 (JST)
Date: Fri, 06 Jun 2003 01:31:15 +0900
From: Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
In-reply-to: <200306051535.h55FZYi48284@tamacom.com>
To: Shigio Yamaguchi <shigio@tamacom.com>
Message-id: <200306051631.AA00580@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: <200306051535.h55FZYi48284@tamacom.com>
X-Mailman-Approved-At: Thu, 05 Jun 2003 13:28:35 -0400
cc: bug-global@gnu.org
Subject: Re: [PATCH] Use -Wall if compiler is gcc
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, 05 Jun 2003 16:57:50 -0000

> It seems that this method compels the -Wall option to the end user.
> Instead, isn't it better to specify options at the execution of
> configure command?
> 
>         ./configure CFLAGS="-g -O2 -Wall"
> 
> This method never compels a specific option to the user.
> What do you think?

Are any users troubled if this option is forced?
This option does not influence code generation and
it does not influence whether source can be compiled or not.
The users of GLOBAL could understand warning messages,
since they are developers.

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




From MAILER-DAEMON Thu Jun 05 14:11:55 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19NyjM-0002Am-5j
	for mharc-bug-global@gnu.org; Thu, 05 Jun 2003 13:40:52 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19Nyh9-0001EY-2l
	for bug-global@gnu.org; Thu, 05 Jun 2003 13:38:35 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19NyZb-0007IL-4d
	for bug-global@gnu.org; Thu, 05 Jun 2003 13:30:47 -0400
Received: from mfep2.odn.ne.jp ([143.90.131.180] helo=t-mta2.odn.ne.jp)
	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19NyWi-0006LN-Ik
	for bug-global@gnu.org; Thu, 05 Jun 2003 13:27:48 -0400
Received: from choota.signet.or.jp ([211.3.75.173]) by t-mta2.odn.ne.jp
          with ESMTP
          id <20030605172747311.ISNZ.282310.t-mta2.odn.ne.jp@mta2.odn.ne.jp>;
          Fri, 6 Jun 2003 02:27:47 +0900
Received: from choota.signet.or.jp (localhost [127.0.0.1]) by
	choota.signet.or.jp (8.11.3/) with ESMTP id h55HQYi53690; Fri, 6 Jun 2003
	02:26:34 +0900 (JST)
Message-Id: <200306051726.h55HQYi53690@tamacom.com>
To: Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
References: <200306051631.AA00580@k7.kit.hi-ho.ne.jp>
In-reply-to: Message from Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
	<200306051631.AA00580@k7.kit.hi-ho.ne.jp>
Date: Fri, 06 Jun 2003 02:26:34 +0900
From: Shigio Yamaguchi <shigio@tamacom.com>
X-Mailman-Approved-At: Thu, 05 Jun 2003 13:40:51 -0400
cc: bug-global@gnu.org
Subject: Re: [PATCH] Use -Wall if compiler is gcc
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, 05 Jun 2003 17:38:46 -0000

> Are any users troubled if this option is forced?
> This option does not influence code generation and
> it does not influence whether source can be compiled or not.

I don't want to see many complex messages when it is understood that
there is no problem.

As you know, GLOBAL includes separate packages like db(3), regex(3),
getopt(3) and the like. At present, they cannot be compiled without the
warning messages when using -Wall.
Besides, I'm writing a parser using flex(1) but it seems that the source
code generated by the tool also cannot be compiled without warnings.

> The users of GLOBAL could understand warning messages,
> since they are developers.

It is not necessarily a developer, I think. There might be a lot of
students who are studying the programming. Since we distribute
GLOBAL only as source package, they must build it before studying.

This option might be used only when it is necessary.
In fact, both gcc and automake doesn't enable it by default. 
--
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 Thu Jun 05 14:29:08 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19NyyB-0007ZB-Mi
	for mharc-bug-global@gnu.org; Thu, 05 Jun 2003 13:56:11 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19Nyj5-00025W-1p
	for bug-global@gnu.org; Thu, 05 Jun 2003 13:40:35 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19Nyg3-0000zB-SC
	for bug-global@gnu.org; Thu, 05 Jun 2003 13:37:28 -0400
Received: from mfep2.odn.ne.jp ([143.90.131.180] helo=t-mta2.odn.ne.jp)
	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19Nye0-0000li-4q
	for bug-global@gnu.org; Thu, 05 Jun 2003 13:35:20 -0400
Received: from choota.signet.or.jp ([211.3.75.173]) by t-mta2.odn.ne.jp
          with ESMTP
          id <20030605173518921.ISXN.282310.t-mta2.odn.ne.jp@mta2.odn.ne.jp>;
          Fri, 6 Jun 2003 02:35:18 +0900
Received: from choota.signet.or.jp (localhost [127.0.0.1]) by
	choota.signet.or.jp (8.11.3/) with ESMTP id h55HYBi54134; Fri, 6 Jun 2003
	02:34:11 +0900 (JST)
Message-Id: <200306051734.h55HYBi54134@tamacom.com>
To: Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
References: <200306051641.AA00581@k7.kit.hi-ho.ne.jp>
In-reply-to: Message from Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
	<200306051641.AA00581@k7.kit.hi-ho.ne.jp>
Date: Fri, 06 Jun 2003 02:34:11 +0900
From: Shigio Yamaguchi <shigio@tamacom.com>
X-Mailman-Approved-At: Thu, 05 Jun 2003 13:56:09 -0400
cc: bug-global@gnu.org
Subject: Re: [PATCH] update comment of grep()
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, 05 Jun 2003 17:54:51 -0000

Fixed. Thank you!

> Index: global/global.c
> ===================================================================
> RCS file: /cvsroot/global/global/global/global.c,v
> retrieving revision 1.71
> diff -u -r1.71 global.c
> --- global/global.c	4 Jun 2003 02:39:13 -0000	1.71
> +++ global/global.c	5 Jun 2003 16:39:55 -0000
> @@ -755,7 +755,6 @@
>   * grep: grep pattern
>   *
>   *	i)	pattern	POSIX regular expression
> - *	i)	dbpath	GTAGS directory
>   */
>  void
>  grep(pattern)
> 
> ----
> 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 Fri Jun 06 08:38:54 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19OGQK-00083f-Qr
	for mharc-bug-global@gnu.org; Fri, 06 Jun 2003 08:34:24 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19OGMB-00067M-Oj
	for bug-global@gnu.org; Fri, 06 Jun 2003 08:30:07 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19OGM8-00065F-Gy
	for bug-global@gnu.org; Fri, 06 Jun 2003 08:30:05 -0400
Received: from sproxy03.hi-ho.ne.jp ([202.224.159.198])
	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19OGLg-0005nc-4W
	for bug-global@gnu.org; Fri, 06 Jun 2003 08:29:36 -0400
Received: from k7.kit.hi-ho.ne.jp (eaosk18-p1.hi-ho.ne.jp [202.224.161.2])
 by sproxy03.hi-ho.ne.jp (hi-ho Mail Server)
 with SMTP id <0HG2004OP816R9@sproxy03.hi-ho.ne.jp> for bug-global@gnu.org;
 Fri,  6 Jun 2003 21:29:32 +0900 (JST)
Date: Fri, 06 Jun 2003 21:29:32 +0900
From: Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
In-reply-to: <200306051726.h55HQYi53690@tamacom.com>
To: Shigio Yamaguchi <shigio@tamacom.com>
Message-id: <200306061229.AA00582@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: <200306051726.h55HQYi53690@tamacom.com>
X-Mailman-Approved-At: Fri, 06 Jun 2003 08:34:23 -0400
cc: bug-global@gnu.org
Subject: Re: [PATCH] Use -Wall if compiler is gcc
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: Fri, 06 Jun 2003 12:30:16 -0000

On Fri, 06 Jun 2003 02:26:34 +0900, Shigio Yamaguchi wrote...
> > Are any users troubled if this option is forced?
> > This option does not influence code generation and
> > it does not influence whether source can be compiled or not.
> 
> I don't want to see many complex messages when it is understood that
> there is no problem.
>
 
OK. I will always specify CFLAGS at the command line of configure.

By the way, the source files in CVS repository are still 4.5.2. Would you check in 4.5.3?

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




From MAILER-DAEMON Fri Jun 06 09:36:08 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19OHMQ-0005R1-NZ
	for mharc-bug-global@gnu.org; Fri, 06 Jun 2003 09:34:26 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19OHEU-00027S-4V
	for bug-global@gnu.org; Fri, 06 Jun 2003 09:26:14 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19OHDx-0001o3-JZ
	for bug-global@gnu.org; Fri, 06 Jun 2003 09:25:42 -0400
Received: from mfep8.odn.ne.jp ([143.90.131.186] helo=t-mta8.odn.ne.jp)
	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19OH8C-0007KK-2d
	for bug-global@gnu.org; Fri, 06 Jun 2003 09:19:44 -0400
Received: from choota.signet.or.jp ([211.3.75.173]) by t-mta8.odn.ne.jp
          with ESMTP
          id <20030606131914364.JDIS.299074.t-mta8.odn.ne.jp@mta8.odn.ne.jp>;
          Fri, 6 Jun 2003 22:19:14 +0900
Received: from choota.signet.or.jp (localhost [127.0.0.1]) by
	choota.signet.or.jp (8.11.3/) with ESMTP id h56DI4111203; Fri, 6 Jun 2003
	22:18:04 +0900 (JST)
Message-Id: <200306061318.h56DI4111203@tamacom.com>
To: Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
References: <200306061229.AA00582@k7.kit.hi-ho.ne.jp>
In-reply-to: Message from Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
	<200306061229.AA00582@k7.kit.hi-ho.ne.jp>
Date: Fri, 06 Jun 2003 22:18:04 +0900
From: Shigio Yamaguchi <shigio@tamacom.com>
X-Mailman-Approved-At: Fri, 06 Jun 2003 09:34:25 -0400
cc: bug-global@gnu.org
Subject: Re: [PATCH] Use -Wall if compiler is gcc
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: Fri, 06 Jun 2003 13:28:45 -0000

> OK. I will always specify CFLAGS at the command line of configure.
Thank you.

> By the way, the source files in CVS repository are still 4.5.2. Would you che
ck in 4.5.3?

Sorry for my late checking in.
Here you are! Tag name is 'VERSION-4_5_3'.
--
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 Fri Jun 06 20:12:42 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19ORFi-0007jK-6w
	for mharc-bug-global@gnu.org; Fri, 06 Jun 2003 20:08:10 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19OK9K-0008JO-Vf
	for bug-global@gnu.org; Fri, 06 Jun 2003 12:33:06 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19OJnF-0001mM-GP
	for bug-global@gnu.org; Fri, 06 Jun 2003 12:10:19 -0400
Received: from sproxy03.hi-ho.ne.jp ([202.224.159.198])
	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19OJkD-0000n4-UD
	for bug-global@gnu.org; Fri, 06 Jun 2003 12:07:10 -0400
Received: from k7.kit.hi-ho.ne.jp (eaosk18-p1.hi-ho.ne.jp [202.224.161.2])
 by sproxy03.hi-ho.ne.jp (hi-ho Mail Server)
 with SMTP id <0HG200AHLI3UYB@sproxy03.hi-ho.ne.jp> for bug-global@gnu.org;
 Sat,  7 Jun 2003 01:07:06 +0900 (JST)
Date: Sat, 07 Jun 2003 01:07:08 +0900
From: Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
To: bug-global@gnu.org
Message-id: <200306061607.AA00583@k7.kit.hi-ho.ne.jp>
MIME-version: 1.0
X-Mailer: AL-Mail32 Version 1.13
Content-type: text/plain; charset=us-ascii
X-Mailman-Approved-At: Fri, 06 Jun 2003 20:08:08 -0400
Subject: [PATCH] generate hypertext of files which is not source dynamically
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: Fri, 06 Jun 2003 16:36:19 -0000

* htags/htags.in: Changed so that hypertext of arbitrary files
    can be obtained using CGI script.
    When the option of both -o and -D was specified, 
    generate hypertext of files which is not source dynamically.

* gtags/gtagc.c: Add undocumented option --secure.
    If this option is specified, outside of the souce tree
    cannot be specified with option --expand.


Index: htags/htags.in
===================================================================
RCS file: /cvsroot/global/global/htags/htags.in,v
retrieving revision 1.132
diff -u -r1.132 htags.in
--- htags/htags.in	1 Jun 2003 10:23:22 -0000	1.132
+++ htags/htags.in	6 Jun 2003 15:45:50 -0000
@@ -1121,8 +1121,10 @@
 		exit 0;
 	}
 }
-if ($flag eq 'g' || $flag eq 'I') {
-	if ($flag eq 'g' && ! -f "../../GTAGS" || $flag eq 'I' && ! -f "../../ID") {
+if ($flag eq 'g' || $flag eq 'I' || $form{'type'} eq 'source') {
+	if (($flag eq 'g' && ! -f "../../GTAGS")
+	 || ($flag eq 'I' && ! -f "../../ID")
+	 || ($form{'type'} eq 'source' && ! -f "../../GTAGS")) {
 		print "<H1><FONT COLOR=#cc0000>Error</FONT></H1>\n";
 		print "<H3>Couldn't execute command. <A HREF=$htmlbase/mains.@normal_suffix@>[return]</A></H3>\n";
 		print "@body_end@\n";
@@ -1143,6 +1145,28 @@
 		chdir("../..");
 	}
 }
+if ($form{'type'} eq 'source') {
+	local(%ctab) = ('&', '&amp;', '<', '&lt;', '>', '&gt;');
+	open(PIPE, "-|") || exec '@gtagspath@', '--secure', '--expand', '-@tabs@', './'.$pattern;
+	if ($?) {	
+		print "<H1><FONT COLOR=#cc0000>Error</FONT></H1>\n";
+		print "<H3>Cannot execute gtags. <A HREF=$htmlbase/mains.@normal_suffix@>[return]</A></H3>\n";
+		print "@body_end@\n";
+		print "@html_end@\n";
+		exit 0;
+	}
+	print "<PRE>\n";
+	while (<PIPE>) {
+		s/([&<>])/$ctab{$1}/ge;
+		print "<A NAME=$.>";
+		print;
+	}
+	close(PIPE);
+	print "</PRE>\n";
+	print "@body_end@\n";
+	print "@html_end@\n";
+	exit 0;
+}
 #
 # fork and exec global(1) to avoid command substitutions in $pattern.
 #
@@ -1207,6 +1231,7 @@
 	$script =~ s/\@normal_suffix\@/$'normal_suffix/g;
 	$script =~ s/\@SRCS\@/$'SRCS/g;
 	$script =~ s/\@HTML\@/$'HTML/g;
+	$script =~ s/\@tabs\@/$'tabs/g;
 	$script =~ s/\@globalpath\@/$globalpath/g;
 	$script =~ s/\@gtagspath\@/$gtagspath/g;
 	print PROGRAM $script;
@@ -1731,13 +1756,19 @@
 				$includes{$file} = "$includes{$file}\n$_";
 			}
 		}
-		local($url) = &'path2url($_);
+		local($url);
+		if ($notsource && $'dynamic) {
+			local($cgi) = ($'action =~ /^\// || @dirstack == 0) ? $'action : "../$'action";
+			$url = "${cgi}?pattern=$_&type=source";
+		} else {
+			$url = (@dirstack == 0 ? '' : '../') . "$'SRCS/" . &'path2url($_);
+		}
 		local($last) = $_;
 		if (!$'full_path) {
 			$last =~ s!.*/!!;
 		}
 		local($li) = "<LI>" .
-			"<A HREF=" . (@dirstack == 0 ? '' : '../') . "S/$url TARGET=$target>" .
+			"<A HREF=$url TARGET=$target>" .
 			($'icon_list ? "<IMG SRC=" . (@dirstack == 0 ? '' : '../') . "icons/$'file_icon ALT=[$_] HSPACE=3 $'icon_spec>" : '') .
 			"$last</A>\n";
 		if (@dirstack == 0) {
@@ -2050,7 +2081,7 @@
 sub makehtml {
 	local($dist, $total) = @_;
 	local($count) = 0;
-	local($findcom) = ($'other_files) ? "$'findcom --other | sort -t / +1" : $'findcom;
+	local($findcom) = ($'other_files && !$'dynamic) ? "$'findcom --other | sort -t / +1" : $'findcom;
 
 	open(FIND, "$findcom |") || &'error("cannot fork.");
 	while (<FIND>) {
Index: gtags/gtags.c
===================================================================
RCS file: /cvsroot/global/global/gtags/gtags.c,v
retrieving revision 1.75
diff -u -r1.75 gtags.c
--- gtags/gtags.c	6 Jun 2003 13:07:04 -0000	1.75
+++ gtags/gtags.c	6 Jun 2003 15:45:50 -0000
@@ -24,6 +24,7 @@
 #endif
 #include <sys/types.h>
 #include <sys/stat.h>
+#include <errno.h>
 
 #include <ctype.h>
 #include <utime.h>
@@ -89,6 +90,7 @@
 int	other_files;
 int	info;
 int	debug;
+int	secure_mode;
 char	*extra_options;
 char	*info_string;
 char	*btree_dbname;
@@ -139,6 +141,7 @@
 	{"readdb", required_argument, &do_readdb, 1},
 	{"relative", no_argument, &do_relative, 1},
 	{"scandb", required_argument, &do_scandb, 1},
+	{"secure", no_argument, &secure_mode, 1},
 	{"sort", no_argument, &do_sort, 1},
 	{"write", no_argument, &do_write, 1},
 	{"version", no_argument, &show_version, 1},
@@ -192,6 +195,7 @@
 int	argc;
 char	*argv[];
 {
+	char	root[MAXPATHLEN+1];
 	char	dbpath[MAXPATHLEN+1];
 	char	cwd[MAXPATHLEN+1];
 	STRBUF	*sb = strbuf_open(0);
@@ -409,9 +413,23 @@
 		FILE *ip;
 		STRBUF *ib = strbuf_open(MAXBUFLEN);
 
-		ip = (argc) ? fopen(argv[0], "r") : stdin;
-		if (ip == NULL)
-			exit(1);
+		if (argc) {
+			if (secure_mode) {
+				char	buf[MAXPATHLEN+1], *path;
+				getdbpath(cwd, root, dbpath, 0);
+				path = realpath(argv[0], buf);
+				if (path == NULL)
+					die("realpath(%s, buf) failed. (errno=%d).", argv[0], errno);
+				if (!isabspath(path))
+					die("realpath(3) is not compatible with BSD version.");
+				if (strncmp(path, root, strlen(root)))
+					die("'%s' is out of source tree.\n", path);
+			}
+			ip = fopen(argv[0], "r");
+			if (ip == NULL)
+				exit(1);
+		} else
+			ip = stdin;
 		while (strbuf_fgets(ib, ip, STRBUF_NOCRLF) != NULL)
 			detab(stdout, strbuf_value(ib));
 		strbuf_close(ib);

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




From MAILER-DAEMON Fri Jun 06 21:22:40 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19OSOu-00075e-VB
	for mharc-bug-global@gnu.org; Fri, 06 Jun 2003 21:21:44 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19OSKo-0007RQ-Tk
	for bug-global@gnu.org; Fri, 06 Jun 2003 21:17:30 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19OSKU-0006Mq-L6
	for bug-global@gnu.org; Fri, 06 Jun 2003 21:17:14 -0400
Received: from mfep8.odn.ne.jp ([143.90.131.186] helo=t-mta8.odn.ne.jp)
	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19OSKQ-00065L-C3
	for bug-global@gnu.org; Fri, 06 Jun 2003 21:17:06 -0400
Received: from choota.signet.or.jp ([211.3.75.173]) by t-mta8.odn.ne.jp
          with ESMTP
          id <20030607011703595.LIDE.299074.t-mta8.odn.ne.jp@mta8.odn.ne.jp>;
          Sat, 7 Jun 2003 10: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 h571FqK12221; Sat, 7 Jun 2003
	10:15:52 +0900 (JST)
Message-Id: <200306070115.h571FqK12221@tamacom.com>
To: Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
References: <200306061607.AA00583@k7.kit.hi-ho.ne.jp>
In-reply-to: Message from Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
	<200306061607.AA00583@k7.kit.hi-ho.ne.jp>
Date: Sat, 07 Jun 2003 10:15:52 +0900
From: Shigio Yamaguchi <shigio@tamacom.com>
X-Mailman-Approved-At: Fri, 06 Jun 2003 21:21:43 -0400
cc: bug-global@gnu.org
Subject: Re: [PATCH] generate hypertext of files which is not source
	dynamically
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: Sat, 07 Jun 2003 01:17:47 -0000

Committed. Thank you!

> * htags/htags.in: Changed so that hypertext of arbitrary files
>     can be obtained using CGI script.
>     When the option of both -o and -D was specified, 
>     generate hypertext of files which is not source dynamically.
> 
> * gtags/gtagc.c: Add undocumented option --secure.
>     If this option is specified, outside of the souce tree
>     cannot be specified with option --expand.
--
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 Fri Jun 06 22:11:41 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19OT9n-0007ja-IB
	for mharc-bug-global@gnu.org; Fri, 06 Jun 2003 22:10:11 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19OT4q-0003gX-Ay
	for bug-global@gnu.org; Fri, 06 Jun 2003 22:05:04 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19OT4k-0003NV-NS
	for bug-global@gnu.org; Fri, 06 Jun 2003 22:04:59 -0400
Received: from mfep8.odn.ne.jp ([143.90.131.186] helo=t-mta8.odn.ne.jp)
	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19OT4b-00036S-VP; Fri, 06 Jun 2003 22:04:50 -0400
Received: from choota.signet.or.jp ([211.3.75.173]) by t-mta8.odn.ne.jp
          with ESMTP
          id <20030607020448499.LMSW.299074.t-mta8.odn.ne.jp@mta8.odn.ne.jp>;
          Sat, 7 Jun 2003 11:04:48 +0900
Received: from choota.signet.or.jp (localhost [127.0.0.1]) by
	choota.signet.or.jp (8.11.3/) with ESMTP id h5723bK15219; Sat, 7 Jun 2003
	11:03:37 +0900 (JST)
Message-Id: <200306070203.h5723bK15219@tamacom.com>
To: bug-global@gnu.org
From: "Shigio Yamaguchi" <shigio@gnu.org>
Date: Sat, 07 Jun 2003 11:03:37 +0900
Sender: shigio@tamacom.com
X-Mailman-Approved-At: Fri, 06 Jun 2003 22:10:10 -0400
cc: shigio@gnu.org
Subject: The PHP parser needs some tools.
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: Sat, 07 Jun 2003 02:05:15 -0000

Hello, CVS repository hackers!

I have written a PHP parser for GLOBAL.
It is necessary to install flex(1) and gperf(1) in your environment
to compile this parser.
(Of course, configure script users don't need it.)

Would you please install above tools in your environment?
Since both of them are GNU software, you can get them from GNU ftp site.

I would like to commit this code by the end of a day or two.

Thank you in advance.
--
Shigio Yamaguchi <shigio@gnu.org>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3



From MAILER-DAEMON Sat Jun 07 03:59:23 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19OYbi-0002dL-Kw
	for mharc-bug-global@gnu.org; Sat, 07 Jun 2003 03:59:22 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19OW1z-00044m-0U
	for bug-global@gnu.org; Sat, 07 Jun 2003 01:14:19 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19OW1i-0003di-O5
	for bug-global@gnu.org; Sat, 07 Jun 2003 01:14:03 -0400
Received: from sproxy03.hi-ho.ne.jp ([202.224.159.198])
	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19OW1Z-0003VK-EN
	for bug-global@gnu.org; Sat, 07 Jun 2003 01:13:53 -0400
Received: from k7.kit.hi-ho.ne.jp (eaosk18-p117.hi-ho.ne.jp [202.224.161.118])
 by sproxy03.hi-ho.ne.jp (hi-ho Mail Server)
 with SMTP id <0HG300BHPIJ1WJ@sproxy03.hi-ho.ne.jp> for bug-global@gnu.org;
 Sat,  7 Jun 2003 14:13:51 +0900 (JST)
Date: Sat, 07 Jun 2003 14:13:51 +0900
From: Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
To: bug-global@gnu.org
Message-id: <200306070513.AA00584@k7.kit.hi-ho.ne.jp>
MIME-version: 1.0
X-Mailer: AL-Mail32 Version 1.13
Content-type: text/plain; charset=us-ascii
X-Mailman-Approved-At: Sat, 07 Jun 2003 03:59:21 -0400
Subject: [PATCH] Add "ignore case" and "other files" checkboxes to search form
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: Sat, 07 Jun 2003 05:14:21 -0000

* htags/htags.in: Add "Ignore case" and "Other files" checkboxes to search form.
   "Other files" checkbox is generated only when all -o, the -D, and enable_grep
   are specified.

* gtags/gtags.c: Changed so that the path to a CGI script might be
   generated for the file which is not source

Index: htags/htags.in
===================================================================
RCS file: /cvsroot/global/global/htags/htags.in,v
retrieving revision 1.133
diff -u -r1.133 htags.in
--- htags/htags.in	7 Jun 2003 01:16:09 -0000	1.133
+++ htags/htags.in	7 Jun 2003 05:01:26 -0000
@@ -1111,6 +1111,14 @@
 	$flag = 'I';
 	$words = 'patterns';
 }
+$iflag = '';
+if ($form{'icase'}) {
+	$iflag = 'i';
+}
+$oflag = '';
+if ($form{'other'} && $flag eq 'g') {
+	$oflag = 'o';
+}
 if ($form{'id'}) {
 	chdir("$form{'id'}/cgi-bin");
 	if ($?) {	
@@ -1170,7 +1178,7 @@
 #
 # fork and exec global(1) to avoid command substitutions in $pattern.
 #
-open(PIPE, "-|") || exec '@globalpath@', '-x'.$flag, '-e', $pattern;
+open(PIPE, "-|") || exec '@globalpath@', '-x'.$flag.$iflag.$oflag, '-e', $pattern;
 if ($?) {	
 	print "<H1><FONT COLOR=#cc0000>Error</FONT></H1>\n";
 	print "<H3>Cannot execute global. <A HREF=$htmlbase/mains.@normal_suffix@>[return]</A></H3>\n";
@@ -1920,6 +1928,12 @@
 	if ($'enable_idutils && -f "$dbpath/ID") {
 		$index .= "\n<INPUT TYPE=radio NAME=type VALUE=idutils>";
 		$index .= ($target) ? "Id" : "Id pattern";
+	}
+	$index .= "<BR>\n<INPUT TYPE=checkbox NAME=icase VALUE=1>";
+	$index .= ($target) ? "Icase" : "Ignore case";
+	if ($'enable_grep && $'other_files && $'dynamic) {
+		$index .= "\n<INPUT TYPE=checkbox NAME=other VALUE=1>";
+		$index .= ($target) ? "Other" : "Other files";
 	}
 	$index .= "\n</FORM>\n";
 	$index;
Index: gtags/gtags.c
===================================================================
RCS file: /cvsroot/global/global/gtags/gtags.c,v
retrieving revision 1.76
diff -u -r1.76 gtags.c
--- gtags/gtags.c	7 Jun 2003 01:16:09 -0000	1.76
+++ gtags/gtags.c	7 Jun 2003 05:01:26 -0000
@@ -299,7 +299,7 @@
 		exit(0);
 	} else if (do_convert) {
 		STRBUF *ib = strbuf_open(MAXBUFLEN);
-		char *p, *q;
+		char *p, *q, *fid;
 
 		/*
 		 * [Job]
@@ -310,8 +310,13 @@
 		 * <A HREF="http://xxx/global/S/ ./main.c .html#110">main</A>\n
 		 *				|
 		 *				v
-		 * <A HREF="http://xxx/global/S/39..html#110">main</A>\n
+		 * <A HREF="http://xxx/global/S/39.html#110">main</A>\n
 		 *
+		 * If the file name is not found in GPATH, change into the path to CGI script.
+		 * <A HREF="http://xxx/global/S/ ./README .html#9">main</A>\n
+		 *				|
+		 *				v
+		 * <A HREF="http://xxx/global/cgi-bin/global.cgi?pattern=README&type=source#9">main</A>\n
 		 */
 		if (gpath_open(".", 0, 0) < 0)
 			die("GPATH not found.");
@@ -324,10 +329,28 @@
 				printf("%s: ERROR(1): %s", progname, strbuf_value(ib));
 				continue;
 			}
+			/*
+			 * <A HREF="http://xxx/global/S/ ./main.c .html#110">main</A>\n
+			 * ^                         ^
+			 * p                         |
+			 *                           q
+			 */
 			for (; p < q; p++)
 				putc(*p, stdout);
+			/*
+			 * <A HREF="http://xxx/global/S/ ./main.c .html#110">main</A>\n
+			 *                           ^
+			 *                           p
+			 *                           q
+			 */
 			for (; *p && *p != ' '; p++)
-				putc(*p, stdout);
+				;
+			/*
+			 * <A HREF="http://xxx/global/S/ ./main.c .html#110">main</A>\n
+			 *                           ^  ^
+			 *                           |  p
+			 *                           q
+			 */
 			for (q = ++p; *q && *q != ' '; q++)
 				;
 			if (*q == '\0') {
@@ -335,7 +358,34 @@
 				continue;
 			}
 			*q++ = '\0';
-			fputs(gpath_path2fid(p), stdout);
+			/*
+			 * <A HREF="http://xxx/global/S/ ./main.c\0.html#110">main</A>\n
+			 *                               ^         ^
+			 *                               p         |
+			 *                                         q
+			 */
+			fid = gpath_path2fid(p);
+			if (fid) {
+				fputs("/S/", stdout);
+				fputs(fid, stdout);
+				fputs(q, stdout);
+				continue;
+			}
+			fputs("/cgi-bin/global.cgi?pattern=", stdout);
+			fputs(p + 2, stdout);
+			fputs("&type=source", stdout);
+			for (; *q && *q != '#'; q++)
+				;
+			if (*q == '\0') {
+				printf("%s: ERROR(2): %s", progname, strbuf_value(ib));
+				continue;
+			}
+			/*
+			 * <A HREF="http://xxx/global/S/ ./main.c\0.html#110">main</A>\n
+			 *                               ^              ^
+			 *                               p              |
+			 *                                              q
+			 */
 			fputs(q, stdout);
 		}
 		gpath_close();

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




From MAILER-DAEMON Sat Jun 07 04:38:20 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19OZCn-0003SO-3X
	for mharc-bug-global@gnu.org; Sat, 07 Jun 2003 04:37:41 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19OYuU-00019w-Qk
	for bug-global@gnu.org; Sat, 07 Jun 2003 04:18:46 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19OYuQ-0000tF-Ge
	for bug-global@gnu.org; Sat, 07 Jun 2003 04:18:45 -0400
Received: from sproxy03.hi-ho.ne.jp ([202.224.159.198])
	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19OYu8-0000Cs-D4
	for bug-global@gnu.org; Sat, 07 Jun 2003 04:18:24 -0400
Received: from k7.kit.hi-ho.ne.jp (eaosk35-p20.hi-ho.ne.jp [202.224.156.21])
 by sproxy03.hi-ho.ne.jp (hi-ho Mail Server)
 with SMTP id <0HG3008BUR2MRF@sproxy03.hi-ho.ne.jp> for bug-global@gnu.org;
 Sat,  7 Jun 2003 17:18:23 +0900 (JST)
Date: Sat, 07 Jun 2003 17:18:24 +0900
From: Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
To: bug-global@gnu.org
Message-id: <200306070818.AA00585@k7.kit.hi-ho.ne.jp>
MIME-version: 1.0
X-Mailer: AL-Mail32 Version 1.13
Content-type: text/plain; charset=us-ascii
X-Mailman-Approved-At: Sat, 07 Jun 2003 04:37:39 -0400
Subject: [PATCH] convert [&<>] in title of search result
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: Sat, 07 Jun 2003 08:18:48 -0000

The result of grep search looks as follows.

[current cvs version] (All characters are dyed red.)
Following patterns are matched to above pattern.
--------------------------------------------------------------------------------
 
<A                310 gtags/gtags.c  		 * <A HREF="http://xxx/global/S/ ./main.c .html#110">main</A>\n
<A                313 gtags/gtags.c  		 * <A HREF="http://xxx/global/S/39..html#110">main</A>\n
<A                320 gtags/gtags.c  			if (strncmp("<A ", p, 3))

[patched version]
<A
Following patterns are matched to above pattern.
--------------------------------------------------------------------------------
 
<A                310 gtags/gtags.c  		 * <A HREF="http://xxx/global/S/ ./main.c .html#110">main</A>\n
<A                313 gtags/gtags.c  		 * <A HREF="http://xxx/global/S/39..html#110">main</A>\n
<A                320 gtags/gtags.c  			if (strncmp("<A ", p, 3))

Index: htags/htags.in
===================================================================
RCS file: /cvsroot/global/global/htags/htags.in,v
retrieving revision 1.133
diff -u -r1.133 htags.in
--- htags/htags.in	7 Jun 2003 01:16:09 -0000	1.133
+++ htags/htags.in	7 Jun 2003 08:08:37 -0000
@@ -1145,8 +1145,8 @@
 		chdir("../..");
 	}
 }
+local(%ctab) = ('&', '&amp;', '<', '&lt;', '>', '&gt;');
 if ($form{'type'} eq 'source') {
-	local(%ctab) = ('&', '&amp;', '<', '&lt;', '>', '&gt;');
 	open(PIPE, "-|") || exec '@gtagspath@', '--secure', '--expand', '-@tabs@', './'.$pattern;
 	if ($?) {	
 		print "<H1><FONT COLOR=#cc0000>Error</FONT></H1>\n";
@@ -1178,6 +1178,7 @@
 	print "@html_end@\n";
 	exit 0;
 }
+$pattern =~ s/([&<>])/$ctab{$1}/ge;
 print "<H1><FONT COLOR=#cc0000>" . $pattern . "</FONT></H1>\n";
 print "Following $words are matched to above pattern.<HR>\n";
 $cnt = 0;
@@ -1195,9 +1196,7 @@
 while (<PIPE>) {
 	$cnt++;
 	($tag, $lno, $filename) = split;
-	s/&/&amp;/g;
-	s/</&lt;/g;
-	s/>/&gt;/g;
+	s/([&<>])/$ctab{$1}/ge;
 	# " ./$filename " is replaced with file number by gtags --convert.
 	s!(^[^ \t]+)!<A HREF=$htmlbase/S/ ./$filename .@HTML@#$lno>$1<\/A>!;
 	print PIPEOUT;

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




From MAILER-DAEMON Sat Jun 07 07:06:44 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19ObWw-0008K8-Jj
	for mharc-bug-global@gnu.org; Sat, 07 Jun 2003 07:06:38 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19Ob6R-0005SJ-Ih
	for bug-global@gnu.org; Sat, 07 Jun 2003 06:39:15 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19Oawa-0002nw-OQ
	for bug-global@gnu.org; Sat, 07 Jun 2003 06:29:05 -0400
Received: from mfep8.odn.ne.jp ([143.90.131.186] helo=t-mta8.odn.ne.jp)
	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19Oavv-0002bE-KX
	for bug-global@gnu.org; Sat, 07 Jun 2003 06:28:23 -0400
Received: from choota.signet.or.jp ([211.3.75.173]) by t-mta8.odn.ne.jp
          with ESMTP
          id <20030607102821680.NUEP.299074.t-mta8.odn.ne.jp@mta8.odn.ne.jp>;
          Sat, 7 Jun 2003 19:28:21 +0900
Received: from choota.signet.or.jp (localhost [127.0.0.1]) by
	choota.signet.or.jp (8.11.3/) with ESMTP id h57AR5K15065; Sat, 7 Jun 2003
	19:27:05 +0900 (JST)
Message-Id: <200306071027.h57AR5K15065@tamacom.com>
To: Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
References: <200306070513.AA00584@k7.kit.hi-ho.ne.jp>
In-reply-to: Message from Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
	<200306070513.AA00584@k7.kit.hi-ho.ne.jp>
Date: Sat, 07 Jun 2003 19:27:05 +0900
From: Shigio Yamaguchi <shigio@tamacom.com>
X-Mailman-Approved-At: Sat, 07 Jun 2003 07:06:36 -0400
cc: bug-global@gnu.org
Subject: Re: [PATCH] Add "ignore case" and "other files" checkboxes to search
	form
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: Sat, 07 Jun 2003 10:59:19 -0000

> * htags/htags.in: Add "Ignore case" and "Other files" checkboxes to search fo
rm.
>    "Other files" checkbox is generated only when all -o, the -D, and enable_g
rep
>    are specified.

It's very useful.
By the way, why is the -D flag necessary as the condition whether or not
enable 'Other files' checkbox?
--
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 Jun 09 02:37:22 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19PGHJ-0006kC-QC
	for mharc-bug-global@gnu.org; Mon, 09 Jun 2003 02:37:13 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19PG6z-0005lZ-8L
	for bug-global@gnu.org; Mon, 09 Jun 2003 02:26:33 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19PG6d-00056b-K9
	for bug-global@gnu.org; Mon, 09 Jun 2003 02:26:18 -0400
Received: from sproxy03.hi-ho.ne.jp ([202.224.159.198])
	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19PG6Z-0004f6-Em
	for bug-global@gnu.org; Mon, 09 Jun 2003 02:26:07 -0400
Received: from k7.kit.hi-ho.ne.jp (eaosk17-p182.hi-ho.ne.jp [202.224.160.183])
 by sproxy03.hi-ho.ne.jp (hi-ho Mail Server)
 with SMTP id <0HG700M3IB7DNA@sproxy03.hi-ho.ne.jp> for bug-global@gnu.org;
 Mon,  9 Jun 2003 15:26:03 +0900 (JST)
Date: Mon, 09 Jun 2003 15:26:04 +0900
From: Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
In-reply-to: <200306071027.h57AR5K15065@tamacom.com>
To: Shigio Yamaguchi <shigio@tamacom.com>
Message-id: <200306090626.AA00586@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: <200306071027.h57AR5K15065@tamacom.com>
X-Mailman-Approved-At: Mon, 09 Jun 2003 02:37:12 -0400
cc: bug-global@gnu.org
Subject: Re: [PATCH] Add "ignore case" and "other files" checkboxes to search
 form
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, 09 Jun 2003 06:26:34 -0000

On Sat, 07 Jun 2003 19:27:05 +0900, Shigio Yamaguchi wrote...
> > * htags/htags.in: Add "Ignore case" and "Other files" checkboxes to search fo
> rm.
> >    "Other files" checkbox is generated only when all -o, the -D, and enable_g
> rep
> >    are specified.
> 
> It's very useful.
> By the way, why is the -D flag necessary as the condition whether or not
> enable 'Other files' checkbox?

You are right. It is unnecessary.

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




From MAILER-DAEMON Mon Jun 09 12:20:36 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19PPNJ-0003Qx-4x
	for mharc-bug-global@gnu.org; Mon, 09 Jun 2003 12:20:01 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19POw6-00011C-5O
	for bug-global@gnu.org; Mon, 09 Jun 2003 11:51:54 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19POsh-00080E-KF
	for bug-global@gnu.org; Mon, 09 Jun 2003 11:48:24 -0400
Received: from mfep4.odn.ne.jp ([143.90.131.182] helo=t-mta4.odn.ne.jp)
	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19POqK-0007GG-NR
	for bug-global@gnu.org; Mon, 09 Jun 2003 11:45:56 -0400
Received: from choota.signet.or.jp ([61.123.43.221]) by t-mta4.odn.ne.jp
          with ESMTP
          id <20030609154527098.JWDF.27446.t-mta4.odn.ne.jp@mta4.odn.ne.jp>;
          Tue, 10 Jun 2003 00:45:27 +0900
Received: from choota.signet.or.jp (localhost [127.0.0.1]) by
	choota.signet.or.jp (8.11.3/) with ESMTP id h59FiCe17914; Tue, 10 Jun 2003
	00:44:12 +0900 (JST)
Message-Id: <200306091544.h59FiCe17914@tamacom.com>
To: Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
References: <200306090626.AA00586@k7.kit.hi-ho.ne.jp>
In-reply-to: Message from Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
	<200306090626.AA00586@k7.kit.hi-ho.ne.jp>
Date: Tue, 10 Jun 2003 00:44:11 +0900
From: Shigio Yamaguchi <shigio@tamacom.com>
X-Mailman-Approved-At: Mon, 09 Jun 2003 12:19:58 -0400
cc: bug-global@gnu.org
Subject: Re: [PATCH] Add "ignore case" and "other files" checkboxes to search
	form
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, 09 Jun 2003 15:55:30 -0000

> > By the way, why is the -D flag necessary as the condition whether or not
> > enable 'Other files' checkbox?
> 
> You are right. It is unnecessary.

OK.
I have committed your patch with deleting the -D flag condition.
Thank you for your improvement!
--
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 Jun 09 20:14:24 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19PWli-00089C-F1
	for mharc-bug-global@gnu.org; Mon, 09 Jun 2003 20:13:42 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19PWHm-00066X-9f
	for bug-global@gnu.org; Mon, 09 Jun 2003 19:42:46 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19PWA5-0004mA-NC
	for bug-global@gnu.org; Mon, 09 Jun 2003 19:34:50 -0400
Received: from sproxy03.hi-ho.ne.jp ([202.224.159.198])
	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19PW3p-0002zy-N5
	for bug-global@gnu.org; Mon, 09 Jun 2003 19:28:21 -0400
Received: from k7.kit.hi-ho.ne.jp (eaosk17-p182.hi-ho.ne.jp [202.224.160.183])
 by sproxy03.hi-ho.ne.jp (hi-ho Mail Server)
 with SMTP id <0HG800GGNMJ7GU@sproxy03.hi-ho.ne.jp> for bug-global@gnu.org;
 Tue, 10 Jun 2003 08:28:20 +0900 (JST)
Date: Tue, 10 Jun 2003 08:28:22 +0900
From: Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
To: bug-global@gnu.org
Message-id: <200306092328.AA00602@k7.kit.hi-ho.ne.jp>
MIME-version: 1.0
X-Mailer: AL-Mail32 Version 1.13
Content-type: text/plain; charset=us-ascii
X-Mailman-Approved-At: Mon, 09 Jun 2003 20:13:40 -0400
Subject: [PATCH] fix anchor lines in other files
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, 09 Jun 2003 23:44:58 -0000

Htags was changed recently so that getlinks might be used for other files.
Since @ANCHORS, $LAST, and $FIRST are not cleared, invalid links is inserted now.

Index: htags/htags.in
===================================================================
RCS file: /cvsroot/global/global/htags/htags.in,v
retrieving revision 1.138
diff -u -r1.138 htags.in
--- htags/htags.in	9 Jun 2003 16:16:32 -0000	1.138
+++ htags/htags.in	9 Jun 2003 23:16:43 -0000
@@ -2166,7 +2166,7 @@
 	#
 	# load tags belonging to this file.
 	#
-	&anchor'load($file) unless ($notsource);
+	&anchor'load($file, $notsource);
 	$command = "$'gtags --expand -$tabs ";
 	$command .= ($'w32) ? "\"$file\"" : "'$file'";
 	open(SRC, "$command |") || &'error("cannot fork.");
@@ -2584,16 +2584,21 @@
 # load: load anchors belonging to specified file.
 #
 #	i)	$file	source file
+#	i)	$notsource 1: isn't source, 0: source.
 #	go)	FIRST	first definition
 #	go)	LAST	last definition
 #
 sub load {
-	local($file) = @_;
-	local(@keys);
+	local($file, $notsource) = @_;
 
 	@ANCHORS = ();
 	$FIRST = $LAST = 0;
 
+	if ($notsource) {
+		return;
+	}
+
+	local(@keys);
 	foreach $db (&'get_taglist()) {
 		local($option) = &'get_option($db);
 		local($pipein) = "global -fn$option ";

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




From MAILER-DAEMON Mon Jun 09 20:53:53 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19PXO9-0008C3-Mx
	for mharc-bug-global@gnu.org; Mon, 09 Jun 2003 20:53:25 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19PX3m-0006J5-Eb
	for bug-global@gnu.org; Mon, 09 Jun 2003 20:32:22 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19PWvu-0003x5-Jh
	for bug-global@gnu.org; Mon, 09 Jun 2003 20:24:17 -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 19PWtA-0003SK-JZ
	for bug-global@gnu.org; Mon, 09 Jun 2003 20:21:24 -0400
Received: from choota.signet.or.jp ([211.121.58.201]) by t-mta1.odn.ne.jp
          with ESMTP
          id <20030610002122863.WPTC.139418.t-mta1.odn.ne.jp@mta1.odn.ne.jp>;
          Tue, 10 Jun 2003 09:21:22 +0900
Received: from choota.signet.or.jp (localhost [127.0.0.1]) by
	choota.signet.or.jp (8.11.3/) with ESMTP id h5A0K7F00505; Tue, 10 Jun 2003
	09:20:07 +0900 (JST)
Message-Id: <200306100020.h5A0K7F00505@tamacom.com>
To: Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
References: <200306092328.AA00602@k7.kit.hi-ho.ne.jp>
In-reply-to: Message from Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
	<200306092328.AA00602@k7.kit.hi-ho.ne.jp>
Date: Tue, 10 Jun 2003 09:20:07 +0900
From: Shigio Yamaguchi <shigio@tamacom.com>
X-Mailman-Approved-At: Mon, 09 Jun 2003 20:53:24 -0400
cc: bug-global@gnu.org
Subject: Re: [PATCH] fix anchor lines in other files
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, 10 Jun 2003 00:32:23 -0000

> Htags was changed recently so that getlinks might be used for other files.
> Since @ANCHORS, $LAST, and $FIRST are not cleared, invalid links is inserted 
now.

Fixed. 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 Mon Jun 09 21:05:50 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19PXZr-0005RK-4u
	for mharc-bug-global@gnu.org; Mon, 09 Jun 2003 21:05:31 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19PXOj-0000Ki-ST
	for bug-global@gnu.org; Mon, 09 Jun 2003 20:54:01 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19PXOe-0000DF-UP
	for bug-global@gnu.org; Mon, 09 Jun 2003 20:53:57 -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 19PXNQ-0007q3-NU
	for bug-global@gnu.org; Mon, 09 Jun 2003 20:52:40 -0400
Received: from choota.signet.or.jp ([211.121.58.201]) by t-mta1.odn.ne.jp
          with ESMTP
          id <20030610005239504.WTWA.139418.t-mta1.odn.ne.jp@mta1.odn.ne.jp>
          for <bug-global@gnu.org>; Tue, 10 Jun 2003 09:52:39 +0900
Received: from choota.signet.or.jp (localhost [127.0.0.1]) by
	choota.signet.or.jp (8.11.3/) with ESMTP id h5A0pJF00544 for
	<bug-global@gnu.org>; Tue, 10 Jun 2003 09:51:19 +0900 (JST)
Message-Id: <200306100051.h5A0pJF00544@tamacom.com>
To: bug-global@gnu.org
From: "Shigio Yamaguchi" <shigio@tamacom.com>
Date: Tue, 10 Jun 2003 09:51:19 +0900
Sender: shigio@tamacom.com
X-Mailman-Approved-At: Mon, 09 Jun 2003 21:05:29 -0400
Subject: The order of links in the source header.
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, 10 Jun 2003 00:54:05 -0000

Hello,
I have a suggestion.

Currently, the header of source file generated by htags(1) includes
three links like this:

	gtags/gtags.c
	~~~~~
	/* [<][>][^][v][top][bottom][index][help] */ 
	--------------------------------------------
	DEFINITIONS

	This source file includes following definitions. 

	1.usage 			-
	2.help 				^
	3.onintr 			(1) DEFINITIONS links
	...
					v
	32 xxxx				-

	INCLUDED FROM			(2) INCLUDED FROM link
	~~~~~~~~~~~~~
	CVS REPOSITORY			(3) CVS REPOSITORY link
	~~~~~~~~~~~~~~

But there is a problem.
Since the DEFINITIONS links may consists of many lines, the INCLUDED FROM link
and the CVS REPOSITORY link might be out of screen. We should look for them,
and it is inconvenient.

I would like to modify the header as follows:

	gtags/gtags.c [CVS]	<- The CVS PEPOSITORY link is here.
	~~~~~          ~~~
	/* [<][>][^][v][top][bottom][index][help] */ 
	--------------------------------------------
	INCLUDED FROM		<- The INCLUDE FROM link is here
	~~~~~~~~~~~~~
	DEFINITIONS

	This source file includes following definitions. 

	1.usage 
	2.help 
	3.onintr 

Any comment?
--
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 Jun 10 09:18:08 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19Pj0g-0007TZ-HI
	for mharc-bug-global@gnu.org; Tue, 10 Jun 2003 09:17:58 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19Pizf-0005Nw-Hi
	for bug-global@gnu.org; Tue, 10 Jun 2003 09:16:55 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19Pizb-0005Lr-91
	for bug-global@gnu.org; Tue, 10 Jun 2003 09:16:51 -0400
Received: from sproxy01.hi-ho.ne.jp ([202.224.159.195])
	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19Piyo-0004ga-Rc
	for bug-global@gnu.org; Tue, 10 Jun 2003 09:16:03 -0400
Received: from k7.kit.hi-ho.ne.jp (eaosk17-p182.hi-ho.ne.jp [202.224.160.183])
 by sproxy01.hi-ho.ne.jp (hi-ho Mail Server)
 with SMTP id <0HG900ACHOUJOJ@sproxy01.hi-ho.ne.jp> for bug-global@gnu.org;
 Tue, 10 Jun 2003 22:15:56 +0900 (JST)
Date: Tue, 10 Jun 2003 22:15:58 +0900
From: Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
To: bug-global@gnu.org
Message-id: <200306101315.AA00603@k7.kit.hi-ho.ne.jp>
MIME-version: 1.0
X-Mailer: AL-Mail32 Version 1.13
Content-type: text/plain; charset=us-ascii
X-Mailman-Approved-At: Tue, 10 Jun 2003 09:17:56 -0400
Subject: [PATCH] a small bugfix
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, 10 Jun 2003 13:17:10 -0000

Index: htags/htags.in
===================================================================
RCS file: /cvsroot/global/global/htags/htags.in,v
retrieving revision 1.142
diff -u -r1.142 htags.in
--- htags/htags.in	10 Jun 2003 12:58:00 -0000	1.142
+++ htags/htags.in	10 Jun 2003 13:13:35 -0000
@@ -1198,7 +1198,7 @@
 }
 $pattern =~ s/([&<>])/$ctab{$1}/ge;
 print "<H1><FONT COLOR=#cc0000>" . $pattern . "</FONT></H1>\n";
-print "Following $words are matched to above pattern.$'hr\n";
+print "Following $words are matched to above pattern.@hr@\n";
 $cnt = 0;
 local($tag, $lno, $filename, $fileno);
 print "<PRE>\n";
@@ -1249,6 +1249,7 @@
 	$script =~ s/\@SRCS\@/$'SRCS/g;
 	$script =~ s/\@HTML\@/$'HTML/g;
 	$script =~ s/\@tabs\@/$'tabs/g;
+	$script =~ s/\@hr\@/$'hr/g;
 	$script =~ s/\@globalpath\@/$globalpath/g;
 	$script =~ s/\@gtagspath\@/$gtagspath/g;
 	print PROGRAM $script;


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




From MAILER-DAEMON Tue Jun 10 09:53:14 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19PjWX-00089Q-BO
	for mharc-bug-global@gnu.org; Tue, 10 Jun 2003 09:50:53 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19Pj64-0005Yv-7R
	for bug-global@gnu.org; Tue, 10 Jun 2003 09:23:32 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19Pj63-0005Yj-0F
	for bug-global@gnu.org; Tue, 10 Jun 2003 09:23:31 -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 19Pj62-0005XV-Fz
	for bug-global@gnu.org; Tue, 10 Jun 2003 09:23:30 -0400
Received: from choota.signet.or.jp ([211.121.58.201]) by t-mta1.odn.ne.jp
          with ESMTP
          id <20030610132323679.CXFQ.139418.t-mta1.odn.ne.jp@mta1.odn.ne.jp>;
          Tue, 10 Jun 2003 22:23:23 +0900
Received: from choota.signet.or.jp (localhost [127.0.0.1]) by
	choota.signet.or.jp (8.11.3/) with ESMTP id h5ADM7F48356; Tue, 10 Jun 2003
	22:22:07 +0900 (JST)
Message-Id: <200306101322.h5ADM7F48356@tamacom.com>
To: Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
References: <200306101315.AA00603@k7.kit.hi-ho.ne.jp>
In-reply-to: Message from Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
	<200306101315.AA00603@k7.kit.hi-ho.ne.jp>
Date: Tue, 10 Jun 2003 22:22:07 +0900
From: Shigio Yamaguchi <shigio@tamacom.com>
X-Mailman-Approved-At: Tue, 10 Jun 2003 09:50:51 -0400
cc: bug-global@gnu.org
Subject: Re: [PATCH] a small bugfix
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, 10 Jun 2003 13:23:32 -0000

Fixed.
Always thank you. :-)

> Index: htags/htags.in
> ===================================================================
> RCS file: /cvsroot/global/global/htags/htags.in,v
> retrieving revision 1.142
> diff -u -r1.142 htags.in
> --- htags/htags.in	10 Jun 2003 12:58:00 -0000	1.142
> +++ htags/htags.in	10 Jun 2003 13:13:35 -0000
> @@ -1198,7 +1198,7 @@
>  }
>  $pattern =~ s/([&<>])/$ctab{$1}/ge;
>  print "<H1><FONT COLOR=#cc0000>" . $pattern . "</FONT></H1>\n";
> -print "Following $words are matched to above pattern.$'hr\n";
> +print "Following $words are matched to above pattern.@hr@\n";
>  $cnt = 0;
>  local($tag, $lno, $filename, $fileno);
>  print "<PRE>\n";
> @@ -1249,6 +1249,7 @@
>  	$script =~ s/\@SRCS\@/$'SRCS/g;
>  	$script =~ s/\@HTML\@/$'HTML/g;
>  	$script =~ s/\@tabs\@/$'tabs/g;
> +	$script =~ s/\@hr\@/$'hr/g;
>  	$script =~ s/\@globalpath\@/$globalpath/g;
>  	$script =~ s/\@gtagspath\@/$gtagspath/g;
>  	print PROGRAM $script;
--
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 Jun 10 21:21:34 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19PuIw-0006RU-6c
	for mharc-bug-global@gnu.org; Tue, 10 Jun 2003 21:21:34 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19PuCX-0005Tx-AQ
	for bug-global@gnu.org; Tue, 10 Jun 2003 21:14:57 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19PuCO-0005J6-Iw
	for bug-global@gnu.org; Tue, 10 Jun 2003 21:14:49 -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 19PuCB-0003S9-B9
	for bug-global@gnu.org; Tue, 10 Jun 2003 21:14:35 -0400
Received: from choota.signet.or.jp ([211.121.58.201]) by t-mta1.odn.ne.jp
          with ESMTP
          id <20030611011405226.GDCI.139418.t-mta1.odn.ne.jp@mta1.odn.ne.jp>
          for <bug-global@gnu.org>; Wed, 11 Jun 2003 10:14:05 +0900
Received: from choota.signet.or.jp (localhost [127.0.0.1]) by
	choota.signet.or.jp (8.11.3/) with ESMTP id h5B1CmE27180 for
	<bug-global@gnu.org>; Wed, 11 Jun 2003 10:12:48 +0900 (JST)
Message-Id: <200306110112.h5B1CmE27180@tamacom.com>
To: bug-global@gnu.org
References: <200306100051.h5A0pJF00544@tamacom.com>
In-reply-to: Message from "Shigio Yamaguchi" <shigio@tamacom.com>
  of "Tue, 10 Jun 2003 09:51:19 JST." <200306100051.h5A0pJF00544@tamacom.com>
Date: Wed, 11 Jun 2003 10:12:48 +0900
From: Shigio Yamaguchi <shigio@tamacom.com>
X-Mailman-Approved-At: Tue, 10 Jun 2003 21:21:33 -0400
Subject: Re: The order of links in the source header.
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, 11 Jun 2003 01:15:06 -0000

The arrangement of parts in source code page was changed.
Thank you.

[BEFORE]
        gtags/gtags.c
        ~~~~~
        /* [<][>][^][v][top][bottom][index][help] */ 
        --------------------------------------------
        DEFINITIONS

        This source file includes following definitions. 

        1.usage                         -
        2.help                          ^
        3.onintr                        (1) DEFINITIONS links
        ...
                                        v
        32 xxxx                         -

        INCLUDED FROM                   (2) INCLUDED FROM link
        ~~~~~~~~~~~~~
        CVS REPOSITORY                  (3) CVS REPOSITORY link
        ~~~~~~~~~~~~~~

[AFTER]

        gtags/gtags.c [CVS]     <- The CVS PEPOSITORY link is here.
        ~~~~~          ~~~
        /* [<][>][^][v][top][bottom][index][help] */ 
        --------------------------------------------
        INCLUDED FROM           <- The INCLUDE FROM link is here
        ~~~~~~~~~~~~~
        DEFINITIONS

        This source file includes following definitions. 

        1.usage 
        2.help 
        3.onintr 
--
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 Jun 11 09:48:23 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19Q5xf-00006t-Fj
	for mharc-bug-global@gnu.org; Wed, 11 Jun 2003 09:48:23 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19Q5uK-0006uz-Np
	for bug-global@gnu.org; Wed, 11 Jun 2003 09:44:56 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19Q5sq-0006Ta-6K
	for bug-global@gnu.org; Wed, 11 Jun 2003 09:43:24 -0400
Received: from sproxy03.hi-ho.ne.jp ([202.224.159.198])
	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19Q5qA-0005gE-Cy
	for bug-global@gnu.org; Wed, 11 Jun 2003 09:40:38 -0400
Received: from k7.kit.hi-ho.ne.jp (eaosk17-p182.hi-ho.ne.jp [202.224.160.183])
 by sproxy03.hi-ho.ne.jp (hi-ho Mail Server)
 with SMTP id <0HGB00K6GKN9PE@sproxy03.hi-ho.ne.jp> for bug-global@gnu.org;
 Wed, 11 Jun 2003 22:40:22 +0900 (JST)
Date: Wed, 11 Jun 2003 22:40:24 +0900
From: Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
To: bug-global@gnu.org
Message-id: <200306111340.AA00604@k7.kit.hi-ho.ne.jp>
MIME-version: 1.0
X-Mailer: AL-Mail32 Version 1.13
Content-type: text/plain; charset=us-ascii
X-Mailman-Approved-At: Wed, 11 Jun 2003 09:48:21 -0400
Subject: [PATCH] update manual
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, 11 Jun 2003 13:44:57 -0000


Index: gtags/manual.in
===================================================================
RCS file: /cvsroot/global/global/gtags/manual.in,v
retrieving revision 1.25
diff -u -r1.25 manual.in
--- gtags/manual.in	7 Jun 2003 23:27:32 -0000	1.25
+++ gtags/manual.in	11 Jun 2003 13:38:06 -0000
@@ -134,7 +134,7 @@
 		As a special exception, @name{gtags} collect values from multiple @code{skip} variables.
 		If the value ends with '/', it assumed as a directory and @name{gtags} skips all files under it.
 		If the value start with '/', it assumed relative path from the root of source directory.
-		By default, it assumes GPATH, GTAGS, GRTAGS, GSYMS, HTML/, tags, TAGS, ID, y.tab.c, y.tab.h, .notfunction, cscope.out, SCCS/, 
RCS/, CVS/, CVSROOT/, .deps/, @{arch@}/.
+		By default, it assumes GPATH, GTAGS, GRTAGS, GSYMS, HTML/, tags, TAGS, ID, y.tab.c, y.tab.h, .notfunction, cscope.out, SCCS/, 
RCS/, CVS/, CVSROOT/, .deps/, @{arch@}/, .cvsrc, .cvsignore, .cvspass, .cvswrappers.
 	@item{@code{suffixes}(comma separated list)}
 		Suffixes of target source file.
 		As a special exception, @name{gtags} collect values from multiple @code{suffixes} variables.

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




From MAILER-DAEMON Wed Jun 11 10:01:52 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19Q6Ai-0007nE-0t
	for mharc-bug-global@gnu.org; Wed, 11 Jun 2003 10:01:52 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19Q687-0005DL-6d
	for bug-global@gnu.org; Wed, 11 Jun 2003 09:59:11 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19Q684-0005Bt-Vy
	for bug-global@gnu.org; Wed, 11 Jun 2003 09:59:09 -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 19Q65q-0004JE-9Q
	for bug-global@gnu.org; Wed, 11 Jun 2003 09:56:50 -0400
Received: from choota.signet.or.jp ([211.121.58.201]) by t-mta1.odn.ne.jp
          with ESMTP
          id <20030611135648996.MIRV.139418.t-mta1.odn.ne.jp@mta1.odn.ne.jp>;
          Wed, 11 Jun 2003 22:56:48 +0900
Received: from choota.signet.or.jp (localhost [127.0.0.1]) by
	choota.signet.or.jp (8.11.3/) with ESMTP id h5BDtVE55354; Wed, 11 Jun 2003
	22:55:31 +0900 (JST)
Message-Id: <200306111355.h5BDtVE55354@tamacom.com>
To: Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
References: <200306111340.AA00604@k7.kit.hi-ho.ne.jp>
In-reply-to: Message from Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
	<200306111340.AA00604@k7.kit.hi-ho.ne.jp>
Date: Wed, 11 Jun 2003 22:55:31 +0900
From: Shigio Yamaguchi <shigio@tamacom.com>
X-Mailman-Approved-At: Wed, 11 Jun 2003 10:01:49 -0400
cc: bug-global@gnu.org
Subject: Re: [PATCH] update manual
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, 11 Jun 2003 13:59:12 -0000

Committed.
Thank you.

> Index: gtags/manual.in
> ===================================================================
> RCS file: /cvsroot/global/global/gtags/manual.in,v
> retrieving revision 1.25
> diff -u -r1.25 manual.in
> --- gtags/manual.in	7 Jun 2003 23:27:32 -0000	1.25
> +++ gtags/manual.in	11 Jun 2003 13:38:06 -0000
> @@ -134,7 +134,7 @@
>  		As a special exception, @name{gtags} collect values from multip
le @code{skip} variables.
>  		If the value ends with '/', it assumed as a directory and @name
{gtags} skips all files under it.
>  		If the value start with '/', it assumed relative path from the 
root of source directory.
> -		By default, it assumes GPATH, GTAGS, GRTAGS, GSYMS, HTML/, tags
, TAGS, ID, y.tab.c, y.tab.h, .notfunction, cscope.out, SCCS/, 
> RCS/, CVS/, CVSROOT/, .deps/, @{arch@}/.
> +		By default, it assumes GPATH, GTAGS, GRTAGS, GSYMS, HTML/, tags
, TAGS, ID, y.tab.c, y.tab.h, .notfunction, cscope.out, SCCS/, 
> RCS/, CVS/, CVSROOT/, .deps/, @{arch@}/, .cvsrc, .cvsignore, .cvspass, .cvswr
appers.
>  	@item{@code{suffixes}(comma separated list)}
>  		Suffixes of target source file.
>  		As a special exception, @name{gtags} collect values from multip
le @code{suffixes} variables.
> 
> ----
> 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 Wed Jun 11 10:55:07 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19Q6va-0007lG-N0
	for mharc-bug-global@gnu.org; Wed, 11 Jun 2003 10:50:18 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19Q6eY-0007gO-Us
	for bug-global@gnu.org; Wed, 11 Jun 2003 10:32:42 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19Q6eX-0007fr-Fc
	for bug-global@gnu.org; Wed, 11 Jun 2003 10:32:42 -0400
Received: from sproxy03.hi-ho.ne.jp ([202.224.159.198])
	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19Q6eW-0007fK-ML
	for bug-global@gnu.org; Wed, 11 Jun 2003 10:32:40 -0400
Received: from k7.kit.hi-ho.ne.jp (eaosk17-p182.hi-ho.ne.jp [202.224.160.183])
 by sproxy03.hi-ho.ne.jp (hi-ho Mail Server)
 with SMTP id <0HGB00452N2COF@sproxy03.hi-ho.ne.jp> for bug-global@gnu.org;
 Wed, 11 Jun 2003 23:32:37 +0900 (JST)
Date: Wed, 11 Jun 2003 23:32:40 +0900
From: Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
To: bug-global@gnu.org
Message-id: <200306111432.AA00605@k7.kit.hi-ho.ne.jp>
MIME-version: 1.0
X-Mailer: AL-Mail32 Version 1.13
Content-type: text/plain; charset=us-ascii
X-Mailman-Approved-At: Wed, 11 Jun 2003 10:50:17 -0400
Subject: [PATCH] --dynamic does not work
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, 11 Jun 2003 14:32:43 -0000

The option "--dynamic" of htags has broken since yesterday.

Index: htags/htags.in
===================================================================
RCS file: /cvsroot/global/global/htags/htags.in,v
retrieving revision 1.150
diff -u -r1.150 htags.in
--- htags/htags.in	11 Jun 2003 07:37:22 -0000	1.150
+++ htags/htags.in	11 Jun 2003 14:28:03 -0000
@@ -1455,11 +1455,13 @@
 			if ($prev ne $tag) {
 				$count++;
 				print STDERR " [$count] adding $kind $tag\n" if ($'vflag);
-				if ($writing && !$'dynamic) {
-					print FILE &'list_end;
-					print FILE $'body_end, "\n";
-					print FILE $'html_end, "\n";
-					$'file_count++;
+				if ($writing) {
+					if (!$'dynamic) {
+						print FILE &'list_end;
+						print FILE $'body_end, "\n";
+						print FILE $'html_end, "\n";
+						$'file_count++;
+					}
 					$writing = 0;
 					#
 					# cache record: " <file id> <entry number>"
@@ -1478,21 +1480,21 @@
 			} else {
 				# duplicate entry
 				if ($first_line) {
-					local($dir) = $dir{$db};
 					#
 					# Protocol:
 					# N<file>	create normal file.
 					# C<file>	create gzipped file.
 					#
 					if (!$'dynamic) {
+						local($dir) = $dir{$db};
 						print FILE "$flag$dist/$dir/$count.$'HTML\n";
-						$writing = 1;
 						print FILE $'html_begin, "\n";
 						print FILE &'set_header($tag);
 						print FILE $'body_begin, "\n";
 						print FILE &'list_begin;
 						print FILE &'list_body($srcdir, $first_line);
 					}
+					$writing = 1;
 					$entry_count++;
 					$first_line = '';
 				}
@@ -1504,13 +1506,14 @@
 		}
 		$definition_count = $count if ($db eq 'GTAGS');
 		close(LIST);
-		$'file_count++;
 		if ($?) { &'error("'$command' failed."); }
-		if (!$'dynamic && $writing) {
-			print FILE &'list_end;
-			print FILE $'body_end, "\n";
-			print FILE $'html_end, "\n";
-			$'file_count++;
+		if ($writing) {
+			if (!$'dynamic) {
+				print FILE &'list_end;
+				print FILE $'body_end, "\n";
+				print FILE $'html_end, "\n";
+				$'file_count++;
+			}
 			#
 			# cache record: " <file id> <entry number>"
 			#

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




From MAILER-DAEMON Wed Jun 11 11:28:40 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19Q7WF-0008T5-CI
	for mharc-bug-global@gnu.org; Wed, 11 Jun 2003 11:28:11 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19Q7LF-0002x1-9H
	for bug-global@gnu.org; Wed, 11 Jun 2003 11:16:49 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19Q7Kf-00025U-7U
	for bug-global@gnu.org; Wed, 11 Jun 2003 11:16:14 -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 19Q7J8-0001K0-Kz
	for bug-global@gnu.org; Wed, 11 Jun 2003 11:14:38 -0400
Received: from choota.signet.or.jp ([211.121.58.201]) by t-mta1.odn.ne.jp
          with ESMTP
          id <20030611151437490.NBKO.139418.t-mta1.odn.ne.jp@mta1.odn.ne.jp>;
          Thu, 12 Jun 2003 00:14:37 +0900
Received: from choota.signet.or.jp (localhost [127.0.0.1]) by
	choota.signet.or.jp (8.11.3/) with ESMTP id h5BFDFE55696; Thu, 12 Jun 2003
	00:13:15 +0900 (JST)
Message-Id: <200306111513.h5BFDFE55696@tamacom.com>
To: Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
References: <200306111432.AA00605@k7.kit.hi-ho.ne.jp>
In-reply-to: Message from Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
	<200306111432.AA00605@k7.kit.hi-ho.ne.jp>
Date: Thu, 12 Jun 2003 00:13:15 +0900
From: Shigio Yamaguchi <shigio@tamacom.com>
X-Mailman-Approved-At: Wed, 11 Jun 2003 11:28:09 -0400
cc: bug-global@gnu.org
Subject: Re: [PATCH] --dynamic does not work
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, 11 Jun 2003 15:19:15 -0000

Fixed. Thank you!

> The option "--dynamic" of htags has broken since yesterday.
> 
> Index: htags/htags.in
> ===================================================================
> RCS file: /cvsroot/global/global/htags/htags.in,v
> retrieving revision 1.150
> diff -u -r1.150 htags.in
> --- htags/htags.in	11 Jun 2003 07:37:22 -0000	1.150
> +++ htags/htags.in	11 Jun 2003 14:28:03 -0000
> @@ -1455,11 +1455,13 @@
>  			if ($prev ne $tag) {
>  				$count++;
>  				print STDERR " [$count] adding $kind $tag\n" if
 ($'vflag);
> -				if ($writing && !$'dynamic) {
> -					print FILE &'list_end;
> -					print FILE $'body_end, "\n";
> -					print FILE $'html_end, "\n";
> -					$'file_count++;
> +				if ($writing) {
> +					if (!$'dynamic) {
> +						print FILE &'list_end;
> +						print FILE $'body_end, "\n";
> +						print FILE $'html_end, "\n";
> +						$'file_count++;
> +					}
>  					$writing = 0;
>  					#
>  					# cache record: " <file id> <entry numb
er>"
> @@ -1478,21 +1480,21 @@
>  			} else {
>  				# duplicate entry
>  				if ($first_line) {
> -					local($dir) = $dir{$db};
>  					#
>  					# Protocol:
>  					# N<file>	create normal file.
>  					# C<file>	create gzipped file.
>  					#
>  					if (!$'dynamic) {
> +						local($dir) = $dir{$db};
>  						print FILE "$flag$dist/$dir/$co
unt.$'HTML\n";
> -						$writing = 1;
>  						print FILE $'html_begin, "\n";
>  						print FILE &'set_header($tag);
>  						print FILE $'body_begin, "\n";
>  						print FILE &'list_begin;
>  						print FILE &'list_body($srcdir,
 $first_line);
>  					}
> +					$writing = 1;
>  					$entry_count++;
>  					$first_line = '';
>  				}
> @@ -1504,13 +1506,14 @@
>  		}
>  		$definition_count = $count if ($db eq 'GTAGS');
>  		close(LIST);
> -		$'file_count++;
>  		if ($?) { &'error("'$command' failed."); }
> -		if (!$'dynamic && $writing) {
> -			print FILE &'list_end;
> -			print FILE $'body_end, "\n";
> -			print FILE $'html_end, "\n";
> -			$'file_count++;
> +		if ($writing) {
> +			if (!$'dynamic) {
> +				print FILE &'list_end;
> +				print FILE $'body_end, "\n";
> +				print FILE $'html_end, "\n";
> +				$'file_count++;
> +			}
>  			#
>  			# cache record: " <file id> <entry number>"
>  			#
> 
> ----
> 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 Wed Jun 11 11:51:40 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19Q7rw-0002LV-Dt
	for mharc-bug-global@gnu.org; Wed, 11 Jun 2003 11:50:36 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19Q7j4-0003iQ-4u
	for bug-global@gnu.org; Wed, 11 Jun 2003 11:41:26 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19Q7j0-0003cy-6x
	for bug-global@gnu.org; Wed, 11 Jun 2003 11:41:23 -0400
Received: from sproxy03.hi-ho.ne.jp ([202.224.159.198])
	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19Q7ie-0002l3-9V
	for bug-global@gnu.org; Wed, 11 Jun 2003 11:41:00 -0400
Received: from k7.kit.hi-ho.ne.jp (eaosk17-p182.hi-ho.ne.jp [202.224.160.183])
 by sproxy03.hi-ho.ne.jp (hi-ho Mail Server)
 with SMTP id <0HGB00CAJQ8AU0@sproxy03.hi-ho.ne.jp> for bug-global@gnu.org;
 Thu, 12 Jun 2003 00:40:58 +0900 (JST)
Date: Thu, 12 Jun 2003 00:41:02 +0900
From: Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
To: bug-global@gnu.org
Message-id: <200306111541.AA00606@k7.kit.hi-ho.ne.jp>
MIME-version: 1.0
X-Mailer: AL-Mail32 Version 1.13
Content-type: text/plain; charset=us-ascii
X-Mailman-Approved-At: Wed, 11 Jun 2003 11:50:34 -0400
Subject: [PATCH] fix error message
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, 11 Jun 2003 15:41:38 -0000

* gtags/gtags.c: Deleted excessive '\n'.
* libutil/conf.c: Fixed mismatch of format string and argument (%d and pointer).
* libutil/die.h: Added function attribute for checking type of argument.

Index: gtags/gtags.c
===================================================================
RCS file: /cvsroot/global/global/gtags/gtags.c,v
retrieving revision 1.78
diff -u -r1.78 gtags.c
--- gtags/gtags.c	11 Jun 2003 11:27:00 -0000	1.78
+++ gtags/gtags.c	11 Jun 2003 15:32:14 -0000
@@ -451,7 +451,7 @@
 				if (!isabspath(path))
 					die("realpath(3) is not compatible with BSD version.");
 				if (strncmp(path, root, strlen(root)))
-					die("'%s' is out of source tree.\n", path);
+					die("'%s' is out of source tree.", path);
 			}
 			ip = fopen(argv[0], "r");
 			if (ip == NULL)
Index: libutil/conf.c
===================================================================
RCS file: /cvsroot/global/global/libutil/conf.c,v
retrieving revision 1.29
diff -u -r1.29 conf.c
--- libutil/conf.c	23 Feb 2003 13:02:02 -0000	1.29
+++ libutil/conf.c	11 Jun 2003 15:32:14 -0000
@@ -141,7 +141,7 @@
 				die("invalid config file format (line %d).", count);
 			if (!strcmp(label, candidate)) {
 				if (!(p = locatestring(p, ":", MATCH_FIRST)))
-					die("invalid config file format (line %d).", strbuf_value(ib));
+					die("invalid config file format (line %d).", count);
 				p = strdup(p);
 				if (!p)
 					die("short of memory.");
Index: libutil/die.h
===================================================================
RCS file: /cvsroot/global/global/libutil/die.h,v
retrieving revision 1.7
diff -u -r1.7 die.h
--- libutil/die.h	15 May 2003 11:09:09 -0000	1.7
+++ libutil/die.h	11 Jun 2003 15:32:15 -0000
@@ -32,27 +32,44 @@
 #include <varargs.h>
 #endif
 
+#ifndef __attribute__
+/* This feature is available in gcc versions 2.5 and later.  */
+# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5) || __STRICT_ANSI__
+#  define __attribute__(x)
+# endif
+/* The __-protected variants of `format' and `printf' attributes
+   are accepted by gcc versions 2.6.4 (effectively 2.7) and later.  */
+# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7)
+#  define __format__ format
+#  define __printf__ printf
+# endif
+#endif
+
 extern	const char *progname;
 
 void setquiet();
 void setverbose();
 #ifdef HAVE_STDARG_H
-void die(const char *s, ...);
+void die(const char *s, ...)
+	__attribute__ ((__format__ (__printf__, 1, 2)));
 #else
 void die();
 #endif
 #ifdef HAVE_STDARG_H
-void die_with_code(int n, const char *s, ...);
+void die_with_code(int n, const char *s, ...)
+	__attribute__ ((__format__ (__printf__, 2, 3)));
 #else
 void die_with_code();
 #endif
 #ifdef HAVE_STDARG_H
-void message(const char *s, ...);
+void message(const char *s, ...)
+	__attribute__ ((__format__ (__printf__, 1, 2)));
 #else
 void message();
 #endif
 #ifdef HAVE_STDARG_H
-void warning(const char *s, ...);
+void warning(const char *s, ...)
+	__attribute__ ((__format__ (__printf__, 1, 2)));
 #else
 void warning();
 #endif

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




From MAILER-DAEMON Wed Jun 11 14:09:03 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19QA1c-00030P-Ax
	for mharc-bug-global@gnu.org; Wed, 11 Jun 2003 14:08:44 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19Q8pU-0002l7-G9
	for bug-global@gnu.org; Wed, 11 Jun 2003 12:52:08 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19Q8pF-0002e1-PT
	for bug-global@gnu.org; Wed, 11 Jun 2003 12:51:54 -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 19Q8oj-0002VU-8v
	for bug-global@gnu.org; Wed, 11 Jun 2003 12:51:21 -0400
Received: from choota.signet.or.jp ([211.121.58.201]) by t-mta1.odn.ne.jp
          with ESMTP
          id <20030611165120040.NODF.139418.t-mta1.odn.ne.jp@mta1.odn.ne.jp>;
          Thu, 12 Jun 2003 01:51:20 +0900
Received: from choota.signet.or.jp (localhost [127.0.0.1]) by
	choota.signet.or.jp (8.11.3/) with ESMTP id h5BGo2E61199; Thu, 12 Jun 2003
	01:50:02 +0900 (JST)
Message-Id: <200306111650.h5BGo2E61199@tamacom.com>
To: Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
References: <200306111541.AA00606@k7.kit.hi-ho.ne.jp>
In-reply-to: Message from Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
	<200306111541.AA00606@k7.kit.hi-ho.ne.jp>
Date: Thu, 12 Jun 2003 01:50:02 +0900
From: Shigio Yamaguchi <shigio@tamacom.com>
X-Mailman-Approved-At: Wed, 11 Jun 2003 14:08:41 -0400
cc: bug-global@gnu.org
Subject: Re: [PATCH] fix error message
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, 11 Jun 2003 16:53:56 -0000

Committed. Thank you.

> * gtags/gtags.c: Deleted excessive '\n'.
> * libutil/conf.c: Fixed mismatch of format string and argument (%d and pointe
r).
> * libutil/die.h: Added function attribute for checking type of argument.
--
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 Thu Jun 12 09:40:43 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19QSJn-0006tX-9Y
	for mharc-bug-global@gnu.org; Thu, 12 Jun 2003 09:40:43 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19QSJk-0006sB-OU
	for bug-global@gnu.org; Thu, 12 Jun 2003 09:40:40 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19QSJi-0006pL-9r
	for bug-global@gnu.org; Thu, 12 Jun 2003 09:40:39 -0400
Received: from sproxy03.hi-ho.ne.jp ([202.224.159.198])
	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19QSJh-0006mf-Hh
	for bug-global@gnu.org; Thu, 12 Jun 2003 09:40:37 -0400
Received: from k7.kit.hi-ho.ne.jp (eaosk17-p182.hi-ho.ne.jp [202.224.160.183])
 by sproxy03.hi-ho.ne.jp (hi-ho Mail Server)
 with SMTP id <0HGD007NKFBKHM@sproxy03.hi-ho.ne.jp> for bug-global@gnu.org;
 Thu, 12 Jun 2003 22:40:33 +0900 (JST)
Date: Thu, 12 Jun 2003 22:40:37 +0900
From: Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
To: bug-global@gnu.org
Message-id: <200306121340.AA00622@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] include sys/time.h from gtags.c
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, 12 Jun 2003 13:40:42 -0000

This is for the prototype of utimes.


Index: configure.ac
===================================================================
RCS file: /cvsroot/global/global/configure.ac,v
retrieving revision 1.10
diff -u -r1.10 configure.ac
--- configure.ac	6 Jun 2003 12:53:22 -0000	1.10
+++ configure.ac	12 Jun 2003 13:26:35 -0000
@@ -52,10 +52,11 @@
 dnl Checks for libraries.
 
 dnl Checks for header files.
-AC_CHECK_HEADERS(limits.h string.h unistd.h stdarg.h)
+AC_CHECK_HEADERS(limits.h string.h unistd.h stdarg.h sys/time.h)
 AC_HEADER_DIRENT
 AC_HEADER_STDC
 AC_HEADER_STAT
+AC_HEADER_TIME
 AG_BYTE_ORDER
 
 dnl Checks for typedefs, structures, and compiler characteristics.
Index: gtags/gtags.c
===================================================================
RCS file: /cvsroot/global/global/gtags/gtags.c,v
retrieving revision 1.81
diff -u -r1.81 gtags.c
--- gtags/gtags.c	12 Jun 2003 00:49:58 -0000	1.81
+++ gtags/gtags.c	12 Jun 2003 13:26:36 -0000
@@ -30,7 +30,16 @@
 #include <utime.h>
 #include <signal.h>
 #include <stdio.h>
+#if TIME_WITH_SYS_TIME
+#include <sys/time.h>
 #include <time.h>
+#else
+#if HAVE_SYS_TIME_H
+#include <sys/time.h>
+#else
+#include <time.h>
+#endif
+#endif
 #ifdef STDC_HEADERS
 #include <stdlib.h>
 #endif

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




From MAILER-DAEMON Thu Jun 12 09:50:52 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19QSTZ-0000yG-Ge
	for mharc-bug-global@gnu.org; Thu, 12 Jun 2003 09:50:49 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19QSTK-0000vE-9P
	for bug-global@gnu.org; Thu, 12 Jun 2003 09:50:34 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19QSTJ-0000uR-0H
	for bug-global@gnu.org; Thu, 12 Jun 2003 09:50:33 -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 19QSTI-0000uJ-Bw
	for bug-global@gnu.org; Thu, 12 Jun 2003 09:50:32 -0400
Received: from choota.signet.or.jp ([211.121.58.201]) by t-mta1.odn.ne.jp
          with ESMTP
          id <20030612135030440.THTU.139418.t-mta1.odn.ne.jp@mta1.odn.ne.jp>;
          Thu, 12 Jun 2003 22:50:30 +0900
Received: from choota.signet.or.jp (localhost [127.0.0.1]) by
	choota.signet.or.jp (8.11.3/) with ESMTP id h5CDnBl03797; Thu, 12 Jun 2003
	22:49:11 +0900 (JST)
Message-Id: <200306121349.h5CDnBl03797@tamacom.com>
To: Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
References: <200306121340.AA00622@k7.kit.hi-ho.ne.jp>
In-reply-to: Message from Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
	<200306121340.AA00622@k7.kit.hi-ho.ne.jp>
Date: Thu, 12 Jun 2003 22:49:11 +0900
From: Shigio Yamaguchi <shigio@tamacom.com>
cc: bug-global@gnu.org
Subject: Re: [PATCH] include sys/time.h from gtags.c
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, 12 Jun 2003 13:50:35 -0000

Committed. Thank you.

> This is for the prototype of utimes.
> 
> 
> Index: configure.ac
> ===================================================================
> RCS file: /cvsroot/global/global/configure.ac,v
> retrieving revision 1.10
> diff -u -r1.10 configure.ac
> --- configure.ac	6 Jun 2003 12:53:22 -0000	1.10
> +++ configure.ac	12 Jun 2003 13:26:35 -0000
> @@ -52,10 +52,11 @@
>  dnl Checks for libraries.
>  
>  dnl Checks for header files.
> -AC_CHECK_HEADERS(limits.h string.h unistd.h stdarg.h)
> +AC_CHECK_HEADERS(limits.h string.h unistd.h stdarg.h sys/time.h)
>  AC_HEADER_DIRENT
>  AC_HEADER_STDC
>  AC_HEADER_STAT
> +AC_HEADER_TIME
>  AG_BYTE_ORDER
>  
>  dnl Checks for typedefs, structures, and compiler characteristics.
> Index: gtags/gtags.c
> ===================================================================
> RCS file: /cvsroot/global/global/gtags/gtags.c,v
> retrieving revision 1.81
> diff -u -r1.81 gtags.c
> --- gtags/gtags.c	12 Jun 2003 00:49:58 -0000	1.81
> +++ gtags/gtags.c	12 Jun 2003 13:26:36 -0000
> @@ -30,7 +30,16 @@
>  #include <utime.h>
>  #include <signal.h>
>  #include <stdio.h>
> +#if TIME_WITH_SYS_TIME
> +#include <sys/time.h>
>  #include <time.h>
> +#else
> +#if HAVE_SYS_TIME_H
> +#include <sys/time.h>
> +#else
> +#include <time.h>
> +#endif
> +#endif
>  #ifdef STDC_HEADERS
>  #include <stdlib.h>
>  #endif
> 
> ----
> 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 Thu Jun 12 12:22:41 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19QUc3-0003zQ-Ju
	for mharc-bug-global@gnu.org; Thu, 12 Jun 2003 12:07:43 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19QUc1-0003yO-Fr
	for bug-global@gnu.org; Thu, 12 Jun 2003 12:07:41 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19QUbz-0003y7-R1
	for bug-global@gnu.org; Thu, 12 Jun 2003 12:07:40 -0400
Received: from sproxy03.hi-ho.ne.jp ([202.224.159.198])
	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19QUby-0003xL-TO
	for bug-global@gnu.org; Thu, 12 Jun 2003 12:07:39 -0400
Received: from k7.kit.hi-ho.ne.jp (eaosk17-p182.hi-ho.ne.jp [202.224.160.183])
 by sproxy03.hi-ho.ne.jp (hi-ho Mail Server)
 with SMTP id <0HGD0064PM4NZA@sproxy03.hi-ho.ne.jp> for bug-global@gnu.org;
 Fri, 13 Jun 2003 01:07:36 +0900 (JST)
Date: Fri, 13 Jun 2003 01:07:41 +0900
From: Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
To: bug-global@gnu.org
Message-id: <200306121607.AA00623@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] Some tooltips added
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, 12 Jun 2003 16:07:42 -0000

* Some tooltips added.
* Fix comment.


Index: htags/htags.in
===================================================================
RCS file: /cvsroot/global/global/htags/htags.in,v
retrieving revision 1.151
diff -u -r1.151 htags.in
--- htags/htags.in	11 Jun 2003 14:59:53 -0000	1.151
+++ htags/htags.in	12 Jun 2003 16:00:28 -0000
@@ -321,7 +321,7 @@
 #
 # This is alternative for title string.
 #
-#	i)	type	D, R, Y
+#	i)	type	D, I, R, Y
 #	i)	lno	>0: line number, -1: multi line
 #	i)	opt	lno > 0: file name
 #			lno == -1: entry count
@@ -331,7 +331,9 @@
 	local($msg) = '';
 
 	if ($lno > 0) {
-		if ($type eq 'R') {
+		if ($type eq 'I') {
+			$msg .= 'Included from';
+		} elsif ($type eq 'R') {
 			$msg .= 'Defined at';
 		} elsif ($type eq 'Y') {
 			$msg .= 'Used at';
@@ -344,7 +346,9 @@
 		}
 	} else {
 		$msg .= 'Multiple ';
-		if ($type eq 'R') {
+		if ($type eq 'I') {
+			$msg .= 'included from';
+		} elsif ($type eq 'R') {
 			$msg .= 'defined in';
 		} elsif ($type eq 'Y') {
 			$msg .= 'used in';
@@ -1870,6 +1874,7 @@
 	select($org);
 	foreach $last (keys %includes) {
 		if (!defined $included_from{$last}) {
+			delete $includes{$last};
 			next;
 		}
 		local($no, @incs) = split(/\n/, $includes{$last});
@@ -1898,9 +1903,8 @@
 		}
 		local(@refs) = split(/\n/, $included_from{$last});
 		if (@refs == 1) {
-			local($nouse, $lno, $filename, $image) = split(/\s+/, $refs[0], 4);
-			local($url) = &'path2url($filename);
-			$included_from{$last} = "$url#$lno";
+			local($nouse, $lno, $filename) = split(/\s+/, $refs[0]);
+			$included_from{$last} = "$lno $filename";
 		} else {
 			local($path) = "$dist/$'INCREFS/$no.$'HTML";
 			if ($'cflag) {
@@ -1920,7 +1924,7 @@
 			print INCLUDE $'html_end, "\n";
 			close(INCLUDE);
 			$'file_count++;
-			$included_from{$last} = "../$'INCREFS/$no.$'HTML";
+			$included_from{$last} = " $no " . @refs;
 		}
 	}
 	$count;
@@ -2243,15 +2247,26 @@
 	#
 	else {
 		#
-		# DEFINITIONS index.
+		# INCLUDED FROM index.
 		#
 		local($basename) = ($file =~ /([^\/]+)$/);
-		if (defined $'included_from{$basename}) {
-			print "<H2><A HREF=$'included_from{$basename}>$'title_included_from</A></H2>\n";
+		local($incref) = $'included_from{$basename};
+		if (defined $incref) {
+			local($url, $title);
+			if ($incref =~ /^ (\d+) (\d+)/) {
+				$url = "../$'INCREFS/$1.$'HTML";
+				$title = &'show('I', -1, $2);
+			} else {
+				local($lno, $filename) = split(/\s+/, $incref);
+				$url = &'path2url($filename) . "#$lno";
+				$filename =~ s!\./!!;
+				$title = &'show('I', $lno, $filename);
+			}
+			print "<H2><A HREF=$url TITLE='$title'>$'title_included_from</A></H2>\n";
 			print "$'hr\n";
 		}
 		#
-		# INCLUDED FROM index.
+		# DEFINITIONS index.
 		#
 		local($define_index) = '';
 		local($lno, $tag, $type);

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




From MAILER-DAEMON Thu Jun 12 20:26:24 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19QcOe-0007fN-62
	for mharc-bug-global@gnu.org; Thu, 12 Jun 2003 20:26:24 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19QcOb-0007fB-MG
	for bug-global@gnu.org; Thu, 12 Jun 2003 20:26:21 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19QcOY-0007eM-AO
	for bug-global@gnu.org; Thu, 12 Jun 2003 20:26:20 -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 19QcOX-0007Y8-DR
	for bug-global@gnu.org; Thu, 12 Jun 2003 20:26:17 -0400
Received: from choota.signet.or.jp ([211.121.58.201]) by t-mta1.odn.ne.jp
          with ESMTP
          id <20030613002616028.VFBX.139418.t-mta1.odn.ne.jp@mta1.odn.ne.jp>;
          Fri, 13 Jun 2003 09:26:16 +0900
Received: from choota.signet.or.jp (localhost [127.0.0.1]) by
	choota.signet.or.jp (8.11.3/) with ESMTP id h5D0OuL00390; Fri, 13 Jun 2003
	09:24:56 +0900 (JST)
Message-Id: <200306130024.h5D0OuL00390@tamacom.com>
To: Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
References: <200306121607.AA00623@k7.kit.hi-ho.ne.jp>
In-reply-to: Message from Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
	<200306121607.AA00623@k7.kit.hi-ho.ne.jp>
Date: Fri, 13 Jun 2003 09:24:56 +0900
From: Shigio Yamaguchi <shigio@tamacom.com>
cc: bug-global@gnu.org
Subject: Re: [PATCH] Some tooltips added
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: Fri, 13 Jun 2003 00:26:22 -0000

Committed. Thank you.

> * Some tooltips added.
> * Fix comment.
> 
> 
> Index: htags/htags.in
> ===================================================================
> RCS file: /cvsroot/global/global/htags/htags.in,v
> retrieving revision 1.151
> diff -u -r1.151 htags.in
> --- htags/htags.in	11 Jun 2003 14:59:53 -0000	1.151
> +++ htags/htags.in	12 Jun 2003 16:00:28 -0000
> @@ -321,7 +321,7 @@
>  #
>  # This is alternative for title string.
>  #
> -#	i)	type	D, R, Y
> +#	i)	type	D, I, R, Y
>  #	i)	lno	>0: line number, -1: multi line
>  #	i)	opt	lno > 0: file name
>  #			lno == -1: entry count
> @@ -331,7 +331,9 @@
>  	local($msg) = '';
>  
>  	if ($lno > 0) {
> -		if ($type eq 'R') {
> +		if ($type eq 'I') {
> +			$msg .= 'Included from';
> +		} elsif ($type eq 'R') {
>  			$msg .= 'Defined at';
>  		} elsif ($type eq 'Y') {
>  			$msg .= 'Used at';
> @@ -344,7 +346,9 @@
>  		}
>  	} else {
>  		$msg .= 'Multiple ';
> -		if ($type eq 'R') {
> +		if ($type eq 'I') {
> +			$msg .= 'included from';
> +		} elsif ($type eq 'R') {
>  			$msg .= 'defined in';
>  		} elsif ($type eq 'Y') {
>  			$msg .= 'used in';
> @@ -1870,6 +1874,7 @@
>  	select($org);
>  	foreach $last (keys %includes) {
>  		if (!defined $included_from{$last}) {
> +			delete $includes{$last};
>  			next;
>  		}
>  		local($no, @incs) = split(/\n/, $includes{$last});
> @@ -1898,9 +1903,8 @@
>  		}
>  		local(@refs) = split(/\n/, $included_from{$last});
>  		if (@refs == 1) {
> -			local($nouse, $lno, $filename, $image) = split(/\s+/, $
refs[0], 4);
> -			local($url) = &'path2url($filename);
> -			$included_from{$last} = "$url#$lno";
> +			local($nouse, $lno, $filename) = split(/\s+/, $refs[0])
;
> +			$included_from{$last} = "$lno $filename";
>  		} else {
>  			local($path) = "$dist/$'INCREFS/$no.$'HTML";
>  			if ($'cflag) {
> @@ -1920,7 +1924,7 @@
>  			print INCLUDE $'html_end, "\n";
>  			close(INCLUDE);
>  			$'file_count++;
> -			$included_from{$last} = "../$'INCREFS/$no.$'HTML";
> +			$included_from{$last} = " $no " . @refs;
>  		}
>  	}
>  	$count;
> @@ -2243,15 +2247,26 @@
>  	#
>  	else {
>  		#
> -		# DEFINITIONS index.
> +		# INCLUDED FROM index.
>  		#
>  		local($basename) = ($file =~ /([^\/]+)$/);
> -		if (defined $'included_from{$basename}) {
> -			print "<H2><A HREF=$'included_from{$basename}>$'title_i
ncluded_from</A></H2>\n";
> +		local($incref) = $'included_from{$basename};
> +		if (defined $incref) {
> +			local($url, $title);
> +			if ($incref =~ /^ (\d+) (\d+)/) {
> +				$url = "../$'INCREFS/$1.$'HTML";
> +				$title = &'show('I', -1, $2);
> +			} else {
> +				local($lno, $filename) = split(/\s+/, $incref);
> +				$url = &'path2url($filename) . "#$lno";
> +				$filename =~ s!\./!!;
> +				$title = &'show('I', $lno, $filename);
> +			}
> +			print "<H2><A HREF=$url TITLE='$title'>$'title_included
_from</A></H2>\n";
>  			print "$'hr\n";
>  		}
>  		#
> -		# INCLUDED FROM index.
> +		# DEFINITIONS index.
>  		#
>  		local($define_index) = '';
>  		local($lno, $tag, $type);
> 
> ----
> 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 Sat Jun 14 03:18:39 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19R5J9-0000iD-DG
	for mharc-bug-global@gnu.org; Sat, 14 Jun 2003 03:18:39 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19R5Hg-0000Kc-88
	for bug-global@gnu.org; Sat, 14 Jun 2003 03:17:08 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19R5HS-0008ED-23
	for bug-global@gnu.org; Sat, 14 Jun 2003 03:16:59 -0400
Received: from sproxy03.hi-ho.ne.jp ([202.224.159.198])
	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19R5HJ-0007W0-Lw
	for bug-global@gnu.org; Sat, 14 Jun 2003 03:16:45 -0400
Received: from k7.kit.hi-ho.ne.jp (eaosk17-p182.hi-ho.ne.jp [202.224.160.183])
 by sproxy03.hi-ho.ne.jp (hi-ho Mail Server)
 with SMTP id <0HGG009C6MVRDB@sproxy03.hi-ho.ne.jp> for bug-global@gnu.org;
 Sat, 14 Jun 2003 16:16:40 +0900 (JST)
Date: Sat, 14 Jun 2003 16:16:45 +0900
From: Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
To: bug-global@gnu.org
Message-id: <200306140716.AA00624@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: [BUG REPORT] gtags segmentation fault
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: Sat, 14 Jun 2003 07:18:37 -0000

While gtags processes the source code of linux-2.4.21, segmentation fault occurs.
When global-4.5.2 are used, this does not happen.

--------------+------------------------------
              |     version of global
  source code | 4.5.2     4.5.3    cvs HEAD
--------------+------------------------------
 linux-2.4.20 |   OK        OK        OK
 linux-2.4.21 |   OK        NG        NG
--------------+------------------------------

I am going to investigate in detail from now.

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




From MAILER-DAEMON Sat Jun 14 04:27:28 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19R6Nk-0003Vb-0D
	for mharc-bug-global@gnu.org; Sat, 14 Jun 2003 04:27:28 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19R6Ni-0003VI-1l
	for bug-global@gnu.org; Sat, 14 Jun 2003 04:27:26 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19R6Ng-0003UJ-L0
	for bug-global@gnu.org; Sat, 14 Jun 2003 04:27:25 -0400
Received: from sproxy03.hi-ho.ne.jp ([202.224.159.198])
	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19R6Ng-0003So-7e
	for bug-global@gnu.org; Sat, 14 Jun 2003 04:27:24 -0400
Received: from k7.kit.hi-ho.ne.jp (eaosk17-p182.hi-ho.ne.jp [202.224.160.183])
 by sproxy03.hi-ho.ne.jp (hi-ho Mail Server)
 with SMTP id <0HGG00H9OQ5LNR@sproxy03.hi-ho.ne.jp> for bug-global@gnu.org;
 Sat, 14 Jun 2003 17:27:22 +0900 (JST)
Date: Sat, 14 Jun 2003 17:27:26 +0900
From: Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
In-reply-to: <200306140716.AA00624@k7.kit.hi-ho.ne.jp>
To: bug-global@gnu.org
Message-id: <200306140827.AA00625@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: <200306140716.AA00624@k7.kit.hi-ho.ne.jp>
Subject: Re: [BUG REPORT] gtags segmentation fault
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: Sat, 14 Jun 2003 08:27:26 -0000

On Sat, 14 Jun 2003 16:16:45 +0900, Hideki IWAMOTO wrote...
> While gtags processes the source code of linux-2.4.21, segmentation fault occurs.
> When global-4.5.2 are used, this does not happen.
> 
> --------------+------------------------------
>               |     version of global
>   source code | 4.5.2     4.5.3    cvs HEAD
> --------------+------------------------------
>  linux-2.4.20 |   OK        OK        OK
>  linux-2.4.21 |   OK        NG        NG
> --------------+------------------------------
> 
> I am going to investigate in detail from now.
> 

Though regrettable, since I do not understand the source code of db, I cannot understand what has happened.


(gdb) bt
#0  0x08079493 in memmove ()
#1  0x08053e67 in bt_psplit (t=0x80cf738, h=0x9a53e54, l=0xa13f9f8, r=0xa13e9f4, pskip=0xbfff88b6, ilen=36) at bt_split.c:694
#2  0x080539ec in bt_page (t=0x80cf738, h=0x9a53e54, lp=0xbfff88ac, rp=0xbfff88b0, skip=0xbfff88b6, ilen=169096728) at bt_split.c:428
#3  0x080531ed in __bt_split (t=0x80cf738, sp=0x9a53e54, key=0xbfff8980, data=0xa13e9f4, flags=0, ilen=3955479520, argskip=169096728) at bt_split.c:115
#4  0x0805243a in __bt_put (dbp=0xa143618, key=0xbfff8980, data=0xbfff8978, flags=0) at bt_put.c:214
#5  0x0804c1c9 in dbop_put (dbop=0xa143618, name=0x80d15e1 "card_ids", data=0x87817c0 "card_ids 6819 330", fid=0x80d37e4 "6819") at dbop.c:229
#6  0x0804e937 in gtags_put (gtop=0x80d03b8, tag=0x80cf5b0 "command", record=0x825b518 "command", fid=0xa13155d "6819") at gtagsop.c:407
#7  0x0804ee4e in gtags_add (gtop=0x80d03b8, comline=0x825b518 "command", path=0x80cf5b0 "command", flags=0) at gtagsop.c:531
#8  0x0804a76e in createtags (dbpath=0x0, root=0x0, db=2) at gtags.c:1084
#9  0x08048d88 in main (argc=1, argv=0xbfffddc8) at gtags.c:717
#10 0x0805c90b in __libc_start_main ()

(gdb) up
(gdb) info locals 
c = (CURSOR *) 0xebc3d3e0
rval = (PAGE *) 0xa13d9d4
src = (void *) 0x9a54ad4
full = 4076
half = 2038
nxt = 1
off = 0
skip = 4
top = 77
used = 0
nbytes = 3955479520
bigkeycnt = 0
isbigkey = 0
(gdb) p (char*)h+h->linp[0]
$33 = 0x9a54ad4 "or_ready 4627 102,361"
(gdb) p (BLEAF*)((char*)h+h->linp[0])
$34 = (struct _bleaf *) 0x9a54ad4
(gdb) p *(BLEAF*)((char*)h+h->linp[0])
$35 = {ksize = 1918857839, dsize = 2036621669, flags = 32 ' ', bytes = "4"}

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




From MAILER-DAEMON Sat Jun 14 07:24:11 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19R98V-00059X-NG
	for mharc-bug-global@gnu.org; Sat, 14 Jun 2003 07:23:55 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19R97g-0004g6-Nc
	for bug-global@gnu.org; Sat, 14 Jun 2003 07:23:04 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19R96a-00041N-JF
	for bug-global@gnu.org; Sat, 14 Jun 2003 07:21:57 -0400
Received: from sproxy03.hi-ho.ne.jp ([202.224.159.198])
	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19R95V-0003i8-85
	for bug-global@gnu.org; Sat, 14 Jun 2003 07:20:49 -0400
Received: from k7.kit.hi-ho.ne.jp (eaosk17-p182.hi-ho.ne.jp [202.224.160.183])
 by sproxy03.hi-ho.ne.jp (hi-ho Mail Server)
 with SMTP id <0HGG00FEMY6M32@sproxy03.hi-ho.ne.jp> for bug-global@gnu.org;
 Sat, 14 Jun 2003 20:20:47 +0900 (JST)
Date: Sat, 14 Jun 2003 20:20:52 +0900
From: Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
In-reply-to: <200306140827.AA00625@k7.kit.hi-ho.ne.jp>
To: bug-global@gnu.org
Message-id: <200306141120.AA00628@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: <200306140827.AA00625@k7.kit.hi-ho.ne.jp>
Subject: Re: [BUG REPORT] gtags segmentation fault
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: Sat, 14 Jun 2003 11:23:49 -0000

On Sat, 14 Jun 2003 17:27:26 +0900, Hideki IWAMOTO wrote...
> On Sat, 14 Jun 2003 16:16:45 +0900, Hideki IWAMOTO wrote...
> > While gtags processes the source code of linux-2.4.21, segmentation fault occurs.
> > When global-4.5.2 are used, this does not happen.
> > 
> > --------------+------------------------------
> >               |     version of global
> >   source code | 4.5.2     4.5.3    cvs HEAD
> > --------------+------------------------------
> >  linux-2.4.20 |   OK        OK        OK
> >  linux-2.4.21 |   OK        NG        NG
> > --------------+------------------------------
> > 
> > I am going to investigate in detail from now.
> > 
> 
> Though regrettable, since I do not understand the source code of db, I cannot understand what has happened.

This is another information.

It is dependent on GTAGSCACHE whether it happens or not.
------------+---------------------
 GTAGSCACHE | result
------------+---------------------
   10000000 | no problem
   20000000 | no problem
   21000000 | no problem
   23000000 | segmentation fault
   25000000 | segmentation fault
   30000000 | segmentation fault
   50000000 | segmentation fault
  100000000 | segmentation fault
------------+---------------------

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




From MAILER-DAEMON Sat Jun 14 13:23:52 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19REjt-0001sY-02
	for mharc-bug-global@gnu.org; Sat, 14 Jun 2003 13:22:53 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19REjl-0001i2-DJ
	for bug-global@gnu.org; Sat, 14 Jun 2003 13:22:45 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19REjZ-0001HH-Ob
	for bug-global@gnu.org; Sat, 14 Jun 2003 13:22:36 -0400
Received: from sproxy03.hi-ho.ne.jp ([202.224.159.198])
	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19REjU-00011d-H7
	for bug-global@gnu.org; Sat, 14 Jun 2003 13:22:28 -0400
Received: from k7.kit.hi-ho.ne.jp (eaosk17-p182.hi-ho.ne.jp [202.224.160.183])
 by sproxy03.hi-ho.ne.jp (hi-ho Mail Server)
 with SMTP id <0HGH009E7EX22T@sproxy03.hi-ho.ne.jp> for bug-global@gnu.org;
 Sun, 15 Jun 2003 02:22:14 +0900 (JST)
Date: Sun, 15 Jun 2003 02:22:22 +0900
From: Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
In-reply-to: <200306141120.AA00628@k7.kit.hi-ho.ne.jp>
To: bug-global@gnu.org
Message-id: <200306141722.AA00629@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: <200306141120.AA00628@k7.kit.hi-ho.ne.jp>
Subject: Re: [BUG REPORT] gtags segmentation fault
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: Sat, 14 Jun 2003 17:22:51 -0000

On Sat, 14 Jun 2003 20:20:52 +0900, Hideki IWAMOTO wrote...
> On Sat, 14 Jun 2003 17:27:26 +0900, Hideki IWAMOTO wrote...
> > On Sat, 14 Jun 2003 16:16:45 +0900, Hideki IWAMOTO wrote...
> > > While gtags processes the source code of linux-2.4.21, segmentation fault occurs.
> > > When global-4.5.2 are used, this does not happen.
> > > 
> > > --------------+------------------------------
> > >               |     version of global
> > >   source code | 4.5.2     4.5.3    cvs HEAD
> > > --------------+------------------------------
> > >  linux-2.4.20 |   OK        OK        OK
> > >  linux-2.4.21 |   OK        NG        NG
> > > --------------+------------------------------
> > > 
> > > I am going to investigate in detail from now.
> > > 
> > 
> > Though regrettable, since I do not understand the source code of db, I cannot understand what has happened.
> 
> This is another information.
> 
> It is dependent on GTAGSCACHE whether it happens or not.

I investigated at the time of when this problem would come to occur.
It does not occur as of April 16, but happens on April 20.
Only gctags is changed in the meantime and gtags is not changed.

----------------------+--------
 date                 | result
----------------------+--------
 2003-04-01 00:00 JST | OK
 2003-04-15 00:00 JST | OK
 2003-04-16 10:00 JST | OK
 2003-04-20 00:00 JST | NG
 2003-05-01 00:00 JST | NG
----------------------+--------

Next, I used it combining gctags and gtags from which the date differs.
It seems that a cause is in change of gctags.

-----------------------+--------
 gctags     gtags      | result
-----------------------+--------
 2003-04-16 2003-04-16 | OK
 2003-04-20 2003-04-16 | NG
 2003-04-16 2003-04-20 | OK
 2003-04-20 2003-04-20 | NG
-----------------------+--------

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




From MAILER-DAEMON Sat Jun 14 21:18:51 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19RMAP-0003kJ-Bw
	for mharc-bug-global@gnu.org; Sat, 14 Jun 2003 21:18:45 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19RMA2-0002zL-OD
	for bug-global@gnu.org; Sat, 14 Jun 2003 21:18:22 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19RM9q-0002OI-Id
	for bug-global@gnu.org; Sat, 14 Jun 2003 21:18:12 -0400
Received: from mfep2.odn.ne.jp ([143.90.131.180] helo=t-mta2.odn.ne.jp)
	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19RM9o-0000Hp-FE
	for bug-global@gnu.org; Sat, 14 Jun 2003 21:18:08 -0400
Received: from choota.signet.or.jp ([211.121.58.201]) by t-mta2.odn.ne.jp
          with ESMTP
          id <20030615011739615.ZUNX.282310.t-mta2.odn.ne.jp@mta2.odn.ne.jp>;
          Sun, 15 Jun 2003 10:17:39 +0900
Received: from choota.signet.or.jp (localhost [127.0.0.1]) by
	choota.signet.or.jp (8.11.3/) with ESMTP id h5F1GGT73464; Sun, 15 Jun 2003
	10:16:16 +0900 (JST)
Message-Id: <200306150116.h5F1GGT73464@tamacom.com>
To: Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
References: <200306140827.AA00625@k7.kit.hi-ho.ne.jp>
In-reply-to: Message from Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
	<200306140827.AA00625@k7.kit.hi-ho.ne.jp>
Date: Sun, 15 Jun 2003 10:16:16 +0900
From: Shigio Yamaguchi <shigio@tamacom.com>
cc: bug-global@gnu.org
Subject: Re: [BUG REPORT] gtags segmentation fault
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, 15 Jun 2003 01:18:43 -0000

Hi,
I cannot reproduce the trouble in my environment.

Operating System:
	FreeBSD 4.3-RELEASE
GLOBAL version:
	Current CVS version.
Target source code:
	linux-2.4.21
GTAGSCACHE value:
	25000000 and 50000000

Gtags ended normally in above test.

Does gtags always abort at the same point?

> On Sat, 14 Jun 2003 16:16:45 +0900, Hideki IWAMOTO wrote...
...
> (gdb) bt
> #0  0x08079493 in memmove ()
> #1  0x08053e67 in bt_psplit (t=0x80cf738, h=0x9a53e54, l=0xa13f9f8, r=0xa13e9
f4, pskip=0xbfff88b6, ilen=36) at bt_split.c:694
> #2  0x080539ec in bt_page (t=0x80cf738, h=0x9a53e54, lp=0xbfff88ac, rp=0xbfff
88b0, skip=0xbfff88b6, ilen=169096728) at bt_split.c:428
> #3  0x080531ed in __bt_split (t=0x80cf738, sp=0x9a53e54, key=0xbfff8980, data
=0xa13e9f4, flags=0, ilen=3955479520, argskip=169096728) at bt_split.c:115
> #4  0x0805243a in __bt_put (dbp=0xa143618, key=0xbfff8980, data=0xbfff8978, f
lags=0) at bt_put.c:214
> #5  0x0804c1c9 in dbop_put (dbop=0xa143618, name=0x80d15e1 "card_ids", data=0
x87817c0 "card_ids 6819 330", fid=0x80d37e4 "6819") at dbop.c:229
> #6  0x0804e937 in gtags_put (gtop=0x80d03b8, tag=0x80cf5b0 "command", record=
0x825b518 "command", fid=0xa13155d "6819") at gtagsop.c:407
> #7  0x0804ee4e in gtags_add (gtop=0x80d03b8, comline=0x825b518 "command", pat
h=0x80cf5b0 "command", flags=0) at gtagsop.c:531
> #8  0x0804a76e in createtags (dbpath=0x0, root=0x0, db=2) at gtags.c:1084
> #9  0x08048d88 in main (argc=1, argv=0xbfffddc8) at gtags.c:717
> #10 0x0805c90b in __libc_start_main ()
--
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 Jun 15 02:50:03 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19RRL0-0002Cl-R0
	for mharc-bug-global@gnu.org; Sun, 15 Jun 2003 02:50:02 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19RRKy-00029O-BB
	for bug-global@gnu.org; Sun, 15 Jun 2003 02:50:00 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19RRKw-00025h-Eq
	for bug-global@gnu.org; Sun, 15 Jun 2003 02:49:58 -0400
Received: from sproxy03.hi-ho.ne.jp ([202.224.159.198])
	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19RRKv-00024y-PN
	for bug-global@gnu.org; Sun, 15 Jun 2003 02:49:57 -0400
Received: from k7.kit.hi-ho.ne.jp (eaosk17-p182.hi-ho.ne.jp [202.224.160.183])
 by sproxy03.hi-ho.ne.jp (hi-ho Mail Server)
 with SMTP id <0HGI0013BGB6L6@sproxy03.hi-ho.ne.jp> for bug-global@gnu.org;
 Sun, 15 Jun 2003 15:49:55 +0900 (JST)
Date: Sun, 15 Jun 2003 15:49:58 +0900
From: Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
In-reply-to: <200306150116.h5F1GGT73464@tamacom.com>
To: Shigio Yamaguchi <shigio@tamacom.com>
Message-id: <200306150649.AA00630@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: <200306150116.h5F1GGT73464@tamacom.com>
cc: bug-global@gnu.org
Subject: Re: [BUG REPORT] gtags segmentation fault
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, 15 Jun 2003 06:50:00 -0000

On Sun, 15 Jun 2003 10:16:16 +0900, Shigio Yamaguchi wrote...
> Hi,
> I cannot reproduce the trouble in my environment.
> 
> Operating System:
> 	FreeBSD 4.3-RELEASE
> GLOBAL version:
> 	Current CVS version.
> Target source code:
> 	linux-2.4.21
> GTAGSCACHE value:
> 	25000000 and 50000000
> 
> Gtags ended normally in above test.
> 

I am using compact tag format.
I am going to investigate about pathindex format and standard format.

> Does gtags always abort at the same point?

Yes.

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




From MAILER-DAEMON Sun Jun 15 05:13:33 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19RTZs-0007zc-Dq
	for mharc-bug-global@gnu.org; Sun, 15 Jun 2003 05:13:32 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19RTZp-0007sQ-QB
	for bug-global@gnu.org; Sun, 15 Jun 2003 05:13:29 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19RTZo-0007pE-46
	for bug-global@gnu.org; Sun, 15 Jun 2003 05:13:28 -0400
Received: from sproxy03.hi-ho.ne.jp ([202.224.159.198])
	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19RTZn-0007ko-CX
	for bug-global@gnu.org; Sun, 15 Jun 2003 05:13:27 -0400
Received: from k7.kit.hi-ho.ne.jp (eaosk17-p182.hi-ho.ne.jp [202.224.160.183])
 by sproxy03.hi-ho.ne.jp (hi-ho Mail Server)
 with SMTP id <0HGI00HIVMYAM7@sproxy03.hi-ho.ne.jp> for bug-global@gnu.org;
 Sun, 15 Jun 2003 18:13:23 +0900 (JST)
Date: Sun, 15 Jun 2003 18:13:27 +0900
From: Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
In-reply-to: <200306150649.AA00630@k7.kit.hi-ho.ne.jp>
To: Shigio Yamaguchi <shigio@tamacom.com>
Message-id: <200306150913.AA00631@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: <200306150649.AA00630@k7.kit.hi-ho.ne.jp>
cc: bug-global@gnu.org
Subject: Re: [BUG REPORT] gtags segmentation fault
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, 15 Jun 2003 09:13:30 -0000

On Sun, 15 Jun 2003 15:49:58 +0900, Hideki IWAMOTO wrote...
> On Sun, 15 Jun 2003 10:16:16 +0900, Shigio Yamaguchi wrote...
> > Hi,
> > I cannot reproduce the trouble in my environment.
> > 
> > Operating System:
> > 	FreeBSD 4.3-RELEASE
> > GLOBAL version:
> > 	Current CVS version.
> > Target source code:
> > 	linux-2.4.21
> > GTAGSCACHE value:
> > 	25000000 and 50000000
> > 
> > Gtags ended normally in above test.
> > 
> 
> I am using compact tag format.
> I am going to investigate about pathindex format and standard format.
> 

It seems that this happens only when a compact format is used.

------------+-------------------------------
 GTAGSCACHE | standard  pathindex  compact
------------+-------------------------------
   10000000 |                        OK
   20000000 |                        OK
   21000000 |                        OK
   23000000 |                        NG
   25000000 |                        NG
   30000000 |                        NG
   50000000 |    OK                  NG
  100000000 |    OK                  NG
  200000000 |    OK       OK         NG
  300000000 |    OK       OK
------------+-------------------------------

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




From MAILER-DAEMON Sun Jun 15 06:23:23 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19RUfN-0004ZV-Iw
	for mharc-bug-global@gnu.org; Sun, 15 Jun 2003 06:23:17 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19RUf8-0004QA-Pa
	for bug-global@gnu.org; Sun, 15 Jun 2003 06:23:02 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19RUew-00046G-OQ
	for bug-global@gnu.org; Sun, 15 Jun 2003 06:22:51 -0400
Received: from sproxy03.hi-ho.ne.jp ([202.224.159.198])
	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19RUdQ-0003Dg-W3
	for bug-global@gnu.org; Sun, 15 Jun 2003 06:21:17 -0400
Received: from k7.kit.hi-ho.ne.jp (eaosk17-p182.hi-ho.ne.jp [202.224.160.183])
 by sproxy03.hi-ho.ne.jp (hi-ho Mail Server)
 with SMTP id <0HGI001IKQ3EMQ@sproxy03.hi-ho.ne.jp> for bug-global@gnu.org;
 Sun, 15 Jun 2003 19:21:15 +0900 (JST)
Date: Sun, 15 Jun 2003 19:21:19 +0900
From: Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
In-reply-to: <200306150649.AA00630@k7.kit.hi-ho.ne.jp>
To: Shigio Yamaguchi <shigio@tamacom.com>
Message-id: <200306151021.AA00632@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: <200306150649.AA00630@k7.kit.hi-ho.ne.jp>
cc: bug-global@gnu.org
Subject: Re: [BUG REPORT] gtags segmentation fault
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, 15 Jun 2003 10:23:16 -0000

On Sun, 15 Jun 2003 15:49:58 +0900, Hideki IWAMOTO wrote...
> 
> > Does gtags always abort at the same point?
> 
> Yes.

When DEBUG was defined, the place which gtags aborts changed.


CFLAGS='-g -Wall -O2'
(gdb) bt
#0  0x08079493 in memmove ()
#1  0x08053e67 in bt_psplit (t=0x80cf738, h=0x9a5408c, l=0xa13fc30, r=0xa13ec2c, pskip=0xbfff8fd6, ilen=36) at bt_split.c:694
#2  0x080539ec in bt_page (t=0x80cf738, h=0x9a5408c, lp=0xbfff8fcc, rp=0xbfff8fd0, skip=0xbfff8fd6, ilen=169097296) at bt_split.c:428
#3  0x080531ed in __bt_split (t=0x80cf738, sp=0x9a5408c, key=0xbfff90a0, data=0xa13ec2c, flags=0, ilen=3955479520, argskip=169097296) at 
bt_split.c:115
#4  0x0805243a in __bt_put (dbp=0xa143850, key=0xbfff90a0, data=0xbfff9098, flags=0) at bt_put.c:214
#5  0x0804c1c9 in dbop_put (dbop=0xa143850, name=0x80d16c1 "card_ids", data=0x87819f8 "card_ids 6819 330", fid=0x80d38c4 "6819") at dbop.c:229
#6  0x0804e937 in gtags_put (gtop=0x80d0498, tag=0x80cfbb0 "command", record=0x825b750 "command", fid=0xa131795 "6819") at gtagsop.c:407
#7  0x0804ee4e in gtags_add (gtop=0x80d0498, comline=0x825b750 "command", path=0x80cfbb0 "command", flags=65536) at gtagsop.c:531
#8  0x0804a76e in createtags (dbpath=0x0, root=0x10000 <Address 0x10000 out of bounds>, db=2) at gtags.c:1084
#9  0x08048d88 in main (argc=1, argv=0xbfffe4f0) at gtags.c:717
#10 0x0805c90b in __libc_start_main ()

CFLAGS='-g -Wall -O2 -DDEBUG'
(gdb) bt
#0  __bt_split (t=0x80d4898, sp=0x9a500cc, key=0xbfff8fa0, data=0xbfff8f98, flags=0, ilen=135088332, argskip=161911275) at bt_split.c:196
#1  0x0805272a in __bt_put (dbp=0x9a691eb, key=0xbfff8fa0, data=0xbfff8f98, flags=0) at bt_put.c:214
#2  0x0804c1c9 in dbop_put (dbop=0x9a691eb, name=0x80d6821 "card", 
    data=0x8786b58 "card 5978 
345,353,490,492,493,498,500,501,506,508,509,514,555,557,561,568,572,577,598,607,618,645,654,661,665,680,682,723,725,771,773,775,812,812,815,817,8
19,820,820,822,822,823,823,828,828,831,833,84"..., fid=0x80d8a24 "5978") at dbop.c:229
#3  0x0804ea77 in gtags_put (gtop=0x80d55f8, tag=0x80d4d10 "chan", record=0x8459ed8 "chan", fid=0x9a26b86 "5978") at gtagsop.c:407
#4  0x0804ef97 in gtags_add (gtop=0x80d55f8, comline=0x8459ed8 "chan", path=0x80d4d10 "chan", flags=0) at gtagsop.c:531
#5  0x0804a76e in createtags (dbpath=0x0, root=0x0, db=2) at gtags.c:1084
#6  0x08048d88 in main (argc=1, argv=0xbfffe3ec) at gtags.c:717
#7  0x0805fa1b in __libc_start_main ()

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




From MAILER-DAEMON Sun Jun 15 08:48:21 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19RWvk-000573-Pw
	for mharc-bug-global@gnu.org; Sun, 15 Jun 2003 08:48:20 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19RWvi-000563-7O
	for bug-global@gnu.org; Sun, 15 Jun 2003 08:48:18 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19RWvg-00052N-J5
	for bug-global@gnu.org; Sun, 15 Jun 2003 08:48:17 -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 19RWvf-0004yv-TS
	for bug-global@gnu.org; Sun, 15 Jun 2003 08:48:16 -0400
Received: from choota.signet.or.jp ([211.121.58.201]) by t-mta1.odn.ne.jp
          with ESMTP
          id <20030615124813580.GWNS.139418.t-mta1.odn.ne.jp@mta1.odn.ne.jp>;
          Sun, 15 Jun 2003 21:48:13 +0900
Received: from choota.signet.or.jp (localhost [127.0.0.1]) by
	choota.signet.or.jp (8.11.3/) with ESMTP id h5FCko842158; Sun, 15 Jun 2003
	21:46:50 +0900 (JST)
Message-Id: <200306151246.h5FCko842158@tamacom.com>
To: Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
References: <200306150913.AA00631@k7.kit.hi-ho.ne.jp>
In-reply-to: Message from Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
	<200306150913.AA00631@k7.kit.hi-ho.ne.jp>
Date: Sun, 15 Jun 2003 21:46:49 +0900
From: Shigio Yamaguchi <shigio@tamacom.com>
cc: bug-global@gnu.org
Subject: Re: [BUG REPORT] gtags segmentation fault
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, 15 Jun 2003 12:48:18 -0000

> On Sun, 15 Jun 2003 15:49:58 +0900, Hideki IWAMOTO wrote...
> > > Operating System:
> > > 	FreeBSD 4.3-RELEASE
> > > GLOBAL version:
> > > 	Current CVS version.
> > > Target source code:
> > > 	linux-2.4.21
> > > GTAGSCACHE value:
> > > 	25000000 and 50000000
...
> It seems that this happens only when a compact format is used.

Tag Format:
	Compact format (gtags -c)

Gtags also ended normally with compact format in my environment.
--
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 Jun 15 20:32:22 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19RhtY-0000t3-SK
	for mharc-bug-global@gnu.org; Sun, 15 Jun 2003 20:30:48 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19Ra9Y-0004Ts-Pd
	for bug-global@gnu.org; Sun, 15 Jun 2003 12:14:48 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19Ra9W-0004Sr-VB
	for bug-global@gnu.org; Sun, 15 Jun 2003 12:14:47 -0400
Received: from ns.webtt.biz ([64.239.29.225])
	by monty-python.gnu.org with smtp (Exim 4.20)
	id 19Ra9W-0004Ru-Kx
	for bug-global@gnu.org; Sun, 15 Jun 2003 12:14:46 -0400
Received: (qmail 81062 invoked from network); 15 Jun 2003 16:17:06 -0000
Received: from unknown (HELO ?217.129.148.143?)
	(rui@ruilopes.com@217.129.148.143)
	by ns.webtt.biz with SMTP; 15 Jun 2003 16:17:06 -0000
From: Rui Lopes <rui@ruilopes.com>
To: bug-global@gnu.org
Content-Type: multipart/mixed; boundary="=-0NqlIonef3Mv9B9FwLVP"
Message-Id: <1055693682.685.120.camel@localhost>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.4.0 
Date: 15 Jun 2003 17:14:42 +0100
X-Mailman-Approved-At: Sun, 15 Jun 2003 20:30:47 -0400
Subject: global 4.5.3 compilation error on FreeBSD and possible patch
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, 15 Jun 2003 16:14:49 -0000


--=-0NqlIonef3Mv9B9FwLVP
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hi all,

global 4.5.3 does not build on FreeBSD.  The error is:


Making all in libutil
. . .
source='vfind.c' object='vfind.o' libtool=no  depfile='.deps/vfind.Po'
tmpdepfile='.deps/vfind.TPo'  depmode=gcc3 /bin/sh ../depcomp  cc
-DHAVE_CONFIG_H -I. -I. -I.. -I../libutil -I../libdb -I../libglibc   
-DBINDIR='"/usr/local/bin"' -O -pipe -march=athlon-xp -c `test -f
'vfind.c' || echo './'`vfind.c
In file included from strbuf.h:27,
                 from dbop.h:31,
                 from gpathop.h:27,
                 from vfind.c:29:
/usr/include/string.h:67: conflicting types for `bcopy'
/usr/include/strings.h:42: previous declaration of `bcopy'
*** Error code 1
. . .

 
libdb/compat.h has

#if defined(BSD) || defined(BSD4_3)
#define strchr(a, b)            index(a, b)
#define strrchr(a, b)           rindex(a, b)
#define memcmp(a, b, n)         bcmp(a, b, n)
#define memmove(a, b, n)        bcopy(b, a, n)
#endif


/usr/include/string.h:67 has
    void    *memmove(void *, const void *, size_t);

/usr/include/strings.h:42 has
    void     bcopy(const void *, void *, size_t);           /* LEGACY */


(Free|Net|Open)BSD all have that functions in string.h.  A possible
patch is attached.

Maybe it's better to add autoconf HAVE_XXX macros.



Regards,
Rui Lopes

--=-0NqlIonef3Mv9B9FwLVP
Content-Disposition: attachment; filename=compat.h.patch
Content-Type: text/plain; name=compat.h.patch; charset=
Content-Transfer-Encoding: 7bit

--- compat.h.orig	Sun Jun 15 16:59:27 2003
+++ compat.h	Sun Jun 15 17:03:10 2003
@@ -91,7 +91,8 @@
 #define	bcopy(a, b, n)		memmove(b, a, n)
 #endif
 
-#if defined(BSD) || defined(BSD4_3)
+#if !(defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)) \
+	&& (defined(BSD) || defined(BSD4_3))
 #define	strchr(a, b)		index(a, b)
 #define	strrchr(a, b)		rindex(a, b)
 #define	memcmp(a, b, n)		bcmp(a, b, n)

--=-0NqlIonef3Mv9B9FwLVP--




From MAILER-DAEMON Sun Jun 15 22:06:39 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19RjOH-0001mR-Iz
	for mharc-bug-global@gnu.org; Sun, 15 Jun 2003 22:06:37 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19RjLA-0007gg-GA
	for bug-global@gnu.org; Sun, 15 Jun 2003 22:03:24 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19RjKu-0007A1-RL
	for bug-global@gnu.org; Sun, 15 Jun 2003 22:03:12 -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 19RjKk-0005BO-GM
	for bug-global@gnu.org; Sun, 15 Jun 2003 22:02:58 -0400
Received: from choota.signet.or.jp ([211.121.58.201]) by t-mta1.odn.ne.jp
          with ESMTP
          id <20030616020229963.JVKD.139418.t-mta1.odn.ne.jp@mta1.odn.ne.jp>;
          Mon, 16 Jun 2003 11:02:29 +0900
Received: from choota.signet.or.jp (localhost [127.0.0.1]) by
	choota.signet.or.jp (8.11.3/) with ESMTP id h5G216854506; Mon, 16 Jun 2003
	11:01:06 +0900 (JST)
Message-Id: <200306160201.h5G216854506@tamacom.com>
To: Rui Lopes <rui@ruilopes.com>
References: <1055693682.685.120.camel@localhost>
In-reply-to: Message from Rui Lopes <rui@ruilopes.com>
  of "15 Jun 2003 17:14:42 +0100." <1055693682.685.120.camel@localhost>
Date: Mon, 16 Jun 2003 11:01:06 +0900
From: Shigio Yamaguchi <shigio@tamacom.com>
cc: bug-global@gnu.org
Subject: Re: global 4.5.3 compilation error on FreeBSD and possible patch
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, 16 Jun 2003 02:06:35 -0000

Hi,
> global 4.5.3 does not build on FreeBSD.  The error is:
...
> Maybe it's better to add autoconf HAVE_XXX macros.

According to your advice, I rewrote these definitions using HAVE_XXX macros.
Since FreeBSD has all the functions, these definitions will be ignored.

Thank you!

Index: configure.ac
===================================================================
RCS file: /cvsroot/global/global/configure.ac,v
retrieving revision 1.12
diff -c -r1.12 configure.ac
*** configure.ac	14 Jun 2003 06:17:03 -0000	1.12
--- configure.ac	16 Jun 2003 01:45:32 -0000
***************
*** 96,101 ****
--- 96,102 ----
  AC_TYPE_SIGNAL
  AC_FUNC_STRFTIME
  AC_CHECK_FUNCS(getcwd putenv strdup lstat snprintf utimes)
+ AC_CHECK_FUNCS(index rindex bzero bcmp bcopy strchr strrchr memset memcmp memmove)
  AG_DJGPP
  
  INCLUDES='-I$(top_srcdir)/libutil -I$(top_srcdir)/libdb -I$(top_srcdir)/libglibc'
Index: libdb/compat.h
===================================================================
RCS file: /cvsroot/global/global/libdb/compat.h,v
retrieving revision 1.2
diff -c -r1.2 compat.h
*** libdb/compat.h	30 Nov 2001 04:09:41 -0000	1.2
--- libdb/compat.h	16 Jun 2003 01:45:32 -0000
***************
*** 83,100 ****
  #endif
  #endif
  
! #if defined(SYSV) || defined(SYSTEM5)
  #define	index(a, b)		strchr(a, b)
  #define	rindex(a, b)		strrchr(a, b)
  #define	bzero(a, b)		memset(a, 0, b)
  #define	bcmp(a, b, n)		memcmp(a, b, n)
  #define	bcopy(a, b, n)		memmove(b, a, n)
  #endif
  
! #if defined(BSD) || defined(BSD4_3)
  #define	strchr(a, b)		index(a, b)
  #define	strrchr(a, b)		rindex(a, b)
  #define	memcmp(a, b, n)		bcmp(a, b, n)
  #define	memmove(a, b, n)	bcopy(b, a, n)
  #endif
  
--- 83,132 ----
  #endif
  #endif
  
! /*
!  * Old definitions were rewritten using 'HAVE_XXX' macros.
!  *
!  * #if defined(SYSV) || defined(SYSTEM5)
!  * #define	index(a, b)		strchr(a, b)
!  * #define	rindex(a, b)		strrchr(a, b)
!  * #define	bzero(a, b)		memset(a, 0, b)
!  * #define	bcmp(a, b, n)		memcmp(a, b, n)
!  * #define	bcopy(a, b, n)		memmove(b, a, n)
!  * #endif
!  * 
!  * #if defined(BSD) || defined(BSD4_3)
!  * #define	strchr(a, b)		index(a, b)
!  * #define	strrchr(a, b)		rindex(a, b)
!  * #define	memcmp(a, b, n)		bcmp(a, b, n)
!  * #define	memmove(a, b, n)	bcopy(b, a, n)
!  * #endif
! */
! #if !defined (HAVE_INDEX) && defined (HAVE_STRCHR)
  #define	index(a, b)		strchr(a, b)
+ #endif
+ #if !defined (HAVE_RINDEX) && defined (HAVE_STRRCHR)
  #define	rindex(a, b)		strrchr(a, b)
+ #endif
+ #if !defined (HAVE_BZERO) && defined (HAVE_MEMSET)
  #define	bzero(a, b)		memset(a, 0, b)
+ #endif
+ #if !defined (HAVE_BCMP) && defined (HAVE_MEMCMP)
  #define	bcmp(a, b, n)		memcmp(a, b, n)
+ #endif
+ #if !defined (HAVE_BCOPY) && defined (HAVE_MEMMOVE)
  #define	bcopy(a, b, n)		memmove(b, a, n)
  #endif
  
! #if !defined (HAVE_STRCHR) && defined (HAVE_INDEX)
  #define	strchr(a, b)		index(a, b)
+ #endif
+ #if !defined (HAVE_STRRCHR) && defined (HAVE_RINDEX)
  #define	strrchr(a, b)		rindex(a, b)
+ #endif
+ #if !defined (HAVE_MEMCMP) && defined (HAVE_BCMP)
  #define	memcmp(a, b, n)		bcmp(a, b, n)
+ #endif
+ #if !defined (HAVE_MEMMOVE) && defined (HAVE_BCOPY)
  #define	memmove(a, b, n)	bcopy(b, a, n)
  #endif
  
--
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 Jun 16 09:01:07 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19Rtae-0002fR-Ho
	for mharc-bug-global@gnu.org; Mon, 16 Jun 2003 09:00:04 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19RtZi-0002DA-W3
	for bug-global@gnu.org; Mon, 16 Jun 2003 08:59:06 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19RtZh-0002CK-22
	for bug-global@gnu.org; Mon, 16 Jun 2003 08:59:05 -0400
Received: from sproxy03.hi-ho.ne.jp ([202.224.159.198])
	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19RtZ7-0001y8-5j
	for bug-global@gnu.org; Mon, 16 Jun 2003 08:58:29 -0400
Received: from k7.kit.hi-ho.ne.jp (eaosk17-p182.hi-ho.ne.jp [202.224.160.183])
 by sproxy03.hi-ho.ne.jp (hi-ho Mail Server)
 with SMTP id <0HGK00GCBS1ADT@sproxy03.hi-ho.ne.jp> for bug-global@gnu.org;
 Mon, 16 Jun 2003 21:58:24 +0900 (JST)
Date: Mon, 16 Jun 2003 21:58:26 +0900
From: Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
In-reply-to: <200306150116.h5F1GGT73464@tamacom.com>
To: Shigio Yamaguchi <shigio@tamacom.com>
Message-id: <200306161258.AA00633@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: <200306150116.h5F1GGT73464@tamacom.com>
cc: bug-global@gnu.org
Subject: Re: [BUG REPORT] gtags segmentation fault
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, 16 Jun 2003 13:00:02 -0000

On Sun, 15 Jun 2003 10:16:16 +0900, Shigio Yamaguchi wrote...
> Hi,
> I cannot reproduce the trouble in my environment.
> 
> Operating System:
> 	FreeBSD 4.3-RELEASE

I reported the result on Redhat9 till yesterday. 
When I tried on Redhat7.2 today, gtags aborted in the same place.

Would you try within the Linux compatible mode on FreeBSD?

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




From MAILER-DAEMON Wed Jun 18 10:35:31 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19Se1k-0005MS-4Z
	for mharc-bug-global@gnu.org; Wed, 18 Jun 2003 10:35:08 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19Se1I-00041s-5s
	for bug-global@gnu.org; Wed, 18 Jun 2003 10:34:40 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19Se0z-0003Wq-F0
	for bug-global@gnu.org; Wed, 18 Jun 2003 10:34:23 -0400
Received: from sproxy03.hi-ho.ne.jp ([202.224.159.198])
	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19Se0u-0003Jt-GM
	for bug-global@gnu.org; Wed, 18 Jun 2003 10:34:16 -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 <0HGO001MELSY8N@sproxy03.hi-ho.ne.jp> for bug-global@gnu.org;
 Wed, 18 Jun 2003 23:34:11 +0900 (JST)
Date: Wed, 18 Jun 2003 23:34:14 +0900
From: Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
In-reply-to: <200306161258.AA00633@k7.kit.hi-ho.ne.jp>
To: shigio@tamacom.com
Message-id: <200306181434.AA00636@k7.kit.hi-ho.ne.jp>
MIME-version: 1.0
X-Mailer: AL-Mail32 Version 1.13
Content-type: text/plain; charset=iso-2022-jp
References: <200306161258.AA00633@k7.kit.hi-ho.ne.jp>
cc: bug-global@gnu.org
Subject: Re: [BUG REPORT] gtags segmentation fault
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, 18 Jun 2003 14:35:05 -0000

On Mon, 16 Jun 2003 21:58:26 +0900, Hideki IWAMOTO wrote...
> On Sun, 15 Jun 2003 10:16:16 +0900, Shigio Yamaguchi wrote...
> > Hi,
> > I cannot reproduce the trouble in my environment.
> > 
> > Operating System:
> > 	FreeBSD 4.3-RELEASE
> 
> I reported the result on Redhat9 till yesterday. 
> When I tried on Redhat7.2 today, gtags aborted in the same place.
> 
This is another information.

It seems that this is not dependent on the optimization level of compiler.

Redhat 7.2
------------+-----------------------
gcc version |   -O0    -O1    -O2
------------+-----------------------
   2.96     |    NG     NG     NG
   3.3      |    NG     NG     NG
------------+-----------------------

Redhat 9
------------+-----------------------
gcc version |   -O0    -O1    -O2
------------+-----------------------
   3.2.2    |    NG     NG     NG
   3.3      |    NG     NG     NG
------------+-----------------------

Conditions:  
  .globalrc
     format=compact
  environment
     GTAGSCACHE=50000000
  CFLAGS
     -DPURIFY is always specified.
  Target source code:
     linux-2.4.21


Backtrace:

Redhat 7.2, gcc-2.96, -O0
(gdb) bt
#0  0x080565b0 in __bt_split (t=0x80717d8, sp=0x99eab94, key=0xbfffa9f8, data=0xbfffa9f0, flags=0, ilen=2036, argskip=0) at bt_split.c:196
#1  0x08055326 in __bt_put (dbp=0x8071a00, key=0xbfffa9f8, data=0xbfffa9f0, flags=0) at bt_put.c:214
#2  0x0804e043 in dbop_put (dbop=0x8073e98, name=0x806f575 "card", 
    data=0x8720600 "card 5978 
345,353,490,492,493,498,500,501,506,508,509,514,555,557,561,568,572,577,598,607,618,645,654,661,665,680,682,723,725,771,773,775,812,812,815,817,819,820,820
,822,822,823,823,828,828,831,833,84"..., fid=0x8071776 "5978") at dbop.c:229
#3  0x0805099b in gtags_put (gtop=0x806e350, tag=0x806dae0 "chan", record=0x807b880 "chan", fid=0x99c164e "5978") at gtagsop.c:383
#4  0x08051576 in gtags_add (gtop=0x806e350, comline=0x8078728 "gctags -dtr %s", path=0x8068380 "./drivers/sound/i810_audio.c", flags=0)
    at gtagsop.c:507
#5  0x0804c381 in createtags (dbpath=0xbfffdbb0 "/home/iwamoto/tmp/2.96-O0", root=0xbfffcbb0 "/home/iwamoto/tmp/linux-2.4.21", db=2)
    at gtags.c:1002
#6  0x0804ae70 in main (argc=1, argv=0xbffffc28) at gtags.c:635
#7  0x40044657 in __libc_start_main (main=0x8049704 <main>, argc=2, ubp_av=0xbffffc24, init=0x8049044 <_init>, fini=0x8063510 <_fini>, 
    rtld_fini=0x4000dcd4 <_dl_fini>, stack_end=0xbffffc1c) at ../sysdeps/generic/libc-start.c:129

Redhat 7.2, gcc-2.96, -O1
(gdb) bt
#0  __bt_split (t=0x806a3f8, sp=0x99e37b4, key=0xbfffaa10, data=0xbfffaa08, flags=0, ilen=2036, argskip=0) at bt_split.c:196
#1  0x0805218a in __bt_put (dbp=0x806a620, key=0xbfffaa10, data=0xbfffaa08, flags=0) at bt_put.c:214
#2  0x0804cd25 in dbop_put (dbop=0x806cab8, name=0x8068195 "card", 
    data=0x8719220 "card 5978 
345,353,490,492,493,498,500,501,506,508,509,514,555,557,561,568,572,577,598,607,618,645,654,661,665,680,682,723,725,771,773,775,812,812,815,817,819,820,820
,822,822,823,823,828,828,831,833,84"..., fid=0x806a396 "5978") at dbop.c:229
#3  0x0804ed3d in gtags_put (gtop=0x8066f70, tag=0x8066700 "chan", record=0x80744a0 "chan", fid=0x99ba26e "5978") at gtagsop.c:383
#4  0x0804f47f in gtags_add (gtop=0x8066f70, comline=0x8071348 "gctags -dtr %s", path=0x8060fa0 "./drivers/sound/i810_audio.c", flags=0)
    at gtagsop.c:507
#5  0x0804b790 in createtags (dbpath=0xbfffdba0 "/home/iwamoto/tmp/2.96-O1", root=0xbfffcba0 "/home/iwamoto/tmp/linux-2.4.21", db=2)
    at gtags.c:1002
#6  0x0804a7f5 in main (argc=1, argv=0xbffffc28) at gtags.c:635
#7  0x40044657 in __libc_start_main (main=0x804963c <main>, argc=2, ubp_av=0xbffffc24, init=0x8048fec <_init>, fini=0x805b560 <_fini>, 
    rtld_fini=0x4000dcd4 <_dl_fini>, stack_end=0xbffffc1c) at ../sysdeps/generic/libc-start.c:129

Redhat 7.2, gcc-2.96, -O2
(gdb) bt
#0  __bt_split (t=0x806a098, sp=0x99e3454, key=0xbfffa9f0, data=0xbfffa9e8, flags=0, ilen=2036, argskip=0) at bt_split.c:196
#1  0x08051fa3 in __bt_put (dbp=0x806a2c0, key=0xbfffa9f0, data=0xbfffa9e8, flags=0) at bt_put.c:214
#2  0x0804cc9f in dbop_put (dbop=0x806c758, name=0x8067e35 "card", 
    data=0x8718ec0 "card 5978 
345,353,490,492,493,498,500,501,506,508,509,514,555,557,561,568,572,577,598,607,618,645,654,661,665,680,682,723,725,771,773,775,812,812,815,817,819,820,820
,822,822,823,823,828,828,831,833,84"..., fid=0x806a036 "5978") at dbop.c:229
#3  0x0804ebcf in gtags_put (gtop=0x8066c10, tag=0x80663a0 "chan", record=0x8074140 "chan", fid=0x99b9f0e "5978") at gtagsop.c:383
#4  0x0804f345 in gtags_add (gtop=0x8066c10, comline=0x8070fe8 "gctags -dtr %s", path=0x8060c40 "./drivers/sound/i810_audio.c", flags=0)
    at gtagsop.c:507
#5  0x0804b757 in createtags (dbpath=0xbfffdba0 "/home/iwamoto/tmp/2.96-O2", root=0xbfffcba0 "/home/iwamoto/tmp/linux-2.4.21", db=2)
    at gtags.c:1002
#6  0x0804a7b4 in main (argc=1, argv=0xbffffc28) at gtags.c:635
#7  0x40044657 in __libc_start_main (main=0x8049638 <main>, argc=2, ubp_av=0xbffffc24, init=0x8048fec <_init>, fini=0x805b1f0 <_fini>, 
    rtld_fini=0x4000dcd4 <_dl_fini>, stack_end=0xbffffc1c) at ../sysdeps/generic/libc-start.c:129

Redhat 7.2, gcc-3.3, -O0
(gdb) bt
#0  0x0805616f in __bt_split (t=0x8072138, sp=0x99eb4f4, key=0xbfffa9e8, data=0xbfffa9e0, flags=0, ilen=2036, argskip=0) at bt_split.c:196
#1  0x08054d75 in __bt_put (dbp=0x8072360, key=0xbfffa9e8, data=0xbfffa9e0, flags=0) at bt_put.c:214
#2  0x0804dbed in dbop_put (dbop=0x80747f8, name=0x806fed5 "card", 
    data=0x8720f60 "card 5978 
345,353,490,492,493,498,500,501,506,508,509,514,555,557,561,568,572,577,598,607,618,645,654,661,665,680,682,723,725,771,773,775,812,812,815,817,819,820,820
,822,822,823,823,828,828,831,833,84"..., fid=0x80720d6 "5978") at dbop.c:229
#3  0x0805048e in gtags_put (gtop=0x806ecb0, tag=0x806e440 "chan", record=0x807c1e0 "chan", fid=0x99c1fae "5978") at gtagsop.c:383
#4  0x08050fda in gtags_add (gtop=0x806ecb0, comline=0x8079088 "gctags -dtr %s", path=0x8068ca0 "./drivers/sound/i810_audio.c", flags=0)
    at gtagsop.c:507
#5  0x0804c0a1 in createtags (dbpath=0xbfffdbb0 "/home/iwamoto/tmp/3.3-O0", root=0xbfffcbb0 "/home/iwamoto/tmp/linux-2.4.21", db=2)
    at gtags.c:1002
#6  0x0804ac74 in main (argc=1, argv=0xbffffc28) at gtags.c:635
#7  0x40044657 in __libc_start_main (main=0x8049601 <main>, argc=2, ubp_av=0xbffffc24, init=0x8048f98 <_init>, fini=0x8063060 <_fini>, 
    rtld_fini=0x4000dcd4 <_dl_fini>, stack_end=0xbffffc1c) at ../sysdeps/generic/libc-start.c:129

Redhat 7.2, gcc-3.3, -O1
(gdb) bt
#0  __bt_split (t=0x806b038, sp=0x99e43f4, key=0xbfffaa00, data=0xbfffa9f8, flags=0, ilen=161404180, argskip=161469715) at bt_split.c:196
#1  0x080528b4 in __bt_put (dbp=0x99fd513, key=0xbfffaa00, data=0xbfffa9f8, flags=0) at bt_put.c:214
#2  0x0804ce6c in dbop_put (dbop=0x99fd513, name=0x8068dd5 "card", 
    data=0x8719e60 "card 5978 
345,353,490,492,493,498,500,501,506,508,509,514,555,557,561,568,572,577,598,607,618,645,654,661,665,680,682,723,725,771,773,775,812,812,815,817,819,820,820
,822,822,823,823,828,828,831,833,84"..., fid=0x806afd6 "5978") at dbop.c:229
#3  0x0804f04c in gtags_put (gtop=0x8067bb0, tag=0x8067340 "chan", record=0x80750e0 "chan", fid=0x99baeae "5978") at gtagsop.c:383
#4  0x0804f88c in gtags_add (gtop=0x8067bb0, comline=0x99fd513 <Address 0x99fd513 out of bounds>, path=0x8067340 "chan", flags=0)
    at gtagsop.c:507
#5  0x0804b7ff in createtags (dbpath=0x0, root=0x99fd513 <Address 0x99fd513 out of bounds>, db=2) at gtags.c:1002
#6  0x0804a765 in main (argc=1, argv=0xbffffc28) at gtags.c:635
#7  0x40044657 in __libc_start_main (main=0x8049575 <main>, argc=2, ubp_av=0xbffffc24, init=0x8048f60 <_init>, fini=0x805c190 <_fini>, 
    rtld_fini=0x4000dcd4 <_dl_fini>, stack_end=0xbffffc1c) at ../sysdeps/generic/libc-start.c:129

Redhat 7.2, gcc-3.3, -O2
(gdb) bt
#0  __bt_split (t=0x806c8b8, sp=0x99e5c74, key=0xbfffaa00, data=0xbfffa9f8, flags=0, ilen=134662380, argskip=161475987) at bt_split.c:196
#1  0x080536ba in __bt_put (dbp=0x99fed93, key=0xbfffaa00, data=0xbfffa9f8, flags=0) at bt_put.c:214
#2  0x0804d489 in dbop_put (dbop=0x99fed93, name=0x806a655 "card", 
    data=0x871b6e0 "card 5978 
345,353,490,492,493,498,500,501,506,508,509,514,555,557,561,568,572,577,598,607,618,645,654,661,665,680,682,723,725,771,773,775,812,812,815,817,819,820,820
,822,822,823,823,828,828,831,833,84"..., fid=0x806c856 "5978") at dbop.c:229
#3  0x0804fbb7 in gtags_put (gtop=0x8069430, tag=0x8068bc0 "chan", record=0x8076960 "chan", fid=0x99bc72e "5978") at gtagsop.c:383
#4  0x080500ce in gtags_add (gtop=0x8069430, comline=0x8076960 "chan", path=0x8068bc0 "chan", flags=0) at gtagsop.c:507
#5  0x0804b9ee in createtags (dbpath=0x0, root=0x0, db=2) at gtags.c:1002
#6  0x0804a028 in main (argc=1, argv=0xbffffc28) at gtags.c:635
#7  0x40044657 in __libc_start_main (main=0x80495f0 <main>, argc=2, ubp_av=0xbffffc24, init=0x8048f84 <_init>, fini=0x805d9d0 <_fini>, 
    rtld_fini=0x4000dcd4 <_dl_fini>, stack_end=0xbffffc1c) at ../sysdeps/generic/libc-start.c:129

Redhat 9, gcc-3.2.2, -O0
(gdb) bt
#0  0x080547d8 in __bt_split (t=0x80d60b0, sp=0x9a53934, key=0xbfff97b8, data=0xbfff97b0, flags=0, ilen=2036, argskip=0) at bt_split.c:196
#1  0x080535ba in __bt_put (dbp=0x80d62d8, key=0xbfff97b8, data=0xbfff97b0, flags=0) at bt_put.c:214
#2  0x0804c7f2 in dbop_put (dbop=0x80dc690, name=0x80d7fe1 "card", 
    data=0x87893a0 "card 5978 
345,353,490,492,493,498,500,501,506,508,509,514,555,557,561,568,572,577,598,607,618,645,654,661,665,680,682,723,725,771,773,775,812,812,815,817,819,820,820
,822,822,823,823,828,828,831,833,84"..., fid=0x80da1e4 "5978") at dbop.c:229
#3  0x0804ef4b in gtags_put (gtop=0x80d6db8, tag=0x80d5f28 "chan", record=0x80e4620 "chan", fid=0x9a2a3ee "5978") at gtagsop.c:407
#4  0x0804fa3f in gtags_add (gtop=0x80d6db8, comline=0x80d6098 "gctags -dtr %s", path=0x80cfb80 "./drivers/sound/i810_audio.c", flags=0) at gtagsop.c:531
#5  0x0804ad08 in createtags (dbpath=0xbfffc990 "/home/iwamoto/work/3.2.2-O0", root=0xbfffb980 "/home/iwamoto/work/linux-2.4.21", db=2) at gtags.c:1084
#6  0x08049970 in main (argc=1, argv=0xbfffebf8) at gtags.c:717
#7  0x080611af in __libc_start_main (main=0x8048318 <main>, argc=2, ubp_av=0xbfffebf4, init=0x8061330 <__libc_csu_init>, fini=0x8061384 <__libc_csu_fini>, 
rtld_fini=0, 
    stack_end=0x9a6ca53) at ../sysdeps/generic/libc-start.c:193

Redhat 9, gcc-3.2.2, -O1
(gdb) bt
#0  __bt_split (t=0x80ce730, sp=0x9a4bfb4, key=0xbfff9920, data=0xbfff9918, flags=0, ilen=135063396, argskip=161894611) at bt_split.c:196
#1  0x08050d14 in __bt_put (dbp=0x9a650d3, key=0xbfff9920, data=0xbfff9918, flags=0) at bt_put.c:214
#2  0x0804b8b2 in dbop_put (dbop=0x9a650d3, name=0x80d0661 "card", 
    data=0x8781a20 "card 5978 
345,353,490,492,493,498,500,501,506,508,509,514,555,557,561,568,572,577,598,607,618,645,654,661,665,680,682,723,725,771,773,775,812,812,815,817,819,820,820
,822,822,823,823,828,828,831,833,84"..., fid=0x80d2864 "5978") at dbop.c:229
#3  0x0804d8c7 in gtags_put (gtop=0x80cf438, tag=0x80ce5a8 "chan", record=0x80dcca0 "chan", fid=0x9a22a6e "5978") at gtagsop.c:407
#4  0x0804e057 in gtags_add (gtop=0x80cf438, comline=0x80ce718 "gctags -dtr %s", path=0x80ce5a8 "chan", flags=0) at gtagsop.c:531
#5  0x0804a37b in createtags (dbpath=0x0, root=0xbfffbaf0 "/home/iwamoto/work/linux-2.4.21", db=2) at gtags.c:1084
#6  0x08049437 in main (argc=2, argv=0xbfffed78) at gtags.c:717
#7  0x08059fef in __libc_start_main (main=0x80482cf <main>, argc=2, ubp_av=0xbfffed74, init=0x805a170 <__libc_csu_init>, fini=0x805a1c4 <__libc_csu_fini>, 
rtld_fini=0, 
    stack_end=0x9a650d3) at ../sysdeps/generic/libc-start.c:193

Redhat 9, gcc-3.2.2, -O2
(gdb) bt
#0  __bt_split (t=0x80cf210, sp=0x9a4ca94, key=0xbfff8930, data=0xbfff8928, flags=0, ilen=135066180, argskip=161897395) at bt_split.c:196
#1  0x08051433 in __bt_put (dbp=0x9a65bb3, key=0xbfff8930, data=0xbfff8928, flags=0) at bt_put.c:214
#2  0x0804bbd1 in dbop_put (dbop=0x9a65bb3, name=0x80d1141 "card", 
    data=0x8782500 "card 5978 
345,353,490,492,493,498,500,501,506,508,509,514,555,557,561,568,572,577,598,607,618,645,654,661,665,680,682,723,725,771,773,775,812,812,815,817,819,820,820
,822,822,823,823,828,828,831,833,84"..., fid=0x80d3344 "5978") at dbop.c:229
#3  0x0804df9e in gtags_put (gtop=0x80cff18, tag=0x80cf088 "chan", record=0x80dd780 "chan", fid=0x9a2354e "5978") at gtagsop.c:407
#4  0x0804e49c in gtags_add (gtop=0x80cff18, comline=0x80cf088 "chan", path=0x80dca00 "\210$$B"A(B003", flags=0) at gtagsop.c:531
#5  0x0804a41a in createtags (dbpath=0x0, root=0x0, db=2) at gtags.c:1084
#6  0x08048c27 in main (argc=2, argv=0xbfffdd78) at gtags.c:717
#7  0x0805aa8b in __libc_start_main (main=0x80482d0 <main>, argc=2, ubp_av=0xbfffdd74, init=0x805ac0c <__libc_csu_init>, fini=0x805ac60 <__libc_csu_fini>, 
rtld_fini=0, 
    stack_end=0x9a65bb3) at ../sysdeps/generic/libc-start.c:193

Redhat 9, gcc-3.3, -O0
(gdb) bt
#0  0x08054ed7 in __bt_split (t=0x80d6cd0, sp=0x9a54554, key=0xbfffa128, data=0xbfffa120, flags=0, ilen=2036, argskip=0) at bt_split.c:196
#1  0x08053add in __bt_put (dbp=0x80d6ef8, key=0xbfffa128, data=0xbfffa120, flags=0) at bt_put.c:214
#2  0x0804c941 in dbop_put (dbop=0x80dd2b0, name=0x80d8c01 "card", 
    data=0x8789fc0 "card 5978 
345,353,490,492,493,498,500,501,506,508,509,514,555,557,561,568,572,577,598,607,618,645,654,661,665,680,682,723,725,771,773,775,812,812,815,817,819,820,820
,822,822,823,823,828,828,831,833,84"..., fid=0x80dae04 "5978") at dbop.c:229
#3  0x0804f1f6 in gtags_put (gtop=0x80d79d8, tag=0x80d6b48 "chan", record=0x80e5240 "chan", fid=0x9a2b00e "5978") at gtagsop.c:407
#4  0x0804fd42 in gtags_add (gtop=0x80d79d8, comline=0x80d6cb8 "gctags -dtr %s", path=0x80d0760 "./drivers/sound/i810_audio.c", flags=0) at gtagsop.c:531
#5  0x0804ade9 in createtags (dbpath=0xbfffd310 "/home/iwamoto/work/3.3-O0", root=0xbfffc300 "/home/iwamoto/work/linux-2.4.21", db=2) at gtags.c:1084
#6  0x080499bc in main (argc=1, argv=0xbffff578) at gtags.c:717
#7  0x08061f6f in __libc_start_main (main=0x8048345 <main>, argc=2, ubp_av=0xbffff574, init=0x80620f0 <__libc_csu_init>, fini=0x8062144 <__libc_csu_fini>, 
rtld_fini=0, 
    stack_end=0x9a6d673) at ../sysdeps/generic/libc-start.c:193

Redhat 9, gcc-3.3, -O1
(gdb) bt
#0  __bt_split (t=0x80ce710, sp=0x9a4bf44, key=0xbfff9bb0, data=0xbfff9ba8, flags=0, ilen=161828964, argskip=161894499) at bt_split.c:196
#1  0x08051658 in __bt_put (dbp=0x9a65063, key=0xbfff9bb0, data=0xbfff9ba8, flags=0) at bt_put.c:214
#2  0x0804bbf8 in dbop_put (dbop=0x9a65063, name=0x80d0641 "card", 
    data=0x87819b0 "card 5978 
345,353,490,492,493,498,500,501,506,508,509,514,555,557,561,568,572,577,598,607,618,645,654,661,665,680,682,723,725,771,773,775,812,812,815,817,819,820,820
,822,822,823,823,828,828,831,833,84"..., fid=0x80d2844 "5978") at dbop.c:229
#3  0x0804dde7 in gtags_put (gtop=0x80cf418, tag=0x80ce588 "chan", record=0x80dcc30 "chan", fid=0x9a229fe "5978") at gtagsop.c:407
#4  0x0804e627 in gtags_add (gtop=0x80cf418, comline=0x9a65063 <Address 0x9a65063 out of bounds>, path=0x80ce588 "chan", flags=0) at gtagsop.c:531
#5  0x0804a5ad in createtags (dbpath=0x0, root=0x9a65063 <Address 0x9a65063 out of bounds>, db=2) at gtags.c:1084
#6  0x08049511 in main (argc=1, argv=0xbfffeff8) at gtags.c:717
#7  0x0805b12b in __libc_start_main (main=0x804830f <main>, argc=2, ubp_av=0xbfffeff4, init=0x805b2ac <__libc_csu_init>, fini=0x805b300 <__libc_csu_fini>, 
rtld_fini=0, 
    stack_end=0x9a65063) at ../sysdeps/generic/libc-start.c:193

Redhat 9, gcc-3.3, -O2
(gdb) bt
#0  __bt_split (t=0x80d0f30, sp=0x9a4e764, key=0xbfffa4b0, data=0xbfffa4a8, flags=0, ilen=135073636, argskip=161904771) at bt_split.c:196
#1  0x0805243a in __bt_put (dbp=0x9a67883, key=0xbfffa4b0, data=0xbfffa4a8, flags=0) at bt_put.c:214
#2  0x0804c1c9 in dbop_put (dbop=0x9a67883, name=0x80d2e61 "card", 
    data=0x87841d0 "card 5978 
345,353,490,492,493,498,500,501,506,508,509,514,555,557,561,568,572,577,598,607,618,645,654,661,665,680,682,723,725,771,773,775,812,812,815,817,819,820,820
,822,822,823,823,828,828,831,833,84"..., fid=0x80d5064 "5978") at dbop.c:229
#3  0x0804e937 in gtags_put (gtop=0x80d1c38, tag=0x80d0da8 "chan", record=0x80df450 "chan", fid=0x9a2521e "5978") at gtagsop.c:407
#4  0x0804ee4e in gtags_add (gtop=0x80d1c38, comline=0x80df450 "chan", path=0x80d0da8 "chan", flags=0) at gtagsop.c:531
#5  0x0804a76e in createtags (dbpath=0x0, root=0x0, db=2) at gtags.c:1084
#6  0x08048d88 in main (argc=1, argv=0xbffff8f8) at gtags.c:717
#7  0x0805c943 in __libc_start_main (main=0x8048350 <main>, argc=2, ubp_av=0xbffff8f4, init=0x805cac4 <__libc_csu_init>, fini=0x805cb18 <__libc_csu_fini>, 
rtld_fini=0, 
    stack_end=0x9a67883) at ../sysdeps/generic/libc-start.c:193




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




From MAILER-DAEMON Wed Jun 18 23:05:07 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19SpjX-0007Gg-ID
	for mharc-bug-global@gnu.org; Wed, 18 Jun 2003 23:05:07 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19SpjU-0007DQ-Oe
	for bug-global@gnu.org; Wed, 18 Jun 2003 23:05:04 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19SpjS-000788-I6
	for bug-global@gnu.org; Wed, 18 Jun 2003 23:05:03 -0400
Received: from mfep2.odn.ne.jp ([143.90.131.180] helo=t-mta2.odn.ne.jp)
	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19SpjR-0006Ru-EF
	for bug-global@gnu.org; Wed, 18 Jun 2003 23:05:01 -0400
Received: from choota.signet.or.jp ([211.121.59.115]) by t-mta2.odn.ne.jp
          with ESMTP
          id <20030619030431962.BPAA.282310.t-mta2.odn.ne.jp@mta2.odn.ne.jp>;
          Thu, 19 Jun 2003 12:04:31 +0900
Received: from choota.signet.or.jp (localhost [127.0.0.1]) by
	choota.signet.or.jp (8.11.3/) with ESMTP id h5J332T26934; Thu, 19 Jun 2003
	12:03:02 +0900 (JST)
Message-Id: <200306190303.h5J332T26934@tamacom.com>
To: Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
References: <200306161258.AA00633@k7.kit.hi-ho.ne.jp>
In-reply-to: Message from Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
	<200306161258.AA00633@k7.kit.hi-ho.ne.jp>
Date: Thu, 19 Jun 2003 12:03:02 +0900
From: Shigio Yamaguchi <shigio@tamacom.com>
cc: bug-global@gnu.org
Subject: Re: [BUG REPORT] gtags segmentation fault
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, 19 Jun 2003 03:05:05 -0000

> I reported the result on Redhat9 till yesterday. 
> When I tried on Redhat7.2 today, gtags aborted in the same place.
> 
> Would you try within the Linux compatible mode on FreeBSD?

Hi,
I finally set up a linux machine (RedHat 8.0), and was able to reproduced
the bug.

I believe it is a db(3)'s bug that has been hidden. But why the trouble
occurs in GNU/Linux, but doesn't occur in FreeBSD?
Examining the difference of two system, it was found that
the default page size were different each other.
The page size is 4096 in GNU/Linux and is 8192 in FreeBSD.

Would you please reexecute gtags with the following modification?
It works in my environment.

Index: dbop.c
===================================================================
RCS file: /cvsroot/global/global/libutil/dbop.c,v
retrieving revision 1.14
diff -c -r1.14 dbop.c
*** dbop.c	29 Mar 2003 04:55:58 -0000	1.14
--- dbop.c	19 Jun 2003 01:24:26 -0000
***************
*** 131,136 ****
--- 131,137 ----
  	memset(&info, 0, sizeof(info));
  	if (flags & DBOP_DUP)
  		info.flags |= R_DUP;
+ 	info.psize = 8192;
  	/*
  	 * accept user's request but needs 0.5MB at least.
  	 */

If it works in your environment too, how about seeing the appearance
after applying above modification?
Of course, it is not the solution of the problem. But since we have
not noticed the trouble for a long time up to now, it is worthy enough
to put off the problem.
I will fix the bug when there is time a little more.
--
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 Thu Jun 19 13:59:09 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19T3gg-00069j-Lw
	for mharc-bug-global@gnu.org; Thu, 19 Jun 2003 13:59:06 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19T3gV-0005bE-N2
	for bug-global@gnu.org; Thu, 19 Jun 2003 13:58:55 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19T3gO-0005DM-9Q
	for bug-global@gnu.org; Thu, 19 Jun 2003 13:58:49 -0400
Received: from sproxy03.hi-ho.ne.jp ([202.224.159.198])
	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19T3gC-0004ij-TG
	for bug-global@gnu.org; Thu, 19 Jun 2003 13:58:37 -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 <0HGQ00H36PXJ2N@sproxy03.hi-ho.ne.jp> for bug-global@gnu.org;
 Fri, 20 Jun 2003 02:58:32 +0900 (JST)
Date: Fri, 20 Jun 2003 02:58:38 +0900
From: Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
In-reply-to: <200306190303.h5J332T26934@tamacom.com>
To: Shigio Yamaguchi <shigio@tamacom.com>
Message-id: <200306191758.AA00638@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: <200306190303.h5J332T26934@tamacom.com>
cc: bug-global@gnu.org
Subject: Re: [BUG REPORT] gtags segmentation fault
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, 19 Jun 2003 17:59:04 -0000

On Thu, 19 Jun 2003 12:03:02 +0900, Shigio Yamaguchi wrote...
> Would you please reexecute gtags with the following modification?
> It works in my environment.
> 

The problem stopped occurring also in my environment.
Thank you.



> Index: dbop.c
> ===================================================================
> RCS file: /cvsroot/global/global/libutil/dbop.c,v
> retrieving revision 1.14
> diff -c -r1.14 dbop.c
> *** dbop.c	29 Mar 2003 04:55:58 -0000	1.14
> --- dbop.c	19 Jun 2003 01:24:26 -0000
> ***************
> *** 131,136 ****
> --- 131,137 ----
>   	memset(&info, 0, sizeof(info));
>   	if (flags & DBOP_DUP)
>   		info.flags |= R_DUP;
> + 	info.psize = 8192;
>   	/*
>   	 * accept user's request but needs 0.5MB at least.
>   	 */
> 

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




From MAILER-DAEMON Fri Jun 20 10:01:26 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19TMRk-0004MZ-F2
	for mharc-bug-global@gnu.org; Fri, 20 Jun 2003 10:00:56 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19TM7v-0005WI-W0
	for bug-global@gnu.org; Fri, 20 Jun 2003 09:40:28 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19TM7s-0005Nb-5E
	for bug-global@gnu.org; Fri, 20 Jun 2003 09:40:25 -0400
Received: from mail.tecnet.com.uy ([207.3.116.131])
	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19TM7k-0004to-GR
	for bug-global@gnu.org; Fri, 20 Jun 2003 09:40:16 -0400
Received: (from root@localhost)
	by mail.tecnet.com.uy (8.12.8/8.12.1) id h5KDe1b9024151
	for bug-global@gnu.org; Fri, 20 Jun 2003 10:40:01 -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 h5KDdvO6024102
	for <bug-global@gnu.org>; Fri, 20 Jun 2003 10:39:58 -0300
Message-ID: <000a01c3372f$4721e4a0$0400a8c0@Controles>
From: =?iso-8859-1?Q?Andr=E9s_Azar?= <azar@controles.com>
To: <bug-global@gnu.org>
Date: Fri, 20 Jun 2003 10:24:27 -0300
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_0007_01C33716.20E9B060"
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
X-Mailman-Approved-At: Fri, 20 Jun 2003 10:00:54 -0400
Subject: Bug in htags?
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: Fri, 20 Jun 2003 13:40:45 -0000

This is a multi-part message in MIME format.

------=_NextPart_000_0007_01C33716.20E9B060
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello.=20

    I'm running GLOBAL on Cygwin/Windows Millennium.=20
    When I first ran htags (after running gtags), it returned the =
following message:=20

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

    So in htags I substituted: =20
   =20
                "-$'use_cache_file =3D 1;    # make temporary db
    by=20
                "-$'use_cache_file =3D 0;    # make temporary db

    and it seems to work.

            Andr=E9s Azar,
            Uruguay.
               =20

------=_NextPart_000_0007_01C33716.20E9B060
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4134.100" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hello. </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; I'm running GLOBAL =
on=20
Cygwin/Windows Millennium. </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; When I first ran =
htags (after=20
running gtags), it&nbsp;returned the following message: </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp; "htags: cannot make cache file=20
'/tmp/htagd79287565'."<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; So in=20
htags&nbsp;I&nbsp;substituted:&nbsp;&nbsp;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; "-$'use_cache_file =3D=20
1;&nbsp;&nbsp;&nbsp;&nbsp;# make temporary db</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; by </FONT></DIV>
<DIV><FONT face=3DArial=20
size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;=20
"-$'use_cache_file =3D 0;&nbsp;&nbsp;&nbsp;&nbsp;# make temporary =
db</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; and it seems to=20
work.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp; Andr=E9s Azar,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp; Uruguay.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; </DIV></FONT></BODY></HTML>

------=_NextPart_000_0007_01C33716.20E9B060--




From MAILER-DAEMON Fri Jun 20 10:25:51 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19TMpj-0001YN-Ji
	for mharc-bug-global@gnu.org; Fri, 20 Jun 2003 10:25:43 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19TMpT-0001Aq-6t
	for bug-global@gnu.org; Fri, 20 Jun 2003 10:25:27 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19TMoy-00005E-NQ
	for bug-global@gnu.org; Fri, 20 Jun 2003 10:24:57 -0400
Received: from mfep2.odn.ne.jp ([143.90.131.180] helo=t-mta2.odn.ne.jp)
	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19TMou-0007Nc-FI
	for bug-global@gnu.org; Fri, 20 Jun 2003 10:24:52 -0400
Received: from choota.signet.or.jp ([211.121.59.115]) by t-mta2.odn.ne.jp
          with ESMTP
          id <20030620142423283.MBKN.282310.t-mta2.odn.ne.jp@mta2.odn.ne.jp>;
          Fri, 20 Jun 2003 23:24:23 +0900
Received: from choota.signet.or.jp (localhost [127.0.0.1]) by
	choota.signet.or.jp (8.11.3/) with ESMTP id h5KEMph65384; Fri, 20 Jun 2003
	23:22:51 +0900 (JST)
Message-Id: <200306201422.h5KEMph65384@tamacom.com>
To: Andrs Azar <azar@controles.com>
References: <000a01c3372f$4721e4a0$0400a8c0@Controles>
In-reply-to: Message from Andrs Azar <azar@controles.com>
	<000a01c3372f$4721e4a0$0400a8c0@Controles>
Date: Fri, 20 Jun 2003 23:22:51 +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.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: Fri, 20 Jun 2003 14:25:33 -0000

Hello,
>     I'm running GLOBAL on Cygwin/Windows Millennium.=20
>     When I first ran htags (after running gtags), it returned the =
> following message:=20
> 
>             "htags: cannot make cache file '/tmp/htagd79287565'."
> 
>     So in htags I substituted: =20
>    =20
>                 "-$'use_cache_file =3D 1;    # make temporary db
>     by=20
>                 "-$'use_cache_file =3D 0;    # make temporary db
> 
>     and it seems to work.
> 
>             Andr=E9s Azar,
>             Uruguay.

Do you have '/tmp' directory in your system?

	[How to check existence]
	$ ls -ld /tmp

Do you have permission to write to '/tmp'?

	[How to check permission]
	$ echo >/tmp/a
	$ cat /tmp/a
--
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 Fri Jun 20 10:41:30 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19TN0X-0002bG-Ow
	for mharc-bug-global@gnu.org; Fri, 20 Jun 2003 10:36:53 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19TMyj-00028O-HQ
	for bug-global@gnu.org; Fri, 20 Jun 2003 10:35:01 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19TMxW-00014m-Pw
	for bug-global@gnu.org; Fri, 20 Jun 2003 10:33:47 -0400
Received: from mfep2.odn.ne.jp ([143.90.131.180] helo=t-mta2.odn.ne.jp)
	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19TMxO-0000tt-TR
	for bug-global@gnu.org; Fri, 20 Jun 2003 10:33:39 -0400
Received: from choota.signet.or.jp ([211.121.59.115]) by t-mta2.odn.ne.jp
          with ESMTP
          id <20030620143336680.MDAF.282310.t-mta2.odn.ne.jp@mta2.odn.ne.jp>;
          Fri, 20 Jun 2003 23:33:36 +0900
Received: from choota.signet.or.jp (localhost [127.0.0.1]) by
	choota.signet.or.jp (8.11.3/) with ESMTP id h5KEW5h65437; Fri, 20 Jun 2003
	23:32:05 +0900 (JST)
Message-Id: <200306201432.h5KEW5h65437@tamacom.com>
To: Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
References: <200306191758.AA00638@k7.kit.hi-ho.ne.jp>
In-reply-to: Message from Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
	<200306191758.AA00638@k7.kit.hi-ho.ne.jp>
Date: Fri, 20 Jun 2003 23:32:05 +0900
From: Shigio Yamaguchi <shigio@tamacom.com>
cc: bug-global@gnu.org
Subject: Re: [BUG REPORT] gtags segmentation fault
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: Fri, 20 Jun 2003 14:36:52 -0000

> The problem stopped occurring also in my environment.

I have committed the workaround to the CVS repository.
I will fix it in the near future.

Thank you for your bug report and many information!
--
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 Fri Jun 20 11:59:55 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19TOIt-0003bv-IC
	for mharc-bug-global@gnu.org; Fri, 20 Jun 2003 11:59:55 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19TOIr-0003al-2c
	for bug-global@gnu.org; Fri, 20 Jun 2003 11:59:53 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19TOFo-0002Q9-EN
	for bug-global@gnu.org; Fri, 20 Jun 2003 11:56:49 -0400
Received: from mfep2.odn.ne.jp ([143.90.131.180] helo=t-mta2.odn.ne.jp)
	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19TOFm-0002IH-IY
	for bug-global@gnu.org; Fri, 20 Jun 2003 11:56:42 -0400
Received: from choota.signet.or.jp ([211.121.59.115]) by t-mta2.odn.ne.jp
          with ESMTP
          id <20030620155641445.MPTA.282310.t-mta2.odn.ne.jp@mta2.odn.ne.jp>;
          Sat, 21 Jun 2003 00:56:41 +0900
Received: from choota.signet.or.jp (localhost [127.0.0.1]) by
	choota.signet.or.jp (8.11.3/) with ESMTP id h5KFt5h65674; Sat, 21 Jun 2003
	00:55:05 +0900 (JST)
Message-Id: <200306201555.h5KFt5h65674@tamacom.com>
To: Andrs Azar <azar@controles.com>
References: <000501c3373f$a0cd9200$0400a8c0@Controles>
In-reply-to: Message from Andrs Azar <azar@controles.com>
	<000501c3373f$a0cd9200$0400a8c0@Controles>
Date: Sat, 21 Jun 2003 00:55:05 +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.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: Fri, 20 Jun 2003 15:59:53 -0000

> $ ls -ld /tmp
> drwxr-xr-x    2 andresa  all             0 Jun 12 12:41 /tmp
> 
> and I'm running as andresa.
> 
> $ echo aaa >/tmp/a
> $ cat /tmp/a
> aaa
> 
> Also:
> $ ls -l c:/cygwin/usr/local/bin/htags
> -rwxr-xr-x    1 andresa  all         79696 Jun 20 10:12
> c:/cygwin/usr/local/bin/htags

Thank you.

> It seems to be all right, doesn't?

Yes, it seems to be all right.
What does it occur when the following commands are executed?

$ perl -e 'dbmopen(%A, "/tmp/htagd79287565", 0600) && print "OK\n"'
$ ls -l /tmp/htag*
--
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 Fri Jun 20 12:27:35 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19TOjf-0001JZ-1E
	for mharc-bug-global@gnu.org; Fri, 20 Jun 2003 12:27:35 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19TOjd-0001Ij-3i
	for bug-global@gnu.org; Fri, 20 Jun 2003 12:27:33 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19TOjb-0001Hm-No
	for bug-global@gnu.org; Fri, 20 Jun 2003 12:27:32 -0400
Received: from mfep2.odn.ne.jp ([143.90.131.180] helo=t-mta2.odn.ne.jp)
	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19TOjb-0001H3-5u
	for bug-global@gnu.org; Fri, 20 Jun 2003 12:27:31 -0400
Received: from choota.signet.or.jp ([211.121.59.115]) by t-mta2.odn.ne.jp
          with ESMTP
          id <20030620162730006.MSZC.282310.t-mta2.odn.ne.jp@mta2.odn.ne.jp>;
          Sat, 21 Jun 2003 01:27:30 +0900
Received: from choota.signet.or.jp (localhost [127.0.0.1]) by
	choota.signet.or.jp (8.11.3/) with ESMTP id h5KGPxh65812; Sat, 21 Jun 2003
	01:25:59 +0900 (JST)
Message-Id: <200306201625.h5KGPxh65812@tamacom.com>
To: Andrs Azar <azar@controles.com>
References: <000701c33745$6d8af440$0400a8c0@Controles>
In-reply-to: Message from Andrs Azar <azar@controles.com>
	<000701c33745$6d8af440$0400a8c0@Controles>
Date: Sat, 21 Jun 2003 01:25:59 +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.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: Fri, 20 Jun 2003 16:27:33 -0000

> $ 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



From MAILER-DAEMON Sat Jun 21 04:42:58 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19TdxZ-0001nT-TA
	for mharc-bug-global@gnu.org; Sat, 21 Jun 2003 04:42:57 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19TdxY-0001nL-4I
	for bug-global@gnu.org; Sat, 21 Jun 2003 04:42:56 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19TdxW-0001n9-S2
	for bug-global@gnu.org; Sat, 21 Jun 2003 04:42:55 -0400
Received: from sproxy03.hi-ho.ne.jp ([202.224.159.198])
	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19TdxW-0001g6-0Q
	for bug-global@gnu.org; Sat, 21 Jun 2003 04:42:54 -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 <0HGT001E6PJD5S@sproxy03.hi-ho.ne.jp> for bug-global@gnu.org;
 Sat, 21 Jun 2003 17:42:50 +0900 (JST)
Date: Sat, 21 Jun 2003 17:42:56 +0900
From: Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
To: bug-global@gnu.org
Message-id: <200306210842.AA00642@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] undefined reference to `strbuf_genlen'
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: Sat, 21 Jun 2003 08:42:56 -0000



make[2]: Entering directory `/home/iwamoto/work/global/global'
gcc  -Wall -g -O2   -o global  global.o ../libutil/libgloutil.a ../libdb/libglodb.a ../libglibc/libgloglibc.a 
../libutil/libgloutil.a(gtagsop.o)(.text+0xb5b): In function `gtags_put':


/home/iwamoto/work/global/libutil/gtagsop.c:424: Index: libutil/gtagsop.c
===================================================================
RCS file: /cvsroot/global/global/libutil/gtagsop.c,v
retrieving revision 1.40
diff -u -u -r1.40 gtagsop.c
--- libutil/gtagsop.c	21 Jun 2003 05:21:14 -0000	1.40
+++ libutil/gtagsop.c	21 Jun 2003 08:39:55 -0000
@@ -421,7 +421,7 @@
 	} else {
 		strbuf_putc(gtop->sb, ',');
 		strbuf_puts(gtop->sb, line);
-		if (strbuf_genlen(gtop) > DBOP_PAGESIZE / 4)
+		if (strbuf_getlen(gtop->sb) > DBOP_PAGESIZE / 4)
 			gtop->prev_path[0] = '\0';
 	}
 	recover(&ptable);


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




From MAILER-DAEMON Sat Jun 21 08:03:35 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.20)
	id 19Th5g-0006Le-RJ
	for mharc-bug-global@gnu.org; Sat, 21 Jun 2003 08:03:32 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20)
	id 19Th5f-0006I1-Dq
	for bug-global@gnu.org; Sat, 21 Jun 2003 08:03:31 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20)
	id 19Th5b-0006Bq-Kb
	for bug-global@gnu.org; Sat, 21 Jun 2003 08:03:28 -0400
Received: from mfep2.odn.ne.jp ([143.90.131.180] helo=t-mta2.odn.ne.jp)
	by monty-python.gnu.org with esmtp (Exim 4.20)
	id 19Th5N-00060J-FX
	for bug-global@gnu.org; Sat, 21 Jun 2003 08:03:13 -0400
Received: from choota.signet.or.jp ([211.121.59.115]) by t-mta2.odn.ne.jp
          with ESMTP
          id <20030621120307844.QXUI.282310.t-mta2.odn.ne.jp@mta2.odn.ne.jp>;
          Sat, 21 Jun 2003 21:03:07 +0900
Received: from choota.signet.or.jp (localhost [127.0.0.1]) by
	choota.signet.or.jp (8.11.3/) with ESMTP id h5LC1Zc04015; Sat, 21 Jun 2003
	21:01:35 +0900 (JST)
Message-Id: <200306211201.h5LC1Zc04015@tamacom.com>
To: Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
References: <200306210842.AA00642@k7.kit.hi-ho.ne.jp>
In-reply-to: Message from Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp>
	<200306210842.AA00642@k7.kit.hi-ho.ne.jp>
Date: Sat, 21 Jun 2003 21:01:34 +0900
From: Shigio Yamaguchi <shigio@tamacom.com>
cc: bug-global@gnu.org
Subject: Re: [patch] undefined reference to `strbuf_genlen'
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: Sat, 21 Jun 2003 12:03:32 -0000

> make[2]: Entering directory `/home/iwamoto/work/global/global'
> gcc  -Wall -g -O2   -o global  global.o ../libutil/libgloutil.a ../libdb/libg
lodb.a ../libglibc/libgloglibc.a 
> ../libutil/libgloutil.a(gtagsop.o)(.text+0xb5b): In function `gtags_put':

Fixed. 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



