Project

General

Profile

Bug #3036 » tvh_ep_dup.txt

bt, bt full, print of de and de2 - Johan Rehnberg, 2015-08-05 18:06

 
1
Program received signal SIGSEGV, Segmentation fault.
2
[Switching to Thread 0xa95f4b40 (LWP 21540)]
3
0xb66c0ce8 in __strcmp_ssse3 () from /usr/lib/libc.so.6
4
(gdb) bt
5
#0  0xb66c0ce8 in __strcmp_ssse3 () from /usr/lib/libc.so.6
6
#1  0x080abf04 in _dvr_duplicate_event (de=de@entry=0x836f968) at src/dvr/dvr_db.c:724
7
#2  0x080abf6c in dvr_entry_class_duplicate_get (o=0x836f968) at src/dvr/dvr_db.c:1860
8
#3  0x08057348 in prop_read_value (obj=obj@entry=0x836f968, p=p@entry=0x812dd28 <__compound_literal.0+2280>, m=m@entry=0x8362048, name=0x812d2d6 "duplicate", optmask=0)
9
    at src/prop.c:267
10
#4  0x08058163 in prop_read_values (obj=0x836f968, pl=0x812dd28 <__compound_literal.0+2280>, m=0x8362048, list=0x0, optmask=0) at src/prop.c:345
11
#5  0x08054fc2 in idnode_read0 (self=0x836f968, c=0x8362048, list=0x0, optmask=0) at src/idnode.c:1110
12
#6  0x0809bf0d in api_idnode_grid (perm=0x82f9eb0, opaque=0x809fe80 <api_dvr_entry_grid_upcoming>, op=0x0, args=0x82ad478, resp=0xa95f3aec) at src/api/api_idnode.c:148
13
#7  0x0809acca in api_exec (perm=0x82f9eb0, subsystem=0x81e2d12 "dvr/entry/grid_upcoming", args=0x82ad478, resp=0xa95f3aec) at src/api.c:97
14
#8  0x080bc07b in webui_api_handler (hc=0xa95f3d0c, remain=0x81e2d12 "dvr/entry/grid_upcoming", opaque=0x0) at src/webui/webui_api.c:43
15
#9  0x080603bd in http_exec (hc=hc@entry=0xa95f3d0c, hp=0x81eafe0, remain=0x81e2d12 "dvr/entry/grid_upcoming") at src/http.c:564
16
#10 0x08060e24 in http_cmd_post (spill=0xa95f3cc0, hc=0xa95f3d0c) at src/http.c:694
17
#11 http_process_request (hc=0xa95f3d0c, spill=0xa95f3cc0) at src/http.c:714
18
#12 0x080607b5 in process_request (hc=hc@entry=0xa95f3d0c, spill=spill@entry=0xa95f3cc0) at src/http.c:800
19
#13 0x08061011 in http_serve_requests (hc=0xa95f3d0c) at src/http.c:1078
20
#14 0x080610f4 in http_serve (fd=27, opaque=0xaee00538, peer=0xaee00544, self=0xaee005c4) at src/http.c:1121
21
#15 0x0805c440 in tcp_server_start (aux=0xaee00520) at src/tcp.c:542
22
#16 0x080593b6 in thread_wrapper (p=0xaee00668) at src/wrappers.c:149
23
#17 0xb679f1c3 in start_thread () from /usr/lib/libpthread.so.0
24
#18 0xb6673e8e in clone () from /usr/lib/libc.so.6
25

    
26

    
27
(gdb) bt full
28
#0  0xb66c0ce8 in __strcmp_ssse3 () from /usr/lib/libc.so.6
29
No symbol table info available.
30
#1  0x080abf04 in _dvr_duplicate_event (de=de@entry=0x836f968) at src/dvr/dvr_db.c:724
31
        record = 1
32
        de_start = {tm_sec = 0, tm_min = 5, tm_hour = 0, tm_mday = 7, tm_mon = 7, tm_year = 115, tm_wday = 5, tm_yday = 218, tm_isdst = 1, tm_gmtoff = 7200, 
33
          tm_zone = 0x81cfa80 "CEST"}
34
        de2 = 0x8373dc0
35
#2  0x080abf6c in dvr_entry_class_duplicate_get (o=0x836f968) at src/dvr/dvr_db.c:1860
36
        null = 0
37
        de = 0x836f968
38
#3  0x08057348 in prop_read_value (obj=obj@entry=0x836f968, p=p@entry=0x812dd28 <__compound_literal.0+2280>, m=m@entry=0x8362048, name=0x812d2d6 "duplicate", optmask=0)
39
    at src/prop.c:267
40
        s = <optimized out>
41
        val = 0x836f968
42
        u32 = <optimized out>
43
        buf = "\020\000\000\000\070\000\000\000\260\347s\266(\000\000\000\020\000\000\000\070\000\000"
44
        __PRETTY_FUNCTION__ = "prop_read_value"
45
#4  0x08058163 in prop_read_values (obj=0x836f968, pl=0x812dd28 <__compound_literal.0+2280>, m=0x8362048, list=0x0, optmask=0) at src/prop.c:345
46
No locals.
47
#5  0x08054fc2 in idnode_read0 (self=0x836f968, c=0x8362048, list=0x0, optmask=0) at src/idnode.c:1110
48
        idc = 0x812d400 <dvr_entry_class>
49
#6  0x0809bf0d in api_idnode_grid (perm=0x82f9eb0, opaque=0x809fe80 <api_dvr_entry_grid_upcoming>, op=0x0, args=0x82ad478, resp=0xa95f3aec) at src/api/api_idnode.c:148
50
        i = 1
51
        list = 0x8362030
52
        e = 0x8362048
53
        flist = 0x0
54
        conf = {start = 0, limit = 49, filter = {lh_first = 0x0}, sort = {key = 0x8350740 "start_real", dir = IS_ASC}}
55
        in = 0x836f968
56
        ins = {is_array = 0x8361e98, is_alloc = 100, is_count = 6, is_sorted = 0 '\000'}
57
        cb = 0x809fe80 <api_dvr_entry_grid_upcoming>
58
#7  0x0809acca in api_exec (perm=0x82f9eb0, subsystem=0x81e2d12 "dvr/entry/grid_upcoming", args=0x82ad478, resp=0xa95f3aec) at src/api.c:97
59
        ah = 0x81dea70
60
        skel = {hook = <synthetic pointer>, link = {left = <optimized out>, right = <optimized out>, parent = <optimized out>, color = <optimized out>}}
61
        op = <optimized out>
62
#8  0x080bc07b in webui_api_handler (hc=0xa95f3d0c, remain=0x81e2d12 "dvr/entry/grid_upcoming", opaque=0x0) at src/webui/webui_api.c:43
63
        r = <optimized out>
64
        ha = 0x0
65
        args = 0x82ad478
66
        resp = 0x0
67
#9  0x080603bd in http_exec (hc=hc@entry=0xa95f3d0c, hp=0x81eafe0, remain=0x81e2d12 "dvr/entry/grid_upcoming") at src/http.c:564
68
        err = <optimized out>
69
#10 0x08060e24 in http_cmd_post (spill=0xa95f3cc0, hc=0xa95f3d0c) at src/http.c:694
70
        hp = <optimized out>
71
        remain = 0x81e2d12 "dvr/entry/grid_upcoming"
72
        args = 0x0
73
        v = <optimized out>
74
#11 http_process_request (hc=0xa95f3d0c, spill=0xa95f3cc0) at src/http.c:714
75
No locals.
76
#12 0x080607b5 in process_request (hc=hc@entry=0xa95f3d0c, spill=spill@entry=0xa95f3cc0) at src/http.c:800
77
        v = <optimized out>
78
        argv = {0xb673e000 "\220-\033", 0xb66e9357 "malloc(): memory corruption"}
79
        n = <optimized out>
80
        rval = -1
81
        authbuf = "192.168.0.2\000\000\000\000\000\000\000\070\000\000\000\000\340s\266[\000\000\000\002\000\000\000\002\000\000\000\000\000\000\000w\000\000\000\000\000\000\000|\000\000\000\000\000\000\000\065Gk\266\001\000\000\000\034!\b\b\330\352'\b\252\376\067\b\001\000\000\000\337\336_\266\000\340s\266\000\347s\266\330\352'\b\001\000\000\000\200\347s\266\033\000\000\000\264<_\251\001\000\000\000\300<_\251\330\352'\b\264<_\251\004\312\005\b\300<_\251\001\000\000\000\001\000\000\000H\322*\b"
82
#13 0x08061011 in http_serve_requests (hc=0xa95f3d0c) at src/http.c:1078
83
        spill = {hq_q = {tqh_first = 0x0, tqh_last = 0xa95f3cc0}, hq_size = 0, hq_maxsize = 2147483647}
84
        argv = {0x82ad248 "sort", 0x82ad257 "", 0x81e2d2a "HTTP/1.1"}
85
        c = <optimized out>
86
        cmdline = 0x81e2d08 "POST"
87
        hdrline = 0x827ead8 ""
88
        n = <optimized out>
89
        r = 0
90
#14 0x080610f4 in http_serve (fd=27, opaque=0xaee00538, peer=0xaee00544, self=0xaee005c4) at src/http.c:1121
91
        hc = {hc_fd = 27, hc_peer = 0xaee00544, hc_peer_ipstr = 0xa95f3b70 "192.168.0.2", hc_self = 0xaee005c4, hc_representative = 0xa95f3b70 "192.168.0.2", 
92
          hc_paths = 0x81aa688 <http_paths>, hc_process = 0x8060cf0 <http_process_request>, hc_url = 0x81e2d0d "/api/dvr/entry/grid_upcoming", 
93
          hc_url_orig = 0xa95f3b90 "/api/dvr/entry/grid_upcoming", hc_keep_alive = 1, hc_reply = {hq_q = {tqh_first = 0x0, tqh_last = 0xa95f3d34}, hq_size = 0, 
94
            hq_maxsize = 2147483647}, hc_args = {tqh_first = 0x81ea820, tqh_last = 0x8291950}, hc_req_args = {tqh_first = 0x81f70f8, tqh_last = 0x8260120}, 
95
          hc_state = HTTP_CON_WAIT_REQUEST, hc_cmd = HTTP_CMD_POST, hc_version = HTTP_VERSION_1_1, hc_username = 0x0, hc_password = 0x0, hc_access = 0x82f9eb0, 
96
          hc_user_config = 0x0, hc_no_output = 0, hc_logout_cookie = 0, hc_shutdown = 0, hc_cseq = 0, hc_session = 0x0, hc_post_data = 0x82ad248 "sort", hc_post_len = 23}
97
#15 0x0805c440 in tcp_server_start (aux=0xaee00520) at src/tcp.c:542
98
        tsl = 0xaee00520
99
        to = {tv_sec = 30, tv_usec = 0}
100
        val = 1
101
        c = 74 'J'
102
#16 0x080593b6 in thread_wrapper (p=0xaee00668) at src/wrappers.c:149
103
        ts = 0xaee00668
104
        set = {__val = {16388, 0 <repeats 31 times>}}
105
        r = <optimized out>
106
#17 0xb679f1c3 in start_thread () from /usr/lib/libpthread.so.0
107

    
108

    
109
In frame 1:
110

    
111
(gdb) p *de
112
$2 = {de_id = {in_uuid = "*+5\f`@xE\322ƀ\376\223\215\274", <incomplete sequence \305>, in_link = {left = 0x836fdd0, right = 0x81f85b0, parent = 0x81f2a18, color = 0}, 
113
    in_domain_link = {left = 0x8374220, right = 0x0, parent = 0x836fdd0, color = 1}, in_domain = 0x834c9f4, in_class = 0x812d400 <dvr_entry_class>}, de_refcnt = 1, 
114
  de_global_link = {le_next = 0x836f520, le_prev = 0x836fe0c}, de_channel = 0x81f9060, de_channel_link = {le_next = 0x836f520, le_prev = 0x8370060}, 
115
  de_channel_name = 0x81f7120 "SVT2 HD Väst", de_timer = {gti_link = {le_next = 0x8371fa4, le_prev = 0x836f574}, gti_callback = 0x80af480 <dvr_timer_start_recording>, 
116
    gti_opaque = 0x836f968, gti_expire = {tv_sec = 1438898670, tv_nsec = 0}}, de_config = 0x81f49b8, de_config_link = {le_next = 0x836f520, le_prev = 0x836fe40}, 
117
  de_start = 1438898700, de_stop = 1438900500, de_start_extra = 0, de_stop_extra = 0, de_owner = 0x0, de_creator = 0x836fcc8 "Auto recording by: 192.168.0.2", 
118
  de_comment = 0x0, de_filename = 0x0, de_directory = 0x0, de_title = 0x836fa98, de_subtitle = 0x0, de_desc = 0x836fac0, de_content_type = 0, de_dvb_eid = 0, de_pri = 2, 
119
  de_dont_reschedule = 0, de_mc = -1, de_retention = 0, de_bcast = 0x8336798, de_episode = 0x836fdb0 "Season 2015.Episode 4/10", de_sched_state = DVR_SCHEDULED, 
120
  de_rec_state = DVR_RS_PENDING, de_errors = 0, de_data_errors = 0, de_last_error = 0, de_autorec_link = {le_next = 0x836f520, le_prev = 0x83707cc}, de_autorec = 0x835afb0, 
121
  de_timerec = 0x0, de_thread = 0, de_s = 0x0, de_chain = 0x0, de_inotify_link = {le_next = 0x0, le_prev = 0x0}, de_last_notify = 0}
122

    
123
(gdb) p *de2
124
$3 = {de_id = {in_uuid = "\376}\032\352\360\326\\t\250\246\373\257\212{\310", <incomplete sequence \336>, in_link = {left = 0x0, right = 0x0, parent = 0x81f03a8, color = 0}, 
125
    in_domain_link = {left = 0x0, right = 0x0, parent = 0x8372b10, color = 0}, in_domain = 0x834c9f4, in_class = 0x812d400 <dvr_entry_class>}, de_refcnt = 1, 
126
  de_global_link = {le_next = 0x8373988, le_prev = 0x837425c}, de_channel = 0x81f9060, de_channel_link = {le_next = 0x8373638, le_prev = 0x83749f8}, 
127
  de_channel_name = 0x8373f18 "SVT2 HD Väst", de_timer = {gti_link = {le_next = 0x8372f4c, le_prev = 0x8373244}, gti_callback = 0x80add20 <dvr_timer_expire>, 
128
    gti_opaque = 0x8373dc0, gti_expire = {tv_sec = 1440105300, tv_nsec = 0}}, de_config = 0x81f49b8, de_config_link = {le_next = 0x8373988, le_prev = 0x8374290}, 
129
  de_start = 1437425100, de_stop = 1437426900, de_start_extra = 0, de_stop_extra = 0, de_owner = 0x0, de_creator = 0x8374188 "Auto recording by: 192.168.0.2", 
130
  de_comment = 0x0, de_filename = 0x83741b0 "/home/johanr/Downloads/Kobra.2015-07-20.22-45.mkv", de_directory = 0x0, de_title = 0x8373f30, de_subtitle = 0x8373f78, 
131
  de_desc = 0x8374080, de_content_type = 7, de_dvb_eid = 64154, de_pri = 2, de_dont_reschedule = 0, de_mc = -1, de_retention = 0, de_bcast = 0x0, de_episode = 0x0, 
132
  de_sched_state = DVR_COMPLETED, de_rec_state = DVR_RS_PENDING, de_errors = 0, de_data_errors = 0, de_last_error = 0, de_autorec_link = {le_next = 0x8372368, 
133
    le_prev = 0x835b068}, de_autorec = 0x835afb0, de_timerec = 0x0, de_thread = 0, de_s = 0x0, de_chain = 0x0, de_inotify_link = {le_next = 0x8373988, le_prev = 0x8374318}, 
134
  de_last_notify = 0}
    (1-1/1)