Mailing List archive

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

[vdr] VDR 1.3.6 Segmentation fault in pthread_setschedparam



Hi,

Some other people on this list seem to have working dxr3 and Linux 2.6
setups. I get a segfault in vdr 1.3.6 start. It might be relatex to dxr3
plugin or Debian Sarge and Linux 2.6.3. Any ideas what goes wrong? 

vdr@napsu:~$ gdb /usr/local/bin/vdr --core=core.31861
GNU gdb 6.0
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "i386-linux"...
Core was generated by `vdr -c/etc/vdr -v/opt/vdr -E/var/log/dvb
-L/usr/local/lib/vdr -r/usr/local/shar'.
Program terminated with signal 11, Segmentation fault.
 
warning: current_sos: Can't read pathname for load map: Input/output
error
 
Reading symbols from /usr/lib/libjpeg.so.62...done.
Loaded symbols for /usr/lib/libjpeg.so.62
Reading symbols from /lib/tls/libpthread.so.0...done.
Loaded symbols for /lib/tls/libpthread.so.0
Reading symbols from /lib/tls/libdl.so.2...done.
Loaded symbols for /lib/tls/libdl.so.2
Reading symbols from /usr/lib/libstdc++.so.5...done.
Loaded symbols for /usr/lib/libstdc++.so.5
Reading symbols from /lib/tls/libm.so.6...done.
Loaded symbols for /lib/tls/libm.so.6
Reading symbols from /lib/libgcc_s.so.1...done.
Loaded symbols for /lib/libgcc_s.so.1
Reading symbols from /lib/tls/libc.so.6...done.
Loaded symbols for /lib/tls/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /usr/local/lib/vdr/libvdr-dxr3.so.1.3.6...done.
Loaded symbols for /usr/local/lib/vdr/libvdr-dxr3.so.1.3.6
#0  0x40045e9a in pthread_setschedparam () from /lib/tls/libpthread.so.0
(gdb) where
#0  0x40045e9a in pthread_setschedparam () from /lib/tls/libpthread.so.0

I tried to comment out pthread_setschedparam calls (for adjusting
scheduling I think) from dxr3 plugin but it didn't have effect. I got
the same segfault. There is also one in vdr's thread.c. 

bool cThread::Start(void)
{
  if (!running) {
     running = true;
     parentTid = pthread_self();
     pthread_create(&childTid, 
       NULL, (void *(*) (void *))&StartThread, (void *)this);
     pthread_setschedparam(childTid, SCHED_RR, 0);
     usleep(10000); 
     // otherwise calling Active() immediately after Start() 
     // causes a "pure virtual method called" error
     }
  return true; //XXX return value of pthread_create()???
}

Usleep for ten seconds to avoid error looks a bit fragile. Could this be
the problem?

Thanks for reading this far!
Seppo




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



Home | Main Index | Thread Index