Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 225625 - VLC (0.8.6, 0.9.0) finishes playing audio CDs with a segfault
Summary: VLC (0.8.6, 0.9.0) finishes playing audio CDs with a segfault
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-09 18:41 UTC by Peter Wood
Modified: 2010-02-24 13:15 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild log (build.log,1.21 MB, text/plain)
2008-06-25 17:39 UTC, Peter Wood
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Wood 2008-06-09 18:41:27 UTC
VLC player (both 0.8.6 and 0.9.0) both play audio CDs flawless until the end of the CD is reached. Instead of stopping playbak, the player reports a seqfault, quits and dmesg shows:vlc[19719]: segfault at 4646496a eip b726dc88 esp b03ff0f0 error 4.I tried with various CDs on two different installations of Gentoo
Trying compiling with different versions of libcdio does not resolve the problem.
Disabling cdda and cdio in the USE flags, however, does. CDs play normal and player does not crash at the end of CDs

Reproducible: Always

Steps to Reproduce:
1.compile with use="cdda cdio"
2.play audio CD 
3.

Actual Results:  
Player crashes with a segfault and the a/m message in dmesg

Expected Results:  
Player should finish playing the CD gracefully and go into standby mode

Used the use flags recommended on the VLC web site and compiled both on an intel pentium-m and an intel t2080 with the following c-flags: -Os -march=i686 -pipe
Comment 1 Alexis Ballier gentoo-dev 2008-06-25 15:46:34 UTC
if you can reproduce it with vlc-0.9.0_alpha20080625, could you please try to give me a nice backtrace ?
http://www.gentoo.org/proj/en/qa/backtraces.xml
Comment 2 Peter Wood 2008-06-25 17:39:46 UTC
Created attachment 158419 [details]
ebuild log
Comment 3 Peter Wood 2008-06-25 17:40:36 UTC
I would, but emerging that version fails:
 * Messages for package media-video/vlc-0.9.0_alpha20080625:

 * Applying various patches (bugfixes/updates) ...
 *   010_all_freetype-font.patch ...
 *   220_all_firefox.patch ...
 *   250_all_livepic.patch ...
 *   300_all_pic.patch ...
 *   310_all_mmx_pic.patch ...
 *   320_all_zdefs.patch ...
 * Done with patching
 * Running eautoreconf in '/var/tmp/portage/media-video/vlc-0.9.0_alpha20080625/work/vlc-0.9.0-git' ...
 * Running aclocal -I m4 -I m4 -I /var/tmp/portage/media-video/vlc-0.9.0_alpha20080625/work/vlc-m4 ...
 * Running libtoolize --copy --force --automake ...
 * Running aclocal -I m4 -I m4 -I /var/tmp/portage/media-video/vlc-0.9.0_alpha20080625/work/vlc-m4 ...
 * Running autoconf ...
 * Running autoheader ...
 * Running automake --add-missing --copy ...
 * Running elibtoolize in: vlc-0.9.0-git/autotools
 *   Applying portage-1.5.10.patch ...
 *   Applying sed-1.5.6.patch ...
 * 
 * ERROR: media-video/vlc-0.9.0_alpha20080625 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3522:  Called die
 * The specific snippet of code:
 *       emake || die "make of VLC failed"
 *  The die message:
 *   make of VLC failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/media-video/vlc-0.9.0_alpha20080625/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-video/vlc-0.9.0_alpha20080625/temp/environment'.
 * 
Comment 4 Alexis Ballier gentoo-dev 2008-06-25 20:07:08 UTC
(In reply to comment #3)
> I would, but emerging that version fails:

Yep, should be fixed now, sorry for that. I enabled swscaler plugin with ffmpeg bug forgot to bump the dep... shame :/
Comment 5 Peter Wood 2008-06-26 00:11:26 UTC
Ok, I tried to emerge the latest vlc again and it worked. It does not want to play my audio Cd anymore, nor mp3s for that matter. It displays some cddb information and then just hangs. I don't feel like working with the unstable version anymore. VLC is the only unstable package I had on my system and I am downgrading it again. Not worth the trouble. Again, there is a problem with cdio and the stable release as well. If you want me to run a backtrace there and send it to you, I can do that, but I don't want to mess with the unstable package anymore.
Comment 6 Alexis Ballier gentoo-dev 2008-06-26 16:13:38 UTC
(In reply to comment #5)
> Ok, I tried to emerge the latest vlc again and it worked. It does not want to
> play my audio Cd anymore, nor mp3s for that matter. It displays some cddb
> information and then just hangs. I don't feel like working with the unstable
> version anymore. VLC is the only unstable package I had on my system and I am
> downgrading it again. Not worth the trouble. Again, there is a problem with
> cdio and the stable release as well. If you want me to run a backtrace there
> and send it to you, I can do that, but I don't want to mess with the unstable
> package anymore.


understandable; and yes a backtrace of 0.8.6h will also help.
Comment 7 Peter Wood 2008-06-26 17:15:19 UTC
Thanks, 
here is my emerge --info:
Portage 2.1.4.4 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r8-testing-5 i686)
=================================================================
System uname: 2.6.24-gentoo-r8-testing-5 i686 Genuine Intel(R) CPU T2080 @ 1.73GHz
Timestamp of tree: Wed, 25 Jun 2008 22:15:01 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r13
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.5, 1.7.9-r1, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -march=prescott -pipe -ggdb"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-Os -march=prescott -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer nostrip sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.mirrors.tera-byte.com/ ftp://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ http://gentoo.osuosl.org/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://lug.mtu.edu/gentoo/ "
LANG="english"
LC_ALL="en_CA.utf8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.ca.gentoo.org/gentoo-portage"
USE="3dnow 3dowext X a52 aac acl acpi alsa amrnb amrwb apache2 avi bash-completion berkdb bidi big-tables bindist bitmap-fonts bl branding bzip2 cairo cdda cddb cdio cdparanoia cli cpudetection cracklib crypt css cups custom-cflags custom-cpuopts daemon dbus dga directfb dri dts dv dvd dvdr dvdread dxr2 dxr3 enca encode examples exif extras fbcon ffmpeg firefox flac fortran freetype gcj gdbm geoip gif gimp gnutls gpm gtk hal hardened httpd iconv id3tag imlib injection ipv6 isdnlog java java6 jpeg kerberos ladspa libwww live loop-aes lzo mad madwifi matroska max-idx-128 midi mmx mmxext mp2 mp3 mpeg mudflap ncurses nemesi nls nowebdav nptl nptlonly nsplugin offensive ogg oggvorbis openal opengl openmp pam pcre pdf perl php png pppd python qt4 quicktime raw readline real reflection rtc sdl server session sis skins spell spl srt sse sse2 ssl ssse3 startup-notification stream svg svga svnserve taglib tcpd theora threads tiff truetype unicode upnp vcd vidix vim-syntax vlm vorbis win32codecs wxGTK wxwindows x264 x86 xanim xinerama xml xml2 xmlrpc xorg xscreensaver xslt xulrunner xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="vesa vga fbdev i810"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

---
and this is the backtrace I get after the segfault at the end of an audio cd:

GNU gdb 6.7.1
Copyright (C) 2007 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-pc-linux-gnu"...
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run
Starting program: /usr/bin/vlc 
[Thread debugging using libthread_db enabled]
[New Thread 0xb7c2b960 (LWP 17974)]
VLC media player 0.8.6g Janus
[New Thread 0xb5706b90 (LWP 17977)]
[New Thread 0xb4f05b90 (LWP 17978)]
[New Thread 0xb4704b90 (LWP 17979)]
[New Thread 0xb3f03b90 (LWP 17980)]
[New Thread 0xb3702b90 (LWP 17981)]
[New Thread 0xb22e9b90 (LWP 17982)]
[New Thread 0xb18ffb90 (LWP 17983)]
[New Thread 0xb10feb90 (LWP 17984)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb22e9b90 (LWP 17982)]
0xb7a965e8 in CDDAFormatTitle (p_access=0x842afe0, i_track=99 'c') at info.c:630
630	info.c: No such file or directory.
	in info.c
(gdb) bt full
#0  0xb7a965e8 in CDDAFormatTitle (p_access=0x842afe0, i_track=99 'c') at info.c:630
	psz_name = <value optimized out>
	config_varname = <value optimized out>
	p_cdda = <value optimized out>
	psz_mrl = 0x8277238 "cddax:///dev/sr0@T99"
#1  0xb7a94b0f in CDDAReadBlocks (p_access=0x842afe0) at access.c:264
	psz_title = <value optimized out>
	go_on = <value optimized out>
	p_block = <value optimized out>
	p_cdda = (cdda_data_t *) 0x84323c0
	i_blocks = 20
	__func__ = "CDDAReadBlocks"
#2  0xb7f36be9 in AReadBlock (s=0x842e0c0, pb_eof=0xb22e9214) at input/stream.c:1687
	p_sys = (stream_sys_t *) 0x842e838
	p_access = (access_t *) 0x842afe0
	p_block = <value optimized out>
	b_eof = <value optimized out>
	i_total = 823851
#3  0xb7f36df7 in AStreamRefillBlock (s=0x842e0c0) at input/stream.c:944
	b_eof = 139132640
	p_sys = (stream_sys_t *) 0x842e838
	i_start = 1214500117823851
	i_stop = <value optimized out>
	b = <value optimized out>
#4  0xb7f38cab in AStreamReadBlock (s=0x842e0c0, p_read=0x859f3f0, i_read=8820) at input/stream.c:697
	i_copy = 2940
	p_sys = (stream_sys_t *) 0x842e838
	p_data = (uint8_t *) 0x859ff6c "��\004"
	i_data = 2940
#5  0xb6acf9b2 in stream_Read (s=0x46464952, p_read=0x84323c0, i_read=20) at ../../include/vlc_stream.h:90
No locals.
#6  0xb6acfe9c in Demux (p_demux=0x833dcb0) at ../../include/vlc_stream.h:189
	p_sys = (demux_sys_t *) 0x842eca8
	i_pos = <value optimized out>
	p_block = (block_t *) 0x859f380
#7  0xb7f34bae in MainLoop (p_input=0x8429c08) at input/input.c:538
	b_force_update = 0
	i_ret = <value optimized out>
	i_type = 138588128
	val = {i_int = 1064861644, b_bool = 1064861644, f_float = 0.970700026, psz_string = 0x3f787fcc <Address 0x3f787fcc out of bounds>, 
  p_address = 0x3f787fcc, p_object = 0x3f787fcc, p_list = 0x3f787fcc, i_time = 1064861644, var = {psz_name = 0x3f787fcc <Address 0x3f787fcc out of bounds>, 
    i_object_id = 0}, padding = {a = -52 '�', b = 127 '\177', c = 120 'x', d = 63 '?', e = 0 '\0', f = 0 '\0', g = 0 '\0', h = 0 '\0'}}
	i_intf_update = 1214500117823853
#8  0xb7f362b2 in Run (p_input=0x8429c08) at input/input.c:444
No locals.
#9  0xb7e7917b in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#10 0xb7ddb09e in clone () from /lib/libc.so.6
No symbol table info available.
(gdb) 

I hope this helps
Comment 8 Alexis Ballier gentoo-dev 2008-06-29 09:55:42 UTC
Thanks for the bt; is your cd 99 tracks long or is that a bug somewhere else ?
if it is 99 tracks long, could you please try with a cd with less tracks ?
and if it doesn't fail anymore, could you please try opening a ticket on https://trac.videolan.org/vlc telling it fails with 99 tracks CD as that is probably a +1 missing from an allocation and I don't think I have a 99 tracks cd here :/
Comment 9 Peter Wood 2008-07-06 15:31:14 UTC
Actually,the CD I was playing has only 2 tracks and vlc segfaults at the end of track 2. It does not matter, what CD I am using, the player always crashes at the end of the last track.
Comment 10 Alexis Ballier gentoo-dev 2010-02-24 13:15:33 UTC
could you please try with 1.0.5 ? I've lost track of this bug and it may have been fixed