Julia: precompile failure with IO redirection

Created on 3 Sep 2018  路  4Comments  路  Source: JuliaLang/julia

I can reproduce this on both Linux and FreeBSD.

$ (g)make > /tmp/test.log

and got this on stderr:

JULIA usr/lib/julia/sys-o.a
fatal: error thrown and no exception handler available. 
ErrorException("Task cannot be serialized")
rec_backtrace at /home/iblis/git/julia/src/stackwalk.c:94
record_backtrace at /home/iblis/git/julia/src/task.c:249
jl_throw at /home/iblis/git/julia/src/task.c:580
jl_error at /home/iblis/git/julia/src/rtutils.c:41
jl_serialize_value_ at /home/iblis/git/julia/src/staticdata.c:295
jl_serialize_value_ at /home/iblis/git/julia/src/staticdata.c:287
jl_serialize_value_ at /home/iblis/git/julia/src/julia.h:911 [inlined]
jl_serialize_module at /home/iblis/git/julia/src/staticdata.c:231 [inlined]
jl_serialize_value_ at /home/iblis/git/julia/src/staticdata.c:292
jl_serialize_value_ at /home/iblis/git/julia/src/staticdata.c:253 [inlined]
jl_serialize_value_ at /home/iblis/git/julia/src/staticdata.c:304
...

This issue make some buildtools unhappy, like poudriere, which serves with the
FreeBSD package binaries.

build precompile

Most helpful comment

Thanks for reproducer. This is likely what makes Nanosoldier unhappy as well @ararslan. Will look at it.

All 4 comments

Thanks for reproducer. This is likely what makes Nanosoldier unhappy as well @ararslan. Will look at it.

Ah, just found the link about Nanosoldier on Slack.
ref https://github.com/JuliaLang/julia/pull/28857#issuecomment-415622883

I assume this occurs because the precompile generator thing relies on output redirection?

The output redirection for the precompilation generation process should be fully isolated from that though. But apparently not. Looking at it now.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dpsanders picture dpsanders  路  3Comments

iamed2 picture iamed2  路  3Comments

sbromberger picture sbromberger  路  3Comments

arshpreetsingh picture arshpreetsingh  路  3Comments

yurivish picture yurivish  路  3Comments