olynch / scientific-fhs

A nixos FHS for julia and conda, and possibly other scientific tools
44 stars 14 forks source link

REPL shell mode (etc.) does not work #4

Closed jacg closed 1 year ago

jacg commented 3 years ago

To reproduce:

  1. Start the Julia REPL
  2. Enter shell mode with ;
  3. Try to issue any shell command, such as ls, pwd, echo hello.

This results in the error

symbol lookup error: /usr/lib/libc.so.6: undefined symbol: _dl_fatal_printf, version GLIBC_PRIVATE

I have observed similar symptoms in other situations with this Julia installation, but I forget where exactly.

jacg commented 3 years ago

Here's another situation with similar symptoms: trying to use Gadfly.plot:

julia> @time using Gadfly
  7.256341 seconds (8.00 M allocations: 548.503 MiB, 3.77% gc time, 0.10% compilation time)

julia> plot(y=[1,2,3])
/nix/store/a3fc4zqaiak11jks9zd579mz5v0li8bg-bash-4.4-p23/bin/sh: symbol lookup error: /usr/lib/libc.so.6: undefined symbol: _dl_fatal_printf, version GLIBC_PRIVATE
Error showing value of type Plot:
ERROR: failed process: Process(`xdg-open /run/user/1000/jl_9eXchH.html`, ProcessExited(127)) [127]

Stacktrace:
  [1] pipeline_error
    @ ./process.jl:525 [inlined]
  [2] run(::Cmd; wait::Bool)
    @ Base ./process.jl:440
  [3] run
    @ ./process.jl:438 [inlined]
  [4] open_file
    @ ~/.julia/packages/Gadfly/zv8pp/src/open_file.jl:5 [inlined]
  [5] display(d::Gadfly.GadflyDisplay, #unused#::MIME{Symbol("text/html")}, p::Plot)
    @ Gadfly ~/.julia/packages/Gadfly/zv8pp/src/Gadfly.jl:1066
  [6] display(d::Gadfly.GadflyDisplay, mime::String, x::Any)
    @ Base.Multimedia ./multimedia.jl:216
  [7] display(d::Gadfly.GadflyDisplay, p::Plot)
    @ Gadfly ~/.julia/packages/Gadfly/zv8pp/src/Gadfly.jl:1005
  [8] display(x::Any)
    @ Base.Multimedia ./multimedia.jl:328
  [9] #invokelatest#2
    @ ./essentials.jl:708 [inlined]
 [10] invokelatest
    @ ./essentials.jl:706 [inlined]
 [11] print_response(errio::IO, response::Any, show_value::Bool, have_color::Bool, specialdisplay::Union{Nothing, AbstractDisplay})
    @ REPL /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPL.jl:247
 [12] (::REPL.var"#40#41"{REPL.LineEditREPL, Pair{Any, Bool}, Bool, Bool})(io::Any)
    @ REPL /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPL.jl:231
 [13] with_repl_linfo(f::Any, repl::REPL.LineEditREPL)
    @ REPL /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPL.jl:462
 [14] print_response(repl::REPL.AbstractREPL, response::Any, show_value::Bool, have_color::Bool)
    @ REPL /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPL.jl:229
 [15] (::REPL.var"#do_respond#61"{Bool, Bool, REPL.var"#72#82"{REPL.LineEditREPL, REPL.REPLHistoryProvider}, REPL.LineEditREPL, REPL.LineEdit.Prompt})(s::REPL.LineEdit.MIState, buf::Any, ok::Bool)
    @ REPL /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPL.jl:798
 [16] #invokelatest#2
    @ ./essentials.jl:708 [inlined]
 [17] invokelatest
    @ ./essentials.jl:706 [inlined]
 [18] run_interface(terminal::REPL.Terminals.TextTerminal, m::REPL.LineEdit.ModalInterface, s::REPL.LineEdit.MIState)
    @ REPL.LineEdit /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/LineEdit.jl:2441
 [19] run_frontend(repl::REPL.LineEditREPL, backend::REPL.REPLBackendRef)
    @ REPL /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPL.jl:1126
 [20] (::REPL.var"#44#49"{REPL.LineEditREPL, REPL.REPLBackendRef})()
    @ REPL ./task.jl:411

julia> 
olynch commented 1 year ago

Can't replicate, and this is an old issue; I'd reopen this if it's still a problem.