Package: gdb
Version: 7.4.1-3

The patch gdbinit-ownership.patch has the code:

+      if (statbuf.st_uid != getuid () || (statbuf.st_mode & S_IWOTH))
+       {
+         warning ("not using untrusted file \"%s\"", file);
+         fclose (stream);
+         do_cleanups (old_cleanups);
+         return;
+       }

on ubuntu that's triggering a double-free detection/corruption
warning; ( see https://bugs.launchpad.net/ubuntu/+source/gdb/+bug/1069897 )

My reading is that the code is wrong on debian as well, it just
isn't built with the options/libc that detect the corruption/double free.

My understanding is that the do_cleanups fclose's the stream as well
and that's where it blows up; I've submitted a patch in that ubuntu bug
that just removes that fclose; although someone who understands
gdb's cleanup system might want to check the other exist paths in that
routine as well.

Dave
-- 
 -----Open up your eyes, open up your mind, open up your code -------   
/ Dr. David Alan Gilbert    |       Running GNU/Linux       | Happy  \ 
\ gro.gilbert @ treblig.org |                               | In Hex /
 \ _________________________|_____ http://www.treblig.org   |_______/


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to