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

Stack overflow when building on ppc64, ppc64le #39

Open
rwmjones opened this issue Oct 17, 2017 · 5 comments
Open

Stack overflow when building on ppc64, ppc64le #39

rwmjones opened this issue Oct 17, 2017 · 5 comments

Comments

@rwmjones
Copy link

This is really "FYI" rather than a bug. It may even be a compiler bug. Anyway, when building on ppc64 or ppc64le there's a stack overflow in the final stages of the build:

Running[744]: (cd _build/default/Camomile && ./tools/camomilelocaledef.exe --file locales/zh__PINYIN.txt locales)
Command [744] got signal SEGV:
$ (cd _build/default/Camomile && ./tools/camomilelocaledef.exe --file locales/zh__PINYIN.txt locales)

It happens in the same place on both arches.

I worked around it by doing:

%ifarch %{power64}
ulimit -Hs 65536
ulimit -Ss 65536
%endif

This doesn't happen on the other arches we test with (i686, x86_64, s390, s390x, aarch64, armv7hl).

@rwmjones
Copy link
Author

Forgot to mention that this is with OCaml 4.05.

@jirutka
Copy link

jirutka commented Mar 10, 2018

I’ve encountered the same problem on Alpine Linux and ppc64le.

@yoriyuki
Copy link
Owner

The true solution is rewriting the locale parser tail-recursive, but this takes some time.

@dmbaturin
Copy link

Has anyone tried it with recent compiler versions?

@rwmjones
Copy link
Author

It still fails with OCaml 4.13.0. The failure is here, but this is a scratch build so it'll disappear after a few days: https://koji.fedoraproject.org/koji/taskinfo?taskID=80558387

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants