AW: *** glibc detected *** double free or corruption 1.4.2-1 Patch

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

 



SUCCESS! This was the problem -> @Klaus: can you please incorporate the
changes in the next patch?


Thanks,
Martin

-----Urspr?ngliche Nachricht-----
Von: vdr-bounces@xxxxxxxxxxx [mailto:vdr-bounces@xxxxxxxxxxx] Im Auftrag von
Udo Richter
Gesendet: Montag, 4. September 2006 18:47
An: VDR Mailing List
Betreff: Re: *** glibc detected *** double free or corruption 1.4.2-1
Patch

Udo Richter wrote:

I think I've found it:

This is line 1127 of svdrp.c:

     cTimer t = *timer;

Although this looks like it calls cTimer::operator=, it actually calls the
default copy constructor of cTimer, because in this case = is not an
assignment, but an initialization. Because of that, the aux field is used by
both objects, thus the double free. Try this line to see if it causes this:

     cTimer t;
     t = *timer;

Cheers,


Udo

_______________________________________________
vdr mailing list
vdr@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr



[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux