This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: A patch for dl-profile
On Thu, May 17, 2001 at 12:09:28AM -0700, H . J . Lu wrote:
> On Wed, May 16, 2001 at 11:52:46PM -0700, Ulrich Drepper wrote:
> > "H . J . Lu" <hjl@lucon.org> writes:
> >
> > > This patch will terminate ld.so before segfault.
> >
> > Have you analyzed what the real reason for the problem is? You just
> > avoid problems by terminating the process (which might or might not be
> > the correct answer). But to decide this I have to know what the real
> > reason is.
> >
>
> The reason is the profile data file is BAD for some reason. But ld.so
> shouldn't segfault like that.
>
# rm -f /var/tmp/libc.so.6.profile
# LD_PROFILE=libc.so.6 ls > /dev/null
# echo foo > /var/tmp/libc.so.6.profile
# LD_PROFILE=libc.so.6 ls > /dev/null
/var/tmp/libc.so.6.profile: file is no correct profile data file for `libc.so.6'
zsh: 16404 segmentation fault LD_PROFILE=libc.so.6 ls > /dev/null
As I said, ld.so shouldn't segfault.
H.J.