Bug 1930340

Summary: crash in vdr-epgsearch plugin: EPGSearch: conf[5076]: segfault at 10010 ip 00007f9fd6854fb3 sp 00007f9fceffca68 error 4 in libstdc++.so.6.0.28[7f9fd6829000+f0000]
Product: [Fedora] Fedora Reporter: Tomi Leppikangas <tomi.leppikangas>
Component: vdr-epgsearchAssignee: MartinKG <mgansser>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 33CC: mgansser, vpvainio
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: vdr-epgsearch-2.4.0-17.fc33 vdr-epgsearch-2.4.0-17.fc32 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-02-27 22:17:53 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Tomi Leppikangas 2021-02-18 17:20:52 UTC
Description of problem:
vdr-epgsearch-2.4.0-14.fc33.x86_64 plugin crashes at startup:

Feb 18 18:34:33 host kernel: EPGSearch: conf[5076]: segfault at 10010 ip 00007f9fd6854fb3 sp 00007f9fceffca68 error 4 in libstdc++.so.6.0.28[7f9fd6829000+f0000]
Feb 18 18:34:33 host kernel: Code: 40 18 74 f3 49 3b 40 18 4c 0f 45 c0 4c 89 c0 c3 49 89 c0 eb ce 66 90 f3 0f 1e fa 48 8b 47 18 48 85 c0 74 13 0f 1f 00 49 89 c0 <48> 8>

(gdb) where
#0  0x00007ffff7c1afb3 in std::_Rb_tree_increment(std::_Rb_tree_node_base const*) () from /lib64/libstdc++.so.6
#1  0x00007ffff5d3bc18 in std::_Rb_tree_const_iterator<cConflictCheckTimerObj*>::operator++ (this=<synthetic pointer>) at /usr/include/c++/10/bits/stl_tree.h:366
#2  cConflictCheck::ProcessCheckTime (this=0x7fffe7ffec70, checkTime=0x7fffe0005340) at conflictcheck.c:587
#3  0x00007ffff5d3c19e in cConflictCheck::CreateConflictList (this=0x7fffe7ffec70, EvalTimeList=0x7fffe0004e50, TimerList=<optimized out>) at conflictcheck.c:404
#4  0x00007ffff5d3f1da in cConflictCheck::Check (this=0x7fffe7ffec70) at conflictcheck.c:239
#5  0x00007ffff5d3fd56 in cConflictCheckThread::Action (this=0x555555c3b120) at conflictcheck_thread.c:109
#6  0x00005555556def9d in cThread::StartThread (Thread=0x555555c3b120) at thread.c:293
#7  0x00007ffff7f2b3f9 in start_thread () from /lib64/libpthread.so.0
#8  0x00007ffff792eb53 in clone () from /lib64/libc.so.6


(gdb) list
582                 }
583             }
584
585         LogFile.Log(3, "add pending timers");
586         // if we have pending timers add them to the current start list
587         for (it = pendingTimers.begin(); it != pendingTimers.end(); ++it) {
588             if ((*it) && (*it)->stop > checkTime->evaltime)
589                 checkTime->startingTimers.insert(*it);
590             pendingTimers.erase(*it);
591         }



This has been fixed in: https://projects.vdr-developer.org/git/vdr-plugin-epgsearch.git/commit/conflictcheck.c?id=49ba796fe6298abf0ebba68a25ddfc92d3d70aad

    LogFile.Log(3, "add pending timers");
    // if we have pending timers add them to the current start list
    for (it = pendingTimers.begin(); it != pendingTimers.end(); ++it) {
        if ((*it) && (*it)->stop > checkTime->evaltime)
            checkTime->startingTimers.insert(*it);
    }
    pendingTimers.clear();

patch:
https://projects.vdr-developer.org/git/vdr-plugin-epgsearch.git/patch/conflictcheck.c?id=49ba796fe6298abf0ebba68a25ddfc92d3d70aad

Comment 1 MartinKG 2021-02-19 12:15:40 UTC
Thanks for reporting this issue, i will provide a new package asap.

Comment 2 Fedora Update System 2021-02-19 13:33:10 UTC
FEDORA-2021-462cb0e1ac has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2021-462cb0e1ac

Comment 3 Fedora Update System 2021-02-19 13:33:11 UTC
FEDORA-2021-de601eb75c has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2021-de601eb75c

Comment 4 Fedora Update System 2021-02-20 01:30:44 UTC
FEDORA-2021-462cb0e1ac has been pushed to the Fedora 33 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-462cb0e1ac`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-462cb0e1ac

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2021-02-20 02:09:47 UTC
FEDORA-2021-de601eb75c has been pushed to the Fedora 32 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-de601eb75c`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-de601eb75c

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Tomi Leppikangas 2021-02-21 10:13:58 UTC
Thanks for update. Seems to be working ok after updating vdr-epgsearch-2.4.0-17.fc33.x86_64

Comment 7 Fedora Update System 2021-02-27 22:17:53 UTC
FEDORA-2021-462cb0e1ac has been pushed to the Fedora 33 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 8 Fedora Update System 2021-02-27 23:06:20 UTC
FEDORA-2021-de601eb75c has been pushed to the Fedora 32 stable repository.
If problem still persists, please make note of it in this bug report.