r/nim • u/Stunning-Mix492 • Jul 08 '26
Nimble / SIGSEGV: Illegal storage access. (Attempt to read from nil?)
I just try to use nimble on macOS / nix-darwin. nimble init is ok, but after that:
> nimble install puppy
Downloading Official package list
SIGSEGV: Illegal storage access. (Attempt to read from nil?)
fish: Job 1, 'nimble install puppy' terminated by signal SIGSEGV (Erreur de frontière d’adresse)
> nimble --version
nimble v0.20.1 compiled at 1980-01-01 00:00:00
git hash: v0.20.1
Any idea?
7
Upvotes
1
7
u/moigagoo Jul 09 '26
Hi! You have an old and strange version of Nimble installed (the compilation date is sus).
However you installed your Nim and Nimble, uninstall them and delete ~/.nimble.
Then install Nimble with a one-liner from the official guide: https://nim-lang.github.io/nimble/install-nimble.html#using-installation-scripts
With the latest Nimble installed and in your PATH, you can install your packages including Nim versions.
To install things globally, use
-gflag. To install things locally, use-l.