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

Outputting a @ccallable function to an object file broken on master #35014

Closed
KristofferC opened this issue Mar 5, 2020 · 1 comment · Fixed by #35574
Closed

Outputting a @ccallable function to an object file broken on master #35014

KristofferC opened this issue Mar 5, 2020 · 1 comment · Fixed by #35574
Assignees
Labels
kind:regression Regression in behavior compared to a previous version
Milestone

Comments

@KristofferC
Copy link
Sponsor Member

KristofferC commented Mar 5, 2020

MWE from test failure in PackageCompiler.jl

# callable.jlj
Base.@ccallable function f()::Cint
    return 0
end
run(`$(Base.julia_cmd()) --startup=no --output-o=sys.o ccallable.jl`)

prints:

Assertion failed: (Val && "isa<> used on a null pointer"), function doit, file /Users/kristoffercarlsson/julia/usr/include/llvm/Support/Casting.h, line 105.

signal (6): Abort trap: 6
in expression starting at /Users/kristoffercarlsson/julia/ccallable.jl:1
__pthread_kill at /usr/lib/system/libsystem_kernel.dylib (unknown line)
@KristofferC
Copy link
Sponsor Member Author

Bisected to #25984, cc @vtjnash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:regression Regression in behavior compared to a previous version
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants