You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when using standard input redirection, the first input() works but the second causes a segmentation fault.
Steps to reproduce
main.mojo
defmain():
a =input()
print(a)
b =input()
print(b)
input.txt
str1
str2
str3
magic run mojo build main.mojo ./main < input.txt
str1
Segmentation fault (core dumped)
System information
- What OS did you do install Mojo on ?
/etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=24.04
DISTRIB_CODENAME=noble
DISTRIB_DESCRIPTION="Ubuntu 24.04.1 LTS"
- Provide version information for Mojo by pasting the output of `mojo -v`
mojo 24.6.0 (4487cd6e)
- Provide Magic CLI version by pasting the output of `magic -V` or `magic --version`
magic 0.6.2 - (based on pixi 0.40.0)
- Optionally, provide more information with `magic info`.
The text was updated successfully, but these errors were encountered:
Bug description
when using standard input redirection, the first input() works but the second causes a segmentation fault.
Steps to reproduce
main.mojo
input.txt
magic run mojo build main.mojo
./main < input.txt
System information
The text was updated successfully, but these errors were encountered: