FunctionWrappers.jl icon indicating copy to clipboard operation
FunctionWrappers.jl copied to clipboard

Inline allocated non-bits type fails on 1.1.2

Open tomyun opened this issue 3 years ago • 2 comments

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).

tomyun avatar Mar 25 '21 18:03 tomyun

Most likely base bug.

yuyichao avatar Mar 25 '21 18:03 yuyichao

Cannot reproduce in 1.9 beta 2 under arm-macos. Perhaps this could be closed?

pablosanjose avatar Jan 23 '23 10:01 pablosanjose