From mphunter@shell11.ba.best.com Wed Oct 11 20:19:54 2000
Received: from shell11.ba.best.com ([206.184.139.142])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13jW6D-0003r0-00
	for <bug-global@gnu.org>; Wed, 11 Oct 2000 20:19:54 -0400
Received: (from mphunter@localhost)
	by shell11.ba.best.com (8.9.3/8.9.2/best.sh) id RAA24129
	for bug-global@gnu.org; Wed, 11 Oct 2000 17:19:11 -0700 (PDT)
Message-Id: <200010120019.RAA24129@shell11.ba.best.com>
Subject: large trees see g[c]tags fault
To: bug-global@gnu.org
Date: Wed, 11 Oct 2000 17:19:11 -0700 (PDT)
From: mph@acm.org
Reply-To: mph@acm.org
X-Mailer: ELM [version 2.4ME+ PL38 (25)]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Sender: bug-global-admin@gnu.org
Errors-To: bug-global-admin@gnu.org
X-BeenThere: bug-global@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
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-Id: Bug reports for GNU GLOBAL <bug-global.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-global>, <mailto:bug-global-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/bug-global/

I'm seeing g[c]tags 4.0.1 fault on mediumish (~2MLOC) trees on Netbsd 1.4.2.
The fault looks like the stack is corrupted (pc is at 0).

At this point I'm polling to see if others have seen problems like this.
If not I'll dig in a try to produce a proper bug report or a patch.

                      mph


From grant@cedara.com Fri Oct 27 11:16:21 2000
Received: from getafix.isgtec.com ([204.92.192.2])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13pBEy-0000in-00
	for <bug-global@gnu.org>; Fri, 27 Oct 2000 11:16:20 -0400
Received: from SMTP ([204.92.193.22])
	by getafix.isgtec.com (8.9.3/8.9.1) with SMTP id LAA26671
	for <bug-global@gnu.org>; Fri, 27 Oct 2000 11:20:51 -0400 (EDT)
Received: from cedara.com ([3.0.0.195]) by 204.92.193.22
  (Norton AntiVirus for Internet Email Gateways 1.0) ;
  Fri, 27 Oct 2000 15:36:00 0000 (GMT)
Received: from ebi.isgtec.com (ebi.isgtec.com [3.0.0.206])
	by cedara.com (8.8.8/8.8.8) with ESMTP id LAA01307
	for <bug-global@gnu.org>; Fri, 27 Oct 2000 11:15:17 -0400 (EDT)
Received: by ebi.isgtec.com (8.8.8+Sun/ISG-SUB-0.2)
	id LAA16394; Fri, 27 Oct 2000 11:16:06 -0400 (EDT)
Date: Fri, 27 Oct 2000 11:16:06 -0400
From: Grant McDorman <grant.mcdorman@cedara.com>
To: bug-global@gnu.org
Subject: <Global 4.0.1>: does not build on Solaris (needs snprintf)
Message-ID: <20001027111605.A14518@cedara.com>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-md5;
	protocol="application/pgp-signature"; boundary="C7zPtVaVf+AK4Oqc"
X-Mailer: Mutt 1.0.1i
Sender: bug-global-admin@gnu.org
Errors-To: bug-global-admin@gnu.org
X-BeenThere: bug-global@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
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-Id: Bug reports for GNU GLOBAL <bug-global.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-global>, <mailto:bug-global-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/bug-global/

--C7zPtVaVf+AK4Oqc
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable

GLOBAL 4.0.1 does not build on Solaris as Solaris lacks an 'snprintf'
function. If a simple implementation of this function is provided, GLOBAL
does link (and, apparently, run). [The implemenation I've done of snprintf
is not safe, though, since it ignores the buffer-length argument; for this
reason I'm not attaching it to this report.]

Platform: Solaris 2.5.1 Ultrasparc
Compiler: gcc 2.7.2
GLOBAL version: 4.0.1

--=20

Grant McDorman <grant.mcdorman@cedara.com>, Senior Software Developer
Cedara Software Corp.  <URL:http://www.cedara.com>
  (formerly I.S.G. Technologies Inc.)
Mississauga, Ontario, Canada


--C7zPtVaVf+AK4Oqc
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.0 (SunOS)
Comment: For info see http://www.gnupg.org

iD8DBQE5+Zw1LVa+EmyjizARAUDZAKCLJT96HPtpW0fnHk5zYK7zTGWC0gCfSbs9
8jquLYhbbuVF9O5ia9yiFg8=
=8Ece
-----END PGP SIGNATURE-----

--C7zPtVaVf+AK4Oqc--



From shigio@tamacom.com Fri Oct 27 12:00:43 2000
Received: from mfep2.odn.ne.jp ([143.90.131.180] helo=t-mta2.odn.ne.jp)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 13pBvv-0001Tk-00
	for <bug-global@gnu.org>; Fri, 27 Oct 2000 12:00:43 -0400
Received: from choota.signet.or.jp ([210.252.189.235]) by t-mta2.odn.ne.jp
          (InterMail vM.4.01.02.27 201-229-119-110) with ESMTP
          id <20001027160037658.LAHO.18273.t-mta2.odn.ne.jp@mta2.odn.ne.jp>;
          Sat, 28 Oct 2000 01:00:37 +0900
Received: from choota.signet.or.jp (localhost [127.0.0.1]) by choota.signet.or.jp (8.9.3/) with ESMTP id AAA04639; Sat, 28 Oct 2000 00:48:45 +0900 (JST)
Message-Id: <200010271548.AAA04639@tamacom.com>
To: Grant McDorman <grant.mcdorman@cedara.com>
cc: bug-global@gnu.org
Subject: Re: <Global 4.0.1>: does not build on Solaris (needs snprintf) 
In-reply-to: Message from Grant McDorman <grant.mcdorman@cedara.com> 
  of "Fri, 27 Oct 2000 11:16:06 -0400." <20001027111605.A14518@cedara.com> 
Date: Sat, 28 Oct 2000 00:48:45 +0900
From: Shigio Yamaguchi <shigio@tamacom.com>
Sender: bug-global-admin@gnu.org
Errors-To: bug-global-admin@gnu.org
X-BeenThere: bug-global@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
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-Id: Bug reports for GNU GLOBAL <bug-global.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-global>, <mailto:bug-global-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/bug-global/

> GLOBAL 4.0.1 does not build on Solaris as Solaris lacks an 'snprintf'
> function. If a simple implementation of this function is provided, GLOBAL
> does link (and, apparently, run). [The implemenation I've done of snprintf
> is not safe, though, since it ignores the buffer-length argument; for this
> reason I'm not attaching it to this report.]
> 
> Platform: Solaris 2.5.1 Ultrasparc
> Compiler: gcc 2.7.2
> GLOBAL version: 4.0.1

The latest GLOBAL source is written like:

#ifdef HAVE_SNPRINTF
        snprintf(buf, sizeof(buf), ":%s#", name);
#else
        sprintf(buf, ":%s#", name);
#endif /* HAVE_SNPRINTF */

As you say, 4.0.1 didn't have that code.

I'm going to make public GLOBAL's cvs repository.
Please wait a moment.
--
Shigio Yamaguchi - Tama Communications Corporation
Mail: shigio@tamacom.com, (Spare mail: shigio@par.odn.ne.jp)


