Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Segmentation fault with all mythtv apps [SOLVED].
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
goldfingerz
n00b
n00b


Joined: 07 Jul 2004
Posts: 30

PostPosted: Wed Aug 15, 2007 12:40 pm    Post subject: Segmentation fault with all mythtv apps [SOLVED]. Reply with quote

Hello everyone,

I've been having some difficulties lately with my mythtv setup. I had everything working well, and then, probably after some update of some sort, I can't get any of the mythtv applications to work. Whether I execute mythfilldatabase, mythbackend, mythfrontend... They all throw a segmentation fault error a few seconds after launch.

I've executed all these commands with strace and found nothing. My logs also show nothing.

Anyone know what could be wrong with my setup? What library or depency is causing this?

Any insight would be great.


Last edited by goldfingerz on Mon Aug 20, 2007 1:49 pm; edited 1 time in total
Back to top
View user's profile Send private message
Voltago
Advocate
Advocate


Joined: 02 Sep 2003
Posts: 2482
Location: Hinter den Materiequellen

PostPosted: Wed Aug 15, 2007 12:48 pm    Post subject: Reply with quote

http://forums.gentoo.org/viewtopic-t-575655-highlight-.html
Back to top
View user's profile Send private message
goldfingerz
n00b
n00b


Joined: 07 Jul 2004
Posts: 30

PostPosted: Wed Aug 15, 2007 1:11 pm    Post subject: Reply with quote

Come to think of it, I think everything broke when I updated expat.

Gonna try what you sent me.

Thanks
Back to top
View user's profile Send private message
timbo
Apprentice
Apprentice


Joined: 29 Jul 2002
Posts: 231
Location: New Zealand

PostPosted: Thu Aug 16, 2007 3:20 am    Post subject: Reply with quote

goldfingerz

I had this happen when I upgraded to libXrandr-1.2.1 from 1.1.1. It's now fixed with the latest svn version of MythTV see here.

Regards
Tim
8)
_________________
Linux User: 303160
Back to top
View user's profile Send private message
goldfingerz
n00b
n00b


Joined: 07 Jul 2004
Posts: 30

PostPosted: Thu Aug 16, 2007 3:56 pm    Post subject: Reply with quote

I've tried everything you guys suggested and I'm still getting the segmentation faults. Nothing with mythtv seems to work. I really don't get it.
Back to top
View user's profile Send private message
goldfingerz
n00b
n00b


Joined: 07 Jul 2004
Posts: 30

PostPosted: Thu Aug 16, 2007 3:58 pm    Post subject: Reply with quote

I also don't understand why strace isn't revealing any insights to the problem. Anything else I can use to debug this problem?
Back to top
View user's profile Send private message
goldfingerz
n00b
n00b


Joined: 07 Jul 2004
Posts: 30

PostPosted: Thu Aug 16, 2007 8:12 pm    Post subject: Reply with quote

I just recompiled mythtv with the debug flag. Afterwards I ran this command:

gdb mythbackend -x gdbcommands

and I got this output:

(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)

Program received signal SIGSEGV, Segmentation fault.
0x00000000 in ?? ()

What does this mean?
Back to top
View user's profile Send private message
RoundsToZero
Guru
Guru


Joined: 17 Nov 2003
Posts: 478
Location: New York, NY

PostPosted: Thu Aug 16, 2007 8:30 pm    Post subject: Reply with quote

It's probably is because your binaries are stripped (this is default on Gentoo to reduce size). Add "nostrip" to your FEATURES in make.conf. -g in your C(XX)FLAGS would be good too.
Back to top
View user's profile Send private message
goldfingerz
n00b
n00b


Joined: 07 Jul 2004
Posts: 30

PostPosted: Fri Aug 17, 2007 1:08 pm    Post subject: Reply with quote

I just recompiled mythtv with the added options in my make.conf file and now I only get this output when I run mythbackend with gdb:

GNU gdb 6.6
Copyright (C) 2006 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 "i686-pc-linux-gnu"...
Using host libthread_db library "/lib/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0x00000000 in ?? ()
(gdb) quit
The program is running. Exit anyway? (y or n) y
Back to top
View user's profile Send private message
Rob1n
l33t
l33t


Joined: 29 Nov 2003
Posts: 714
Location: Cambridge, UK

PostPosted: Fri Aug 17, 2007 1:11 pm    Post subject: Reply with quote

At that point try doing (from gdb), "thread apply all bt full"
Back to top
View user's profile Send private message
goldfingerz
n00b
n00b


Joined: 07 Jul 2004
Posts: 30

PostPosted: Fri Aug 17, 2007 1:34 pm    Post subject: Reply with quote

Just did that, and got this:

(gdb) thread apply all bt full
(gdb) run
Starting program: /usr/bin/mythbackend -l myth.log -v record,channel,siparser

Program exited with code 0362.

I'm googling right now to find out what code 0362 stands for. Let me know if you know.
Back to top
View user's profile Send private message
goldfingerz
n00b
n00b


Joined: 07 Jul 2004
Posts: 30

PostPosted: Fri Aug 17, 2007 1:35 pm    Post subject: Reply with quote

BTW, I also did this afterwards:

(gdb) bt
No stack.
(gdb)
Back to top
View user's profile Send private message
goldfingerz
n00b
n00b


Joined: 07 Jul 2004
Posts: 30

PostPosted: Fri Aug 17, 2007 1:41 pm    Post subject: Reply with quote

OMG, it's working. I don't get it.

While I was re-emerging xorg-server-1.3.0 to xorg-server-1.2.0-r3, the segfaults stop happening. I don't get it. I don't know what changed.

Gonna try and see what changed since last night and let you guys know.
Back to top
View user's profile Send private message
goldfingerz
n00b
n00b


Joined: 07 Jul 2004
Posts: 30

PostPosted: Mon Aug 20, 2007 1:48 pm    Post subject: Reply with quote

I figured out the problem.

It had to do with the opengl driver I was using. By using the eselect tool I was able to set the driver to either nvidia or xorg-x11. I noticed that when it opengl was set to nvidia mythtv apps would segfault. When it was set to xorg-x11, the problem would go away.

To list the drivers I did this:

eselect opengl list

To set to a particular driver I did this:

#To set to the first driver
eselect opengl set 1
#To set to the second driver
eselect opengl set 2
Back to top
View user's profile Send private message
goldfingerz
n00b
n00b


Joined: 07 Jul 2004
Posts: 30

PostPosted: Mon Aug 20, 2007 1:50 pm    Post subject: Reply with quote

Thanks for the help everyone. Gotta love Gentoo and its forums.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum