Mailing List archive

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

[vdr] Re: Watchdog timer expires during removal of a recording



Am Die, 2003-04-15 um 22.35 schrieb Klaus Schmidinger:
> Benjamin Harling wrote:
> > The described problem appeared sometime around vdr-version 1.0.X. I
> > cannot remember having that problem before that version. And I always
> > used the very same computer until last weekend.
> > 
> > Maybe the code regarding this functionality has been changed around that
> > time? Klaus?
> 
> Since I don't have any such problems here I'm afraid I can't help
> you there. You'll need to try the various versions on your machine
> to narrow down the version switch that introduced the problem.

Hi Klaus,

thanks for your answer. Tonight I tried to put some debugging output
into your code to narrow down the problem.

I put in to isyslog-messages around the function RemoveFileOrDir in
tools.c. As you can see the timepoint of entry to this function is to
the second the same as the point of return. This matches the results of
my tests on filesystem level - removal of a recording happens within a
second (Zeitpunkt Start vs. Zeitpunkt Ende). Please forgive the typos.

This is what appears in /var/log/messages:
------------------------------------------------------------------
Apr 16 00:27:10 amun vdr[23472]: iBenjamin removing recording
/video0/Kinder/Unser_Sandm?nnchen/Koko_und_Kiri:_Koko_und_der_fliegende_Teppich/2003-03-29.18:53.50.50.del
Apr 16 00:27:10 amun vdr[23472]: RemoveFileOrDir (tools.c) removing
Zeitpunktistart 1050445630
Apr 16 00:27:10 amun vdr[23472]: RemoveFileOrDir (tools.c) removing
Zeitpunkti Ende 1050445630
Apr 16 00:28:09 amun vdr[23472]: PANIC: watchdog timer expired -
exiting!
Apr 16 00:28:09 amun lircd 0.6.6[749]: removed client
Apr 16 00:28:14 amun vdr[24118]: VDR version 1.1.27 started
--------------------------------------------------------------------

So, the problem I have is introduced somewhere beyond this function.

Some questions:

Is this the function where the actual removal of recordings happens?

What follows, processwise?

How does the concept of your watchdog work?

Thanks in advance and sorry for keeping you busy,

Benjamin


Here is what I put in your code:

>bool RemoveFileOrDir(const char *FileName, bool >FollowSymlinks)
>{
>  struct stat st;
>
  long int my_time;
  time(&my_time); 
  char my_buffer[100];
  sprintf(my_buffer, "Zeitpunktistart %ld", my_time); 
  isyslog("RemoveFileOrDir (tools.c) removing %s", my_buffer);
>
>  if (stat(FileName, &st) == 0) {
>     if (S_ISDIR(st.st_mode)) {
>
>...
>
>     LOG_ERROR_STR(FileName);
>     return false;
>     }
>  
  time(&my_time); 
  sprintf(my_buffer, "Zeitpunkti Ende %ld", my_time); 
  isyslog("RemoveFileOrDir (tools.c) removing %s", my_buffer);
>  
>  return true;
>}




-- 
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe vdr" as subject.



Home | Main Index | Thread Index