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

LocalScan assertion failure #40187

Open
tomyun opened this issue Mar 25, 2021 · 2 comments
Open

LocalScan assertion failure #40187

tomyun opened this issue Mar 25, 2021 · 2 comments

Comments

@tomyun
Copy link
Contributor

tomyun commented Mar 25, 2021

It's redirected from yuyichao/FunctionWrappers.jl#23.

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)

The crash confirmed with FunctionWrappers 1.1.2 on Julia 1.5 and 1.6. It used to work fine with FunctionWrappers 1.1.1.

A major change between 1.1.1 and 1.1.2 includes yuyichao/FunctionWrappers.jl#15 where the use of isbitstype() was replaced by Base.allocatedinline().

@tomyun
Copy link
Contributor Author

tomyun commented Apr 15, 2021

In other words, this error seems to only happen with non-bits types stored inline.

julia> Base.allocatedinline(ZonedDateTime)
true

julia> Base.isbitstype(ZonedDateTime)
false

@tomyun
Copy link
Contributor Author

tomyun commented Jun 10, 2021

Still present in the latest nightly 1.8.0-DEV.7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant