Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
alsactl Buffer Overflow ?
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
JujuBickoille
n00b
n00b


Joined: 20 Apr 2010
Posts: 15

PostPosted: Wed May 01, 2013 7:51 pm    Post subject: alsactl Buffer Overflow ? Reply with quote

Hi all,

I've upgrade my computer and after reboot I got alsasound script fail.

I've updated media-libs/alsa-lib and media-sound/alsa-utils to 1.0.27

I've try to remove asound.state from /var/lib/alsa and re-save oundcard status ( with /etc/init.d/alsasound save )

I 'got this error

MyComputer ~ # /etc/init.d/alsasound save
alsasound | * Storing ALSA Mixer Levels ...
*** buffer overflow detected ***: alsactl terminated
======= Backtrace: =========
/lib64/libc.so.6(__fortify_fail+0x37)[0x7faeb4682cb7]
/lib64/libc.so.6(+0xfec60)[0x7faeb4680c60]
/lib64/libc.so.6(+0xfe029)[0x7faeb4680029]
/lib64/libc.so.6(_IO_default_xsputn+0x89)[0x7faeb45fae69]
/lib64/libc.so.6(_IO_vfprintf+0xcba)[0x7faeb45c975a]
/lib64/libc.so.6(__vsprintf_chk+0x97)[0x7faeb46800c7]
/lib64/libc.so.6(__sprintf_chk+0x7d)[0x7faeb468000d]
alsactl[0x40b679]
alsactl[0x40ae57]
alsactl[0x405cff]
/lib64/libc.so.6(__libc_start_main+0xf5)[0x7faeb45a3965]
alsactl[0x405db9]
======= Memory map: ========
00400000-00417000 r-xp 00000000 fd:03 2627978 /usr/sbin/alsactl
00616000-00617000 r--p 00016000 fd:03 2627978 /usr/sbin/alsactl
00617000-00618000 rw-p 00017000 fd:03 2627978 /usr/sbin/alsactl
00618000-00619000 rw-p 00000000 00:00 0
02076000-02097000 rw-p 00000000 00:00 0 [heap]
7faeb3f60000-7faeb3f75000 r-xp 00000000 fd:03 2890692 /usr/lib64/gcc/x86_64-pc-linux-gnu/4.7.2/libgcc_s.so.1
7faeb3f75000-7faeb4174000 ---p 00015000 fd:03 2890692 /usr/lib64/gcc/x86_64-pc-linux-gnu/4.7.2/libgcc_s.so.1
7faeb4174000-7faeb4175000 r--p 00014000 fd:03 2890692 /usr/lib64/gcc/x86_64-pc-linux-gnu/4.7.2/libgcc_s.so.1
7faeb4175000-7faeb4176000 rw-p 00015000 fd:03 2890692 /usr/lib64/gcc/x86_64-pc-linux-gnu/4.7.2/libgcc_s.so.1
7faeb4176000-7faeb417d000 r-xp 00000000 fd:03 2491856 /lib64/librt-2.17.so
7faeb417d000-7faeb437c000 ---p 00007000 fd:03 2491856 /lib64/librt-2.17.so
7faeb437c000-7faeb437d000 r--p 00006000 fd:03 2491856 /lib64/librt-2.17.so
7faeb437d000-7faeb437e000 rw-p 00007000 fd:03 2491856 /lib64/librt-2.17.so
7faeb437e000-7faeb4380000 r-xp 00000000 fd:03 2491849 /lib64/libdl-2.17.so
7faeb4380000-7faeb4580000 ---p 00002000 fd:03 2491849 /lib64/libdl-2.17.so
7faeb4580000-7faeb4581000 r--p 00002000 fd:03 2491849 /lib64/libdl-2.17.so
7faeb4581000-7faeb4582000 rw-p 00003000 fd:03 2491849 /lib64/libdl-2.17.so
7faeb4582000-7faeb4721000 r-xp 00000000 fd:03 2490979 /lib64/libc-2.17.so
7faeb4721000-7faeb4920000 ---p 0019f000 fd:03 2490979 /lib64/libc-2.17.so
7faeb4920000-7faeb4924000 r--p 0019e000 fd:03 2490979 /lib64/libc-2.17.so
7faeb4924000-7faeb4926000 rw-p 001a2000 fd:03 2490979 /lib64/libc-2.17.so
7faeb4926000-7faeb492a000 rw-p 00000000 00:00 0
7faeb492a000-7faeb4941000 r-xp 00000000 fd:03 2490975 /lib64/libpthread-2.17.so
7faeb4941000-7faeb4b40000 ---p 00017000 fd:03 2490975 /lib64/libpthread-2.17.so
7faeb4b40000-7faeb4b41000 r--p 00016000 fd:03 2490975 /lib64/libpthread-2.17.so
7faeb4b41000-7faeb4b42000 rw-p 00017000 fd:03 2490975 /lib64/libpthread-2.17.so
7faeb4b42000-7faeb4b46000 rw-p 00000000 00:00 0
7faeb4b46000-7faeb4c41000 r-xp 00000000 fd:03 2490981 /lib64/libm-2.17.so
7faeb4c41000-7faeb4e40000 ---p 000fb000 fd:03 2490981 /lib64/libm-2.17.so
7faeb4e40000-7faeb4e41000 r--p 000fa000 fd:03 2490981 /lib64/libm-2.17.so
7faeb4e41000-7faeb4e42000 rw-p 000fb000 fd:03 2490981 /lib64/libm-2.17.so
7faeb4e42000-7faeb4f23000 r-xp 00000000 fd:03 2636678 /usr/lib64/libasound.so.2.0.0
7faeb4f23000-7faeb5123000 ---p 000e1000 fd:03 2636678 /usr/lib64/libasound.so.2.0.0
7faeb5123000-7faeb5129000 r--p 000e1000 fd:03 2636678 /usr/lib64/libasound.so.2.0.0
7faeb5129000-7faeb512b000 rw-p 000e7000 fd:03 2636678 /usr/lib64/libasound.so.2.0.0
7faeb512b000-7faeb514d000 r-xp 00000000 fd:03 2490973 /lib64/ld-2.17.so
7faeb5333000-7faeb5338000 rw-p 00000000 00:00 0
7faeb534a000-7faeb534c000 rw-p 00000000 00:00 0
7faeb534c000-7faeb534d000 r--p 00021000 fd:03 2490973 /lib64/ld-2.17.so
7faeb534d000-7faeb534e000 rw-p 00022000 fd:03 2490973 /lib64/ld-2.17.so
7faeb534e000-7faeb534f000 rw-p 00000000 00:00 0
7fff5b476000-7fff5b497000 rw-p 00000000 00:00 0 [stack]
7fff5b5e7000-7fff5b5e9000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
alsasound |/etc/init.d/alsasound : ligne 49 : 19108 Abandon alsactl -f "${alsastatedir}/asound.state" store
alsasound | * Error saving levels. [ !! ]



I've try to revdep-rebuild before reboot of course, and same after I don't have break libs

I'm Using LTO so I've try to compile both without but it's same

Here my emerge --info

Portage 2.1.11.62 (default/linux/amd64/13.0/no-multilib, gcc-4.7.2, glibc-2.17, 3.9.0-gentoo x86_64)
=================================================================
System uname: Linux-3.9.0-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_@_9200_@_2.67GHz-with-gentoo-2.2
KiB Mem: 6101640 total, 3842060 free
KiB Swap: 2097148 total, 2097148 free
Timestamp of tree: Wed, 01 May 2013 14:00:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash: 4.2_p45
dev-java/java-config: 2.2.0
dev-lang/python: 2.7.4, 3.2.4
dev-util/cmake: 2.8.10.2-r2
dev-util/pkgconfig: 0.28
sys-apps/baselayout: 2.2
sys-apps/openrc: 0.11.8
sys-apps/sandbox: 2.6-r1
sys-devel/autoconf: 2.13, 2.69
sys-devel/automake: 1.11.6, 1.12.6
sys-devel/binutils: 2.23.1
sys-devel/gcc: 4.7.2-r1
sys-devel/gcc-config: 1.8
sys-devel/libtool: 2.4.2
sys-devel/make: 3.82-r4
sys-kernel/linux-headers: 3.8 (virtual/os-headers)
sys-libs/glibc: 2.17
Repositories: gentoo JujuBickoille
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -march=native -mtune=native -pipe -fomit-frame-pointer -mfpmath=sse -floop-interchange -floop-strip-mine -floop-block -flto=6 -fuse-linker-plugin"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/spool/munin-async/.ssh"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O3 -march=native -mtune=native -pipe -fomit-frame-pointer -mfpmath=sse -floop-interchange -floop-strip-mine -floop-block -flto=6 -fuse-linker-plugin"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs candy config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch parallel-install prelink-checksums protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org"
LANG="fr_FR.UTF-8"
LDFLAGS="-Wl,--as-needed -Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common -flto=6 -fuse-linker-plugin"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl amd64 bzip2 cli cracklib crypt cxx dri fortran gpm iconv mmx modules mudflap ncurses nls nptl openmp pam pcre readline session sse sse2 ssl unicode vaapi vdpau xattr zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DVB_CARDS="cx23885" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="fr" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="radeon r600" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON


USEs for both packages :
Calculating dependencies ... done!
[ebuild R ] media-libs/alsa-lib-1.0.27 USE="-alisp -debug -doc -python" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7" 0 kB
[ebuild R ] media-sound/alsa-utils-1.0.27:0.9 USE="libsamplerate ncurses nls -doc (-selinux)" 0 kB

Maybe someone got same problem ?


Thank you so much :)
Back to top
View user's profile Send private message
SamuliSuominen
Retired Dev
Retired Dev


Joined: 30 Sep 2005
Posts: 2133
Location: Finland

PostPosted: Wed May 01, 2013 8:44 pm    Post subject: Reply with quote

Fixed in =media-sound/alsa-utils-1.0.27-r1 a hour after 1.0.27 was committed... since this looks like https://bugs.gentoo.org/468160

Code:

# emerge --sync
# emerge -1 ">=media-sound/alsa-utils-1.0.27-r1"
Back to top
View user's profile Send private message
JujuBickoille
n00b
n00b


Joined: 20 Apr 2010
Posts: 15

PostPosted: Sun May 05, 2013 9:19 pm    Post subject: [SOLVED] alsactl Buffer Overflow ? Reply with quote

Yeah it seem to be the same, After update it work perfectly
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