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

Re: My own libc6 progress, and package adoption drive. Give me an account on master!



> 18970   pacman_10-4.1_i386.deb                  Libc6! and doesn't segfault!

> There was an error in the source.  A struct was referenced after it was freed.
> I am surprised that it worked on libc5.  It should have segfaulted with that.
> Maybe that is a bug with libc5?  I am in win right now, so don't have the
> source in front of me.  I will get the problem code and post a follow up.

--- pacman-10.orig/board.cc
+++ pacman-10/board.cc
@@ -119,7 +119,7 @@
  oldtemp=oldlist;
  while (oldtemp) {     //delete elements in the now previous sprite list
   oldnext=oldtemp->next;
-  delete oldnext;
+  delete oldtemp;
   oldtemp=oldnext;
  }
 if (zero && oldlist) { //personal thingie used for debug, not useful

This is the patch that fixed the segfault with pacman.  If you look, you'll
wonder how it worked with libc5.  BTW, this is C++ code, if that makes a
difference.


It is hard to look at a penguin and get angry.

Adam Heath of Borg-Linux adam.heath@usa.net Join the H.323 effort.  Email
http://www.debian.org - Get Your Own Linux! h.323-request@cichlid.com with
http://wwp.mirabilis.com/3375265 - Page Me  the word subscribe in the body.


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: