-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Harmless (?!) code leads to illegal instruction #29066
Comments
Worked for me. Maybe a stupid question, but should the |
No, I don't think so - at least it wasn't in the origin example, and it didn't need to in the MWE. (the error comes when pressing enter) if record_reference_images
cd(homedir()) do
isdir(dirname(recordpath)) || run(`git clone git@github.com:SimonDanisch/ReferenceImages.git`)
isdir(recordpath) && rm(recordpath)
end
end
Cloning into 'ReferenceImages'...
Enter passphrase for key '/c/Users/sdani/.ssh/id_rsa':
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Unreachable reached at 00000000290D0F94
Please submit a bug report with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks.
Exception: EXCEPTION_ILLEGAL_INSTRUCTION at 0x290d0f94 -- cd at .\file.jl:85
in expression starting at no file:0
cd at .\file.jl:87
unknown function (ip: 00000000290D0FBB)
jl_fptr_trampoline at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:1829
jl_apply_generic at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:2182
do_call at /home/Administrator/buildbot/worker/package_win64/build/src\interpreter.c:324
eval_value at /home/Administrator/buildbot/worker/package_win64/build/src\interpreter.c:428
eval_stmt_value at /home/Administrator/buildbot/worker/package_win64/build/src\interpreter.c:363 [inlined]
eval_body at /home/Administrator/buildbot/worker/package_win64/build/src\interpreter.c:682
jl_interpret_toplevel_thunk_callback at /home/Administrator/buildbot/worker/package_win64/build/src\interpreter.c:799
unknown function (ip: FFFFFFFFFFFFFFFE)
unknown function (ip: 00000000106AEDAF)
unknown function (ip: 0000000000000009)
jl_toplevel_eval_flex at /home/Administrator/buildbot/worker/package_win64/build/src\toplevel.c:787
jl_toplevel_eval_in at /home/Administrator/buildbot/worker/package_win64/build/src\builtins.c:622
eval at .\boot.jl:319
jl_apply_generic at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:2182
eval_user_input at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0\REPL\src\REPL.jl:85
macro expansion at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0\REPL\src\REPL.jl:117 [inlined]
#28 at .\task.jl:259
jl_fptr_trampoline at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:1829
jl_apply_generic at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:2182
jl_apply at /home/Administrator/buildbot/worker/package_win64/build/src\julia.h:1536 [inlined]
start_task at /home/Administrator/buildbot/worker/package_win64/build/src\task.c:268
Allocations: 2684473 (Pool: 2683974; Big: 499); GC: 5 And then just the command alone:
|
I just run into the same error in some other unrelated, but also harmless looking code: Unreachable reached at 0x7fe1fe6630fb
signal (4): Illegal instruction
in expression starting at cell:1
check_top_bit at ./boot.jl:581 [inlined]
toUInt64 at ./boot.jl:692 [inlined]
Type at ./boot.jl:722 [inlined]
convert at ./number.jl:7 [inlined]
cconvert at ./essentials.jl:344 [inlined]
== at ./strings/string.jl:102 [inlined]
#84 at /root/.julia/packages/WebIO/myl19/src/providers/generic_http.jl:116 The code in generic_http is: Seems like #25430 is unrelated?! |
Tested with latest master, which fixes #29468 but still fails with the issue here: julia> cd(homedir()) do
run(`blah`)
rand(Bool) && nothing
end
Unreachable reached at 0x7f5ee4334d73
signal (4): Illegal instruction
in expression starting at no file:0
cd at ./file.jl:99
unknown function (ip: 0x7f5ee4334d95)
jl_fptr_trampoline at /home/sd/juliastuff/julia/src/gf.c:1843
jl_apply_generic at /home/sd/juliastuff/julia/src/gf.c:2198
do_call at /home/sd/juliastuff/julia/src/interpreter.c:323
eval_value at /home/sd/juliastuff/julia/src/interpreter.c:411
eval_stmt_value at /home/sd/juliastuff/julia/src/interpreter.c:362 [inlined]
eval_body at /home/sd/juliastuff/julia/src/interpreter.c:768
jl_interpret_toplevel_thunk_callback at /home/sd/juliastuff/julia/src/interpreter.c:880
unknown function (ip: 0xfffffffffffffffe)
unknown function (ip: 0x7f5ef1d5b57f)
unknown function (ip: 0x7)
jl_interpret_toplevel_thunk at /home/sd/juliastuff/julia/src/interpreter.c:889
jl_toplevel_eval_flex at /home/sd/juliastuff/julia/src/toplevel.c:818
jl_toplevel_eval_in at /home/sd/juliastuff/julia/src/builtins.c:622
eval at ./boot.jl:319
jl_apply_generic at /home/sd/juliastuff/julia/src/gf.c:2198
eval_user_input at /home/sd/juliastuff/julia/usr/share/julia/stdlib/v1.1/REPL/src/REPL.jl:85
macro expansion at /home/sd/juliastuff/julia/usr/share/julia/stdlib/v1.1/REPL/src/REPL.jl:117 [inlined]
#26 at ./task.jl:259
jl_apply_generic at /home/sd/juliastuff/julia/src/gf.c:2198
jl_apply at /home/sd/juliastuff/julia/src/julia.h:1562 [inlined]
start_task at /home/sd/juliastuff/julia/src/task.c:504
unknown function (ip: 0xffffffffffffffff)
Allocations: 1138948 (Pool: 1138767; Big: 181); GC: 1
Illegal instruction (core dumped) As you can see I reduced the example a bit... Right hand of short circuit doesn't matter - just seems to be important that the compiler can't infer whether it's true or false! |
Yeah, there's many cases where we can't handle errors with |
Oh wow^^ Well, seems like #29158 fixes this :) |
Is this crash related (segmentation violation)?
|
It's hard to say. If you haven't filed it yet, please file an issue with instructions for reproducing it. If it turns out to be a duplicate of something else we'll figure that out eventually. |
I think it's related... I can reproduce it on julia 1.0, while i get an error on @Keno branch: julia> c = h5open("mydata.h5", "r") do file
read(file, "A")
end
HDF5-DIAG: Error detected in HDF5 (1.10.0-patch1) thread 139890977341632:
#000: ../../../src/H5O.c line 257 in H5Oopen(): unable to open object
major: Object header
minor: Can't open object
#001: ../../../src/H5O.c line 1499 in H5O_open_name(): object not found
major: Object header
minor: Object not found
#002: ../../../src/H5Gloc.c line 430 in H5G_loc_find(): can't find object
major: Symbol table
minor: Object not found
#003: ../../../src/H5Gtraverse.c line 869 in H5G_traverse(): internal path traversal failed
major: Symbol table
minor: Object not found
#004: ../../../src/H5Gtraverse.c line 641 in H5G_traverse_real(): traversal operator failed
major: Symbol table
minor: Callback failed
#005: ../../../src/H5Gloc.c line 385 in H5G_loc_find_cb(): object 'A' doesn't exist
major: Symbol table
minor: Object not found |
Appears to be fixed after #29158. |
Versioninfo:
The text was updated successfully, but these errors were encountered: