Skip to content

fix: build: increase stack size to prevent overflow on Windows#72

Merged
poroh merged 1 commit intoNVIDIA:mainfrom
poroh:fix-windows-main-thread-stack-overflow
Apr 16, 2026
Merged

fix: build: increase stack size to prevent overflow on Windows#72
poroh merged 1 commit intoNVIDIA:mainfrom
poroh:fix-windows-main-thread-stack-overflow

Conversation

@poroh
Copy link
Copy Markdown
Contributor

@poroh poroh commented Apr 16, 2026

The CSDL compiler uses deep recursion when compiling type hierarchies (entity types -> properties -> navigation properties -> entity types). On Windows the default main-thread stack is 1 MB, which is insufficient to handle standard hierarchies.

Move the build logic into a spawned thread with a 16 MB stack.

This PR fixes #69 .

The CSDL compiler uses deep recursion when compiling type hierarchies
(entity types -> properties -> navigation properties -> entity types).
On Windows the default main-thread stack is 1 MB, which is insufficient
to handle standard hierarchies.

Move the build logic into a spawned thread with a 16 MB stack.

Signed-off-by: Dmitry Porokh <dporokh@nvidia.com>
@poroh poroh requested a review from yoks April 16, 2026 15:36
@poroh poroh merged commit 12e719e into NVIDIA:main Apr 16, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Compile instructions and Bug

2 participants