Bug#494024: openal-soft: linking against openal makes programs segfault on powerpc
Gerfried Fuchs
rhonda at debian.at
Wed Aug 6 18:40:39 UTC 2008
Package: openal-soft
Version: 1:1.4.272-1
Severity: important
Hi!
Possibly this should get considered release critical, it deeply affects
a release architecture and packages using openal. The problem got
noticed due to build problems of supertuxkart and hugs98 on powerpc.
Digged around and pinned it down to a really tiny test case:
#v+
rhonda at edna$ cat blub.c
main () { }
rhonda at edna$ gcc -o blub -g -O2 blub.c -lopenal
rhonda at edna$ ./blub
Segmentation fault
rhonda at edna$ gcc -o blub -g -O2 blub.c
rhonda at edna$ ./blub
rhonda at edna$
#v-
From such a test segfault build I got this from a gdb bt:
#v+
(gdb) bt
#0 0x0fb9d1e0 in strcasecmp () from /lib/libc.so.6
#1 0x0fcb2bec in GetConfigValue (blockName=0xfcbe24c "general", keyName=0xfcbdd1c "drivers",
def=0xfcbe344 "") at /build/buildd/openal-soft-1.4.272/Alc/alcConfig.c:286
#2 0x0fcad980 in InitAL () at /build/buildd/openal-soft-1.4.272/Alc/ALc.c:212
#3 0x0fcaf1ec in ReleaseALC () at /build/buildd/openal-soft-1.4.272/Alc/ALc.c:1251
#4 0x0fcad25c in my_deinit () at /build/buildd/openal-soft-1.4.272/OpenAL32/OpenAL32.c:65
#5 0x0fc9f298 in __do_global_dtors_aux () from /usr/lib/libopenal.so.1
#6 0x0fcbc514 in _fini () from /usr/lib/libopenal.so.1
#7 0x4800f7a8 in ?? () from /lib/ld.so.1
#8 0x0fb4d58c in exit () from /lib/libc.so.6
#9 0x0fb31708 in ?? () from /lib/libc.so.6
#10 0x0fb318c0 in __libc_start_main () from /lib/libc.so.6
#11 0x00000000 in ?? ()
(gdb) frame 1
#1 0x0fcb2bec in GetConfigValue (blockName=0xfcbe24c "general", keyName=0xfcbdd1c "drivers",
def=0xfcbe344 "") at /build/buildd/openal-soft-1.4.272/Alc/alcConfig.c:286
286 /build/buildd/openal-soft-1.4.272/Alc/alcConfig.c: No such file or directory.
in /build/buildd/openal-soft-1.4.272/Alc/alcConfig.c
(gdb) p cfgBlocks[i].name
$1 = 0x11 <Address 0x11 out of bounds>
(gdb)
#v-
Investigating further, but I wanted to have it reported for now.
Rhonda
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: powerpc (ppc)
Kernel: Linux 2.6.26-1-powerpc
Locale: LANG=de_AT.UTF-8, LC_CTYPE=de_AT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
More information about the Pkg-games-devel
mailing list