Re: [vdr] get a segmentation fault when starting vdr (backtrace included)

2012-11-30 Thread sundararaj reel
On Fri, Nov 30, 2012 at 11:00 AM, Dieter Bloms v...@bloms.de wrote:


 --snip--
 g++ -g -O3 -Wall -Werror=overloaded-virtual -Wno-parentheses -c
 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
 -DVDR_USER=\root\ -DLIRC_DEVICE=\/var/run/lirc/lircd\ -D_GNU_SOURCE
 -DVIDEODIR=\/remote/vdr/video\ -DCONFDIR=\/etc/vdr/config\
 -DCACHEDIR=\\ -DRESDIR=\\
 -DPLUGINDIR=\/usr/src/vdr-1.7.32/PLUGINS/lib\
 -DLOCDIR=\/usr/share/vdr/locale\ -I/usr/include/freetype2
 -I/usr/src/v4l-dvb/linux/include epg.c
 epg.c: In member function 'bool tComponent::FromString(const char*)':
 epg.c:37:3: warning: format '%a' expects argument of type 'double', but
 argument 6 has type 'char*' [-Wformat]
 --snip--

 And after start in the logfile

 --snip--
 Nov 30 09:48:05 vdrservernew local1.err vdr: [4094] dbloms: 1 01 
  deu 0x8.799b08p-1052
 --snip--

 I think %a in my esyslog call isn't correct, but it is used this way
 with the sscanf call and when I changed it with %s I don't see any log
 entry.

 So how should the esyslog call look like ?


%a to print a char* is not right. char* is interpreted as double (see the
compiler warning) . If you want to print the pointer 'description', then
use %p.


The following code crashes on my box too. I dont know why.

 $ ./a.out
errno: 0
n=4
Stream:1 Type:1 lang:'deu'
desc addr:'0x4080'
Segmentation fault
$

In gdb:
Program received signal SIGSEGV, Segmentation fault.
0x0016e50b in _IO_vfprintf_internal (s=0x2844e0, format=0x8048711
desc:'%s'\n, ap=0xb3f4 ) at vfprintf.c:1614
1614vfprintf.c: No such file or directory.
in vfprintf.c
(gdb) bt
#0  0x0016e50b in _IO_vfprintf_internal (s=0x2844e0, format=0x8048711
desc:'%s'\n, ap=0xb3f4 ) at vfprintf.c:1614
#1  0x00175160 in __printf (format=0x8048711 desc:'%s'\n) at printf.c:35
#2  0x080485aa in FromString (s=0x804871c 1 01 deu 4:3) at fromstring.c:14
#3  0x080485ee in main (argc=1, argv=0xb514) at fromstring.c:22


--- snip ---

#include stdio.h
#include errno.h

void FromString(const char *s)
{
  unsigned int Stream, Type;
  char language[8] = {0};
  char* description=NULL;
  int n = sscanf(s, %X %02X %7s %a[^\n], Stream, Type, language,
description); // 7 = MAXLANGCODE2 - 1
  printf(errno: %d\n, errno);
  printf(n=%d\n, n);
  printf(Stream:%u Type:%u lang:'%s'\n, Stream, Type, language);
  printf(desc addr:'%p'\n, description);
  printf(desc:'%s'\n, description); // XXX crashes here
}

int main(int argc, char* argv[])
{
  if (argc == 2)
FromString((const char*)argv[1]);
  else
FromString(1 01 deu 4:3);

  return 0;
}

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


Re: [vdr] get a segmentation fault when starting vdr (backtrace included)

2012-11-30 Thread sundararaj reel
On Fri, Nov 30, 2012 at 11:31 AM, Dieter Bloms v...@bloms.de wrote:

 Hi,

 On Fri, Nov 30, sundararaj reel wrote:

  %a to print a char* is not right. char* is interpreted as double (see the
  compiler warning) . If you want to print the pointer 'description', then
  use %p.

 with esyslog(dbloms: \%X\ \%02X\ \%7s\ \%p\, Stream, Type,
 language, description);
 I get the following log entry:

 --snip--
 Nov 30 10:27:24 vdrservernew local1.err vdr: [7118] dbloms: 1 01 
  deu 0x4080
 --snip--

  The following code crashes on my box too. I dont know why.

 did you do it on uClibc system or a glibc one ?



Ran that code on ubuntu 10.04.

$ /lib/libc.so.6
GNU C Library (Ubuntu EGLIBC 2.11.1-0ubuntu7) stable release version
2.11.1, by Roland McGrath et al.
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 4.4.3.
Compiled on a Linux 2.6.24-27-server system on 2010-04-22.
Available extensions:
crypt add-on version 2.1 by Michael Glad and others
GNU Libidn by Simon Josefsson
Native POSIX Threads Library by Ulrich Drepper et al
BIND-8.2.3-T5B
For bug reporting instructions, please see:
http://www.debian.org/Bugs/.
___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


[vdr] vdr 1.7.23: patch for handling symlinks in recordings directory as earlier

2012-01-17 Thread sundararaj reel
Hi,

I am attaching a patch for vdr 1.7.23 for the problem described here:
http://www.vdr-portal.de/board1-news/board2-vdr-news/p1047199-announce-vdr-developer-version-1-7-23/#post1047199

There appears to be a problem in listing recordings due to a bug fix
in vdr 1.7.23. Fixed handling symbolic links in
cRecordings::ScanVideoDir()

The attached patch just disables the translation of symbolic links to
real paths. So that all recordings appear to be under the same
(recordings) directory tree, as it was earlier.

Please reply with your results.

-- 
Thanks,
Sundararaj
diff --git a/recording.c b/recording.c
index cf35bb7..5772dab 100644
--- a/recording.c
+++ b/recording.c
@@ -1120,9 +1120,13 @@ void cRecordings::ScanVideoDir(const char *DirName, bool Foreground, int LinkLev
 continue;
 }
  Link = 1;
+#if 0 
+ // do not resolve the symbolic links in paths to real path
+ // thereby keeping all the recordings under one directory
  buffer = ReadLink(buffer);
  if (!*buffer)
 continue;
+#endif
  if (stat(buffer, st) != 0)
 continue;
  }
___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


[vdr] strcmp() segfaults if one (and only one) of the parameters is NULL ?

2011-07-05 Thread sundararaj reel
Hi,

strcmp() returns 0 if both are parameters NULL, but segfaults if one
of the parameters is NULL.

Is this a known behaviour ? man page says nothing about NULL parameters.
I ask because,  vdr checks for NULL parameter(s) to strcmp() sometimes.

Check for one or both parameters:
epg.c:692:  if (shortText  strcmp(title, shortText) == 0) {
epg.c:742:  if (shortText  description  strcmp(shortText,
description) == 0) {


No check for null parameter:
channels.c:227: bool nn = strcmp(name, Name) != 0;
channels.c:228: bool ns = strcmp(shortName, ShortName) != 0;


-- 
Thanks,
Sundararaj



$ /lib/libc.so.6
GNU C Library (Ubuntu EGLIBC 2.11.1-0ubuntu7.7) stable release version
2.11.1, by Roland McGrath et al.
...
Compiled by GNU CC version 4.4.3.
Compiled on a Linux 2.6.24-28-server system on 2011-01-11.
Available extensions:
crypt add-on version 2.1 by Michael Glad and others
GNU Libidn by Simon Josefsson
Native POSIX Threads Library by Ulrich Drepper et al
BIND-8.2.3-T5B



/*---*/

#include string.h
#include stdio.h

int main()
{
int nn;

printf(trying strcmp(NULL,NULL)\n);
nn = strcmp(NULL, NULL); /* no segfault */

printf(trying strcmp(\non null string\,NULL)\n);
nn = strcmp(non null string, NULL);  /* segfault */

printf(does not reach here\n);

return 0;
} /* main() */

/*---*/


in gdb I get this backtrace
#0  __strcmp_ia32 () at ../sysdeps/i386/i686/multiarch/../strcmp.S:40

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


Re: [vdr] reelchannelscan for S2API-patched VDR

2008-10-22 Thread sundararaj reel
 It seems to work fine with DVB-S. But it doesn't work with DVB-S2.
 I have took a look at transponders files of reel. And found that files
 hasn't any information
 about modulation (QPSK, 8PSK)
 I don't know how Reel don't use this informations for tuning.


Transponder list does not provide information about modulation. Channelscan
does not know about the modulation it simply tries one modulation after
another in this order  No modulation Set(for manual
scan)/QPSK/8PSK/QPSK_S2. See cScan::ScanDVB_S():[EMAIL PROTECTED]

-- 

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


Re: [vdr] vdr-1.5.18 subtitles issue

2008-09-08 Thread sundararaj reel
On Sat, Sep 6, 2008 at 2:18 PM, matthieu castet [EMAIL PROTECTED]wrote:

 Klaus Schmidinger wrote:

  I don't have such problems here on a FF DVB card.
  Could it be that the softdevice plugin doesn't handle the OSD levels
  correctly? These were introduced in VDR version 1.5.9.
 
 Yes it seems to be a softdevice problem : there a post on the softdevice
 ML, the developper try something, but it didn't solve the problem. See
 http://thread.gmane.org/gmane.comp.video.vdr.softdevice/689

 Matthieu

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



I see. Thanks for the information.
-- 
Best regards,
Sundararaj
___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


[vdr] [announce] New Plugin : bgprocess

2008-07-09 Thread sundararaj reel
Hi all,

Here is a new plugin that receives and displays information about
background processes. The information that is to be displayed is got
through service calls / svdrpcommands. To modify other plugins to use
bgprocess plugin have a look at the README in the archive file.

The plugin is available at
:http://www.reelbox.org/software/vdr/vdr-bgprocess-0.1.0.tgz

--
Best,
Sundararaj

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


Re: [vdr] reelchannelscan 0.6.1 patch for vdr-1.7.0 + h264

2008-05-23 Thread sundararaj reel
 I would like to mention that for the time being the scanner won't pick up 
 DVB-S2 channels.
 Anyone knows why?


You might want to look into
svn ls  svn://[EMAIL PROTECTED]/testing/src/kernel/patches/2.6.11.11/

frontend.h is patched for S2 support.  I donot if this would help,
just for your info.

Bye

-- 
Sundararaj

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


Re: [vdr] vdr-1.7.0 and reelchannelscan-1.6 plugin

2008-05-20 Thread sundararaj reel
On Tue, May 20, 2008 at 2:22 AM, Mike Booth [EMAIL PROTECTED] wrote:
 I am unable to compile this plugin. It fails with csmenu.c:236:
 error: 'class cDevice' has no member named 'ProvidesS2'.

cDevice::ProvidesS2() is not from orignal-vdr. You can add this
function to your cDevice class

bool cDevice::ProvidesS2() const
{
  return false;
}

 I'm using vdr-1.7.0, multiproto_plus and the reelchannelscan plugin is from
 CVS

I am not sure if reelchannelscan works with multiproto.

-- 
Best,
Sundararaj

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


[vdr] cChannels::ReNumber() maxNumber

2008-03-04 Thread sundararaj reel
Hi all,

 if I empty channels.conf while VDR is running then
cChannels::ReNumber() doesnot set cChannels::maxNumber to 0.  Is this
a feature ? Of course, when vdr is restarted I have maxNumber set to
0, thanks to initialization in cChannels().  Could we not, in the
beginning of ReNumber(), set maxNumber = 0 ?

I am running 1.4.7, 1.5.16 seems to be the same.

Thanks.
-- 

Sundararaj

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


Re: [vdr] trouble changing Setup variables from Plugin.

2008-02-12 Thread sundararaj reel

   I change a VDR's setup setting from inside a plugin like:
 
  ::Setup.UseSmallFont = 0;
  ::Setup.Save(); // commit the change to setup.conf
 
  This is done only when the plugin's setting is changed. ( in the Store()
  ).
 
  When changes are accepted with OK, the setup.conf is written but it is
  immediately overwritten by a Setup.Save() call from
  cMenuSetupBase::Store(). How can I avoid this ?
 
  Is there a more orderly way to modify VDR's setup settings ?

 Why do you need to change VDR's setup settings?
 That's VDR's own business ;-)



:) True.

The skin plugin I am trying has its parameters buried deep inside submenus.
I want the font setting of the skin displayed under the OSD-Expertmenu.
And would like to change it when ever the skin's settings are changed -
since they are related.

-- 

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


[vdr] trouble changing Setup variables from Plugin.

2008-02-12 Thread sundararaj reel
Hi,

 I change a VDR's setup setting from inside a plugin like:

::Setup.UseSmallFont = 0;
::Setup.Save(); // commit the change to setup.conf

This is done only when the plugin's setting is changed. ( in the Store() ).


When changes are accepted with OK, the setup.conf is written but it is
immediately overwritten by a Setup.Save() call from cMenuSetupBase::Store().
How can I avoid this ?

Is there a more orderly way to modify VDR's setup settings ?


-- 

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


[vdr] VDR and UPnP server

2007-12-10 Thread sundararaj reel
Hi,

 I am looking for a UPnP server that can stream VDR's recordings in my
network. Has any work already started ?
I read a couple of emails on this topic but those were sent two years
ago. I am interested to hear what others have already done in this
regard.

Thanks,
Sundararaj

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


[vdr] VDR EPG documenation

2007-11-22 Thread sundararaj reel
Hi,

 I am novice in VDR programming. I tried writing a plugin for getting
EPG data from the Internet and using it. Now a prototype is up and
running.

To debug, extend and maintain the plugin I could use some more
information. I wish I could get my hands on some documentation on the
VDR classes (what they do...) and EPG ( for eg. how/when to set
eventID, TableID ).

I have with me doxygen generated documentation. But I still do not
have something on par with cEvent::FixEpgBugs() kind of comments.

Any help would be welcomed.

Thanks in advance,
Sundararaj

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