Skip to content

Inline allocated non-bits type fails on 1.1.2 #23

@tomyun

Description

@tomyun

This is MWE for #17.

julia> using FunctionWrappers, TimeZones

julia> f = () -> ZonedDateTime(2021, tz"UTC")
#1 (generic function with 1 method)

julia> f()
2021-01-01T00:00:00+00:00

julia> FunctionWrappers.FunctionWrapper{ZonedDateTime,Tuple{}}(f)
Assertion failed: (SRet), function LocalScan, file /Users/julia/buildbot/worker/package_macos64/build/src/llvm-late-gc-lowering.cpp, line 1454.

signal (6): Abort trap: 6
in expression starting at REPL[5]:1
__pthread_kill at /usr/lib/system/libsystem_kernel.dylib (unknown line)
Allocations: 3020216 (Pool: 3017957; Big: 2259); GC: 4
fish: Job 1, 'julia --project' terminated by signal SIGABRT (Abort)

It used to work fine with 1.1.1 before #15 got merged. Confirmed crash happens on both Julia 1.5 (linux) and 1.6 (mac).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions