staticfloat / julia-debian

debian/ directory for nightly builds
2 stars 2 forks source link

ReadOnlyMemoryError() When trying to execute package-related commands #6

Open ehteqx opened 7 years ago

ehteqx commented 7 years ago

With Julia 0.5.0 x86_64 for Linux downloaded thorugh the PPA (I am running Ubuntu 14.04 x86_64) every time I want to use the package manager - i.e. with Pkg.add() or Pkg.status() ... - it appears the following output:

INFO: Initializing package repository /home/emaballarin/.julia/v0.5 INFO: Cloning METADATA from https://github.com/JuliaLang/METADATA.jl ERROR: ReadOnlyMemoryError()

and the execution stops.

I have already tried with a clean install, with no success. The use of the official generic binaries for the same version, seems to solve the problem. The use of nightly builds does not.

After the execution of the commands, the /home/.julia folder remains empty, as it was prior to install.

@staticfloat

tkelman commented 7 years ago

originally reported at https://github.com/JuliaLang/julia/issues/19618

staticfloat commented 7 years ago

The use of the official generic binaries for the same version, seems to solve the problem. The use of nightly builds does not.

ehteqx commented 7 years ago

Hello! Thanks for the reply.

If it can help, even after copying by hand the METADATA repository from a working .julia directory, the problem seems to occur.

staticfloat commented 7 years ago

To be honest, I'm not sure where the error is even coming from, ReadOnlyMemoryError() doesn't seem to be used very much within julia's standard library, so I'm kind of shooting in the dark here. Are you able to run julia within gdb and give me a backtrace when the error occurs? Running the following should work:

$ gdb --args julia -e 'Pkg.init()'
...
(gdb) r
...
(gdb) bt
tkelman commented 7 years ago

probably has to do with what version of libgit2 the ppa build is using?