On сре, 16 јан 2013 17:11:17 CET, Roberto De Ioris wrote:
So I see workers start running, printing their results, and as they
throw ZeroDivisionError exceptions the mules just sit there dormant.
So the mule processes keep going - I can see them in 'ps', but they
don't do anything.
This is uwsgi 1.4.4
So the behaviour of the master is the right one, the problem are mules
not
exiting after an exception ?
yes
if I kill a mule with 'kill' the master will restart it and it'll start
running my worker function
i have aligned the python mule management to the perl and ruby ones.
This should fix all of the problems you reported.
I have applied the patches to both 1.4 and 1.5
Actually this is still not fixed in 1.4.5 or HEAD in 1.4
1.5 HEAD 50891 on the other hand does restart but also segfaults I
guess in the mule process
!!! uWSGI process 1073 got Segmentation Fault !!!
*** backtrace of 1073 ***
/home/damjan/src/uwsgi-git/uwsgi(uwsgi_backtrace+0x2a) [0x8095c7a]
/home/damjan/src/uwsgi-git/uwsgi(uwsgi_segfault+0x2a) [0x8095d6a]
linux-gate.so.1(__kernel_sigreturn+0) [0xb77a6400]
/home/damjan/src/uwsgi-git/uwsgi(uwsgi_manage_exception+0x125)
[0x8083f35]
/home/damjan/src/uwsgi-git/uwsgi(python_call+0x3f) [0x80a723f]
/home/damjan/src/uwsgi-git/uwsgi(uwsgi_python_post_fork+0x67)
[0x80a4fc7]
/home/damjan/src/uwsgi-git/uwsgi(uwsgi_mule+0x1e8) [0x80781b8]
/home/damjan/src/uwsgi-git/uwsgi(uwsgi_master_check_mules_death+0x67)
[0x807d197]
/home/damjan/src/uwsgi-git/uwsgi(master_loop+0x5ca) [0x807089a]
/home/damjan/src/uwsgi-git/uwsgi(uwsgi_start+0x1321) [0x8097bf1]
/home/damjan/src/uwsgi-git/uwsgi() [0x805eb51]
/usr/lib/libc.so.6(__libc_start_main+0xf5) [0xb6e1f825]
/home/damjan/src/uwsgi-git/uwsgi() [0x805eb75]
*** end of backtrace ***
--
дамјан
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi