[issue31171] multiprocessing.BoundedSemaphore of 32-bit python could not work while cross compiling on linux platform

2019-05-15 Thread Hongxu Jia
Change by Hongxu Jia : -- pull_requests: +13264 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31171] multiprocessing.BoundedSemaphore of 32-bit python could not work while cross compiling on linux platform

2019-01-25 Thread Barry Davis
Barry Davis added the comment: The behaviour I saw (32-bit only) was a python process getting stuck. I got this from strace: ... futex(0xb5acc000, FUTEX_WAIT, 0, NULL) = -1 EAGAIN (Resource temporarily unavailable) futex(0xb5acc000, FUTEX_WAIT, 0, NULL) = -1 EAGAIN (Resource temporarily

[issue31171] multiprocessing.BoundedSemaphore of 32-bit python could not work while cross compiling on linux platform

2019-01-25 Thread Barry Davis
Barry Davis added the comment: I've just hit this issue using Python-2.7.9, gcc-8.1.0, glibc-2.23. The patch I made to fix the issue based on comments in this issue: --- Python-2.7.9/setup.py 2019-01-25 09:30:39.049501423 + +++ Python-2.7.9/setup.py 2019-01-25

[issue31171] multiprocessing.BoundedSemaphore of 32-bit python could not work while cross compiling on linux platform

2018-11-26 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +benjamin.peterson, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue31171] multiprocessing.BoundedSemaphore of 32-bit python could not work while cross compiling on linux platform

2018-11-15 Thread Hongxu Jia
Change by Hongxu Jia : -- pull_requests: +9812 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31171] multiprocessing.BoundedSemaphore of 32-bit python could not work while cross compiling on linux platform

2018-11-15 Thread Hongxu Jia
Change by Hongxu Jia : -- pull_requests: -9808 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31171] multiprocessing.BoundedSemaphore of 32-bit python could not work while cross compiling on linux platform

2018-11-15 Thread Hongxu Jia
Change by Hongxu Jia : -- pull_requests: -9809 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31171] multiprocessing.BoundedSemaphore of 32-bit python could not work while cross compiling on linux platform

2018-11-15 Thread Hongxu Jia
Change by Hongxu Jia : -- pull_requests: +9810 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31171] multiprocessing.BoundedSemaphore of 32-bit python could not work while cross compiling on linux platform

2018-11-15 Thread Hongxu Jia
Change by Hongxu Jia : -- pull_requests: +9809 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31171] multiprocessing.BoundedSemaphore of 32-bit python could not work while cross compiling on linux platform

2018-11-15 Thread Hongxu Jia
Change by Hongxu Jia : -- keywords: +patch pull_requests: +9808 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue31171] multiprocessing.BoundedSemaphore of 32-bit python could not work while cross compiling on linux platform

2018-11-15 Thread Hongxu Jia
Change by Hongxu Jia : -- pull_requests: -3087 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31171] multiprocessing.BoundedSemaphore of 32-bit python could not work while cross compiling on linux platform

2017-08-10 Thread Hongxu Jia
Changes by Hongxu Jia : -- pull_requests: +3087 ___ Python tracker ___ ___

[issue31171] multiprocessing.BoundedSemaphore of 32-bit python could not work while cross compiling on linux platform

2017-08-10 Thread Hongxu Jia
Hongxu Jia added the comment: 4. Solution For cross compiling, there is no `-pthread', so we should explicitly add `-lpthread' to build multiprocessing. Peterson tried to do it in the following commit: ... commit e711cafab13efc9c1fe6c5cd75826401445eb585 Author: Benjamin Peterson

[issue31171] multiprocessing.BoundedSemaphore of 32-bit python could not work while cross compiling on linux platform

2017-08-10 Thread Hongxu Jia
Hongxu Jia added the comment: 3. Analysis 1) The multiprocessing invokes named semaphore in C library (sem_open/sem_post/sem_getvalue/sem_unlink in ./Modules/_multiprocessing/semaphore.c) 2) The glibc defines two different sem_getvalue since the following commit.

[issue31171] multiprocessing.BoundedSemaphore of 32-bit python could not work while cross compiling on linux platform

2017-08-10 Thread Hongxu Jia
New submission from Hongxu Jia: To build python for embedded Linux systems, (http://www.yoctoproject.org/docs/2.3.1/yocto-project-qs/yocto-project-qs.html) The 32-bit python's multiprocessing.BoundedSemaphore could not work. 1. Prerequisite - Build 32bit python on 64bit host, add '-m32' to gcc