Skip to content

mono_thread_platform_create_thread crashing with pthread_attr_setstacksize invalid argument error #105490

Open
@stephentoub

Description

@stephentoub

Mono does not round up the argument to pthread_attr_setstacksize to the platform virtual page size which results in an EINVAL which will cause new Thread(ThreadStart, Int32) to fail


#105445 (comment)

The osx-x64 Debug Mono_MiniJIT_LibrariesTests leg crashed with:

mono_thread_platform_create_thread: pthread_attr_setstacksize failed, error: "Invalid argument" (22)

when trying to set a maxStackSize on a new thread to 100_000.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions