Skip to content

Error during build: "LLVM ERROR: Starting a frame before finishing the previous one!" #15167

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

Closed
nalimilan opened this issue Feb 20, 2016 · 7 comments
Labels
building Build system, or building Julia or its dependencies

Comments

@nalimilan
Copy link
Member

I've seen this error for the first time today when building RPM nightlies. This is with system LLVM 3.7.1 + Julia patches and ORCJIT.

inference.jl
LLVM ERROR: Starting a frame before finishing the previous one!
Makefile:220: recipe for target '/builddir/build/BUILD/julia/build/usr/lib64/julia/inference.ji' failed

https://copr-be.cloud.fedoraproject.org/results/nalimilan/julia-nightlies/fedora-22-x86_64/00161544-julia/build.log.gz

@nalimilan nalimilan added the building Build system, or building Julia or its dependencies label Feb 20, 2016
@yuyichao
Copy link
Contributor

Is this after increasing the stack limit and how much stack space are there?

@nalimilan
Copy link
Member Author

Not sure what you mean by "after increasing the stack limit". I didn't change anything on the builders, but if a commit did that on master recently, then yes. Anyway, ulimit says stack size (kbytes, -s) 8192.

I've just seen a different error when building julia-debug (on 32-bit this time). Instead of opening yet another issue, I'm posting the logs here, as it's likely related:

julia-debug: /builddir/build/BUILD/julia/src/toplevel.c:720: expr_to_lambda: Assertion `(((jl_value_t*)(((jl_taggedvalue_t*)((char*)(f) - sizeof(jl_taggedvalue_t)))->type_bits & ~(uintptr_t)15))==(jl_value_t*)(jl_expr_type)) && ((jl_expr_t*)f)->head == lambda_sym' failed.
/bin/sh: line 1: 12528 Aborted                 (core dumped) /builddir/build/BUILD/julia/build/usr/bin/julia-debug -C pentium4 --output-o /builddir/build/BUILD/julia/build/usr/lib/julia/sys-debug.o -f -J /builddir/build/BUILD/julia/build/usr/lib/julia/inference.ji sysimg.jl

https://copr-be.cloud.fedoraproject.org/results/nalimilan/julia-nightlies/fedora-23-i386/00161709-julia/build.log.gz

@yuyichao
Copy link
Contributor

I meant #15079 (comment), since it is an stack overflow, there might be multiple ways it can cause errors.

@nalimilan
Copy link
Member Author

Ah, sorry. Indeed, looks like ulimit -s 100000 fixes it.

Though the error I reported in my last comment and the one from #15168 did not go away, so they are apparently unrelated to this one.

@vtjnash
Copy link
Member

vtjnash commented Mar 3, 2016

this will be fixed by #15300 very soon

@yuyichao
Copy link
Contributor

yuyichao commented Mar 7, 2016

This particular failure should be fixed by #15300 now. The stack usage is still very far from optimum (or what we had before). I've posted a few representative examples at #15369 and let's track the issue there.

@yuyichao yuyichao closed this as completed Mar 7, 2016
@nalimilan
Copy link
Member Author

Looks like it indeed works now without increasing the stack limit.

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
Projects
None yet
Development

No branches or pull requests

3 participants