Project

General

Profile

Bug #5787

Segmentation fault after/during service deletion

Added by Flole Systems about 5 years ago. Updated about 5 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2019-11-27
Due date:
% Done:

0%

Estimated time:
Found in version:
4.3-1855~gd453f5bef
Affected Versions:

Description

I tried to delete 2 services today as they are no longer broadcasted. When I first clicked the delete button nothing happened, when I clicked it again tvheadend just crashed:

(gdb) bt full
#0  0x0000563a8e58af5c in bin2hex (dst=0x7fa2294e2750 "", dstlen=33, src=0x0, srclen=16) at src/uuid.c:85
        table = "0123456789abcdef" 
        ret = 0x7fa2294e2750 "" 
#1  0x0000563a8e5986fb in idnode_uuid_as_str (in=0x0, uuid=0x7fa2294e2750 "") at src/idnode.c:238
No locals.
#2  0x0000563a8e5ce8ae in elementary_set_filter_build (set=0x563a90569fc0) at src/esstream.c:238
        t = 0x0
        st = 0x563a8e5a5109 <getfastmonoclock+40>
        st2 = 0x1b3704
        sta = 0x563a8e5a5656 <tvh_mutex_add_to_list+313>
        esf = 0x507b9f0
        ca = 0x7fa2294e2770
        ca2 = 0x4cafe0d58a2f900
        i = 692987696
        n = 32674
        p = 32674
        o = 692987712
        exclusive = 0
        sindex = 0
        mask = 32674
        service_ubuf = "\000\341\200(\375\177\000\000%YZ\216F\001\000\000\374\060e\217:V\000\000\020\237V\220:V\000\000\260" 
#3  0x0000563a8e5dd051 in service_start (t=0x563a90569d20, instance=13, weight=150, flags=131122, timeout=8, postpone=0) at src/service.c:327
        r = 22074
        stimeout = 10
        __PRETTY_FUNCTION__ = "service_start" 
#4  0x0000563a8e5dddb6 in service_find_instance (s=0x563a90569d20, ch=0x0, ti=0x0, prch=0x563a91b92968, sil=0x563a93c081b8, error=0x7fa2294e28dc, weight=150, flags=131122, timeout=8, postpone=0) at src/service.c:583
        ilm = 0x6
        si = 0x563a92187460
        next = 0x0
        pro = 0x563a9032d450
        r = 0
        r1 = 32674
#5  0x0000563a8e5d94b0 in subscription_start_instance (s=0x563a93c08010, error=0x7fa2294e28dc) at src/subscriptions.c:336
        si = 0x563a8fe4cfd8 <__mdispatch_clock>
#6  0x0000563a8e5d9800 in subscription_reschedule () at src/subscriptions.c:409
        reenter = 1
        s = 0x563a93c08010
        t = 0x563a90569d20
        si = 0x563a8fe4d140 <global_lock>
        sm = 0x7fa2294e2940
        error = 0
        postpone = 2147483647
        postpone2 = 32765
        __PRETTY_FUNCTION__ = "subscription_reschedule" 
#7  0x0000563a8e5d9243 in subscription_reschedule_cb (aux=0x0) at src/subscriptions.c:289
No locals.
#8  0x0000563a8e58cfeb in mtimer_thread (aux=0x0) at src/main.c:706
        mti = 0x563a8fced100 <subscription_reschedule_timer>
        cb = 0x563a8e5d9232 <subscription_reschedule_cb>
        now = 1783556089323
        next = 1787156089323
        id = 0x0
#9  0x0000563a8e5a52be in thread_wrapper (p=0x563a9030f7e0) at src/tvh_thread.c:91
        ts = 0x563a9030f7e0
        set = {__val = {16388, 0 <repeats 15 times>}}
        r = 0x0
#10 0x00007fa22e7d96db in start_thread (arg=0x7fa2294e3700) at pthread_create.c:463
        pd = 0x7fa2294e3700
        now = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140334454421248, 1956203052325694747, 140334454418240, 0, 94809527220192, 140725282988288, -1990161316850406117, -1990159249767109349}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {
              prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = <optimized out>
#11 0x00007fa22ce3988f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
No locals.
(gdb)          

I know that this is very vague and might not help to figure out what went wrong there but I can not reproduce this so this is all I have (plus a coredump).

History

#1

Updated by Jaroslav Kysela about 5 years ago

  • Status changed from New to Fixed

Fixed in v4.3-1856-g4db926ebe. Thanks.

Also available in: Atom PDF