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

Bug#435382: libc6: ld-linux.so segfault.



On Tue, Jul 31, 2007 at 10:20:29PM +0400, Sergei Organov wrote:
> Pierre Habouzit <madcoder@debian.org> writes:
> 
> > On Tue, Jul 31, 2007 at 11:57:23AM -0400, Daniel Jacobowitz wrote:
> >> On Tue, Jul 31, 2007 at 07:25:23PM +0400, Sergei Organov wrote:
> >> > >> 4. Probably ld-linux.so itself should not segfault no matter what.
> >> 
> >> > Thank you very much for clarification. Yes, I did it wrong, and now the
> >> > program does start, but the (4) above holds, right? Therefore I still
> >> > think it's a bug in ld-linux.so, even though not an important one for me
> >> > anymore.
> >> 
> >> No, I don't think (4) holds.  This is one of the most performance
> >> critical programs on a Linux system; it assumes that the input files
> >> are somewhat valid.
> >
> >   not to mention that if you put any random .so because of
> > LD_LIBRARY_PATH in the linker path and expect it to work properly
> > whatever happens, then well, you're profoundly mistaken IMHO.
> 
> Sorry, but I did not expect random crap called something.so to work
> properly, -- I just expected ld-linux.so *itself* not to segfault. Maybe
> I'm indeed mistaken believing that program segfault is *always* bug.
> 
> Though if you guys insist ld-linux.so segfault is not a bug, I can cope
> with it, I think.

  you don't get it, given _random_ input, you can't expect _any_ program
not to crash. E.g. the ld.so linker expect everything it uses as library
to link them to be correct enough. If not, as it's very critical, it
crashes.  Remember, it's up to the administrator to know what he install
in the linker paths, so he's supposed to have checked that a bit (or
trust his distribution).

  You have added non standard paths in your LD_LIBRARY_PATH, it crashes.
well, that's life. strlen(NULL) also crashes, and it's not the libc
fault, it's because you pass invalid input data to strlen. That's
exactly the same.

Cheers,
-- 
·O·  Pierre Habouzit
··O                                                madcoder@debian.org
OOO                                                http://www.madism.org

Attachment: pgpRgREF6kXbX.pgp
Description: PGP signature


Reply to: