[openal] EINVAL when creating thread on ubuntu 14.04 64bit

Chris Robinson chris.kcat at gmail.com
Thu Sep 8 18:55:51 EDT 2016

On 09/08/2016 04:41 AM, timon at egosoft.com wrote:
> I can however say that pthread_create returns EINVAL and it's due to
> THREAD_STACK_SIZE being 1mb, everything's fine if it's e.g. 2mb or
> more or not specified.

That's odd, considering the docs say the specified stack size is the 
minimum guaranteed and it may allocate more. Yet it can still fail for 
being too small as if it can't allocate how much it really needs.

Should be fixed with commit 958301d, thanks. Increased the default stack 
size to 2MB, and it'll try 4MB and 8MB if needed, then just using the 
default if all else fails.

More information about the openal mailing list