> > |> gdb tends to change the way malloc()ed memory is laid out
> >
> > Huh? How that?
>
> Don't ask me. I have noticed more than once that "I forgot to initialize
> malloc()ed data structures" segfaults go away when I run programs under
> gdb.
I've seen similar things with "I tried to change something const", but
only in probgrams compiled with -ggdb. Just -g and it works (read:
segfaults as it should :)
Matthew.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/