[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Seg Fault on solaris 2.8
From: |
Shigio Yamaguchi |
Subject: |
Re: Seg Fault on solaris 2.8 |
Date: |
Thu, 03 May 2001 02:16:30 +0900 |
Hi,
> Sometimes, global make core on my (large) project.
> The SegFault is produced when calling isabspath function with NULL
> pointer.
> The calling stack is main->parsefile->isabspath .
> Perhaps there something wrong in G* base (it would be surprising because
> it's my firts tries of the global tools), but it would be great to check
> the NULL pointer before using the path.
OK. I have added the following code to CVS version of GLOBAL.
[global/global.c]
path = realpath(av, buf);
add-> if (path == NULL)
add-> die("realpath(%s, buf) failed. (errno=%d).", av, errno);
if (!isabspath(path))
die("realpath(3) is not compatible with BSD version.");
Thank you.
--
Shigio Yamaguchi - Tama Communications Corporation
Mail: address@hidden, (Spare mail: address@hidden)