[Bug 3261] Changing sound quality causes ioquake3 to segfault

bugzilla-daemon at icculus.org bugzilla-daemon at icculus.org
Sun Jul 22 16:30:17 EDT 2007


arny at ats.s.bawue.de changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

------- Comment #4 from arny at ats.s.bawue.de  2007-07-22 16:30 EDT -------
Thanks for this additional info, this triggered a memory to surface in my head.
As a matter of fact, this "bug" has been known for quite some time now. It
actually is a bug in OpenAL, not ioquake3. It will go away in future versions
of openal.
In gentoo it's getting patched automatically already so there it won't crash.
In the meantime, just compile openal with USE_OPENAL_DLOPEN and that bug will
go away. Alternatively, you can recompile OpenAL yourself. As submitting a
patch seems to be broken right now, I'll just post the patch here, the changes
are simple enough.

--- openal-0.0.8/src/alc/alc_context.c.ori      2006-09-29 12:36:33.000000000
+++ openal-0.0.8/src/alc/alc_context.c  2006-09-29 12:38:05.000000000 -0400
@@ -236,8 +236,12 @@
                /* someone unpaused us */
                ispaused = AL_FALSE;

-               _alcDeviceResume( cc->write_device );
-               _alcDeviceResume( cc->read_device );
+               if (cc->write_device) {
+                       _alcDeviceResume( cc->write_device );
+               }
+               if (cc->read_device) {
+                       _alcDeviceResume( cc->read_device );
+               }


Configure bugmail: http://bugzilla.icculus.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.

More information about the quake3-bugzilla mailing list