Project

General

Profile

Bug #3726

#3717 Still not fixed - segfault while trying to expand HDHomerun tv adapter

Added by Set ti over 8 years ago. Updated over 8 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
Crashes
Target version:
-
Start date:
2016-04-16
Due date:
% Done:

100%

Estimated time:
Found in version:
v4.1-1896-g0e5fc7c
Affected Versions:

Description

Using v4.1-1896-g0e5fc7c still does not fix the issue mentioned in https://tvheadend.org/issues/3717

(gdb) bt full
#0  0x7562512e in strlen () from /usr/lib/libc.so.6
No symbol table info available.
#1  0x00056198 in htsmsg_add_str (msg=0x71704da8, msg@entry=0x7561ffc8 <malloc+100>, name=name@entry=0x11f9f8 "value", str=0x2e323931 <error: Cannot access memory at address 0x2e323931>) at src/htsmsg.c:357
        f = <optimized out>
#2  0x00026508 in prop_read_value (obj=obj@entry=0x71702df8, p=p@entry=0x1b8ec0 <__compound_literal.0+72>, m=0x7561ffc8 <malloc+100>, m@entry=0x71704da8, name=name@entry=0x11f9f8 "value", optmask=optmask@entry=0, lang=lang@entry=0x71704430 "ger") at src/prop.c:339
        s = <optimized out>
        val = <optimized out>
        u32 = <optimized out>
        buf = "\a\000\000\000\250Mpq\364]\005\000\004\000\000\000\001\000\000\000\300\216\033" 
        __PRETTY_FUNCTION__ = "prop_read_value" 
#3  0x00026970 in prop_serialize_value (obj=0x71702df8, pl=0x1b8ec0 <__compound_literal.0+72>, msg=0x71704d90, optmask=0, lang=0x71704430 "ger") at src/prop.c:535
        buf = '\000' <repeats 12 times>, "\003\000\000" 
        opts = 6
        m = 0x71704da8
        lang = 0x71704430 "ger" 
        optmask = 0
        msg = 0x71704d90
        pl = 0x1b8ec0 <__compound_literal.0+72>
        obj = 0x71702df8
        f = <optimized out>
#4  0x00027580 in prop_serialize (obj=obj@entry=0x71702df8, pl=0x1b8ec0 <__compound_literal.0+72>, msg=msg@entry=0x71704d90, list=0x0, optmask=0, lang=0x71704430 "ger") at src/prop.c:553
No locals.
#5  0x000206bc in add_params (self=self@entry=0x71702df8, p=p@entry=0x71704d90, list=list@entry=0x0, optmask=1903182896, optmask@entry=0, lang=lang@entry=0x71704430 "ger", ic=0x1b8e28 <tvhdhomerun_device_class>, ic=0x1b8e28 <tvhdhomerun_device_class>) at src/idnode.c:1244
No locals.
#6  0x00023224 in idnode_params (lang=0x71704430 "ger", optmask=0, list=0x0, self=0x71702df8, idc=0x1b8e28 <tvhdhomerun_device_class>) at src/idnode.c:1253
        p = 0x71704d90
#7  idnode_serialize0 (self=0x71702df8, list=list@entry=0x0, optmask=optmask@entry=0, lang=0x71704430 "ger") at src/idnode.c:1501
        idc = 0x1b8e28 <tvhdhomerun_device_class>
        ubuf = "704b63f9eea288ed49ddc727b0fdc199" 
        m = 0x717044c8
#8  0x0007c2dc in api_idnode_tree (perm=perm@entry=0x717043a8, opaque=<optimized out>, op=<optimized out>, args=args@entry=0x7170c308, resp=resp@entry=0x677fe6f4) at src/api/api_idnode.c:566
        in = 0x71702df8
        m = <optimized out>
        i = 0
        v = 0x717044b0
        uuid = <optimized out>
        root = <optimized out>
        isroot = <optimized out>
        node = <optimized out>
        rootfn = <optimized out>
#9  0x0007b750 in api_exec (perm=0x717043a8, subsystem=subsystem@entry=0x717012a2 "hardware/tree", args=args@entry=0x7170c308, resp=0x677fe6f4, resp@entry=0x677fe6ec) at src/api.c:97
        ah = <optimized out>
        skel = {hook = <synthetic pointer>, link = {left = <optimized out>, right = <optimized out>, parent = <optimized out>, color = <optimized out>}}
        op = <optimized out>
#10 0x000a8fe0 in webui_api_handler (hc=0x677fe910, remain=0x717012a2 "hardware/tree", opaque=<optimized out>) at src/webui/webui_api.c:43
        r = <optimized out>
        ha = 0x0
        args = 0x7170c308
        resp = 0x717040d0
#11 0x00032458 in http_exec (hc=hc@entry=0x677fe910, hp=hp@entry=0x12d8a30, remain=0x717012a2 "hardware/tree") at src/http.c:891
        err = <optimized out>
#12 0x000332dc in http_cmd_post (spill=<optimized out>, hc=0x677fe910) at src/http.c:1027
        hp = 0x12d8a30
        remain = 0x717012a2 "hardware/tree" 
        args = 0x0
        v = <optimized out>
#13 http_process_request (hc=0x677fe910, spill=<optimized out>) at src/http.c:1049
No locals.
#14 0x000328dc in process_request (hc=hc@entry=0x677fe910, spill=0x677fe8d8, spill@entry=0x677fe8d0) at src/http.c:1160
        v = <optimized out>
        argv = {0x756ea000 "\030\217\023", 0xae <error: Cannot access memory at address 0xae>}
        n = <optimized out>
        rval = -1
        authbuf = "10.0.0.5\000\000pq\020\000pq\020\000\000\000\350\003\000\000\360\003\000\000 \242nu\022\000\000\000\212\000\000\000\000\000\000\000 \242nu\002\000\000\000\002", '\000' <repeats 23 times>, "\002\000\000\000\070\000\000\000[\000\000\000n\000\000\000w\000\000\000|\000\000\000\212\000\000\000\260Cpq\250Cpq\020\000pq\002\000\000\000\020\000\000\000\350\003\000\000PDpq\001\000\000\000\064\302\005\000\001\000\000\000\330\350\177gPD" 
#15 0x000334e4 in http_serve_requests (hc=hc@entry=0x677fe910) at src/http.c:1450
        spill = {hq_q = {tqh_first = 0x0, tqh_last = 0x677fe8d8}, hq_size = 0, hq_maxsize = 2147483647}
        argv = {0x717043a8 "", 0x717043b0 "", 0x717012b0 "HTTP/1.1"}
        c = <optimized out>
        cmdline = 0x71701298 "POST" 
        hdrline = 0x71704450 "" 
        n = <optimized out>
        r = <optimized out>
#16 0x0003360c in http_serve (fd=16, opaque=opaque@entry=0x728004a8, peer=peer@entry=0x728004b4, self=self@entry=0x72800534) at src/http.c:1498
        hc = {hc_fd_lock = {__data = {__lock = 0, __count = 0, __owner = 0, __kind = 0, __nusers = 0, {__spins = 0, __list = {__next = 0x0}}}, __size = '\000' <repeats 23 times>, __align = 0}, hc_fd = 16, hc_peer = 0x728004b4, hc_peer_ipstr = 0x677fe778 "10.0.0.5", hc_self = 0x72800534, hc_representative = 0x677fe778 "10.0.0.5", hc_paths_mutex = 0x211154 <http_paths_mutex>, hc_paths = 0x21116c <http_paths>, hc_process = 0x3314c <http_process_request>, hc_url = 0x7170129d "/api/hardware/tree", hc_url_orig = 0x677fe788 "/api/hardware/tree", hc_keep_alive = 1, hc_reply = {hq_q = {tqh_first = 0x0, tqh_last = 0x677fe954}, hq_size = 0, hq_maxsize = 2147483647}, hc_args = {tqh_first = 0x717038d8, tqh_last = 0x71704328}, hc_req_args = {tqh_first = 0x71704088, tqh_last = 0x71704098}, hc_state = HTTP_CON_WAIT_REQUEST, hc_cmd = HTTP_CMD_POST, hc_version = HTTP_VERSION_1_1, hc_username = 0x0, hc_password = 0x0, hc_authhdr = 0x0, hc_nonce = 0x0, hc_access = 0x717043a8, hc_user_config = 0x0, hc_no_output = 0, hc_logout_cookie = 0, hc_shutdown = 0, hc_cseq = 0, hc_session = 0x0, hc_post_data = 0x717041b8 "uuid", hc_post_len = 9}
#17 0x0002c7f0 in tcp_server_start (aux=0x72800490) at src/tcp.c:645
        tsl = 0x72800490
        to = {tv_sec = 30, tv_usec = 0}
        val = 1
        c = 74 'J'
#18 0x00028ba4 in thread_wrapper (p=0x72800470) at src/wrappers.c:159
        ts = 0x72800470
        set = {__val = {16388, 0 <repeats 31 times>}}
        r = <optimized out>
#19 0x7578bf78 in start_thread () from /usr/lib/libpthread.so.0
No symbol table info available.
#20 0x7567ea80 in ?? () from /usr/lib/libc.so.6
No symbol table info available.
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb) frame 3
#3  0x00026970 in prop_serialize_value (obj=0x71702df8, pl=0x1b8ec0 <__compound_literal.0+72>, msg=0x71704d90, optmask=0, lang=0x71704430 "ger") at src/prop.c:535
535         prop_read_value(obj, pl, m, "value", optmask, lang);
(gdb) print *pl
$1 = {id = 0x1b921c "ip_address", name = 0x15aa8c "IP address", desc = 0x0, type = PT_STR, islist = 0 '\000', group = 0 '\000', off = 0, opts = 6, intextra = 0, get = 0xf9694 <tvhdhomerun_device_class_get_ip_address>, set = 0x0, list = 0x0, rend = 0x0, def = {i = 0, s = 0x0, u16 = 0, u32 = 0, s64 = 0, d = 0, tm = 0, list = 0x0}, get_opts = 0x0, doc = 0x0, notify = 0x0}

History

#1

Updated by Jaroslav Kysela over 8 years ago

  • Status changed from New to Fixed
  • % Done changed from 0 to 100

Applied in changeset commit:tvheadend|969be335098cb6553ae4ba45e6c08518c8115d21.

Also available in: Atom PDF