manio / vdr-plugin-dvbapi

VDR dvbapi plugin for use with OSCam
http://www.streamboard.tv/wbb2/thread.php?threadid=40060
GNU General Public License v2.0
57 stars 25 forks source link

Unable to shutdown VDR successfully (Backtrace attached) #12

Closed CReimer closed 11 years ago

CReimer commented 11 years ago

Hi manio,

Because oscam.to is no longer available, I try it here

I always get a Backtrace when I shut down VDR while I watch a crypted channel (e.g Prosieben HD)

http://pastebin.com/Jy4QATrF

After sending the SIGTERM softhddevice's output starts to stutter, and after a timeout of 20 seconds, VDR receives the SIGKILL by my runvdr script, and exits with exitstatus 1.

Greetings

Christopher "Copper" Reimer

manio commented 11 years ago

So if you have an FTA channel and stops vdr, than it is ok?

CReimer commented 11 years ago

Yes, exactly

manio commented 11 years ago

Probably the bug is also reproducible in my environment. I'll try to figure it out...

manio commented 11 years ago

I was wrong - i cannot reproduce it localy :( I was trying to shutdown vdr multiple times while channel is decrypting and always got proper exit without segfault. Can you try it with minimal plugins loaded? Please also attach more detailed log this way: run vdr under gdb, eg: gdb --args vdr -Pxvdr -Pdvbapi then type: set solib-search-path /usr/src/vdr/PLUGINS/lib of course set this path to your plugins path then type "r" to run under gdb when error occur please type: bt full and send me this info

CReimer commented 11 years ago

http://pastebin.de/30422 http://pastebin.de/30423

Here they are. But I can't see anything interesting in there. I can reproduce this very well,

first SIGTERM: sofhddevice's output starts to stutter second SIGTERM: vdr exits

manio commented 11 years ago

Please try this patch: http://skyboo.net/dvbapi.diff and let me know if it helps

CReimer commented 11 years ago

No the problem is still there.

Here is a log of the last few seconds before VDR gets forced to exit.

http://pastebin.com/YPddsCh8

manio commented 11 years ago

Ok, next test: schedule a recording on a crypted channel, then exit vdr run it with: vdr -Pdvbapi (and that's all) after eg a minute or two try to SIGTERM see if it exits cleanly and a recording is ok

CReimer commented 11 years ago

Even if there's only dvbapi, it hangs.

http://pastebin.com/fWQ8RuMT

manio commented 11 years ago

Hi Thank you for the log. Can you do the same recording test but on vdr-sc plugin? dvbapi plugin shares same DeCSA TS buffer code so I assume same problem is there. Can you confirm it?

CReimer commented 11 years ago

I tried it several times, with only sc activated. Unfortunately everything works with sc.

manio commented 11 years ago

How about this new patch: http://skyboo.net/dvbapi.diff Please also set plugin debug level to 3 when sending me the log.

CReimer commented 11 years ago

OK, with that patch it seems to be fixed.

manio commented 11 years ago

Great. Can you tell me which of those two lines makes a good effect?

CReimer commented 11 years ago

The first line. "Cancel (3)" seems to be useless.

manio commented 11 years ago

Ok, thank you for your help and time spent on this, I'll commit a fix...