Mailing List Archive

Myth was fine, now segfaults on start
One of my frontend machines which was running MythTV 0.8 perfectly until
today, will not start mythfrontend any more. It just gives a
segmentation fault when executed. I recompiled myth (from a newly
extracted tree) to have DEBUG support and ran it in GDB according to
the instructions, but it does not seem to give any useful information.
This problem also occurs with mythbackend and setup. The machine seems
to be running fine in all other respects. It compiled Myth without any
problems. Here is a sample session from gdb:

[root@playback5 root]# gdb /usr/local/bin/mythfrontend
GNU gdb Red Hat Linux (5.2.1-4)
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux"...(no debugging symbols
found)...
(gdb) run
Starting program: /usr/local/bin/mythfrontend

Program received signal SIGSEGV, Segmentation fault.
0x4000cc94 in ?? ()
(gdb) thread apply all bt full
(gdb) bt
#0 0x4000cc94 in ?? ()
#1 0x40006ae9 in ?? ()
#2 0x40005bd4 in ?? ()
#3 0x4000740f in ?? ()
#4 0x400078c2 in ?? ()
#5 0x40007b22 in ?? ()
#6 0x40001488 in ?? ()
#7 0x4000b4f4 in ?? ()
#8 0x40000d9d in ?? ()
(gdb) thread
[Current thread is 0 (process 901)]
(gdb) quit
The program is running. Exit anyway? (y or n) y
[root@playback5 root]#

Any help in finding out what the problem is will be appreciated.
Re: Myth was fine, now segfaults on start [ In reply to ]
Here's a little more info, the end of the output running mythfrontend
under strace:

open("/usr/X11R6/lib/libXmu.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\270J\0"...,
1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=102187, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x40c0f000
old_mmap(NULL, 81160, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40c10000
mprotect(0x40c23000, 3336, PROT_NONE) = 0
old_mmap(0x40c23000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED,
3, 0x13000) = 0x40c23000
close(3) = 0
open("/usr/X11R6/lib/libICE.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0105\0"...,
1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=90779, ...}) = 0
old_mmap(NULL, 82512, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40c24000
mprotect(0x40c36000, 8784, PROT_NONE) = 0
old_mmap(0x40c36000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED,
3, 0x12000) = 0x40c36000
old_mmap(0x40c37000, 4688, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40c37000
close(3) = 0
open("/usr/X11R6/lib/libSM.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\310!\0"...,
1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=38226, ...}) = 0
old_mmap(NULL, 30292, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40c39000
mprotect(0x40c40000, 1620, PROT_NONE) = 0
old_mmap(0x40c40000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED,
3, 0x7000) = 0x40c40000
close(3) = 0
open("/usr/X11R6/lib/libXrender.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300\16"...,
1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=21587, ...}) = 0
old_mmap(NULL, 20160, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40c41000
mprotect(0x40c45000, 3776, PROT_NONE) = 0
old_mmap(0x40c45000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED,
3, 0x3000) = 0x40c45000
close(3) = 0
open("/usr/lib/libXft.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\3009\0"...,
1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=82333, ...}) = 0
old_mmap(NULL, 72132, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40c46000
mprotect(0x40c57000, 2500, PROT_NONE) = 0
old_mmap(0x40c57000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED,
3, 0x10000) = 0x40c57000
close(3) = 0
open("/usr/lib/libfontconfig.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p{\0\000"...,
1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=178771, ...}) = 0
old_mmap(NULL, 148664, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40c58000
mprotect(0x40c79000, 13496, PROT_NONE) = 0
old_mmap(0x40c79000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED,
3, 0x21000) = 0x40c79000
old_mmap(0x40c7c000, 1208, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40c7c000
close(3) = 0
open("/usr/lib/i686/mmx/libssl.so.2", O_RDONLY) = -1 ENOENT (No such
file or directory)
stat64("/usr/lib/i686/mmx", 0xbfffe830) = -1 ENOENT (No such file or
directory)
open("/usr/lib/i686/libssl.so.2", O_RDONLY) = -1 ENOENT (No such file or
directory)
stat64("/usr/lib/i686", 0xbfffe830) = -1 ENOENT (No such file or
directory)
open("/usr/lib/mmx/libssl.so.2", O_RDONLY) = -1 ENOENT (No such file or
directory)
stat64("/usr/lib/mmx", 0xbfffe830) = -1 ENOENT (No such file or
directory)
open("/usr/lib/libssl.so.2", O_RDONLY) = -1 ENOENT (No such file or
directory)
stat64("/usr/lib", {st_mode=S_IFDIR|0755, st_size=16384, ...}) = 0
open("/lib/libssl.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360\220"...,
1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=224721, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x40c7d000
old_mmap(NULL, 195076, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40c7e000
mprotect(0x40cab000, 10756, PROT_NONE) = 0
old_mmap(0x40cab000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED,
3, 0x2d000) = 0x40cab000
close(3) = 0
open("/usr/lib/libcrypto.so.2", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/lib/libcrypto.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p9\2\000"...,
1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=995632, ...}) = 0
old_mmap(NULL, 875620, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40cae000
mprotect(0x40d75000, 60516, PROT_NONE) = 0
old_mmap(0x40d75000, 49152, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED,
3, 0xc7000) = 0x40d75000
old_mmap(0x40d81000, 11364, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40d81000
close(3) = 0
open("/usr/lib/libGLcore.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\220\207"...,
1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=4897592, ...}) = 0
old_mmap(NULL, 4912904, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40d84000
mprotect(0x4121f000, 83720, PROT_NONE) = 0
old_mmap(0x4121f000, 45056, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED,
3, 0x49a000) = 0x4121f000
old_mmap(0x4122a000, 38664, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4122a000
close(3) = 0
open("/usr/X11R6/lib/libXt.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0<\277\0"...,
1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=349226, ...}) = 0
old_mmap(NULL, 300676, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x41234000
mprotect(0x4127a000, 13956, PROT_NONE) = 0
old_mmap(0x4127a000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED,
3, 0x46000) = 0x4127a000
old_mmap(0x4127d000, 1668, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4127d000
close(3) = 0
open("/usr/lib/libexpat.so.0", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 \0\000"...,
1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=162799, ...}) = 0
old_mmap(NULL, 129568, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4127e000
mprotect(0x4129a000, 14880, PROT_NONE) = 0
old_mmap(0x4129a000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED,
3, 0x1b000) = 0x4129a000
close(3) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x4129e000
mprotect(0x40d84000, 4829184, PROT_READ|PROT_WRITE) = 0
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++

Eni Gma wrote:

> One of my frontend machines which was running MythTV 0.8 perfectly
> until today, will not start mythfrontend any more. It just gives a
> segmentation fault when executed. I recompiled myth (from a newly
> extracted tree) to have DEBUG support and ran it in GDB according to
> the instructions, but it does not seem to give any useful information.
> This problem also occurs with mythbackend and setup. The machine
> seems to be running fine in all other respects. It compiled Myth
> without any problems. Here is a sample session from gdb: