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

[BUG] Accessing command line argument causes seg fault #3878

Open
hylkedonker opened this issue Dec 13, 2024 · 0 comments
Open

[BUG] Accessing command line argument causes seg fault #3878

hylkedonker opened this issue Dec 13, 2024 · 0 comments
Labels
bug Something isn't working mojo-repo Tag all issues with this label

Comments

@hylkedonker
Copy link

Bug description

from sys import argv

def main():
    print(argv()[-1])

Steps to reproduce

  • Compile the code mojo build hello.mojo -o hello.
  • Run with argument hello world.
    Output:

[1] 48682 segmentation fault (core dumped) ./hello world

System information

- OS: Ubuntu 24.05.1 LTS
- `mojo -v`: mojo 24.6.0.dev2024121016 (9ebe23ec)
- `magic --version`: magic 0.5.0 - (based on pixi 0.37.0)
@hylkedonker hylkedonker added bug Something isn't working mojo-repo Tag all issues with this label labels Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working mojo-repo Tag all issues with this label
Projects
None yet
Development

No branches or pull requests

1 participant