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] EXC_BAD_ACCESS on parallelize #2341

Open
jrozentur opened this issue Apr 19, 2024 · 0 comments
Open

[BUG] EXC_BAD_ACCESS on parallelize #2341

jrozentur opened this issue Apr 19, 2024 · 0 comments
Labels
bug Something isn't working mojo-repo Tag all issues with this label

Comments

@jrozentur
Copy link

Bug description

parallelize across a large list crashes (EXC_BAD_ACCESS) on 2022 Mac studio m1 ultra

Steps to reproduce

from algorithm.functional import parallelize

def main():
    var vals: List[List[Int]] = List[List[Int]]()
    for v in range(0, 1000000):        
        vals.append(List[Int](v))
    var n = len(vals)
    @parameter
    fn closure(i: Int):        
        var ll = vals[i]
    parallelize[closure](n)

17713:4827387:20240419,102003.215882:WARNING crash_report_exception_handler.cc:257] UniversalExceptionRaise: (os/kern) failure (5)
zsh: segmentation fault '/Users/julianrozentur/.modular/pkg/packages.modular.com_mojo/bin/mojo'
with debugger:
thread #18, name = '🔥 Thread15', stop reason = EXC_BAD_ACCESS (code=1, address=0x1537fbbf0)
frame #0: 0x000000030007a644
-> 0x30007a644: ldr d0, [x8]
0x30007a648: ldr x0, [sp, #0x38]
0x30007a64c: adrp x8, 1
0x30007a650: ldr x8, [x8, #0xf8]

System information

- What OS did you do install Mojo on ? macOS Sonoma 14.4.1 (23E224)
- Provide version information for Mojo by pasting the output of `mojo -v` mojo 24.2.1 (2f0dcf11)
- Provide Modular CLI version by pasting the output of `modular -v` modular 0.7.1 (28ddab26)
@jrozentur jrozentur added bug Something isn't working mojo Issues that are related to mojo labels Apr 19, 2024
@linear linear bot removed the mojo Issues that are related to mojo label Apr 29, 2024
@ematejska ematejska added the mojo-repo Tag all issues with this label label Apr 29, 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

2 participants