vdr-1.3.39 segfaults on 'svdrpsend.pl clre'

Message ID 43CBC922.4080903@cadsoft.de
State New
Headers

Commit Message

Klaus Schmidinger Jan. 16, 2006, 4:26 p.m. UTC
  Malte Schröder wrote:
> On Monday 16 January 2006 15:41, Malte Schröder wrote:
> 
>>Hello,
>>I use infosatepg + tvmovie2vdr to get epg-data some stations.
>>This has been working with vdr-1.3.38, but vdr-1.3.39 segfaults when
>>tvmovie2vdr starts sending the epg-data to vdr.
> 
> 
> Infact vdr segfaults when tvmovie2vdr (or I manually) sends CLRE via svdrp ...

Here's a quick fix for this - I may nned to look further
into this...




Klaus
  

Comments

Malte Schröder Jan. 16, 2006, 5:03 p.m. UTC | #1
On Monday 16 January 2006 17:26, Klaus Schmidinger wrote:
> --- epg.c       2006/01/15 13:58:30     1.49
> +++ epg.c       2006/01/16 16:18:49
> @@ -935,7 +935,8 @@
>     cSchedulesLock SchedulesLock(true, 1000);
>     cSchedules *s = (cSchedules *)Schedules(SchedulesLock);
>     if (s) {
> -     s->Clear();
> +     for (cSchedule *Schedule = s->First(); Schedule; Schedule =
> s->Next(Schedule)) 
> +         Schedule->Cleanup(INT_MAX); 
>        return true;
>        }
>     return false;

I am not able to reproduce the error with the patch applied :)

Thx
  

Patch

--- epg.c       2006/01/15 13:58:30     1.49
+++ epg.c       2006/01/16 16:18:49
@@ -935,7 +935,8 @@ 
    cSchedulesLock SchedulesLock(true, 1000);
    cSchedules *s = (cSchedules *)Schedules(SchedulesLock);
    if (s) {
-     s->Clear();
+     for (cSchedule *Schedule = s->First(); Schedule; Schedule = s->Next(Schedule))
+         Schedule->Cleanup(INT_MAX);
       return true;
       }
    return false;