On Fri, 8 Oct 2010 18:25:12 +0200, Matthias Hopf <[email protected]> wrote:
> + if (! (f = fdopen (fd, "r"))) {
> + ErrorF ("xorg_backtrace_gdb internal error 2\n");
> + close (fd);
> + return 1;
> + }
> + status = 0;
> + while (fgets (buf, 256, f)) {
> + status++;
> + ErrorF("%s", buf);
> + }
> + fclose (f);
I'd think you'd want to avoid anything that might allocate memory in
this code; a rather common crash cause is smashing malloc data.
--
[email protected]
pgpD4vU0ddNty.pgp
Description: PGP signature
_______________________________________________ [email protected]: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
