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

precompile failure with IO redirection #29016

Closed
iblislin opened this issue Sep 2, 2018 · 4 comments · Fixed by #29024
Closed

precompile failure with IO redirection #29016

iblislin opened this issue Sep 2, 2018 · 4 comments · Fixed by #29024
Assignees
Labels
building Build system, or building Julia or its dependencies compiler:precompilation Precompilation of modules

Comments

@iblislin
Copy link
Member

iblislin commented Sep 2, 2018

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.

@iblislin iblislin changed the title precompile faliure with IO redirection precompile failure with IO redirection Sep 2, 2018
@KristofferC KristofferC added building Build system, or building Julia or its dependencies compiler:precompilation Precompilation of modules labels Sep 3, 2018
@KristofferC KristofferC self-assigned this Sep 3, 2018
@KristofferC
Copy link
Member

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

@iblislin
Copy link
Member Author

iblislin commented Sep 3, 2018

Ah, just found the link about Nanosoldier on Slack.
ref #28857 (comment)

@ararslan
Copy link
Member

ararslan commented Sep 3, 2018

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

@KristofferC
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
building Build system, or building Julia or its dependencies compiler:precompilation Precompilation of modules
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants