Opened 9 years ago

Closed 8 years ago

Last modified 8 years ago

#9744 closed Bug Report - Crash (Fixed)

segfault on mythtv-setup

Reported by: Robert Kulagowski Owned by: danielk
Priority: minor Milestone: 0.25
Component: MythTV - Mythtv-setup Version: Master Head
Severity: medium Keywords:
Cc: Ticket locked: no

Description (last modified by Robert Kulagowski)

System: Ubuntu 10.10, MySQL 5.5, git trunk, make distclean, configure, make

mysql -uroot -p < database/mc.sql

No mysql.txt or config.xml in .mythtv

/etc/mysql/mysql.cnf is configured with bind-address=10.23.10.222, but the default value specified in mythtv-setup is localhost:3306, and the upper portion of mythtv-setup window states that it could not connect to the database, with a truncated error message to the user. Setting the specified IP address from localhost to 10.23.10.222 will still cause a segfault later.

Other combinations attempted (all result in a segfault) localhost : 0 10.23.10.222:3306 10.23.10.222:0

If you continue through the screens and click "Finish" mythtv-setup returns to the language selection screen. Once returned to the language selection screen mythtv-setup segfaults on the next keypress:

$ gdb -x gdbcommands mythtv-setup
GNU gdb (GDB) 7.2-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/local/bin/mythtv-setup...done.
[Thread debugging using libthread_db enabled]
[New Thread 0xb7d4db70 (LWP 24146)]
2011-04-21 09:40:51.086 mythtv-setup version: master [v0.25pre-1808-g8e75d79] www.mythtv.org
2011-04-21 09:40:51.086 Using runtime prefix = /usr/local
2011-04-21 09:40:51.086 Using configuration directory = /home/rkulagowski/.mythtv
2011-04-21 09:40:51.088 Empty LocalHostName.
2011-04-21 09:40:51.088 Using localhost value of gk3
[New Thread 0xb7359b70 (LWP 24147)]
[New Thread 0xb6b58b70 (LWP 24148)]
................................................................................
2011-04-21 09:40:53.243 UPnPautoconf() - No UPnP backends found
2011-04-21 09:40:53.243 No UPnP backends found
2011-04-21 09:40:53.244 Could not find theme:  - Switching to Terra
2011-04-21 09:40:53.267 Desktop video mode: 1280x1024 60.020 Hz
2011-04-21 09:40:53.558 get_ip: No address associated with hostname
2011-04-21 09:40:53.558 LIRC, Error: Failed to parse IP address ''
2011-04-21 09:40:53.558 JoystickMenuThread: Joystick disabled - Failed to read /home/rkulagowski/.mythtv/joystickmenurc
2011-04-21 09:40:53.558 UDPListener: bound to port 0
[New Thread 0xb6313b70 (LWP 24149)]
2011-04-21 09:40:53.641 New DB connection, total: 1
[Thread 0xb6313b70 (LWP 24149) exited]
[New Thread 0xb6313b70 (LWP 24150)]
2011-04-21 09:40:53.658 Using Frameless Window
2011-04-21 09:40:53.658 Using Full Screen Window
2011-04-21 09:40:53.675 Using the Qt painter
[New Thread 0xb5b12b70 (LWP 24151)]
[New Thread 0xb5311b70 (LWP 24152)]
[Thread 0xb5b12b70 (LWP 24151) exited]
[Thread 0xb5311b70 (LWP 24152) exited]
[New Thread 0xb5b12b70 (LWP 24153)]
[New Thread 0xb5311b70 (LWP 24154)]
[Thread 0xb5311b70 (LWP 24154) exited]
[Thread 0xb5b12b70 (LWP 24153) exited]
[New Thread 0xb5311b70 (LWP 24155)]
[Thread 0xb5311b70 (LWP 24155) exited]
[New Thread 0xb5b12b70 (LWP 24156)]
[Thread 0xb5b12b70 (LWP 24156) exited]
[New Thread 0xb5311b70 (LWP 24157)]
[New Thread 0xb5b12b70 (LWP 24158)]
[Thread 0xb5b12b70 (LWP 24158) exited]
[Thread 0xb5311b70 (LWP 24157) exited]
[New Thread 0xb5311b70 (LWP 24159)]
[New Thread 0xb5b12b70 (LWP 24160)]
[Thread 0xb5311b70 (LWP 24159) exited]
[New Thread 0xb3ccab70 (LWP 24161)]
[Thread 0xb5b12b70 (LWP 24160) exited]
[Thread 0xb3ccab70 (LWP 24161) exited]
[New Thread 0xb3ccab70 (LWP 24162)]
[Thread 0xb3ccab70 (LWP 24162) exited]
[New Thread 0xb5b12b70 (LWP 24163)]
[New Thread 0xb3ccab70 (LWP 24164)]
[Thread 0xb3ccab70 (LWP 24164) exited]
[Thread 0xb5b12b70 (LWP 24163) exited]
2011-04-21 09:40:55.381 Reading locale defaults from /usr/local/share/mythtv//locales/en_us.xml
2011-04-21 09:40:55.381 System Locale (en_US), Country (US), Language (en_US)
[New Thread 0xb5b12b70 (LWP 24165)]
[New Thread 0xb3ccab70 (LWP 24166)]
[Thread 0xb3ccab70 (LWP 24166) exited]
[Thread 0xb5b12b70 (LWP 24165) exited]
2011-04-21 09:40:58.655 Loading en_us translation for module mythfrontend
2011-04-21 09:41:08.096 Writing settings file /home/rkulagowski/.mythtv/mysql.txt
2011-04-21 09:41:08.106 Closing DB connection named 'DBManager0'
[Thread 0xb6313b70 (LWP 24150) exited]
2011-04-21 09:41:08.120 Cannot connect to port 3306 on database host localhost
2011-04-21 09:41:08.120 Cannot connect to port 3306 on database host localhost
2011-04-21 09:41:08.196 get_ip: No address associated with hostname
2011-04-21 09:41:08.196 LIRC, Error: Failed to parse IP address ''
2011-04-21 09:41:08.196 JoystickMenuThread: Joystick disabled - Failed to read /home/rkulagowski/.mythtv/joystickmenurc
2011-04-21 09:41:08.196 UDPListener: bound to port 0
[New Thread 0xb6313b70 (LWP 24167)]
2011-04-21 09:41:08.212 Using Frameless Window
2011-04-21 09:41:08.212 Using Full Screen Window
2011-04-21 09:41:08.244 Using the Qt painter
2011-04-21 09:41:08.307 MythFontProperties, Warning: Attempting to define 'basesmall'
			with face 'Liberation Sans', but it already exists with face 'Liberation Sans'
			Location: /usr/local/share/mythtv/themes/Terra/base.xml @ 6
			Name: 'basesmall'	Type: 'fontdef'
2011-04-21 09:41:08.316 MythFontProperties, Warning: Attempting to define 'basemedium'
			with face 'Liberation Sans', but it already exists with face 'Liberation Sans'
			Location: /usr/local/share/mythtv/themes/Terra/base.xml @ 11
			Name: 'basemedium'	Type: 'fontdef'
2011-04-21 09:41:08.325 MythFontProperties, Warning: Attempting to define 'baselarge'
			with face 'Liberation Sans', but it already exists with face 'Liberation Sans'
			Location: /usr/local/share/mythtv/themes/Terra/base.xml @ 15
			Name: 'baselarge'	Type: 'fontdef'
2011-04-21 09:41:08.334 MythFontProperties, Warning: Attempting to define 'baseextralarge'
			with face 'Liberation Sans', but it already exists with face 'Liberation Sans'
			Location: /usr/local/share/mythtv/themes/Terra/base.xml @ 19
			Name: 'baseextralarge'	Type: 'fontdef'
2011-04-21 09:41:08.334 MythFontProperties, Warning: Attempting to define 'basesmallbrown'
			with face 'Liberation Sans', but it already exists with face 'Liberation Sans'
			Location: /usr/local/share/mythtv/themes/Terra/base.xml @ 28
			Name: 'basesmallbrown'	Type: 'fontdef'
2011-04-21 09:41:08.334 MythFontProperties, Warning: Attempting to define 'basesmallgrey'
			with face 'Liberation Sans', but it already exists with face 'Liberation Sans'
			Location: /usr/local/share/mythtv/themes/Terra/base.xml @ 32
			Name: 'basesmallgrey'	Type: 'fontdef'
2011-04-21 09:41:08.335 MythFontProperties, Warning: Attempting to define 'basesmallpurple'
			with face 'Liberation Sans', but it already exists with face 'Liberation Sans'
			Location: /usr/local/share/mythtv/themes/Terra/base.xml @ 36
			Name: 'basesmallpurple'	Type: 'fontdef'
2011-04-21 09:41:08.335 MythFontProperties, Warning: Attempting to define 'basesmallblack'
			with face 'Liberation Sans', but it already exists with face 'Liberation Sans'
			Location: /usr/local/share/mythtv/themes/Terra/base.xml @ 40
			Name: 'basesmallblack'	Type: 'fontdef'
2011-04-21 09:41:08.335 MythFontProperties, Warning: Attempting to define 'basesmallyellow'
			with face 'Liberation Sans', but it already exists with face 'Liberation Sans'
			Location: /usr/local/share/mythtv/themes/Terra/base.xml @ 44
			Name: 'basesmallyellow'	Type: 'fontdef'
2011-04-21 09:41:08.335 MythFontProperties, Warning: Attempting to define 'basesmallgreen'
			with face 'Liberation Sans', but it already exists with face 'Liberation Sans'
			Location: /usr/local/share/mythtv/themes/Terra/base.xml @ 48
			Name: 'basesmallgreen'	Type: 'fontdef'
2011-04-21 09:41:08.335 MythFontProperties, Warning: Attempting to define 'basesmallblue'
			with face 'Liberation Sans', but it already exists with face 'Liberation Sans'
			Location: /usr/local/share/mythtv/themes/Terra/base.xml @ 52
			Name: 'basesmallblue'	Type: 'fontdef'
2011-04-21 09:41:08.335 MythFontProperties, Warning: Attempting to define 'basesmallred'
			with face 'Liberation Sans', but it already exists with face 'Liberation Sans'
			Location: /usr/local/share/mythtv/themes/Terra/base.xml @ 56
			Name: 'basesmallred'	Type: 'fontdef'
2011-04-21 09:41:08.335 MythFontProperties, Warning: Attempting to define 'basemediumgrey'
			with face 'Liberation Sans', but it already exists with face 'Liberation Sans'
			Location: /usr/local/share/mythtv/themes/Terra/base.xml @ 60
			Name: 'basemediumgrey'	Type: 'fontdef'
2011-04-21 09:41:08.335 MythFontProperties, Warning: Attempting to define 'basemediumgreen'
			with face 'Liberation Sans', but it already exists with face 'Liberation Sans'
			Location: /usr/local/share/mythtv/themes/Terra/base.xml @ 64
			Name: 'basemediumgreen'	Type: 'fontdef'
2011-04-21 09:41:08.335 MythFontProperties, Warning: Attempting to define 'basemediumred'
			with face 'Liberation Sans', but it already exists with face 'Liberation Sans'
			Location: /usr/local/share/mythtv/themes/Terra/base.xml @ 68
			Name: 'basemediumred'	Type: 'fontdef'
2011-04-21 09:41:08.335 MythFontProperties, Warning: Attempting to define 'basemediumpurple'
			with face 'Liberation Sans', but it already exists with face 'Liberation Sans'
			Location: /usr/local/share/mythtv/themes/Terra/base.xml @ 72
			Name: 'basemediumpurple'	Type: 'fontdef'
2011-04-21 09:41:08.335 MythFontProperties, Warning: Attempting to define 'basemediumbrown'
			with face 'Liberation Sans', but it already exists with face 'Liberation Sans'
			Location: /usr/local/share/mythtv/themes/Terra/base.xml @ 76
			Name: 'basemediumbrown'	Type: 'fontdef'
2011-04-21 09:41:08.335 MythFontProperties, Warning: Attempting to define 'baselargebrown'
			with face 'Liberation Sans', but it already exists with face 'Liberation Sans'
			Location: /usr/local/share/mythtv/themes/Terra/base.xml @ 80
			Name: 'baselargebrown'	Type: 'fontdef'
[New Thread 0xb5b12b70 (LWP 24168)]
[New Thread 0xb3ccab70 (LWP 24169)]
[Thread 0xb3ccab70 (LWP 24169) exited]
[Thread 0xb5b12b70 (LWP 24168) exited]
[New Thread 0xb3ccab70 (LWP 24170)]
[New Thread 0xb5b12b70 (LWP 24171)]
2011-04-21 09:41:08.538 Reading locale defaults from /usr/local/share/mythtv//locales/en_us.xml
2011-04-21 09:41:08.539 System Locale (en_US), Country (US), Language (en_US)
[Thread 0xb3ccab70 (LWP 24170) exited]
[Thread 0xb5b12b70 (LWP 24171) exited]
2011-04-21 09:41:12.711 Loading en_us translation for module mythfrontend

Program received signal SIGSEGV, Segmentation fault.
0x033c183a in QObject::thread (this=0x8460160) at kernel/qobject.cpp:1394
1394	kernel/qobject.cpp: No such file or directory.
	in kernel/qobject.cpp

Thread 23 (Thread 0xb6313b70 (LWP 24167)):
#0  0x0012e416 in __kernel_vsyscall ()
No symbol table info available.
#1  0x02508884 in pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_timedwait.S:236
No locals.
#2  0x032ae33e in thread_sleep (ti=0x1) at thread/qthread_unix.cpp:416
        mtx = {__data = {__lock = 0, __count = 0, __owner = 0, __kind = 0, __nusers = 1, {__spins = 0, __list = {__next = 0x0}}}, __size = '\000' <repeats 16 times>, "\001\000\000\000\000\000\000", __align = 0}
        cnd = {__data = {__lock = 0, __futex = 1, __total_seq = 1, __wakeup_seq = 0, __woken_seq = 0, __mutex = 0xb6313274, __nwaiters = 2, __broadcast_seq = 0}, __size = "\000\000\000\000\001\000\000\000\001", '\000' <repeats 23 times>, "t21\266\002\000\000\000\000\000\000\000\220\313\060\b", __align = 4294967296}
#3  0x032ae3fd in QThread::usleep (usecs=14000) at thread/qthread_unix.cpp:454
        tv = {tv_sec = 1303396872, tv_usec = 707294}
        ti = {tv_sec = 1303396872, tv_nsec = 721294000}
#4  0x0169e289 in MythSignalingTimer::run (this=0x82415e8) at mythsignalingtimer.cpp:73
No locals.
#5  0x032aedf9 in QThreadPrivate::start (arg=0x82415e8) at thread/qthread_unix.cpp:266
        data = 0x830cb90
#6  0x02503cc9 in start_thread (arg=0xb6313b70) at pthread_create.c:304
        __res = <value optimized out>
        __ignore1 = <value optimized out>
        __ignore2 = <value optimized out>
        pd = 0xb6313b70
        now = <value optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {38883316, 0, 4001536, -1238289352, -895686545, 142834439}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = <value optimized out>
        robust = <value optimized out>
        freesize = <value optimized out>
        __PRETTY_FUNCTION__ = "start_thread"
#7  0x036e269e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130
No locals.

Thread 4 (Thread 0xb6b58b70 (LWP 24148)):
#0  0x0012e416 in __kernel_vsyscall ()
No symbol table info available.
#1  0x02508884 in pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_timedwait.S:236
No locals.
#2  0x032ae33e in thread_sleep (ti=0x1) at thread/qthread_unix.cpp:416
        mtx = {__data = {__lock = 0, __count = 0, __owner = 0, __kind = 0, __nusers = 1, {__spins = 0, __list = {__next = 0x0}}}, __size = '\000' <repeats 16 times>, "\001\000\000\000\000\000\000", __align = 0}
        cnd = {__data = {__lock = 0, __futex = 1, __total_seq = 1, __wakeup_seq = 0, __woken_seq = 0, __mutex = 0xb6b58244, __nwaiters = 2, __broadcast_seq = 0}, __size = "\000\000\000\000\001\000\000\000\001", '\000' <repeats 23 times>, "D\202\265\266\002\000\000\000\000\000\000\000\244\202\265\266", __align = 4294967296}
#3  0x032ae493 in QThread::msleep (msecs=100) at thread/qthread_unix.cpp:442
        tv = {tv_sec = 1303396872, tv_usec = 655292}
        ti = {tv_sec = 1303396872, tv_nsec = 755292000}
#4  0x015a7818 in TaskQueue::run (this=0x8214ed0) at taskqueue.cpp:144
        ttNow = {tv_sec = 1303396872, tv_usec = 655290}
        pTask = 0x0
#5  0x032aedf9 in QThreadPrivate::start (arg=0x8214ed0) at thread/qthread_unix.cpp:266
        data = 0x8217788
#6  0x02503cc9 in start_thread (arg=0xb6b58b70) at pthread_create.c:304
        __res = <value optimized out>
        __ignore1 = <value optimized out>
        __ignore2 = <value optimized out>
        pd = 0xb6b58b70
        now = <value optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {38883316, 0, 4001536, -1229618120, -1006835602, 142834439}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = <value optimized out>
        robust = <value optimized out>
        freesize = <value optimized out>
        __PRETTY_FUNCTION__ = "start_thread"
#7  0x036e269e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130
No locals.

Thread 3 (Thread 0xb7359b70 (LWP 24147)):
#0  0x0012e416 in __kernel_vsyscall ()
No symbol table info available.
#1  0x036db371 in select () at ../sysdeps/unix/syscall-template.S:82
No locals.
#2  0x015a07b7 in SSDP::run (this=0x8219bb8) at ssdp.cpp:268
        nMaxSocket = 27
        read_set = {fds_bits = {234881024, 0 <repeats 31 times>}}
        timeout = {tv_sec = 0, tv_usec = 881698}
#3  0x032aedf9 in QThreadPrivate::start (arg=0x8219bb8) at thread/qthread_unix.cpp:266
        data = 0x8214970
#4  0x02503cc9 in start_thread (arg=0xb7359b70) at pthread_create.c:304
        __res = <value optimized out>
        __ignore1 = <value optimized out>
        __ignore2 = <value optimized out>
        pd = 0xb7359b70
        now = <value optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {38883316, 0, 4001536, -1221225416, -1008932755, 142834439}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = <value optimized out>
        robust = <value optimized out>
        freesize = <value optimized out>
        __PRETTY_FUNCTION__ = "start_thread"
#5  0x036e269e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130
No locals.

Thread 2 (Thread 0xb7d4db70 (LWP 24146)):
#0  0x0012e416 in __kernel_vsyscall ()
No symbol table info available.
#1  0x036d3df6 in __poll (fds=0x376aff4, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
        resultvar = <value optimized out>
        oldtype = 0
        result = <value optimized out>
#2  0x04ec2a1b in g_poll () from /lib/libglib-2.0.so.0
No symbol table info available.
#3  0x04eb543c in ?? () from /lib/libglib-2.0.so.0
No symbol table info available.
#4  0x04eb5ba7 in g_main_loop_run () from /lib/libglib-2.0.so.0
No symbol table info available.
#5  0x055059c4 in ?? () from /usr/lib/libgio-2.0.so.0
No symbol table info available.
#6  0x04edc48f in ?? () from /lib/libglib-2.0.so.0
No symbol table info available.
#7  0x02503cc9 in start_thread (arg=0xb7d4db70) at pthread_create.c:304
        __res = <value optimized out>
        __ignore1 = <value optimized out>
        __ignore2 = <value optimized out>
        pd = 0xb7d4db70
        now = <value optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {38883316, 0, 4001536, -1210788808, 22866028, 142834439}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = <value optimized out>
        robust = <value optimized out>
        freesize = <value optimized out>
        __PRETTY_FUNCTION__ = "start_thread"
#8  0x036e269e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130
No locals.

Thread 1 (Thread 0xb7fd0720 (LWP 24140)):
#0  0x033c183a in QObject::thread (this=0x8460160) at kernel/qobject.cpp:1394
No locals.
#1  0x0183b422 in MythUIType::MythUIType (this=0x8460160, parent=0x84601f8, name=...) at mythuitype.cpp:30
No locals.
#2  0x0184135f in MythScreenType::MythScreenType (this=0x8460160, parent=0x84601f8, name=..., fullscreen=true) at mythscreentype.cpp:38
No locals.
#3  0x01873c45 in MythConfirmationDialog::MythConfirmationDialog (this=0x8460160, parent=0x84601f8, message=..., showCancel=false) at mythdialogbox.cpp:258
No locals.
#4  0x01874aca in ShowOkPopup (message=..., parent=0x0, slot=0x0, showCancel=false) at mythdialogbox.cpp:397
        LOC = {static null = {<No data fields>}, static shared_null = {ref = {_q_value = 1}, alloc = 0, size = 0, data = 0x809e452, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, static shared_empty = {ref = {_q_value = 550}, alloc = 0, size = 0, data = 0x34e4492, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, d = 0x8282128, static codecForCStrings = 0x0}
        pop = 0x82b37e0
        stk = 0x84601f8
#5  0x01abc75f in MythContextPrivate::PromptForDatabaseParams (this=0x8212688, error=...) at mythcontext.cpp:477
        settings = {<ConfigurationWizard> = {<ConfigurationDialog> = {<Storage> = {_vptr.Storage = 0x0}, cfgChildren = {<std::_Vector_base<Configurable*, std::allocator<Configurable*> >> = {_M_impl = {<std::allocator<Configurable*>> = {<__gnu_cxx::new_allocator<Configurable*>> = {<No data fields>}, <No data fields>}, _M_start = 0x376b4e0, _M_finish = 0xa, _M_end_of_storage = 0x33c603b}}, <No data fields>}, childwidget = {<std::_Vector_base<QWidget*, std::allocator<QWidget*> >> = {_M_impl = {<std::allocator<QWidget*>> = {<__gnu_cxx::new_allocator<QWidget*>> = {<No data fields>}, <No data fields>}, _M_start = 0x34e3ff4, _M_finish = 0xb7499fcc, _M_end_of_storage = 0x0}}, <No data fields>}, dialog = 0x367f796, cfgGrp = 0x33caf81}, <No data fields>}, <No data fields>}
        accepted = false
#6  0x01abba01 in MythContextPrivate::FindDatabase (this=0x8212688, prompt=false, noPrompt=false) at mythcontext.cpp:415
        manualSelect = false
        autoSelect = true
        failure = {static null = {<No data fields>}, static shared_null = {ref = {_q_value = 1}, alloc = 0, size = 0, data = 0x809e452, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, static shared_empty = {ref = {_q_value = 550}, alloc = 0, size = 0, data = 0x34e4492, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, d = 0xb74ad490, static codecForCStrings = 0x0}
#7  0x01abb146 in MythContextPrivate::Init (this=0x8212688, gui=true, promptForBackend=false, noPrompt=false, ignoreDB=false) at mythcontext.cpp:284
No locals.
#8  0x01ac259d in MythContext::Init (this=0x8212678, gui=true, promptForBackend=false, disableAutoDiscovery=false, ignoreDB=false) at mythcontext.cpp:1083
        homedir = {static null = {<No data fields>}, static shared_null = {ref = {_q_value = 1}, alloc = 0, size = 0, data = 0x809e452, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, static shared_empty = {ref = {_q_value = 550}, alloc = 0, size = 0, data = 0x34e4492, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, d = 0x8214430, static codecForCStrings = 0x0}
        confdir = {static null = {<No data fields>}, static shared_null = {ref = {_q_value = 1}, alloc = 0, size = 0, data = 0x809e452, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, static shared_empty = {ref = {_q_value = 550}, alloc = 0, size = 0, data = 0x34e4492, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, d = 0x809e440, static codecForCStrings = 0x0}
#9  0x080833c7 in main (argc=1, argv=0xbffff454) at main.cpp:544
        geometry = {static null = {<No data fields>}, static shared_null = {ref = {_q_value = 1}, alloc = 0, size = 0, data = 0x809e452, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, static shared_empty = {ref = {_q_value = 550}, alloc = 0, size = 0, data = 0x34e4492, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, d = 0x809e440, static codecForCStrings = 0x0}
        scanInteractive = true
        scanFTAOnly = false
        a = {<QCoreApplication> = {<QObject> = {_vptr.QObject = 0x3107488, static staticMetaObject = {d = {superdata = 0x0, stringdata = 0x3478d80 "QObject", data = 0x3478e20, extradata = 0x34de240}}, d_ptr = {d = 0x80d9158}, static staticQtMetaObject = {d = {superdata = 0x0, stringdata = 0x34818c0 "Qt", data = 0x3485000, extradata = 0x0}}}, static staticMetaObject = {d = {superdata = 0x809e120, stringdata = 0x348af20 "QCoreApplication", data = 0x348afc0, extradata = 0x0}}, static self = 0x0}, static staticMetaObject = {d = {superdata = 0x34e3484, stringdata = 0x2f06f60 "QApplication", data = 0x2f071a0, extradata = 0x0}}}
        themename = {static null = {<No data fields>}, static shared_null = {ref = {_q_value = 1}, alloc = 0, size = 0, data = 0x809e452, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, static shared_empty = {ref = {_q_value = 550}, alloc = 0, size = 0, data = 0x34e4492, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, d = 0xbffff1cc, static codecForCStrings = 0x0}
        doScan = false
        expertMode = false
        scanServiceRequirements = kRequireAV
        scanCardId = 0
        scanTableName = {static null = {<No data fields>}, static shared_null = {ref = {_q_value = 1}, alloc = 0, size = 0, data = 0x809e452, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, static shared_empty = {ref = {_q_value = 550}, alloc = 0, size = 0, data = 0x34e4492, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, d = 0x80d9128, static codecForCStrings = 0x0}
        scanInputName = {static null = {<No data fields>}, static shared_null = {ref = {_q_value = 1}, alloc = 0, size = 0, data = 0x809e452, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, static shared_empty = {ref = {_q_value = 550}, alloc = 0, size = 0, data = 0x34e4492, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, d = 0x34e4480, static codecForCStrings = 0x0}
        use_display = true
        mainWindow = 0x376c3f0
        settingsOverride = {{d = 0x809e460, e = 0x809e460}}
        themedir = {static null = {<No data fields>}, static shared_null = {ref = {_q_value = 1}, alloc = 0, size = 0, data = 0x809e452, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, static shared_empty = {ref = {_q_value = 550}, alloc = 0, size = 0, data = 0x34e4492, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, d = 0x0, static codecForCStrings = 0x0}
        expertEditor = 0xb7fdffd0
        doScanList = false
        doScanSaveOnly = false
        contextScopeDelete = {_M_ptr = 0x8212678}
        display = {static null = {<No data fields>}, static shared_null = {ref = {_q_value = 1}, alloc = 0, size = 0, data = 0x809e452, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, static shared_empty = {ref = {_q_value = 550}, alloc = 0, size = 0, data = 0x34e4492, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, d = 0x809e440, static codecForCStrings = 0x0}
        scanImport = 0
(gdb) 

mythtv-setup should not allow the user to continue configuration if the initial connection to the database can't be made, because it will result in a segfault.

The other issue is that the existing documentation can result in the user making modifications to my.cnf to enable connectivity for multiple systems, but if the resulting grant privileges aren't done correctly then the user can still get into the situation where they can't bootstrap themselves and end up in a mythtv-setup segfault.

This may be a moot issue if mythtv-setup goes away due to the www rewrite.

Change History (4)

comment:1 Changed 9 years ago by Robert Kulagowski

Description: modified (diff)

comment:2 Changed 9 years ago by sphery

Owner: changed from danielk to sphery
Status: newaccepted

comment:3 Changed 8 years ago by sphery

Milestone: unknown0.25
Resolution: Fixed
Status: acceptedclosed

Fixed by Daniel K in f53cc94e89:

Log:

Fix segfaults on MythUI startup config screens.

ShowOkPopup?() was caching the screen stack.. but this pointer became invalid after the MythMainWindow? was deleted.

comment:4 Changed 8 years ago by sphery

Owner: changed from sphery to danielk
Note: See TracTickets for help on using tickets.