Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 207051 - request to set media-libs/sdl-mixer-1.2.8 as stable: bug in 1.2.7
Summary: request to set media-libs/sdl-mixer-1.2.8 as stable: bug in 1.2.7
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords: STABLEREQ
Depends on:
Blocks:
 
Reported: 2008-01-22 15:51 UTC by Albert Zeyer
Modified: 2008-02-27 10:20 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Albert Zeyer 2008-01-22 15:51:53 UTC
Output with 1.2.7:

az@macbook ~/Programmierung $ cat test_sdlmixer.cpp 
/*
        generates segfault

        compile with:
                g++ test_sdlmixer.cpp -lSDL -lSDL_mixer -o test_sdlmixer
*/

#include <SDL/SDL.h>
#include <SDL/SDL_mixer.h>

void submain() {
        SDL_Init(SDL_INIT_AUDIO);

        Mix_OpenAudio(44100, AUDIO_S16, 1, 512);

        Mix_AllocateChannels(1000);

        Mix_CloseAudio();

        SDL_Quit();
}

int main() {
        submain();
        submain();

        return 0;
}
az@macbook ~/Programmierung $ g++ test_sdlmixer.cpp -lSDL -lSDL_mixer -ggdb -o test_sdlmixer
az@macbook ~/Programmierung $ gdb test_sdlmixer
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: /home/az/Programmierung/test_sdlmixer 
[Thread debugging using libthread_db enabled]
[New Thread 0xb7be98e0 (LWP 3178)]
[New Thread 0xb7be8b90 (LWP 3181)]
[Thread 0xb7be8b90 (LWP 3181) exited]
[New Thread 0xb7be8b90 (LWP 3182)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb7be98e0 (LWP 3178)]
0xb7e54cd4 in open_file (name=0xb7e6265f "timidity.cfg", decompress=1, 
    noise_mode=2) at ./timidity/common.c:146
146     ./timidity/common.c: No such file or directory.
        in ./timidity/common.c
Current language:  auto; currently c
(gdb) bt
#0  0xb7e54cd4 in open_file (name=0xb7e6265f "timidity.cfg", decompress=1, 
    noise_mode=2) at ./timidity/common.c:146
#1  0xb7e5ed2e in read_config_file (name=0xb7e6265f "timidity.cfg")
    at ./timidity/timidity.c:63
#2  0xb7e5f8e2 in Timidity_Init (rate=44100, format=32784, channels=1, 
    samples=512) at ./timidity/timidity.c:297
#3  0xb7e538ab in open_music (mixer=0xb7e6c164) at ./music.c:438
#4  0xb7e5207b in Mix_OpenAudio (frequency=44100, format=32784, 
    nchannels=<value optimized out>, chunksize=512) at ./mixer.c:304
#5  0x08048696 in submain () at test_sdlmixer.cpp:14
#6  0x080486c9 in main () at test_sdlmixer.cpp:25
(gdb) q
The program is running.  Exit anyway? (y or n) y
az@macbook ~/Programmierung $ 

--------------------

Output with 1.2.8:

az@macbook ~/Programmierung $ g++ test_sdlmixer.cpp -lSDL -lSDL_mixer -ggdb -o test_sdlmixer
az@macbook ~/Programmierung $ gdb test_sdlmixer
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: /home/az/Programmierung/test_sdlmixer 
[Thread debugging using libthread_db enabled]
[New Thread 0xb7c228e0 (LWP 15127)]
[New Thread 0xb7c21b90 (LWP 15130)]
[Thread 0xb7c21b90 (LWP 15130) exited]
[New Thread 0xb7c21b90 (LWP 15131)]
[Thread 0xb7c21b90 (LWP 15131) exited]

Program exited normally.
(gdb) q
az@macbook ~/Programmierung $ 

-----------------

It seems that 1.2.8 runs more stable. So please set x86 keyword (I am using x86).

This bug was also confirmed on the Windows version of 1.2.7 and the Windows version of 1.2.8 also fixes this issue.
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2008-01-22 23:14:40 UTC
Sounds good.
Comment 2 Markus Meier gentoo-dev 2008-01-23 19:44:16 UTC
x86 stable
Comment 3 nixnut (RETIRED) gentoo-dev 2008-01-24 18:12:06 UTC
ppc stable
Comment 4 Markus Rothe (RETIRED) gentoo-dev 2008-01-25 19:49:17 UTC
ppc64 stable
Comment 5 Friedrich Oslage (RETIRED) gentoo-dev 2008-01-26 21:10:00 UTC
Tested media-libs/sdl-mixer-1.2.8 USE="mikmod mp3 timidity vorbis" on sparc.

- compiles
- no test phase
- no collisions
- works

# emerge --info
Portage 2.1.3.19 (default-linux/sparc/sparc64/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-gentoo-r6 sparc64)
=================================================================
System uname: 2.6.23-gentoo-r6 sparc64 sun4u
Timestamp of tree: Sat, 26 Jan 2008 18:00:01 +0000
app-shells/bash:     3.2_p17-r1
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="sparc"
CBUILD="sparc-unknown-linux-gnu"
CFLAGS="-mcpu=ultrasparc3 -mtune=ultrasparc3 -mvis -Wa,-Av8plusa -O2 -pipe -frename-registers"
CHOST="sparc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CPPFLAGS="-mcpu=ultrasparc3 -mtune=ultrasparc3 -mvis -Wa,-Av8plusa -O2 -pipe -frename-registers"
CXXFLAGS="-mcpu=ultrasparc3 -mtune=ultrasparc3 -mvis -Wa,-Av8plusa -O2 -pipe -frename-registers"
DISTDIR="/tmp/distfiles"
FEATURES="collision-protect distlocks metadata-transfer parallel-fetch sanxbox strict test userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en de"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="64bit 7zip X a52 aac aalib alsa artworkextra audacious avahi blender-game bluetooth bzip2 caps cups custom-cflags cvs dbus dga divx dts dv dvd dvdread encode fat ffmpeg flac ftp fuse gd gif gimp gmedia gnome gnome-print gnomecanvas gpm grammar gtk hal hpn ieee1394 ithreads javascript jpeg jpeg2k lzo mad midi mikmod mjpeg mp2 mp3 mpeg mpeg2 mplayer musepack nautilus ncurses network networking nls nptl nptlonly nsplugin offensive ogg openal opengl opera pam png pnm quicktime realmedia regex ruby samba sdl slang smp sms sound soundex sparc speex spell sqlite3 ssl subversion svg symlink test theora threads tiff timidity truetype tta unicode usb userlocales utils vcd vidix vim vim-syntax vim-with-x vorbis wma wmf wmp x264 xanim xcb xfce xine xinerama xorg xulrunner xv xvid zlib" ALSA_PCM_PLUGINS="adpcm alaw copy dshare dsnoop extplug file hooks ladspa lfloat linear meter mulaw multi null rate route share shm" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LINGUAS="en de" USERLAND="GNU" VIDEO_CARDS="mach64"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 6 Raúl Porcel (RETIRED) gentoo-dev 2008-01-28 18:59:25 UTC
alpha/ia64/sparc stable, thanks Tobias and Friedrich.
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2008-01-29 02:43:51 UTC
Stable for HPPA.
Comment 8 Santiago M. Mola (RETIRED) gentoo-dev 2008-02-08 20:15:23 UTC
amd64 stable