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]: Segmentation fault when running compiled mandelbrot #1270

Closed
jthing opened this issue Nov 10, 2023 · 1 comment
Closed

[BUG]: Segmentation fault when running compiled mandelbrot #1270

jthing opened this issue Nov 10, 2023 · 1 comment
Labels
bug Something isn't working mojo Issues that are related to mojo mojo-repo Tag all issues with this label

Comments

@jthing
Copy link

jthing commented Nov 10, 2023

Bug description

first
mojo mandelbrot.🔥

works fine, but then

in miniconda
export MOJO_PYTHON_LIBRARY=/home/john/miniconda3/lib
mojo build mandelbrot.🔥
./mandelbrot
Parallelized: 0.92239652459016397 ms
Please submit a bug report to https://github.com/modularml/mojo/issues and include the crash backtrace along with all the relevant source codes.
Stack dump:
0. Program arguments: mojo mandelbrot.\360\237\224\245
#0 0x000055ca96f70197 (/home/john/.modular/pkg/packages.modular.com_mojo/bin/mojo+0x5c9197)
#1 0x000055ca96f6dd6e (/home/john/.modular/pkg/packages.modular.com_mojo/bin/mojo+0x5c6d6e)
#2 0x000055ca96f7086f (/home/john/.modular/pkg/packages.modular.com_mojo/bin/mojo+0x5c986f)
#3 0x00007f3082e42520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
Minnesegmentsfeil (kjerne lagret i fil)

The last line means a segmentation fault..

Steps to reproduce

https://docs.modular.com/mojo/notebooks/Mandelbrot.html
content pasted into file
def main():
paralellizable()

System information

- What OS did you do install Mojo on ? Ubuntu 22.04
- Provide version information for Mojo by pasting the output of `mojo -v` 0.5
- Provide Modular CLI version by pasting the output of `modular -v` 0.22
@jthing jthing added bug Something isn't working mojo Issues that are related to mojo labels Nov 10, 2023
@jthing
Copy link
Author

jthing commented Nov 10, 2023

my bad should be
export MOJO_PYTHON_LIBRARY=/home/john/miniconda3/lib/libpython3.10.so

@jthing jthing closed this as completed Nov 10, 2023
@ematejska ematejska added the mojo-repo Tag all issues with this label label May 6, 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 Issues that are related to mojo mojo-repo Tag all issues with this label
Projects
None yet
Development

No branches or pull requests

2 participants