Project

General

Profile

Bug #1686

Crash during Startup

Added by Thomas Hackel almost 11 years ago. Updated almost 11 years ago.

Status:
Invalid
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2013-04-08
Due date:
% Done:

0%

Estimated time:
Found in version:
3.5.80~g7588429
Affected Versions:

Description

Segfault during startup.

Deletion of configuration data does not help.

Last worked at last with 3.3.444~g6dbec8e

:38.018 [  DEBUG]:config: no configuration, loading defaults
Apr 08 08:17:38.107 [   INFO]:charset: 71 entries loaded
Apr 08 08:17:38.108 [   INFO]:dvb: Found adapter /dev/dvb/adapter0 (ST STV0299 DVB-S) via PCI
Apr 08 08:17:38.136 [  ALERT]:CRASH: Signal: 11 in PRG: /home/thomas/git/tvheadend/build.linux/tvheadend (3.5.80~g7588429) [e215524637177d4e4b27f45499b5645148bf0b0e] CWD: /home/hts  
Apr 08 08:17:38.136 [  ALERT]:CRASH: Fault address (nil) (Address not mapped)
Apr 08 08:17:38.136 [  ALERT]:CRASH: Loaded libraries: /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 /lib/x86_64-linux-gnu/libz.so.1 /usr/lib/x86_64-linux-gnu/libavahi-common.so.3 /usr/lib/x86_64-linux-gnu/libavahi-client.so.3 /usr/lib/x86_64-linux-gnu/libcurl.so.4 /lib/x86_64-linux-gnu/librt.so.1 /lib/x86_64-linux-gnu/libdl.so.2 /lib/x86_64-linux-gnu/libpthread.so.0 /lib/x86_64-linux-gnu/libm.so.6 /lib/x86_64-linux-gnu/libc.so.6 /lib/x86_64-linux-gnu/libdbus-1.so.3 /usr/lib/x86_64-linux-gnu/libidn.so.11 /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2 /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2 /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2 /lib/x86_64-linux-gnu/libssl.so.1.0.0 /usr/lib/x86_64-linux-gnu/librtmp.so.0 /lib64/ld-linux-x86-64.so.2 /lib/x86_64-linux-gnu/libresolv.so.2 /usr/lib/x86_64-linux-gnu/libsasl2.so.2 /usr/lib/x86_64-linux-gnu/libgnutls.so.26 /lib/x86_64-linux-gnu/libgcrypt.so.11 /usr/lib/x86_64-linux-gnu/libkrb5.so.3 /usr/lib/x86_64-linux-gnu/libk5crypto.so.3 /lib/x86_64-linux-gnu/libcom_err.so.2 /usr/lib/x86_64-linux-gnu/libkrb5support.so.0 /usr/lib/x8 
Apr 08 08:17:38.136 [  ALERT]:CRASH: Register dump [23]: 0000000000000002 00007fff71dfd3d8 2f617461642f646e 0000000000000002 00000000023a8e40 0000000000000001 0000000000000000 00007fff71dfd808 0000000000000050 000000000000000a 00007fff71dfd4b0 00000000023b1010 6173726576696e55 0000000000000000 00007f401d703218 00007fff71dfd4b0 000000000045bf1e 0000000000010202 0000000000000033 0000000000000006 000000000000000e fffffffe7ffbfa17 0000000000000000 
Apr 08 08:17:38.136 [  ALERT]:CRASH: STACKTRACE
Apr 08 08:17:38.156 [  ALERT]:CRASH: /home/thomas/git/tvheadend/src/trap.c:141 0x42accb
Apr 08 08:17:38.159 [  ALERT]:CRASH: ??:0 0x7f401d99c060
Apr 08 08:17:38.166 [  ALERT]:CRASH: /home/thomas/git/tvheadend/src/dvb/dvb_satconf.c:78 0x45bf1e
Apr 08 08:17:38.173 [  ALERT]:CRASH: /home/thomas/git/tvheadend/src/dvb/dvb_satconf.c:240 0x45c257
Apr 08 08:17:38.180 [  ALERT]:CRASH: /home/thomas/git/tvheadend/src/dvb/dvb_adapter.c:833 0x455f8d
Apr 08 08:17:38.186 [  ALERT]:CRASH: /home/thomas/git/tvheadend/src/main.c:691 0x405ab9
Apr 08 08:17:38.187 [  ALERT]:CRASH: __libc_start_main+0xed  (/lib/x86_64-linux-gnu/libc.so.6)
Apr 08 08:17:38.193 [  ALERT]:CRASH: ??:0 0x405f05

History

#1

Updated by Adam Sutton almost 11 years ago

Does this happen when starting up with completely fresh (i.e. no) configuration or only after you've done some configuration (or restarted)?

Adam

#2

Updated by Adam Sutton almost 11 years ago

Also can you try and get a full gdb stack trace (bt full) that will be more informative.

Adam

#3

Updated by Thomas Hackel almost 11 years ago

#0  0x000000000045bf1e in dvb_satconf_entry_find (id=0x7fffffffe310 "1", tda=0x6b5010, create=<optimized out>) at /home/thomas/git/tvheadend/src/dvb/dvb_satconf.c:78                                                                                                          
        buf = "1\000\000\000\000\000\000\000\300<H\000\000\000\000\000\020Pk"                                                                                                                                                                                                  
        sc = 0x6ace40                                                                                                                                                                                                                                                          
        tally = 1                                                                                                                                                                                                                                                              
#1  dvb_satconf_entry_find (tda=0x6b5010, id=<optimized out>, create=1) at /home/thomas/git/tvheadend/src/dvb/dvb_satconf.c:53                                                                                                                                                 
        sc = <optimized out>                                                                                                                                                                                                                                                   
        tally = 1                                                                                                                                                                                                                                                              
#2  0x000000000045c257 in dvb_satconf_init (tda=0x6b5010) at /home/thomas/git/tvheadend/src/dvb/dvb_satconf.c:240                                                                                                                                                              
        dt = 0x6b73b0                                                                                                                                                                                                                                                          
        name = "dvbsatconf/(null)", '\000' <repeats 88 times>"\203, \067˝\205\277G\000\000\000\000\360~\016\000\000\b\t\000\000\000\000\000\377\377\377\377\000\000\000\000@\377\377\377\377\377\377\377\207,H\000\000\000\000\000\210\332\377\377\377\177\000\000dvb/dvb0.dvr0\000\000\000\000\071k\000\000\000\000\000 \302j\000\000\000\000\000G\000\000\000\000\000\000\000!\000\000\000\000\000\000\000\205\000\000\000\000\000\000\000<\201\\\366\377\177", '\000' <repeats 11 times>"\203, \067˝\205\277Gh\346\377\377\377\177\000\000\377\377\377\377\000\000\000"                                                                                                                                                                                                                                                                   
        sc = <optimized out>                                                                                                                                                                                                                                                   
        r = <optimized out>                                                                                                                                                                                                                                                    
#3  0x0000000000455f8d in dvb_adapter_init (adapter_mask=<optimized out>, rawfile=<optimized out>) at src/dvb/dvb_adapter.c:833                                                                                                                                                
        l = 0x0                                                                                                                                                                                                                                                                
        c = <optimized out>                                                                                                                                                                                                                                                    
        f = <optimized out>                                                                                                                                                                                                                                                    
        s = <optimized out>                                                                                                                                                                                                                                                    
        i = <optimized out>                                                                                                                                                                                                                                                    
        type = <optimized out>
        u32 = 0
        tda = 0x6b5010
#4  0x0000000000405ab9 in main (argc=<optimized out>, argv=0x7fffffffec48) at src/main.c:691
        i = <optimized out>
        set = {__val = {18446744067267100671, 18446744073709551615 <repeats 15 times>}}
        adapter_mask = 4294967295
        opt_help = 0
        opt_version = 0
        opt_fork = 0
        opt_firstrun = 1
        opt_debug = 1
        opt_syslog = 0
        opt_uidebug = 0
        opt_abort = 0
        opt_noacl = 0
        opt_ipv6 = 0
        opt_config = 0x0
        opt_user = 0x0
        opt_group = 0x7fffffffee7f "video" 
        opt_pidpath = 0x471932 "/var/run/tvheadend.pid" 
        opt_dvb_adapters = 0x0
        opt_dvb_raw = 0x0
        opt_trace = 0x0
        opt_rawts = 0x0
        opt_bindaddr = 0x0
        opt_subscribe = 0x0
        cmdline_opts = {{sopt = 0 '\000', lopt = 0x0, desc = 0x471949 "Generic Options", type = OPT_BOOL, param = 0x0}, {sopt = 104 'h', lopt = 0x471959 "help", desc = 0x47195e "Show this page", type = OPT_BOOL, param = 0x7fffffffeafc}, {sopt = 118 'v', 
            lopt = 0x482e24 "version", desc = 0x47196d "Show version infomation", type = OPT_BOOL, param = 0x7fffffffeb00}, {sopt = 0 '\000', lopt = 0x0, desc = 0x471985 "Service Configuration", type = OPT_BOOL, param = 0x0}, {sopt = 99 'c', lopt = 0x4744f1 "config", 
            desc = 0x47199b "Alternate config path", type = OPT_STR, param = 0x7fffffffeaa0}, {sopt = 102 'f', lopt = 0x4719b1 "fork", desc = 0x4719b6 "Fork and run as daemon", type = OPT_BOOL, param = 0x7fffffffeb04}, {sopt = 117 'u', lopt = 0x4719d4 "user", 
            desc = 0x4719cd "Run as user", type = OPT_STR, param = 0x7fffffffeaa8}, {sopt = 103 'g', lopt = 0x4719e0 "group", desc = 0x4719d9 "Run as group", type = OPT_STR, param = 0x7fffffffeab0}, {sopt = 112 'p', lopt = 0x471945 "pid", 
            desc = 0x4719e6 "Alternate pid path", type = OPT_STR, param = 0x7fffffffeab8}, {sopt = 67 'C', lopt = 0x4719f9 "firstrun", 
            desc = 0x471d40 "If no user account exists then create one with\nno username and no password. Use with care as\nit will allow world-wide administrative access\nto your Tvheadend installation until you edit\nthe access-con"..., type = OPT_BOOL, 
            param = 0x7fffffffeb08}, {sopt = 97 'a', lopt = 0x482ecf "adapters", desc = 0x471e30 "Only use specified DVB adapters (comma separated)", type = OPT_STR, param = 0x7fffffffeac0}, {sopt = 0 '\000', lopt = 0x0, desc = 0x471a02 "Server Connectivity", 
            type = OPT_BOOL, param = 0x0}, {sopt = 54 '6', lopt = 0x471a16 "ipv6", desc = 0x471a1b "Listen on IPv6", type = OPT_BOOL, param = 0x7fffffffeb20}, {sopt = 98 'b', lopt = 0x471a2a "bindaddr", desc = 0x471a33 "Specify bind address", type = OPT_STR, 
            param = 0x7fffffffeae0}, {sopt = 0 '\000', lopt = 0x471a48 "http_port", desc = 0x471a52 "Specify alternative http port", type = OPT_INT, param = 0x6a8628}, {sopt = 0 '\000', lopt = 0x471a70 "http_root", desc = 0x471e68 "Specify alternative http webroot", 
            type = OPT_STR, param = 0x6a85f0}, {sopt = 0 '\000', lopt = 0x471a7a "htsp_port", desc = 0x471a84 "Specify alternative htsp port", type = OPT_INT, param = 0x6a85f8}, {sopt = 0 '\000', lopt = 0x471aa2 "htsp_port2", desc = 0x471aad "Specify extra htsp port", 
            type = OPT_INT, param = 0x6a8520}, {sopt = 0 '\000', lopt = 0x0, desc = 0x471ac5 "Debug Options", type = OPT_BOOL, param = 0x0}, {sopt = 100 'd', lopt = 0x471b10 "debug", desc = 0x471ad3 "Enable all debug", type = OPT_BOOL, param = 0x7fffffffeb0c}, {
            sopt = 115 's', lopt = 0x471af4 "syslog", desc = 0x471ae4 "Enable debug to syslog", type = OPT_BOOL, param = 0x7fffffffeb10}, {sopt = 0 '\000', lopt = 0x471afb "uidebug", desc = 0x471b03 "Enable webUI debug", type = OPT_BOOL, param = 0x7fffffffeb14}, {
            sopt = 108 'l', lopt = 0x47db49 "log", desc = 0x471b16 "Log to file", type = OPT_STR, param = 0x6a4bd0}, {sopt = 0 '\000', lopt = 0x471b22 "trace", desc = 0x471b28 "Enable low level debug", type = OPT_STR, param = 0x7fffffffead0}, {sopt = 65 'A', 
            lopt = 0x471b4b "abort", desc = 0x471b3f "Immediately abort", type = OPT_BOOL, param = 0x7fffffffeb18}, {sopt = 0 '\000', lopt = 0x471b51 "noacl", desc = 0x471e90 "Disable all access control checks", type = OPT_BOOL, param = 0x7fffffffeb1c}, {sopt = 82 'R', 
            lopt = 0x471b57 "dvbraw", desc = 0x471eb8 "Use rawts file to create virtual adapter", type = OPT_STR, param = 0x7fffffffeac8}, {sopt = 114 'r', lopt = 0x471b5e "rawts", desc = 0x471ee8 "Use rawts file to generate virtual services", type = OPT_STR, 
            param = 0x7fffffffead8}, {sopt = 106 'j', lopt = 0x471b64 "join", desc = 0x471f18 "Subscribe to a service permanently", type = OPT_STR, param = 0x7fffffffeae8}}

#4

Updated by Thomas Hackel almost 11 years ago

Works for me with latest 3.5.96~gaa0e5b1

So it may be closed...

#5

Updated by Adam Sutton almost 11 years ago

  • Status changed from New to Invalid

I believe there are some issues within the build system, possibly its getting confused by timestamps created by git (I just had something similar when building on my 3.4 branch).

It's possible that its managing to link together object files that are not 100% compatible and therefore creates a run-time crash. I think in future the first thing I'll recommend when I see this is that people do a clean build from scratch.

Ta
Adam

Also available in: Atom PDF