[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Seg Fault on solaris 2.8
From: |
Guilhem BONNEFILLE |
Subject: |
Re: Seg Fault on solaris 2.8 |
Date: |
Wed, 02 May 2001 20:18:07 +0100 |
Due to your patch, I was abble to identify the error.
The 'errno' has the 2 value : ENOENT : No such file or directory.
My project has this file : <proj>/global/src/system.c (global is a
directory whith nothing to do whith the GNU global ;-))
When I do :
cd <proj> ; global -f system.c
I get :
global: realpath(system.c, buf) failed. (errno=2).
Something surprising is that when I do :
cd <proj> ; global -f global -f system.c
I get :
'global' is a directory.
'system.c' not found.
It seems to be the correct status.
It seems that the first case must finish whith the same status of the
second case. Any other patch to correct ?
Shigio Yamaguchi wrote:
>
> 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)
--
Guilhem BONNEFILLE -=*=- Ingenieur Etude et Developpement
-= Communications & Systems -=*=- Systemes d'Information =-
-= Systemes de Controles Spatiaux =-
-= Mel : address@hidden =-
-= Tel : 05-61-17-66-66 Fax : 05-61-17-64-89 =-
(Ce message est volontairement sans accent)