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

core dump, with: Assertion `jl_types_equal((jl_value_t*)t, (jl_value_t*)dt)' failed. #19253

Closed
lobingera opened this issue Nov 7, 2016 · 8 comments
Labels
compiler:precompilation Precompilation of modules

Comments

@lobingera
Copy link

reported as issue on Gtk JuliaGraphics/Gtk.jl#268, but ...

               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: http://docs.julialang.org
   _ _   _| |_  __ _   |  Type "?help" for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.5.1-pre+2 (2016-09-20 03:34 UTC)
 _/ |\__'_|_|_|\__'_|  |  Commit f0d40ec* (48 days old release-0.5)
|__/                   |  x86_64-linux-gnu

julia> using Gtk

julia> workspace()

julia> using Gtk
WARNING: Method definition redirect_stdin(Function, Any) in module Compat at /home/lobi/.julia/v0.5/Compat/src/Compat.jl:1597 overwritten in module Compat at /home/lobi/.julia/v0.5/Compat/src/Compat.jl:1597.
WARNING: Method definition redirect_stdout(Function, Any) in module Compat at /home/lobi/.julia/v0.5/Compat/src/Compat.jl:1597 overwritten in module Compat at /home/lobi/.julia/v0.5/Compat/src/Compat.jl:1597.
WARNING: Method definition redirect_stderr(Function, Any) in module Compat at /home/lobi/.julia/v0.5/Compat/src/Compat.jl:1597 overwritten in module Compat at /home/lobi/.julia/v0.5/Compat/src/Compat.jl:1597.
julia: /home/lobi/julia05/src/dump.c:2370: jl_recache_type: Assertion `jl_types_equal((jl_value_t*)t, (jl_value_t*)dt)' failed.

signal (6): Aborted
while loading no file, in expression starting on line 0
raise at /build/eglibc-oGUzwX/eglibc-2.19/signal/../nptl/sysdeps/unix/sysv/linux/raise.c:56
abort at /build/eglibc-oGUzwX/eglibc-2.19/stdlib/abort.c:89
__assert_fail_base at /build/eglibc-oGUzwX/eglibc-2.19/assert/assert.c:92
__assert_fail at /build/eglibc-oGUzwX/eglibc-2.19/assert/assert.c:101
jl_recache_type at /home/lobi/julia05/src/dump.c:2370
jl_recache_types at /home/lobi/julia05/src/dump.c:2462
_jl_restore_incremental at /home/lobi/julia05/src/dump.c:2538
jl_restore_incremental at /home/lobi/julia05/src/dump.c:2580
_include_from_serialized at ./loading.jl:150
_require_from_serialized at ./loading.jl:187
_require_search_from_serialized at ./loading.jl:217
unknown function (ip: 0x7f740551a770)
jl_call_method_internal at /home/lobi/julia05/src/julia_internal.h:189
jl_apply_generic at /home/lobi/julia05/src/gf.c:1942
require at ./loading.jl:371
unknown function (ip: 0x7f74052a018b)
jl_call_method_internal at /home/lobi/julia05/src/julia_internal.h:189
jl_apply_generic at /home/lobi/julia05/src/gf.c:1942
jl_apply at /home/lobi/julia05/src/julia.h:1392
eval_import_path_ at /home/lobi/julia05/src/toplevel.c:402
eval_import_path at /home/lobi/julia05/src/toplevel.c:429
jl_toplevel_eval_flex at /home/lobi/julia05/src/toplevel.c:480
jl_toplevel_eval at /home/lobi/julia05/src/toplevel.c:580
jl_toplevel_eval_in_warn at /home/lobi/julia05/src/builtins.c:590
jl_toplevel_eval_in at /home/lobi/julia05/src/builtins.c:556
eval at ./boot.jl:234
unknown function (ip: 0x7f7405227ccf)
jl_call_method_internal at /home/lobi/julia05/src/julia_internal.h:189
jl_apply_generic at /home/lobi/julia05/src/gf.c:1942
eval_user_input at ./REPL.jl:64
unknown function (ip: 0x7f71f3b2e6c6)
jl_call_method_internal at /home/lobi/julia05/src/julia_internal.h:189
jl_apply_generic at /home/lobi/julia05/src/gf.c:1942
macro expansion at ./REPL.jl:95 [inlined]
#3 at ./event.jl:68
unknown function (ip: 0x7f71f3b2515f)
jl_call_method_internal at /home/lobi/julia05/src/julia_internal.h:189
jl_apply_generic at /home/lobi/julia05/src/gf.c:1942
jl_apply at /home/lobi/julia05/src/julia.h:1392
start_task at /home/lobi/julia05/src/task.c:253
unknown function (ip: 0xffffffffffffffff)
Allocations: 3662487 (Pool: 3661480; Big: 1007); GC: 3
Aborted (core dumped)
@martinholters
Copy link
Member

#16467?

@lobingera
Copy link
Author

tend to agree

@yuyichao
Copy link
Contributor

yuyichao commented Nov 8, 2016

I don't think this is actually the same issue. (Also seems to be fixed on master)

@lobingera
Copy link
Author

lobingera commented Nov 8, 2016

why do you think it's not the same issue?

@yuyichao
Copy link
Contributor

yuyichao commented Nov 8, 2016

It fails before it starts to run the __init__ function the second time.

@yuyichao
Copy link
Contributor

yuyichao commented Nov 9, 2016

Reduced to

__precompile__()
module Gtk

abstract GObject
const fundamental_types = Ptr{GObject}
@eval f1{T<:$GObject}(::Type{T}) = 1
f2(hnd::Ptr{GObject}) = 2
end

Happens on master and 0.5 with precompile on.

@yuyichao yuyichao added the compiler:precompilation Precompilation of modules label Nov 9, 2016
@yuyichao
Copy link
Contributor

yuyichao commented Nov 9, 2016

And it happens ~20-30% of the time when running in a loop....

@KristofferC
Copy link
Member

workspace is removed, so this issue seems obsolete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler:precompilation Precompilation of modules
Projects
None yet
Development

No branches or pull requests

4 participants