Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling with -no-crt on Linux causes a segmentation violation #4614

Open
amarakon opened this issue Dec 22, 2024 · 0 comments
Open

Compiling with -no-crt on Linux causes a segmentation violation #4614

amarakon opened this issue Dec 22, 2024 · 0 comments

Comments

@amarakon
Copy link

Context

Compiling any Odin program with the no-crt -default-to-panic-allocator build flags on Linux causes that program to give a segmentation violation.

odin report output:

	Odin:    dev-2024-12
	OS:      Alpine Linux v3.21, Linux 6.12.2-0-lts
	CPU:     11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz
	RAM:     7607 MiB
	Backend: LLVM 19.1.4

Expected Behavior

For the following program:

package example

import "core:fmt"

main :: proc() {
	fmt.println("lorem ipsum")
}

It is expected that it prints lorem ipsum when building with odin build . -no-crt -default-to-panic-allocator.

Current Behavior

segmentation violation
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

No branches or pull requests

1 participant