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

[BUG] Failed to build on several architectures #136

Closed
cdluminate opened this issue May 31, 2018 · 5 comments
Closed

[BUG] Failed to build on several architectures #136

cdluminate opened this issue May 31, 2018 · 5 comments

Comments

@bjacob
Copy link
Contributor

bjacob commented Jun 1, 2018

thanks for the report. this test seems to work fine when I run it locally. I would welcome patches making it work also for buildd.debian.org.

@AdrianBunk
Copy link

Note that the failure pattern is "test hangs on 32bit architectures".

@alexfru
Copy link
Contributor

alexfru commented Aug 17, 2018

We've recently looked at what looked like a hang on a futex in this test and the conclusion is

insufficient user memory space, because test (indirectly) tries to map more than 2GB.
Test program tries to create hundreds of threads and each thread has stack of 8MB (default size for MIPS). After ~250 threads have been created, whole user address space is mapped and next call to pthread_create() fails, which isn't handled by test. As a consequence of this, main thread stays blocked, waiting indefinitely for signal. Other 32-bit architectures have smaller stack size (by default), and have enough address space. Possible solution is to use smaller stack size for the threads, and to check return value of pthread_create().

@bjacob
Copy link
Contributor

bjacob commented Aug 17, 2018

Thanks for debugging that, and sorry about the trouble. I'd gladly take a PR fixing this however way works for you, including if it lowers test coverage by lowering the number of threads / cases being covered.

@cdluminate
Copy link
Contributor Author

Interestingly hurd-i386 can build and pass the test: https://buildd.debian.org/status/package.php?p=gemmlowp

alexfru pushed a commit to MIPS/gemmlowp that referenced this issue Aug 28, 2018
alexfru pushed a commit to MIPS/gemmlowp that referenced this issue Aug 30, 2018
@bjacob bjacob closed this as completed in 8416bab Oct 19, 2018
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