bug-glibc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: segfault in stat


From: Petr Vandrovec
Subject: Re: segfault in stat
Date: Fri, 29 Sep 2000 17:24:11 MET-1

On 29 Sep 00 at 16:44, Andreas Jaeger wrote:
>  > It appears to me that when vers != _STAT_VER_KERNEL in __xstat() that
>  > buf is not checked to be valid before xstat_conv uses it.  I realize
>  > this is probably nit-picky, but I thought I would bring it up anyway.  I
>  > would expect a -1 return with errno set to EFAULT as the man page
>  > states, but the info file definately says otherwise.  
> The authoritative source for glibc is the info documentation, if the
> man pages are wrong, please tell Andries (CC'ed).

If my memory serves correctly, about year and half ago there was some
talking about this inconsistency on linux-kernel - that kernel returns
EFAULT, while faults in libraries are returned to app as SIGSEGV/SIGBUS.

General conclusion was that if apps relies on EFAULT and does not install
SIGSEGV handler, it is buggy app. No standard requires returning EFAULT
by kernel and there is even patch for kernel somewhere, which translates 
all EFAULT return codes to sigsegv...

Just my 0.02 cents ;-)
                                            Best regards,
                                                Petr Vandrovec
                                                address@hidden
                                                



reply via email to

[Prev in Thread] Current Thread [Next in Thread]