Skip to content

fatal error on starting Julia after compiling sys image #389

@ExpandingMan

Description

@ExpandingMan
fatal: error thrown and no exception handler available.
#<null>
stat at ./stat.jl:69
isfile at ./stat.jl:311 [inlined]
__init__ at /root/.julia/packages/Revise/C272c/src/Revise.jl:1159
jfptr___init___26645 at /opt/julia/lib/julia/sys.so (unknown line)
_jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2144 [inlined]
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2322
jl_apply at /buildworker/worker/package_linux64/build/src/julia.h:1692 [inlined]
jl_module_run_initializer at /buildworker/worker/package_linux64/build/src/toplevel.c:74
_julia_init at /buildworker/worker/package_linux64/build/src/init.c:788
unknown function (ip: 0x401527)
__libc_start_main at /usr/lib/libc.so.6 (unknown line)
unknown function (ip: 0x4015d4)

Luckily I caught the entire session in which I called create_sysimage before this was thrown

◖0▮expandingman@asus-desk-2~▮◗ sudo julia
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.4.0 (2020-03-21)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

julia> Revise
ERROR: UndefVarError: Revise not defined

(@v1.4) pkg> add Revise
    Cloning default registries into `~/.julia`
    Cloning registry from "https://github.com/JuliaRegistries/General.git"
      Added registry `General` to `~/.julia/registries/General`
  Resolving package versions...
  Installed LoweredCodeUtils ─── v0.4.3
  Installed OrderedCollections ─ v1.1.0
  Installed CodeTracking ─────── v0.5.9
  Installed JuliaInterpreter ─── v0.7.13
  Installed Revise ───────────── v2.6.1
   Updating `~/.julia/environments/v1.4/Project.toml`
  [295af30f] + Revise v2.6.1
   Updating `~/.julia/environments/v1.4/Manifest.toml`
  [da1fd8a2] + CodeTracking v0.5.9
  [aa1ae85d] + JuliaInterpreter v0.7.13
  [6f1432cf] + LoweredCodeUtils v0.4.3
  [bac558e1] + OrderedCollections v1.1.0
  [295af30f] + Revise v2.6.1
  [2a0f44e3] + Base64
  [ade2ca70] + Dates
  [8ba89e20] + Distributed
  [7b1f6079] + FileWatching
  [b77e0a4c] + InteractiveUtils
  [76f85450] + LibGit2
  [8f399da3] + Libdl
  [56ddb016] + Logging
  [d6f4376e] + Markdown
  [44cfe95a] + Pkg
  [de0858da] + Printf
  [3fa0cd96] + REPL
  [9a3f8284] + Random
  [ea8e919c] + SHA
  [9e88b42a] + Serialization
  [6462fe0b] + Sockets
  [8dfed614] + Test
  [cf7118a7] + UUIDs
  [4ec0a83e] + Unicode

(@v1.4) pkg> add PackageCompiler
  Resolving package versions...
  Installed PackageCompiler ─ v1.1.1
   Updating `~/.julia/environments/v1.4/Project.toml`
  [9b87118b] + PackageCompiler v1.1.1
   Updating `~/.julia/environments/v1.4/Manifest.toml`
  [9b87118b] + PackageCompiler v1.1.1

julia> using PackageCompiler
[ Info: Precompiling PackageCompiler [9b87118b-4619-50d2-8e1e-99f35a4d4d9d]

julia> create_sysimage(:Revise, replace_default=true);
[ Info: PackageCompiler: creating system image object file, this might take a while...
[ Info: PackageCompiler: default sysimg replaced, restart Julia for the new sysimg to be in effect

Note that when I call sudo julia on my current setup on Manjaro it uses /root/.julia whereas when I launched and got this error I use /home/expandingman/.julia (which shouldn't matter, and I've used it successfully this way before).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions