Segmentation fault at rmprocs()

Hello, I am trying to run this simple MWE.jl file in a HPC:

using Distributed

addprocs(2)
println("Processes added")

rmprocs(workers())
println("Processes removed")

If I run julia MWE.jl in my laptop, it works fine. However, if I run it in a HPC (say, e.g., in the master node), I get

Processes added
Violación de segmento (`core' generado)

If I comment the line rmprocs(workers()), then the message Processes removed is printed but still the program ends with segmentation fault.

Help would be very much appreciated.

Please read this resource before proceeding:

HPC clusters might require the use of a job scheduler to manage processes. Perhaps your master node has some additional restrictions. Hard to know.

I have just realized that running sudo julia MWE.jl works fine. Is this a Julia-related issue or is it related to the administration of the HPC? Julia is installed in /opt folder.

I have tried something similar, but running julia -p4 ... or similar yields the segmentation fault. Whenever I try to work with several processes in julia I get the segmentation fault, unless it is under sudo permission.

Unsetting LD_LIBRARY_PATH fixed the problem. Is a similar issue than this one, this one and this one.