-
Notifications
You must be signed in to change notification settings - Fork 68
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
hello world causes hard crash on Ubuntu 22.04 #372
Comments
I am very much interested in getting this fixed. @barche Any idea how to debug this issue further? |
@Clemapfel I am not able to reproduce the issue. I fail to compile the cpp program. I am having the output:
Any idea? |
Ok, I could compile the code by using the following build script:
I obtained the prefix path from the command:
after creating a Julia project that contains only CxxWrap:
I am using:
Output of the build script:
Julia script test.jl ufechner@ufryzen:~/repos/CxxWrap$ cat test.jl
module test
using CxxWrap
#function __init__() @initcxx end
@wrapmodule("/home/ufechner/repos/CxxWrap/build/libcxxwrap_test.so")
end Running the julia script works fine: julia> include("test.jl")
Main.test In other words, I cannot reproduce the issue. |
@Clemapfel Can you please share the output of: cmake --version
gcc --version and the output of using Pkg
Pkg.status() We need to find out why it fails for you and works for me... |
This might be related: JuliaInterop/libcxxwrap-julia#132 |
I recommend trying this again with the just-released libcxxwrap-julia 0.11 and CxxWrap 0.14. |
Reinstalling CxxWrap.jl and libcxxwrap.so from their respective github main branch fixed the issue for me. I'll keep this open until CxxWrap.jl and libcxxwrap_julia_jll are upgraded and I can confirm this works for the installed-from-registry versions, but the just-released update does seem to work! Thank you. |
Unless I am missing something, I have both (from the manifest):
and
and am seeing this issue. |
Note that you can't mix binaries from the Julia artifacts registry with code you compile yourself, maybe that is the issue? On Arch Linux I even have to compile Julia itself, along with libcxxwrap-julia and then the wrappers to make sure everything links correctly. |
Hi, the following MWE project crashes on my and one of my users Ubuntu 22.04 machines:
CMakeLists.txt
cxxwrap_test.hpp
cxxwrap_test.cpp
Compilation
Julia
(I commented out
__init__
as the behavior is the same both with and without that line)Causes the following stacktrace:
OS Info
I have been unable to reproduce this on fedora or newer ubuntu versions. I played with the
cxxwrap_cpp
definition and it seems onlyadd_type
causes the crash, other functions likeset_const
work fine. It happens for both mirror and non-mirrored types.Just to make sure I did a fresh install on the current master of libcxxwrap and the issue persisted. Installation output:
Thank you
The text was updated successfully, but these errors were encountered: