Skip to content

Simple recursive functions can hang in inference #57873

@KristofferC

Description

@KristofferC

Edit: See comment #57873 (comment) for most up to date info.

The following code takes a second or so to run on 1.11

julia> using NCDatasets

julia> @time NCDataset(["a", "b"])
ERROR: NetCDF error: Opening path a: No such file or directory (NetCDF error code: 2)

On 1.12 it gets stuck in inference for at least more than a minute.

    30.57%  julia    libjulia-internal.so.1.13.0  [.] egal_types
     4.41%  julia    libjulia-internal.so.1.13.0  [.] gc_mark_loop_serial_
     2.14%  julia    libjulia-internal.so.1.13.0  [.] ijl_gc_small_alloc
     2.09%  julia    sys.so                       [.] julia_is_derived_type_55869.2
     1.96%  julia    libjulia-internal.so.1.13.0  [.] jl_gc_alloc_
     1.92%  julia    libjulia-internal.so.1.13.0  [.] ijl_apply_generic
     1.83%  julia    libjulia-internal.so.1.13.0  [.] gc_sweep_page.isra.0

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions