modularml / mojo

The Mojo Programming Language
https://docs.modular.com/mojo/manual/
Other
23.22k stars 2.6k forks source link

[BUG] Error encountered on update nightly/mojo #3420

Closed the-gpt closed 1 week ago

the-gpt commented 2 months ago

Bug description

Raising a bug as instructed by the error handling in the modular update nightly/mojo sequence:

(max-nightly-venv) evan@LAPTOP-JL0BGSA2:~$ modular update nightly/mojo
# Found release for https://packages.modular.com/nightly/mojo @ 2024.8.2605
# Downloading archive: packages/2024.8.2605/mojo-x86_64-unknown-linux-gnu-2024.8.2605-135-0.tar.zst
Downloaded           [ ███████████████████████████████████████████████████████████████████████████████ ] 100% 144MiB/144MiB                 
# Running pre-uninstall hooks for the old version...
# Extracting downloaded archives. 
Extracted            [ ███████████████████████████████████████████████████████████████████████████████ ] 100% 144MiB/144MiB                 
# Running post-install scripts...
Mojo Interop         [ ███████████████████████████████████████████████░░░░░░░░░░░░░░░                  ]  60%                               [mojo][error] Mojo SDK post-install test "`mojo build test_python.mojo`" failed:
SubprocessError: Command '/tmp/tmpvfdve2ir/test_python' died with <Signals.SIGSEGV: 11>.
  File "/home/evan/.modular/pkg/packages.modular.com_nightly_mojo/scripts/checks/self-test-complex.py", line 215, in test_mojo_build
    self.run(Path(tmp) / "test_python")[0],
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/evan/.modular/pkg/packages.modular.com_nightly_mojo/scripts/checks/self-test-complex.py", line 172, in run
    raise SubprocessError(
[mojo][error] Mojo SDK post-install test "`mojo test_python.mojo`" failed:
SubprocessError: Command '/home/evan/.modular/pkg/packages.modular.com_nightly_mojo/bin/mojo /home/evan/.modular/pkg/packages.modular.com_nightly_mojo/test/test_python.mojo' died with <Signals.SIGSEGV: 11>.
  stderr:
    [12985:12985:20240826,091313.485246:ERROR file_io_posix.cc:144] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
    [12985:12985:20240826,091313.485314:ERROR file_io_posix.cc:144] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
    [12985:12986:20240826,091313.486038:ERROR directory_reader_posix.cc:42] opendir /home/evan/.modular/crashdb/attachments/6bfb7216-7312-47b9-84d2-a5a5a12e319e: No such file or directory (2)
    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: /home/evan/.modular/pkg/packages.modular.com_nightly_mojo/bin/mojo /home/evan/.modular/pkg/packages.modular.com_nightly_mojo/test/test_python.mojo
    Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
    0  mojo      0x0000555a035c2478
    1  mojo      0x0000555a035c036e
    2  mojo      0x0000555a035c2b0d
    3  libc.so.6 0x00007f250d7ec520
    mojo crashed!
    Please file a bug report.
  File "/home/evan/.modular/pkg/packages.modular.com_nightly_mojo/scripts/checks/self-test-complex.py", line 362, in test_mojo_run
    self.run_mojo(self.test_dir / "test_python.mojo")[0],
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/evan/.modular/pkg/packages.modular.com_nightly_mojo/scripts/checks/self-test-complex.py", line 184, in run_mojo
    return self.run(self.mojo, subcommand, *args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/evan/.modular/pkg/packages.modular.com_nightly_mojo/scripts/checks/self-test-complex.py", line 172, in run
    raise SubprocessError(
[mojo][error] Some components of the Mojo SDK may have been installed successfully, but others may not work as expected.
[mojo][error] Please submit an issue to https://github.com/modularml/mojo and include the full output of the command you just ran.
Mojo Interop         [ ███████████████████████████████████████████████░░░░░░░░░░░░░░░                  ]  60%                               
modular: error: failed to run script
==========================
Failure Information:
        - Script: `PATH=/home/evan/max-nightly-venv/bin:/home/evan/.modular/pkg/packages.modular.com_nightly_max/bin:/home/evan/.modular/pkg/packages.modular.com_max/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin HOME=/home/evan MODULAR_HOME=/home/evan/.modular PYTHONPATH=/home/evan/.modular/pkg/packages.modular.com_nightly_mojo/venv/lib/home/evan/.modular/pkg/packages.modular.com_nightly_mojo/venv/bin/python /home/evan/.modular/pkg/packages.modular.com_nightly_mojo/scripts/checks/self-test-complex.py --modular-home /home/evan/.modular --modular-data /home/evan/.modular --modular-config /home/evan/.modular --package-path /home/evan/.modular/pkg/packages.modular.com_nightly_mojo --mojo-config-section mojo-nightly --tests build,run`
        - Result: 1
        - Stderr:
[mojo][error] Mojo SDK post-install test "`mojo build test_python.mojo`" failed:
SubprocessError: Command '/tmp/tmpvfdve2ir/test_python' died with <Signals.SIGSEGV: 11>.
  File "/home/evan/.modular/pkg/packages.modular.com_nightly_mojo/scripts/checks/self-test-complex.py", line 215, in test_mojo_build
    self.run(Path(tmp) / "test_python")[0],
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/evan/.modular/pkg/packages.modular.com_nightly_mojo/scripts/checks/self-test-complex.py", line 172, in run
    raise SubprocessError(
[mojo][error] Mojo SDK post-install test "`mojo test_python.mojo`" failed:
SubprocessError: Command '/home/evan/.modular/pkg/packages.modular.com_nightly_mojo/bin/mojo /home/evan/.modular/pkg/packages.modular.com_nightly_mojo/test/test_python.mojo' died with <Signals.SIGSEGV: 11>.
  stderr:
    [12985:12985:20240826,091313.485246:ERROR file_io_posix.cc:144] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
    [12985:12985:20240826,091313.485314:ERROR file_io_posix.cc:144] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
    [12985:12986:20240826,091313.486038:ERROR directory_reader_posix.cc:42] opendir /home/evan/.modular/crashdb/attachments/6bfb7216-7312-47b9-84d2-a5a5a12e319e: No such file or directory (2)
    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: /home/evan/.modular/pkg/packages.modular.com_nightly_mojo/bin/mojo /home/evan/.modular/pkg/packages.modular.com_nightly_mojo/test/test_python.mojo
    Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
    0  mojo      0x0000555a035c2478
    1  mojo      0x0000555a035c036e
    2  mojo      0x0000555a035c2b0d
    3  libc.so.6 0x00007f250d7ec520
    mojo crashed!
    Please file a bug report.
  File "/home/evan/.modular/pkg/packages.modular.com_nightly_mojo/scripts/checks/self-test-complex.py", line 362, in test_mojo_run
    self.run_mojo(self.test_dir / "test_python.mojo")[0],
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/evan/.modular/pkg/packages.modular.com_nightly_mojo/scripts/checks/self-test-complex.py", line 184, in run_mojo
    return self.run(self.mojo, subcommand, *args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/evan/.modular/pkg/packages.modular.com_nightly_mojo/scripts/checks/self-test-complex.py", line 172, in run
    raise SubprocessError(
[mojo][error] Some components of the Mojo SDK may have been installed successfully, but others may not work as expected.
[mojo][error] Please submit an issue to https://github.com/modularml/mojo and include the full output of the command you just ran.

In addition, running the command again to retry leads to # No updates available for this packages found, which I believe leads to confusion since that message suggests no updates are needed, while running mojo/max --version shows an outdated version:

(max-nightly-venv) evan@LAPTOP-JL0BGSA2:~$ mojo --version mojo 2024.8.1517 (ee6ccd9a)

(max-nightly-venv) evan@LAPTOP-JL0BGSA2:~$ max --version max 2024.8.1517 (ee6ccd9a) Modular version 2024.8.1517

Steps to reproduce

System information

- What OS did you do install Mojo on ? Ubuntu 22.04.3 LTS (GNU/Linux 5.15.153.1-microsoft-standard-WSL2 x86_64) (Ubuntu via WSL2 on Windows)
- Provide version information for Mojo by pasting the output of `mojo -v`
- Provide Modular CLI version by pasting the output of `modular -v`

Trying to go to `https://packages.modular.com/nightly/mojo @ 2024.8.2605` while on 2024.8.1517.
the-gpt commented 2 months ago

Thanks -- any chance you have some formal documentation on what is in that file?

carolinefrasca commented 2 months ago

Looks like that was a spammer trying to get folks to download a file. Sorry about that!

the-gpt commented 2 months ago

Updated error log after re-installing LLVM and adding to path. Will uninstall everything and try restarting the installation process later.

(max-nightly-venv) evan@LAPTOP-JL0BGSA2:~$ modular update nightly/mojo
# Found release for https://packages.modular.com/nightly/mojo @ 2024.8.2705
# Downloading archive: packages/2024.8.2705/mojo-x86_64-unknown-linux-gnu-2024.8.2705-137-0.tar.zst
Downloaded           [ ███████████████████████████████████████████████████████████████████ ] 100% 144MiB/144MiB                 
# Running pre-uninstall hooks for the old version...
# Extracting downloaded archives. 
Extracted            [ ███████████████████████████████████████████████████████████████████ ] 100% 144MiB/144MiB                 
# Running post-install scripts...
Mojo Interop         [ ████████████████████████████████████████░░░░░░░░░░░░░               ]  60%                               [mojo][error] Mojo SDK post-install test "`mojo build test_python.mojo`" failed:
SubprocessError: Command '/tmp/tmpg88olmiy/test_python' died with <Signals.SIGSEGV: 11>.
  File "/home/evan/.modular/pkg/packages.modular.com_nightly_mojo/scripts/checks/self-test-complex.py", line 215, in test_mojo_build
    self.run(Path(tmp) / "test_python")[0],
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/evan/.modular/pkg/packages.modular.com_nightly_mojo/scripts/checks/self-test-complex.py", line 172, in run
    raise SubprocessError(
[mojo][error] Mojo SDK post-install test "`mojo test_python.mojo`" failed:
SubprocessError: Command '/home/evan/.modular/pkg/packages.modular.com_nightly_mojo/bin/mojo /home/evan/.modular/pkg/packages.modular.com_nightly_mojo/test/test_python.mojo' died with <Signals.SIGSEGV: 11>.
  stderr:
    [26863:26863:20240827,012820.756816:ERROR file_io_posix.cc:144] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
    [26863:26863:20240827,012820.756906:ERROR file_io_posix.cc:144] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
    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: /home/evan/.modular/pkg/packages.modular.com_nightly_mojo/bin/mojo /home/evan/.modular/pkg/packages.modular.com_nightly_mojo/test/test_python.mojo
    [26863:26864:20240827,012820.758421:ERROR directory_reader_posix.cc:42] opendir /home/evan/.modular/crashdb/attachments/94669807-7bd7-4428-9068-c7bac4d1c650: No such file or directory (2)
    #0 0x000055f868eb7538 (/home/evan/.modular/pkg/packages.modular.com_nightly_mojo/bin/mojo+0x12ee538)
    #1 0x000055f868eb542e (/home/evan/.modular/pkg/packages.modular.com_nightly_mojo/bin/mojo+0x12ec42e)
    #2 0x000055f868eb7bcd (/home/evan/.modular/pkg/packages.modular.com_nightly_mojo/bin/mojo+0x12eebcd)
    #3 0x00007f551a5f8520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
    mojo crashed!
    Please file a bug report.
  File "/home/evan/.modular/pkg/packages.modular.com_nightly_mojo/scripts/checks/self-test-complex.py", line 362, in test_mojo_run
    self.run_mojo(self.test_dir / "test_python.mojo")[0],
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/evan/.modular/pkg/packages.modular.com_nightly_mojo/scripts/checks/self-test-complex.py", line 184, in run_mojo
    return self.run(self.mojo, subcommand, *args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/evan/.modular/pkg/packages.modular.com_nightly_mojo/scripts/checks/self-test-complex.py", line 172, in run
    raise SubprocessError(
[mojo][error] Some components of the Mojo SDK may have been installed successfully, but others may not work as expected.
[mojo][error] Please submit an issue to https://github.com/modularml/mojo and include the full output of the command you just ran.
Mojo Interop         [ ████████████████████████████████████████░░░░░░░░░░░░░               ]  60%                               
modular: error: failed to run script
==========================
Failure Information:
        - Script: `PATH=/home/evan/max-nightly-venv/bin:/home/evan/.modular/pkg/packages.modular.com_nightly_max/bin:/home/evan/.modular/pkg/packages.modular.com_max/bin:/home/evan/.modular/pkg/packages.modular.com_nightly_max/bin:/home/evan/.modular/pkg/packages.modular.com_max/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin HOME=/home/evan MODULAR_HOME=/home/evan/.modular PYTHONPATH=/home/evan/.modular/pkg/packages.modular.com_nightly_mojo/venv/lib/home/evan/.modular/pkg/packages.modular.com_nightly_mojo/venv/bin/python /home/evan/.modular/pkg/packages.modular.com_nightly_mojo/scripts/checks/self-test-complex.py --modular-home /home/evan/.modular --modular-data /home/evan/.modular --modular-config /home/evan/.modular --package-path /home/evan/.modular/pkg/packages.modular.com_nightly_mojo --mojo-config-section mojo-nightly --tests build,run`
        - Result: 1
        - Stderr:
[mojo][error] Mojo SDK post-install test "`mojo build test_python.mojo`" failed:
SubprocessError: Command '/tmp/tmpg88olmiy/test_python' died with <Signals.SIGSEGV: 11>.
  File "/home/evan/.modular/pkg/packages.modular.com_nightly_mojo/scripts/checks/self-test-complex.py", line 215, in test_mojo_build
    self.run(Path(tmp) / "test_python")[0],
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/evan/.modular/pkg/packages.modular.com_nightly_mojo/scripts/checks/self-test-complex.py", line 172, in run
    raise SubprocessError(
[mojo][error] Mojo SDK post-install test "`mojo test_python.mojo`" failed:
SubprocessError: Command '/home/evan/.modular/pkg/packages.modular.com_nightly_mojo/bin/mojo /home/evan/.modular/pkg/packages.modular.com_nightly_mojo/test/test_python.mojo' died with <Signals.SIGSEGV: 11>.
  stderr:
    [26863:26863:20240827,012820.756816:ERROR file_io_posix.cc:144] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
    [26863:26863:20240827,012820.756906:ERROR file_io_posix.cc:144] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
    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: /home/evan/.modular/pkg/packages.modular.com_nightly_mojo/bin/mojo /home/evan/.modular/pkg/packages.modular.com_nightly_mojo/test/test_python.mojo
    [26863:26864:20240827,012820.758421:ERROR directory_reader_posix.cc:42] opendir /home/evan/.modular/crashdb/attachments/94669807-7bd7-4428-9068-c7bac4d1c650: No such file or directory (2)
    #0 0x000055f868eb7538 (/home/evan/.modular/pkg/packages.modular.com_nightly_mojo/bin/mojo+0x12ee538)
    #1 0x000055f868eb542e (/home/evan/.modular/pkg/packages.modular.com_nightly_mojo/bin/mojo+0x12ec42e)
    #2 0x000055f868eb7bcd (/home/evan/.modular/pkg/packages.modular.com_nightly_mojo/bin/mojo+0x12eebcd)
    #3 0x00007f551a5f8520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
    mojo crashed!
    Please file a bug report.
  File "/home/evan/.modular/pkg/packages.modular.com_nightly_mojo/scripts/checks/self-test-complex.py", line 362, in test_mojo_run
    self.run_mojo(self.test_dir / "test_python.mojo")[0],
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/evan/.modular/pkg/packages.modular.com_nightly_mojo/scripts/checks/self-test-complex.py", line 184, in run_mojo
    return self.run(self.mojo, subcommand, *args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/evan/.modular/pkg/packages.modular.com_nightly_mojo/scripts/checks/self-test-complex.py", line 172, in run
    raise SubprocessError(
[mojo][error] Some components of the Mojo SDK may have been installed successfully, but others may not work as expected.
[mojo][error] Please submit an issue to https://github.com/modularml/mojo and include the full output of the command you just ran.