Skip to content

Julia 1.8 crashes with @time macro #46483

Closed as not planned
Closed as not planned
@RJDennis

Description

@RJDennis

The following MWE causes Julia to crash:

len = 1e16
while len > 1e-8
    a = 0
    @time for i = 1:10_000
        a += 1
    end
    len /= 2
 end

Removing the @time works okay.

versioninfo()
Julia Version 1.8.0
Commit 5544a0f (2022-08-17 13:38 UTC)
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU: 24 × AMD Ryzen 9 3900X 12-Core Processor
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-13.0.1 (ORCJIT, znver2)
Threads: 1 on 24 virtual cores

Metadata

Metadata

Assignees

No one assigned

    Labels

    regressionRegression in behavior compared to a previous version

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions