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

Unreachable reached #453

Open
Gnimuc opened this issue Dec 29, 2019 · 0 comments
Open

Unreachable reached #453

Gnimuc opened this issue Dec 29, 2019 · 0 comments

Comments

@Gnimuc
Copy link
Member

Gnimuc commented Dec 29, 2019

               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.3.1-pre.20 (2019-12-19)
 _/ |\__'_|_|_|\__'_|  |  release-1.3/90620af6b9 (fork: 116 commits, 133 days)
|__/                   |

julia> using Cxx

julia> cxx""" #include<iostream> """
true

julia> cxx"""
          void testJuliaPrint() {
              $:(println("\nTo end this test, press any key")::Nothing);
          }
          """
true

julia> @cxx testJuliaPrint()
Unreachable reached at 0x139c38ac0

signal (4): Illegal instruction: 4
in expression starting at REPL[5]:1
unknown function (ip: 0x139c38abf)
unknown function (ip: 0x139c38ab0)
unknown function (ip: 0x139c38a8c)
macro expansion at /Users/gnimuc/.julia/dev/Cxx/src/codegen.jl:841 [inlined]
cppcall at /Users/gnimuc/.julia/dev/Cxx/src/codegen.jl:841
unknown function (ip: 0x139c38a6c)
jl_apply at /Users/sabae/buildbot/worker/package_macos64/build/src/./julia.h:1631 [inlined]
do_call at /Users/sabae/buildbot/worker/package_macos64/build/src/interpreter.c:328
eval_body at /Users/sabae/buildbot/worker/package_macos64/build/src/interpreter.c:0
jl_interpret_toplevel_thunk_callback at /Users/sabae/buildbot/worker/package_macos64/build/src/interpreter.c:888
unknown function (ip: 0xfffffffffffffffe)
unknown function (ip: 0x12e490d8f)
unknown function (ip: 0x2)
jl_interpret_toplevel_thunk at /Users/sabae/buildbot/worker/package_macos64/build/src/interpreter.c:897
jl_toplevel_eval_flex at /Users/sabae/buildbot/worker/package_macos64/build/src/toplevel.c:814
jl_toplevel_eval_flex at /Users/sabae/buildbot/worker/package_macos64/build/src/toplevel.c:764
jl_toplevel_eval at /Users/sabae/buildbot/worker/package_macos64/build/src/toplevel.c:823 [inlined]
jl_toplevel_eval_in at /Users/sabae/buildbot/worker/package_macos64/build/src/toplevel.c:843
eval at ./boot.jl:330
eval_user_input at /Users/sabae/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.3/REPL/src/REPL.jl:86
run_backend at /Users/gnimuc/.julia/packages/Revise/S7mrl/src/Revise.jl:1057
#85 at ./task.jl:333
jl_apply at /Users/sabae/buildbot/worker/package_macos64/build/src/./julia.h:1631 [inlined]
start_task at /Users/sabae/buildbot/worker/package_macos64/build/src/task.c:659
Allocations: 37777682 (Pool: 37766381; Big: 11301); GC: 39
[1]    10869 illegal hardware instruction  julia

Both Julia 1.3.0 and the latest release-1.3 branch give the same errors.

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

1 participant