<p dir="auto">When trying to use the Julia package Images with julia-debug, the process crashes with the following message:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia&gt; using Images
julia-debug: dump.c:2117: jl_recache_type: Zusicherung »t-&gt;uid != 0« nicht erfüllt.

signal (6): Abgebrochen
gsignal at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
abort at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
..."><pre class="notranslate"><code class="notranslate">julia&gt; using Images
julia-debug: dump.c:2117: jl_recache_type: Zusicherung »t-&gt;uid != 0« nicht erfüllt.

signal (6): Abgebrochen
gsignal at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
abort at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
...
</code></pre></div>
<p dir="auto">I've tried to use a self compiled Julia version as well as the original binaries from the home page:<br>
Version 0.4.6 (2016-06-19 17:16 UTC)</p>
<p dir="auto">The system runs with a x64 Ubuntu 16.04.1 OS</p>
<p dir="auto">Using Images commit fbf9e98112c88355fc0b6c986995b7e9875ebcba, and</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; versioninfo()
Julia Version 0.5.0-dev+4015
Commit 0eb3875* (2016-05-10 17:38 UTC)
DEBUG build
Platform Info:
  System: Linux (x86_64-linux-gnu)
  CPU: Intel(R) Xeon(R) CPU E5-2650 0 @ 2.00GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Sandybridge)
  LAPACK: libopenblas64_
  LIBM: libopenlibm
  LLVM: libLLVM-3.7.1 (ORCJIT, sandybridge)"><pre class="notranslate">julia<span class="pl-k">&gt;</span> <span class="pl-c1">versioninfo</span>()
Julia Version <span class="pl-c1">0.5</span>.<span class="pl-c1">0</span><span class="pl-k">-</span>dev<span class="pl-k">+</span><span class="pl-c1">4015</span>
Commit <span class="pl-c1">0</span>eb3875<span class="pl-k">*</span> (<span class="pl-c1">2016</span><span class="pl-k">-</span><span class="pl-c1">05</span><span class="pl-k">-</span><span class="pl-c1">10</span> <span class="pl-c1">17</span><span class="pl-k">:</span><span class="pl-c1">38</span> UTC)
DEBUG build
Platform Info<span class="pl-k">:</span>
  System<span class="pl-k">:</span> Linux (x86_64<span class="pl-k">-</span>linux<span class="pl-k">-</span>gnu)
  CPU<span class="pl-k">:</span> <span class="pl-c1">Intel</span>(R) <span class="pl-c1">Xeon</span>(R) CPU E5<span class="pl-k">-</span><span class="pl-c1">2650</span> <span class="pl-c1">0</span> @ <span class="pl-c1">2.00</span>GHz
  WORD_SIZE<span class="pl-k">:</span> <span class="pl-c1">64</span>
  BLAS<span class="pl-k">:</span> libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Sandybridge)
  LAPACK<span class="pl-k">:</span> libopenblas64_
  LIBM<span class="pl-k">:</span> libopenlibm
  LLVM<span class="pl-k">:</span> libLLVM<span class="pl-k">-</span><span class="pl-c1">3.7</span>.<span class="pl-c1">1</span> (ORCJIT, sandybridge)</pre></div>
<p dir="auto">(NB: this is a debug build)</p>
<p dir="auto">I get a segfault from <code class="notranslate">dump.c</code>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia-0.5: /home/tim/src/julia-0.5/src/dump.c:2222: jl_recache_type: Assertion `t-&gt;uid != 0' failed.

signal (6): Aborted
while loading no file, in expression starting on line 0
gsignal at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
abort at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
unknown function (ip: 0x7f99e1da1b85)
__assert_fail at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
jl_recache_type at /home/tim/src/julia-0.5/src/dump.c:2222
jl_recache_types at /home/tim/src/julia-0.5/src/dump.c:2273
_jl_restore_incremental at /home/tim/src/julia-0.5/src/dump.c:2330
jl_restore_incremental at /home/tim/src/julia-0.5/src/dump.c:2379
_require_from_serialized at ./loading.jl:174
require at ./loading.jl:365
unknown function (ip: 0x7f99dea1f016)
jl_call_method_internal at /home/tim/src/julia-0.5/src/julia_internal.h:76
jl_apply_generic at /home/tim/src/julia-0.5/src/gf.c:1561
jl_apply at /home/tim/src/julia-0.5/src/julia.h:1382
eval_import_path_ at /home/tim/src/julia-0.5/src/toplevel.c:375
eval_import_path at /home/tim/src/julia-0.5/src/toplevel.c:402
jl_toplevel_eval_flex at /home/tim/src/julia-0.5/src/toplevel.c:451
jl_toplevel_eval at /home/tim/src/julia-0.5/src/toplevel.c:557
jl_toplevel_eval_in_warn at /home/tim/src/julia-0.5/src/builtins.c:547
jl_toplevel_eval_in at /home/tim/src/julia-0.5/src/builtins.c:514
eval at ./boot.jl:230
unknown function (ip: 0x7f99de987070)
jl_call_method_internal at /home/tim/src/julia-0.5/src/julia_internal.h:76
jl_apply_generic at /home/tim/src/julia-0.5/src/gf.c:1561
[inline] at ./REPL.jl:3
eval_user_input at ./REPL.jl:62
unknown function (ip: 0x7f97dcbfb5a6)
jl_call_method_internal at /home/tim/src/julia-0.5/src/julia_internal.h:76
jl_apply_generic at /home/tim/src/julia-0.5/src/gf.c:1561
[inline] at ./REPL.jl:92
#1 at ./event.jl:46
unknown function (ip: 0x7f99e3e5b52f)
jl_call_method_internal at /home/tim/src/julia-0.5/src/julia_internal.h:76
jl_apply_generic at /home/tim/src/julia-0.5/src/gf.c:1561
jl_apply at /home/tim/src/julia-0.5/src/julia.h:1382
start_task at /home/tim/src/julia-0.5/src/task.c:253
unknown function (ip: 0xffffffffffffffff)
Allocations: 4340062 (Pool: 4338379; Big: 1683); GC: 9
Aborted (core dumped)"><pre class="notranslate"><code class="notranslate">julia-0.5: /home/tim/src/julia-0.5/src/dump.c:2222: jl_recache_type: Assertion `t-&gt;uid != 0' failed.

signal (6): Aborted
while loading no file, in expression starting on line 0
gsignal at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
abort at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
unknown function (ip: 0x7f99e1da1b85)
__assert_fail at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
jl_recache_type at /home/tim/src/julia-0.5/src/dump.c:2222
jl_recache_types at /home/tim/src/julia-0.5/src/dump.c:2273
_jl_restore_incremental at /home/tim/src/julia-0.5/src/dump.c:2330
jl_restore_incremental at /home/tim/src/julia-0.5/src/dump.c:2379
_require_from_serialized at ./loading.jl:174
require at ./loading.jl:365
unknown function (ip: 0x7f99dea1f016)
jl_call_method_internal at /home/tim/src/julia-0.5/src/julia_internal.h:76
jl_apply_generic at /home/tim/src/julia-0.5/src/gf.c:1561
jl_apply at /home/tim/src/julia-0.5/src/julia.h:1382
eval_import_path_ at /home/tim/src/julia-0.5/src/toplevel.c:375
eval_import_path at /home/tim/src/julia-0.5/src/toplevel.c:402
jl_toplevel_eval_flex at /home/tim/src/julia-0.5/src/toplevel.c:451
jl_toplevel_eval at /home/tim/src/julia-0.5/src/toplevel.c:557
jl_toplevel_eval_in_warn at /home/tim/src/julia-0.5/src/builtins.c:547
jl_toplevel_eval_in at /home/tim/src/julia-0.5/src/builtins.c:514
eval at ./boot.jl:230
unknown function (ip: 0x7f99de987070)
jl_call_method_internal at /home/tim/src/julia-0.5/src/julia_internal.h:76
jl_apply_generic at /home/tim/src/julia-0.5/src/gf.c:1561
[inline] at ./REPL.jl:3
eval_user_input at ./REPL.jl:62
unknown function (ip: 0x7f97dcbfb5a6)
jl_call_method_internal at /home/tim/src/julia-0.5/src/julia_internal.h:76
jl_apply_generic at /home/tim/src/julia-0.5/src/gf.c:1561
[inline] at ./REPL.jl:92
#1 at ./event.jl:46
unknown function (ip: 0x7f99e3e5b52f)
jl_call_method_internal at /home/tim/src/julia-0.5/src/julia_internal.h:76
jl_apply_generic at /home/tim/src/julia-0.5/src/gf.c:1561
jl_apply at /home/tim/src/julia-0.5/src/julia.h:1382
start_task at /home/tim/src/julia-0.5/src/task.c:253
unknown function (ip: 0xffffffffffffffff)
Allocations: 4340062 (Pool: 4338379; Big: 1683); GC: 9
Aborted (core dumped)
</code></pre></div>
<p dir="auto">This doesn't happen if I set <code class="notranslate">__precompile__(false)</code>, or just directly <code class="notranslate">include("Images.jl")</code>.</p>
<p dir="auto">I've reproduced this on two machines, and it happens every time at the <a href="https://github.com/JuliaLang/julia/blob/89ba12bfbb87c35044bed0438e9254233d78ac95/src/dump.c#L2222">same place</a>. It's not a complete corruption, because</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(gdb) call jl_(t)
Images.Clamp{ColorTypes.BGRA{#T&lt;:Any}}"><pre class="notranslate"><code class="notranslate">(gdb) call jl_(t)
Images.Clamp{ColorTypes.BGRA{#T&lt;:Any}}
</code></pre></div>