Segmentation Fault on Linux at startup (VLC 0.8.4.a and 0.8.

*nix specific usage questions
Didier Spaier
New Cone
New Cone
Posts: 4
Joined: 06 Jan 2006 11:26
Location: Paris

Segmentation Fault on Linux at startup (VLC 0.8.4.a and 0.8.

Postby Didier Spaier » 06 Jan 2006 11:51

Hello,

I am using a Slackware 10.2 distro.

I could configure and make VLC wih both 0.8.4a and 0.8.5-svn (downoaded CVS tree this morning) versions but at startup in both cases I get this or that :

VLC media player 0.8.5-svn Janus
Erreur de segmentation

VLC media player 0.8.4a Janus
Erreur de segmentation

For information, my configure command was in both cases :

Code: Select all

./configure --prefix=/usr --enable-livedotcom --enable-dvdread --enable-cdda --enable-faad --enable-twolame --enable-flac --enable-theora --enable-caca --enable-skins2 --enable-ncurses --with-gnu-ld --with-livedotcom-tree=/usr/lib/live --with-ffmpeg-tree=/home/logiciels/ffmpeg --with-ffmpeg-mp3lame --with-ffmpeg-faac
Any idea ?
Didier

ipkiss
Big Cone-huna
Big Cone-huna
Posts: 695
Joined: 23 Nov 2003 01:49

Postby ipkiss » 06 Jan 2006 13:57

Try running 'vlc --reset-plugins-cache --reset-config'. Do you still get the crash?

Didier Spaier
New Cone
New Cone
Posts: 4
Joined: 06 Jan 2006 11:26
Location: Paris

Postby Didier Spaier » 06 Jan 2006 14:11

Try running 'vlc --reset-plugins-cache --reset-config'. Do you still get the crash?
Yes, in boh cases (after a few seconds first time I try it).

Thanks anyway
Didier

xtophe
Big Cone-huna
Big Cone-huna
Posts: 1209
Joined: 24 Nov 2003 10:12
Location: Bristol, England

Postby xtophe » 06 Jan 2006 14:29

then add --enable-debug to your config line

and then install gdb and run
gdb vlc
run
wait for the crash
bt

and post the output of bt
Xtophe

Didier Spaier
New Cone
New Cone
Posts: 4
Joined: 06 Jan 2006 11:26
Location: Paris

Postby Didier Spaier » 06 Jan 2006 15:18

then add --enable-debug to your config line

and then install gdb and run
gdb vlc
run
wait for the crash
bt

and post the output of bt
There it is :

Code: Select all

(gdb) run Starting program: /usr/bin/vlc [Thread debugging using libthread_db enabled] [New Thread -1214748992 (LWP 26315)] VLC media player 0.8.5-svn Janus [New Thread -1248752720 (LWP 26318)] [New Thread -1257141328 (LWP 26319)] [New Thread -1265529936 (LWP 26320)] [New Thread -1273918544 (LWP 26321)] [New Thread -1282307152 (LWP 26322)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1214748992 (LWP 26315)] 0xb70ca32e in wxMBConv::cMB2WC () from /usr/lib/libwx_baseu-2.6.so.0 (gdb) bt #0 0xb70ca32e in wxMBConv::cMB2WC () from /usr/lib/libwx_baseu-2.6.so.0 #1 0xb70d3687 in wxString::wxString () from /usr/lib/libwx_baseu-2.6.so.0 #2 0xb70af17f in wxMsgCatalogFile::FillHash () from /usr/lib/libwx_baseu-2.6.so.0 #3 0xb70af7a8 in wxMsgCatalog::Load () from /usr/lib/libwx_baseu-2.6.so.0 #4 0xb70b2a38 in wxLocale::AddCatalog () from /usr/lib/libwx_baseu-2.6.so.0 #5 0xb70b29b2 in wxLocale::AddCatalog () from /usr/lib/libwx_baseu-2.6.so.0 #6 0xb70b04ac in wxLocale::Init () from /usr/lib/libwx_baseu-2.6.so.0 #7 0xb70b0aff in wxLocale::Init () from /usr/lib/libwx_baseu-2.6.so.0 #8 0xb77b1488 in Instance::OnInit (this=0x8664800) at wxwidgets.cpp:335 #9 0xb77b30df in wxAppConsole::CallOnInit (this=0x88155d0) at app.h:87 #10 0xb70ab75a in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0 #11 0xb70ab892 in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0 #12 0xb77b0fd9 in Run (p_intf=0xb717b428) at wxwidgets.cpp:302 #13 0x08061db0 in RunInterface (p_intf=0x87bb030) at src/interface/interface.c:382 #14 0x08061fd1 in intf_RunThread (p_intf=0x87bb030) at src/interface/interface.c:212 #15 0x0805ebed in VLC_AddIntf (i_object=0, psz_module=0x0, b_block=1, b_play=1) at src/libvlc.c:861 #16 0x080566fe in main (i_argc=1, ppsz_argv=0xbf909044) at src/vlc.c:109 (gdb)
I've installed wxGTK-2.6.2. Should I try an other one, or configuring it an other way ?

FYI I've installed Freerock Gnome too though I don't use it much.

Thanks,
Didier

Didier Spaier
New Cone
New Cone
Posts: 4
Joined: 06 Jan 2006 11:26
Location: Paris

[half solved]

Postby Didier Spaier » 06 Jan 2006 18:47

Code: Select all

Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1214748992 (LWP 26315)] 0xb70ca32e in wxMBConv::cMB2WC () from /usr/lib/libwx_baseu-2.6.so.0
Maybe there is a problem with --enable-unicode in xwWidgets

I tried a package from http://www.develia.org compiled without this configure's option and now VLC works -- though french accents are not displayed properly on the GUI :?
Didier

Orient

Segamenttation on PowerPC

Postby Orient » 13 Mar 2006 03:32

I have the same error on the Debian Linux on PowerPC 7447 Pegasos platform. I download the snapshot version 20060310.

/configure --with-ffmpeg-tree=/home/zhusj/ffmpeg-0.4.8 --with-dts-tree=/home/zhusj/libdts-0.0.2/ --enable-faad --enable-libvc1 --with-libvc1-tree=../libvc1-1.0 --enable-debug

zhusj@Pegasos:~/vlc-0.8.5-0310$ gdb ./vlc
GNU gdb 6.1-debian
Copyright 2004 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 "powerpc-linux"...Using host libthread_db library "/lib/libthread_db.so.1".

(gdb) run
Starting program: /home/zhusj/vlc-0.8.5-0310/vlc
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 31063)]
VLC media player 0.8.5-svn Janus

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 31063)]
0x1000a388 in VLC_Init (i_object=0, i_argc=1, ppsz_argv=0x1033290b)
at libvlc.c:506
506 msg_Dbg( p_vlc, "module bank initialized, found %i modules",
(gdb)

Orient

Re: Segamenttation on PowerPC

Postby Orient » 13 Mar 2006 10:15

I have the same error on the Debian Linux on PowerPC 7447 Pegasos platform. I download the snapshot version 20060310.

/configure --with-ffmpeg-tree=/home/zhusj/ffmpeg-0.4.8 --with-dts-tree=/home/zhusj/libdts-0.0.2/ --enable-faad --enable-libvc1 --with-libvc1-tree=../libvc1-1.0 --enable-debug

zhusj@Pegasos:~/vlc-0.8.5-0310$ gdb ./vlc
GNU gdb 6.1-debian
Copyright 2004 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 "powerpc-linux"...Using host libthread_db library "/lib/libthread_db.so.1".

(gdb) run
Starting program: /home/zhusj/vlc-0.8.5-0310/vlc
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 31063)]
VLC media player 0.8.5-svn Janus

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 31063)]
0x1000a388 in VLC_Init (i_object=0, i_argc=1, ppsz_argv=0x1033290b)
at libvlc.c:506
506 msg_Dbg( p_vlc, "module bank initialized, found %i modules",
(gdb)
PS, on my platform, there is no UTF-8 locale support, is it the causing?

xtophe
Big Cone-huna
Big Cone-huna
Posts: 1209
Joined: 24 Nov 2003 10:12
Location: Bristol, England

Postby xtophe » 14 Mar 2006 14:03

Orient:
The problem seems different.
Yours is more like a corrupt cache plugin. Delete ~/.vlc/cache

Or some older plugins remaining on the system, maybe
Xtophe

Orient

Segment fault on Debian/Pegasos

Postby Orient » 15 Mar 2006 02:27

Orient:
The problem seems different.
Yours is more like a corrupt cache plugin. Delete ~/.vlc/cache

Or some older plugins remaining on the system, maybe
I have tried to rm -rf ~/.vlc. But the problem is still there. If you suspect there are some older plugins in the system, I should how to check this issue?

Thanks.

fgrn

Postby fgrn » 18 Mar 2006 17:35

Maybe there is a problem with --enable-unicode in xwWidgets
Exactly the same symptom since I compiled wxWidgets with the -enable-unicode option.
I'd like to have the french accents in th gui.

gowator
Blank Cone
Blank Cone
Posts: 12
Joined: 19 Mar 2006 14:42

Postby gowator » 19 Mar 2006 15:00

Maybe there is a problem with --enable-unicode in xwWidgets
Exactly the same symptom since I compiled wxWidgets with the -enable-unicode option.
I'd like to have the french accents in th gui.
I keep getting seg faults on the Ubuntu version but my GFs Deb testing with Marrilat sources works fine... this leads me to think sinve Christian is French he has solved this problem! I mean its seriously beautiful but when I did the apt-get it had huge deps and rebuilt all the language support files .. which for complex reasons includes quite a few languages!

I might eMail him and find out what exactly he did :D

xtophe
Big Cone-huna
Big Cone-huna
Posts: 1209
Joined: 24 Nov 2003 10:12
Location: Bristol, England

Postby xtophe » 19 Mar 2006 16:33

Hi,
The official ubuntu package is not so good.
You should try the one on http://nightlies.videolan.org

hth
Xtophe

gowator
Blank Cone
Blank Cone
Posts: 12
Joined: 19 Mar 2006 14:42

Postby gowator » 20 Mar 2006 14:46

Hi,
The official ubuntu package is not so good.
You should try the one on http://nightlies.videolan.org

hth
Thanks ... now looks great ... the utf stuff is all working too so French accents are working.
Now I need to work out how to record :D

fgrn

Postby fgrn » 08 May 2006 23:07

Maybe there is a problem with --enable-unicode in xwWidgets
Now, works fine with wxGTK 2.6.3.

cowmet
New Cone
New Cone
Posts: 2
Joined: 05 Mar 2007 19:48

wxWidget 2.8 ?

Postby cowmet » 05 Mar 2007 20:03

I have a similar trouble with vlc :
VLC media player 0.8.6 Janus
starting VLC root wrapper... using UID 0 (root)
***************************************
* Running VLC as root is discouraged. *
***************************************

It is potentially dangerous, and might not even work properly.
[00000001] main private debug: checking builtin modules
[00000001] main private debug: checking plugin modules
[00000001] main private debug: loading plugins cache file /root/.vlc/cache/plugins-04041e.dat
[00000001] main private warning: could not open plugins cache file /root/.vlc/cache/plugins-04041e.dat for reading
[00000001] main private debug: recursively browsing `modules'
[00000001] main private debug: recursively browsing `/usr/lib/vlc'
[00000001] main private debug: recursively browsing `plugins'
[00000001] main private debug: module bank initialized, found 188 modules
[00000001] main private debug: opening config file /root/.vlc/vlcrc
[00000001] main private debug: CPU has capabilities 486 586 MMX MMXEXT SSE SSE2 FPU
[00000001] main private debug: looking for memcpy module: 3 candidates
[00000001] main private debug: using memcpy module "memcpymmxext"
[00000239] main playlist debug: waiting for thread completion
[00000239] main playlist debug: thread 3043400624 (playlist) created at priority 0 (playlist/playlist.c:184)
[00000240] main private debug: waiting for thread completion
[00000240] main private debug: thread 3035007920 (preparser) created at priority 0 (playlist/playlist.c:210)
[00000241] main interface debug: looking for interface module: 1 candidate
[00000241] main interface debug: using interface module "hotkeys"
[00000241] main interface debug: thread 3026615216 (interface) created at priority 0 (interface/interface.c:231)
[00000242] main interface debug: looking for interface module: 1 candidate
[00000242] main interface debug: using interface module "screensaver"
[00000242] main interface debug: thread 3018222512 (interface) created at priority 0 (interface/interface.c:231)
[00000243] main interface debug: looking for interface module: 3 candidates
[00000243] main interface debug: using interface module "wxwidgets"
[00000243] main interface debug: thread 3009829808 (manager) created at priority 0 (interface/interface.c:216)
Erreur de segmentation
I compiled vlc simply like this :
./configure --prefix=/usr --with-ffmpeg-tree=./ffmpeg-21826-7407/
It worked before with wxWidgets 2.6 but now I have installed wxWidgets 2.8. I have also change a thing in my /etc/profile : export LANG=fr_FR@euro before it was utf8

I've compiled wxWidgets 2.8 like this :
../configure --prefix=/usr --with-gtk --with-gnomeprint --with-opengl --enable-debug --enable-geometry --enable-graphics_ctx --enable-sound --with-sdl --enable-mediactrl --enable-display --disable-debugreport
other package installed on my LFS system : gtk+-2.10.1

Someone can help me please ?
Thank you.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Postby Jean-Baptiste Kempf » 05 Mar 2007 20:19

Did you VLC patch for wx-2.8 ?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

cowmet
New Cone
New Cone
Posts: 2
Joined: 05 Mar 2007 19:48

patch vlc for wxWidget 2.8

Postby cowmet » 05 Mar 2007 20:21

Yes I did it by this command :
sed -i "s@SetStyle@SetWindowStyle@g" modules/gui/wxwidgets/dialogs.cpp
without it, it's impossible to compile vlc.


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 8 guests