You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The shared library I'm using cannot be loaded under CxxWrap 0.15.0. Consider the file test.jl
module Lib
using CxxWrap
@wrapmodule(() ->joinpath(@__DIR__, "lib.so"))
function__init__()
@initcxxreturnendendprintln("OK")
Then on CxxWrap0.15.0:
$ julia test.jl
malloc(): invalid size (unsorted)
$ julia test.jl
malloc(): smallbin double linked list corrupted
$ julia test.jl
[19701] signal (6.-6): Aborted
in expression starting at /home/daniel/EzPC-OPF/SCI/julia/test.jl:3
pthread_kill at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
raise at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
abort at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
corrupted size vs. prev_size
Aborted
The same code gives me non-deterministic fatal errors. CxxWrap0.14.2 works perfectly fine though:
$ julia test.jl
OK
The text was updated successfully, but these errors were encountered:
Hi, did you build the library against libcxxwrap-julia 0.12.2? To ensure complete compatibility, you also need to build Julia itself from source and build libcxxwrap-julia against that, and then build your own lib against that, all with the same compiler.
I was compiling against libcxxwrap-julia 0.11.2 because libcxxwrap-julia 0.12.2 would give me an error. I found the reason though. To explain, consider a simple class with an external function:
The shared library I'm using cannot be loaded under CxxWrap 0.15.0. Consider the file
test.jl
Then on
CxxWrap
0.15.0
:The same code gives me non-deterministic fatal errors.
CxxWrap
0.14.2
works perfectly fine though:The text was updated successfully, but these errors were encountered: