[vlc-devel] segmentation fault in freetype

Rafaël Carré funman at videolan.org
Sat Sep 29 13:21:57 CEST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Gilles Sabourin a écrit :
> Hi,
> 
> I have compiled vlc 0.9 at #22296. I have got a segmentation error while 
> playing TV streaming in freetype. Here are the backtraces :
> 
> (gdb) run Desktop/TV_fbx.m3u
> Starting program: /usr/bin/vlc Desktop/TV_fbx.m3u
> [Thread debugging using libthread_db enabled]
> [New Thread 47544835895040 (LWP 18666)]
> VLC media player 0.9.0-svn Grishenko
> [00000001] main libvlc debug: VLC media player - version 0.9.0-svn Grishenko - 
> (c) 1996-2007 the VideoLAN team
> [00000001] main libvlc debug: libvlc was configured 
> with ./configure  '--enable-release' '--enable-shared' '--enable-shared-pp' '--enable-pp' '--enable-gpl' '--enable-live555' '--enable-dvb' '--enable-v4l' '--enable-shout' '--enable-dvdread' '--enable-cddax' '--enable-vcdx' '--enable-faad' '--enable-flac' '--enable-real' '--enable-svg' '--enable-theora' '--enable-caca' '--enable-esd' '--enable-portaudio' '--enable-arts' '--enable-slp' '--with-cyberlink-tree=../CyberLink-1.77' '--with-live555-tree=/usr/lib64/live' '--enable-realrtsp' '--disable-cyberlink' '--disable-loader' '--prefix=/usr' '--libdir=/usr/lib64' '--enable-debug' '--disable-optimizations'
> [New Thread 1082132800 (LWP 18669)]
> [00000001] main libvlc debug: translation test: code is "Fr"
> [New Thread 1090541888 (LWP 18688)]
> [New Thread 1098934592 (LWP 18689)]
> [New Thread 1107327296 (LWP 18690)]
> [New Thread 1115720000 (LWP 18691)]
> [New Thread 1124112704 (LWP 18692)]
> [New Thread 1132505408 (LWP 18693)]
> [New Thread 1140898112 (LWP 18694)]
> 600 700 [Thread 1140898112 (LWP 18694) exited]
> [New Thread 1140898112 (LWP 18742)]
> QPainter::begin: Cannot paint on a null pixmap
> QPainter::setWorldTransform: Painter not active
> QPainter::end: Painter not active, aborted
> [New Thread 1149290816 (LWP 18743)]
> [New Thread 1157683520 (LWP 18744)]
> libdvbpsi error (PSI decoder): TS discontinuity (received 2, expected 0) for 
> PID 1285
> [New Thread 1166076224 (LWP 18748)]
> [New Thread 1174468928 (LWP 18749)]
> [New Thread 1182861632 (LWP 18750)]
> [New Thread 1191254336 (LWP 18751)]
> [New Thread 1199647040 (LWP 18755)]
> [00000666] freetype private error: failed to load font 
> file /usr/share/fonts/truetype/freefont/FreeSerifBold.ttf
> 
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 1199647040 (LWP 18755)]
> 0x00002b3de3983caa in QueueMsg (p_this=0xa297f0, i_queue=0, i_type=1,
>     psz_module=0x2aaab6bb4be7 "freetype",
>     psz_format=0x2aaab6bb52f8 "thread %li: mutex_lock failed at %s:%d (%d:
> %m)", _args=0x47811fb0) at misc/messages.c:387
> 387                 i_header_size += strlen( p_obj->psz_header ) + 4;
> (gdb) bt full
> #0  0x00002b3de3983caa in QueueMsg (p_this=0xa297f0, i_queue=0, i_type=1,
>     psz_module=0x2aaab6bb4be7 "freetype",
>     psz_format=0x2aaab6bb52f8 "thread %li: mutex_lock failed at %s:%d (%d:
> %m)", _args=0x47811fb0) at misc/messages.c:387
>         psz_old = 0x0
>         i_header_size = 0
>         p_obj = (vlc_object_t *) 0xa297f0
>         psz_str = 0xba7570 "thread 1199647040: mutex_lock failed at 
> freetype.c:474 (22:Argument invalide)"
>         psz_header = 0x0
>         args = {{gp_offset = 48, fp_offset = 48,
>     overflow_arg_area = 0x478120a8, reg_save_area = 0x47811fd0}}
>         p_item = (msg_item_t *) 0x0
>         item = {i_type = 0, i_object_id = 0, i_object_type = 0,
>   psz_module = 0x0, psz_msg = 0x0, psz_header = 0x0, date = 0}
>         p_queue = (msg_queue_t *) 0x0
>         __PRETTY_FUNCTION__ = "QueueMsg"
> #1  0x00002b3de39836b8 in __msg_Generic (p_this=0xa297f0, i_queue=0, i_type=1,
>     psz_module=0x2aaab6bb4be7 "freetype",
>     psz_format=0x2aaab6bb52f8 "thread %li: mutex_lock failed at %s:%d (%d:
> %m)")
>     at misc/messages.c:232

This is a known problem, the segfault occurs on strerror_r(), see the
"%m" in the message that will be printed, it's the error description.

Unfortunately the cause is not known, one would have to have glibc debug
symbols to have a meaningful backtrace.

- --
Rafaël Carré
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG/jVUYWCeGMCv8Q8RAne2AKC3YYHl8yKg3JcFO4lZR1Kzz/T8vQCeNKol
AyOP/caqLrLRykYvTpWJkHU=
=h1Xb
-----END PGP SIGNATURE-----



More information about the vlc-devel mailing list