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]: Assertion failed: (argIdx != 0 && "TODO: unexpected self mismatch"), function describeArgumentNo #1562
Comments
Here's a new code (i.e. test.mojo) that can also reproduce the issue. struct a:
var b: DTypePointer[]
fn c(d):
d.b.free() Steps to reproduce $ mojo build test.mojo
mojo: /__w/modular/modular/KGEN/lib/MojoParser/OverloadFitness.cpp:493: void (anonymous namespace)::DiagEmitter::describeArgumentNo(M::InflightDiag &, size_t) const: Assertion `argIdx != 0 && "TODO: unexpected self mismatch"' failed.
[18612:18612:20240128,020742.447703:ERROR file_io_posix.cc:144] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[18612:18612:20240128,020742.447841: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: mojo build test.mojo
1. Crash resolving decl body at loc("/path/to/test.mojo":4:5)
>> fn c(d):
^.......
>> d.b.free()
..................<
2. Crash parsing statement at loc("/path/to/test.mojo":5:9)
>> d.b.free()
^.........<
#0 0x00005558960c6337 (/home/jwzeng/.modular/pkg/packages.modular.com_mojo/bin/mojo+0x621337)
#1 0x00005558960c3f0e (/home/jwzeng/.modular/pkg/packages.modular.com_mojo/bin/mojo+0x61ef0e)
#2 0x00005558960c6a0f (/home/jwzeng/.modular/pkg/packages.modular.com_mojo/bin/mojo+0x621a0f)
#3 0x00007f64fb98b520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
#4 0x00007f64fb9df9fc pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x969fc)
#5 0x00007f64fb98b476 gsignal (/lib/x86_64-linux-gnu/libc.so.6+0x42476)
#6 0x00007f64fb9717f3 abort (/lib/x86_64-linux-gnu/libc.so.6+0x287f3)
#7 0x00007f64fb97171b (/lib/x86_64-linux-gnu/libc.so.6+0x2871b)
#8 0x00007f64fb982e96 (/lib/x86_64-linux-gnu/libc.so.6+0x39e96)
#9 0x00005558965c57fa (/home/jwzeng/.modular/pkg/packages.modular.com_mojo/bin/mojo+0xb207fa)
#10 0x00005558965c4a48 (/home/jwzeng/.modular/pkg/packages.modular.com_mojo/bin/mojo+0xb1fa48)
#11 0x00005558965c5317 (/home/jwzeng/.modular/pkg/packages.modular.com_mojo/bin/mojo+0xb20317)
#12 0x00005558965c417a (/home/jwzeng/.modular/pkg/packages.modular.com_mojo/bin/mojo+0xb1f17a)
#13 0x00005558965b9105 (/home/jwzeng/.modular/pkg/packages.modular.com_mojo/bin/mojo+0xb14105)
#14 0x00005558965bca37 (/home/jwzeng/.modular/pkg/packages.modular.com_mojo/bin/mojo+0xb17a37)
#15 0x0000555896570eef (/home/jwzeng/.modular/pkg/packages.modular.com_mojo/bin/mojo+0xacbeef)
#16 0x00005558965636a9 (/home/jwzeng/.modular/pkg/packages.modular.com_mojo/bin/mojo+0xabe6a9)
#17 0x0000555896599bba (/home/jwzeng/.modular/pkg/packages.modular.com_mojo/bin/mojo+0xaf4bba)
#18 0x0000555896596fa8 (/home/jwzeng/.modular/pkg/packages.modular.com_mojo/bin/mojo+0xaf1fa8)
#19 0x0000555896596e46 (/home/jwzeng/.modular/pkg/packages.modular.com_mojo/bin/mojo+0xaf1e46)
#20 0x000055589653843c (/home/jwzeng/.modular/pkg/packages.modular.com_mojo/bin/mojo+0xa9343c)
#21 0x0000555896550c06 (/home/jwzeng/.modular/pkg/packages.modular.com_mojo/bin/mojo+0xaabc06)
#22 0x00005558965512c8 (/home/jwzeng/.modular/pkg/packages.modular.com_mojo/bin/mojo+0xaac2c8)
#23 0x00005558964f8614 (/home/jwzeng/.modular/pkg/packages.modular.com_mojo/bin/mojo+0xa53614)
#24 0x00005558964f8980 (/home/jwzeng/.modular/pkg/packages.modular.com_mojo/bin/mojo+0xa53980)
#25 0x0000555896079a3f (/home/jwzeng/.modular/pkg/packages.modular.com_mojo/bin/mojo+0x5d4a3f)
#26 0x000055589607bf1b (/home/jwzeng/.modular/pkg/packages.modular.com_mojo/bin/mojo+0x5d6f1b)
#27 0x0000555896076bb3 (/home/jwzeng/.modular/pkg/packages.modular.com_mojo/bin/mojo+0x5d1bb3)
#28 0x0000555896075492 (/home/jwzeng/.modular/pkg/packages.modular.com_mojo/bin/mojo+0x5d0492)
#29 0x00007f64fb972d90 (/lib/x86_64-linux-gnu/libc.so.6+0x29d90)
#30 0x00007f64fb972e40 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x29e40)
#31 0x0000555896074c9e (/home/jwzeng/.modular/pkg/packages.modular.com_mojo/bin/mojo+0x5cfc9e)
Aborted System information
|
@Mogball Which version of Mojo fixed this issue? I still get the following error, and even more, The latest version of Mojo gives me an error in the VS Code editor, indicating that a crash happened.
|
next release |
@Mogball Still not working, the line "buf.zero" leads to this error. |
This is fixed in the next release. Please be patient |
Bug description
Steps to reproduce
mojo build hello.mojo
System information
The text was updated successfully, but these errors were encountered: