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

Example crashes Julia #24

Open
liamh opened this issue Feb 21, 2021 · 4 comments
Open

Example crashes Julia #24

liamh opened this issue Feb 21, 2021 · 4 comments

Comments

@liamh
Copy link

liamh commented Feb 21, 2021

When I try the example, at the loop step

for i in 1:N
       global p
       p = Φ*p  Gaussian(zero(x0), Q)
       p, yres, _ = Kalman.correct(Kalman.JosephForm(), p, (Gaussian(ys[i], R), H))
       push!(ps, p)
end

I get an error and Julia crashes

Illegal inttoptr
      %77 = ptrtoint double addrspace(13)* %75 to i64
Illegal inttoptr
      %scevgep4546 = ptrtoint double addrspace(13)* %scevgep45 to i64
Illegal inttoptr
      %138 = inttoptr i64 %137 to i8 addrspace(13)*

signal (6): Aborted
in expression starting at none:0
gsignal at /usr/bin/../lib/x86_64-linux-gnu/libc.so.6 (unknown line)
abort at /usr/bin/../lib/x86_64-linux-gnu/libc.so.6 (unknown line)
unknown function (ip: 0x7fb280c8dd04)
_ZN4llvm13FPPassManager13runOnFunctionERNS_8FunctionE at /usr/bin/../lib/x86_64-linux-gnu/libLLVM-8.so.1 (unknown line)
_ZN4llvm13FPPassManager11runOnModuleERNS_6ModuleE at /usr/bin/../lib/x86_64-linux-gnu/libLLVM-8.so.1 (unknown line)
_ZN4llvm6legacy15PassManagerImpl3runERNS_6ModuleE at /usr/bin/../lib/x86_64-linux-gnu/libLLVM-8.so.1 (unknown line)
unknown function (ip: 0x7fb280d77ac1)
unknown function (ip: 0x7fb280d7a2d8)
unknown function (ip: 0x7fb280d7a8cd)
unknown function (ip: 0x7fb280cb5b4a)
unknown function (ip: 0x7fb280ce6ed3)
unknown function (ip: 0x7fb280d0c84b)
jl_apply_generic at /usr/bin/../lib/x86_64-linux-gnu/libjulia.so.1 (unknown line)
top-level scope at ./none:4
unknown function (ip: 0x7fb280d3a030)
jl_toplevel_eval_in at /usr/bin/../lib/x86_64-linux-gnu/libjulia.so.1 (unknown line)
eval at ./boot.jl:331 [inlined]
repleval at /home/liam/.julia/packages/Atom/BPtI0/src/repl.jl:196
#242 at /home/liam/.julia/packages/Atom/BPtI0/src/repl.jl:226
with_logstate at ./logging.jl:398
with_logger at ./logging.jl:505 [inlined]
evalrepl at /home/liam/.julia/packages/Atom/BPtI0/src/repl.jl:214
unknown function (ip: 0x7fb280d1f75b)
unknown function (ip: 0x7fb280d1f389)
unknown function (ip: 0x7fb280d1f8f0)
unknown function (ip: 0x7fb280d209c8)
unknown function (ip: 0x7fb280d21616)
unknown function (ip: 0x7fb280d39e08)
jl_toplevel_eval_in at /usr/bin/../lib/x86_64-linux-gnu/libjulia.so.1 (unknown line)
eval at ./boot.jl:331
eval_user_input at /build/julia-98cBbp/julia-1.4.1+dfsg/usr/share/julia/stdlib/v1.4/REPL/src/REPL.jl:86
macro expansion at /build/julia-98cBbp/julia-1.4.1+dfsg/usr/share/julia/stdlib/v1.4/REPL/src/REPL.jl:118 [inlined]
#26 at ./task.jl:358
unknown function (ip: 0x7fb280d24cbb)
unknown function (ip: (nil))
Allocations: 76408531 (Pool: 76388747; Big: 19784); GC: 71

Julia has exited.
Press Enter to start a new session.

I know very little about Julia, is this a problem with this package, or with my installation of Julia?

@mschauer
Copy link
Owner

This could be a bug in my code or a bug in Julia. So what version of Julia are you running? Can you report the output of the function

versioninfo()

here?

@liamh
Copy link
Author

liamh commented Feb 23, 2021 via email

@mschauer
Copy link
Owner

I think this is a Julia bug. Perhaps you can try the recent Julia 1.5.3? You can download it at https://julialang.org/

@yakir12
Copy link
Contributor

yakir12 commented Mar 29, 2021

Just chiming in here: I tried the example code with the latest 1.6 and it worked very well.

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

3 participants