severity 398421 important
tags 398421 moreinfo unreproducible
thanks

On Fri, Feb 02, 2007 at 04:23:22PM +0100, Robert Millan wrote:
> Steve, Paul: if you want to reproduce this, I suggest you look for mmap()
> invocations using -1.  They do appear and seem to be the root of the problem,
> although they don't always generate segfault due to pseudo-random conditions.

No, this is a red herring.  From mmap(2):

       fd should be a valid file descriptor, unless MAP_ANONYMOUS is set.  If
       MAP_ANONYMOUS  is  set,  then  fd  is  ignored on Linux.  However, some
       implementations require fd to be -1 if MAP_ANONYMOUS (or  MAP_ANON) is
       specified, and portable applications should ensure this.

The original strace you provided showed that the mmaps were requests for
MAP_ANONYMOUS segments.

> If you ask me, I wouldn't feel safe shipping with this bug.  -m32 is not such
> a bad solution (compared to a binary that segfaults randomly).

I don't find that it segfaults randomly; I find that it doesn't segfault at
all.

You say that it's only segfaulting when strace is *not* being used.  So does
it segfault when run under gdb?  That's what should be done to try to
isolate the source of this bug.

-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
[EMAIL PROTECTED]                                   http://www.debian.org/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to