[Openal] Null Pointer crash in Linux openal

Thilo Schulz arny at ats.s.bawue.de
Wed Aug 23 03:12:41 PDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday 23 August 2006 10:12, Sven Panne wrote:
> Hmmm, we hat similar problems in the past, but I've added a workaround
> for the shutdown problem (an ugly _alMicroSleep(1) :-P ).

argh =)

> Obviously this 
> hack fails now somehow. The deadlock (if it is really one) doesn't
> happen for me with the programs I've tested, do you have a short test
> program demonstrating the problem? Which OS do you use exactly?

I am using Gentoo Linux kernel 2.6.16 on a x86_64 arch
I know, it's not exactly small, but the program that is having the deadlocks 
is:
http://icculus.org/quake3/

I think you don't really need to install it... the peculiarity of that app is 
that it uses said MakeContextCurrent(NULL) before it closes the device as 
some hack for previous OpenAL versions:

###
// Check for Linux shutdown race condition
// FIXME: this will probably not be necessary once OpenAL CVS
//        from 11/11/05 is released and prevelant
if( Q_stricmp((const char*)qalGetString( AL_VENDOR ), "J. Valenzuela" ) )
{
	qalcMakeContextCurrent( NULL );
}

qalcDestroyContext(alContext);
qalcCloseDevice(alDevice);
###

I'll have a more thorough look tomorrow if you wish to, you can also have me 
create debugging outputs.

- -- 
Thilo Schulz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQFE7CoeZx4hBtWQhl4RAvYXAKCCWzDjzp7CopBzYgEYPmELAvHzRgCgp/da
RCmIo/tTDbwNBa+L7Z4kqPA=
=N2KO
-----END PGP SIGNATURE-----


More information about the Openal mailing list