[issue11148] Crash and error message from Python VM
New submission from Pham Cong Dinh : Quite often, I got the following message printed out the console while I run my Python script pthread_cond_signal: Undefined error: 0 Or it crashed https://gist.github.com/799841 Tested with Python 2.6.1 and 2.6.6 (Mac) What I am trying to do is to set up a logging component that collects all messages sent from child processes to a pipe created by the parent process. The logging component is controlled by a thread created by parent process -- components: Interpreter Core messages: 128168 nosy: pcdinh priority: normal severity: normal status: open title: Crash and error message from Python VM type: crash versions: Python 2.6 ___ Python tracker <http://bugs.python.org/issue11148> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11158] Parent process did not quit after sys.exit()
New submission from Pham Cong Dinh : Hi, I was implementing a multiple process compatible logging which child processes are expected to send all messages to the parent process via a queue and then the parent process serializes and flushes them into a log file. The idea is built around multiprocessing.Queue() The problem is the first child process is always blocked while subsequent ones can run smoothly. It seems to be blocked on semaphore_wait_signal_trap Environment === Mac OS X 10.6.5 Python 2.6.6 Reproduction script: https://gist.github.com/818114 Command to run python log.py Console message === Dinh-Phams-MacBook-Pro:task dinhpham$ python log.py Parent PID 90401 90403 Parent PID 90401 Parent PID 90401 90404 Parent PID 90401 90405 No child process exits 90406 Child process ID 90406 Child process ID 90404 Child process ID 90405 No child process exits No child process exits No child process exits No child process exits No child process exits Child process PID 90404 will exits now Child process PID 90406 will exits now Child process PID 90405 will exits now The child process 90406 exits The child process 90405 exits The child process 90404 exits No child process exits No child process exits No child process exits No child process exits No child process exits No child process exits No child process exits No child process exits No child process exits No child process exits No child process exits No child process exits No child process exits No child process exits No child process exits No child process exits No child process exits ^C[90403] Parent process exits Dinh-Phams-MacBook-Pro:task dinhpham$ => All the process exits except the first child process one (90403) -- components: Interpreter Core messages: 128206 nosy: pcdinh priority: normal severity: normal status: open title: Parent process did not quit after sys.exit() type: behavior versions: Python 2.6 ___ Python tracker <http://bugs.python.org/issue11158> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11158] Python VM deadlock
Changes by Pham Cong Dinh : -- title: Parent process did not quit after sys.exit() -> Python VM deadlock ___ Python tracker <http://bugs.python.org/issue11158> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11158] Python VM deadlock
Pham Cong Dinh added the comment: I just simplified my script into a smaller one that can be easier to understand and find out what happens https://gist.github.com/819979 Thanks -- resolution: invalid -> status: pending -> open ___ Python tracker <http://bugs.python.org/issue11158> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11158] Python VM deadlock
Pham Cong Dinh added the comment: Sorry, just ignore my latest comment. It is for another issue -- ___ Python tracker <http://bugs.python.org/issue11158> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11148] Crash and error message from Python VM
Pham Cong Dinh added the comment: I just simplified my script into a smaller one that can be easier to understand and find out what happens https://gist.github.com/819979 Thanks -- ___ Python tracker <http://bugs.python.org/issue11148> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11158] Python VM deadlock
Pham Cong Dinh added the comment: Hi Vinay, Your example use a child process to receive log messages. I am implementing a thread-based solution. Do you think that multiprocessing.Queue() has major issues with threads or this problem happens only on Mac OSX implementations? I still reproduce it quite easily on my system: Mac OS 10.6 and Python 2.6.6 -- ___ Python tracker <http://bugs.python.org/issue11158> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com