Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GAP.prompt() changes the behavior of julia even after quitting #458

Closed
mohamed-barakat opened this issue May 17, 2020 · 1 comment · Fixed by #459
Closed

GAP.prompt() changes the behavior of julia even after quitting #458

mohamed-barakat opened this issue May 17, 2020 · 1 comment · Fixed by #459

Comments

@mohamed-barakat
Copy link
Contributor

$ julia
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.4.1 (2020-04-14)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

julia> using GAP

julia> a = [ [ 1, 2 ] ]
1-element Array{Array{Int64,1},1}:
 [1, 2]

julia> GAP.Globals.JuliaToGAP(GAP.Globals.IsList,a)
GAP: [ <Julia: [1, 2]> ]

julia> GAP.Globals.JuliaToGAP( GAP.Globals.JuliaToGAP(GAP.Globals.IsList,a) )
ERROR: Error thrown by GAP: Error, Constructor: the first argument must be a filter (not a plain list)

Stacktrace:
 [1] error(::String, ::String) at ./error.jl:42
 [2] error_handler() at /Users/mo/.julia/dev/GAP/src/GAP.jl:93
 [3] call_gap_func(::Main.ForeignGAP.MPtr, ::Main.ForeignGAP.MPtr; kwargs::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at /Users/mo/.julia/dev/GAP/src/ccalls.jl:109
 [4] call_gap_func at /Users/mo/.julia/dev/GAP/src/ccalls.jl:99 [inlined]
 [5] #_#5 at /Users/mo/.julia/dev/GAP/src/ccalls.jl:95 [inlined]
 [6] (::Main.ForeignGAP.MPtr)(::Main.ForeignGAP.MPtr) at /Users/mo/.julia/dev/GAP/src/ccalls.jl:95
 [7] top-level scope at REPL[4]:1

julia> GAP.prompt()
gap>

julia> GAP.Globals.JuliaToGAP( GAP.Globals.JuliaToGAP(GAP.Globals.IsList,a) )
brk>
brk>
Panic in /Users/mo/.julia/artifacts/848f0f318405266896d24d11e4baf5cf7bf3f203/gap-4.11.0/src/gap.c:1743: Caught error at top-most level, probably quit from library loading
@ThomasBreuer
Copy link
Member

I can reproduce the problem with Julia 1.4.0.
After entering a GAP session with using GAP; GAP.prompt() and then leaving it, an error in the Julia session ends up at the brk> prompt of GAP, and leaving the break loop then causes a Julia crash; the error message I get is different: *** longjmp causes uninitialized stack frame ***.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants