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

Crash with signal (4): Illegal instruction #29357

Closed
tknopp opened this issue Sep 25, 2018 · 1 comment · Fixed by #29380
Closed

Crash with signal (4): Illegal instruction #29357

tknopp opened this issue Sep 25, 2018 · 1 comment · Fixed by #29380
Assignees
Labels
bug Indicates an unexpected problem or unintended behavior types and dispatch Types, subtyping and method dispatch

Comments

@tknopp
Copy link
Contributor

tknopp commented Sep 25, 2018

Hi,

this is a bug report that has been originally been filed against the NFFT package JuliaMath/NFFT.jl#29
but this might be a bug in Julia itself. The code to reproduce is:

using NFFT

struct container
  fourier_transform::NFFTPlan
end

function crash(x::Array{Complex{Float64},2}, cont::container)
  result = nfft(cont.fourier_transform, x) 
  return result
end

samples = rand(Float64, 2, 1000)
cont = container(NFFTPlan(samples, (64,64)))
x = rand(Complex{Float64}, 64,64)
crash(x, cont)

The interesting bit is that it does not crash if the NFFTPlan is not put into the struct. The error that I get is:

Unreachable reached at 0x12489fc42

signal (4): Illegal instruction: 4
in expression starting at no file:0
crash at ./REPL[3]:2
jl_fptr_trampoline at /Users/osx/buildbot/slave/package_osx64/build/src/gf.c:1829
do_call at /Users/osx/buildbot/slave/package_osx64/build/src/interpreter.c:324
eval_stmt_value at /Users/osx/buildbot/slave/package_osx64/build/src/interpreter.c:363 [inlined]
eval_body at /Users/osx/buildbot/slave/package_osx64/build/src/interpreter.c:686
jl_interpret_toplevel_thunk_callback at /Users/osx/buildbot/slave/package_osx64/build/src/interpreter.c:799
unknown function (ip: 0xfffffffffffffffe)
unknown function (ip: 0x111153b1f)
unknown function (ip: 0xffffffffffffffff)
jl_interpret_toplevel_thunk at /Users/osx/buildbot/slave/package_osx64/build/src/interpreter.c:808
jl_toplevel_eval_flex at /Users/osx/buildbot/slave/package_osx64/build/src/toplevel.c:831
jl_toplevel_eval_in at /Users/osx/buildbot/slave/package_osx64/build/src/builtins.c:633
eval at ./boot.jl:319
eval_user_input at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v0.7/REPL/src/REPL.jl:85
macro expansion at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v0.7/REPL/src/REPL.jl:117 [inlined]
#28 at ./task.jl:262
jl_apply at /Users/osx/buildbot/slave/package_osx64/build/src/./julia.h:1538 [inlined]
start_task at /Users/osx/buildbot/slave/package_osx64/build/src/task.c:268
Allocations: 7854476 (Pool: 7853198; Big: 1278); GC: 17
Illegal instruction: 4
@JeffBezanson
Copy link
Member

This is probably the same issue as #29208 .

@JeffBezanson JeffBezanson self-assigned this Sep 25, 2018
@JeffBezanson JeffBezanson added types and dispatch Types, subtyping and method dispatch bug Indicates an unexpected problem or unintended behavior labels Sep 25, 2018
KristofferC pushed a commit that referenced this issue Sep 30, 2018
KristofferC pushed a commit that referenced this issue Feb 11, 2019
KristofferC pushed a commit that referenced this issue Feb 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior types and dispatch Types, subtyping and method dispatch
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants