Skip to content

Instantly share code, notes, and snippets.

@GrahamDumpleton
Created November 23, 2012 03:41
Show Gist options
  • Save GrahamDumpleton/4133912 to your computer and use it in GitHub Desktop.
Save GrahamDumpleton/4133912 to your computer and use it in GitHub Desktop.
uWSGI crash when supplying float to --reload-mercy.
$ uwsgi --ini uwsgi.ini -M -p 2 --reload-mercy 3.0
[uWSGI] getting INI configuration from uwsgi.ini
*** Starting uWSGI 1.4.1 (64bit) on [Fri Nov 23 14:40:25 2012] ***
compiled with version: 4.2.1 (Apple Inc. build 5666) (dot 3) on 22 November 2012 16:19:23
os: Darwin-10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386
nodename: Grumpys-MacBook-Pro-15.local
machine: i386
clock source: unix
detected number of CPU cores: 4
current working directory: /Library/WebServer/Sites/hello-1/htdocs
detected binary path: /Users/graham/Python/uwsgi-testing/bin/uwsgi
your processes number limit is 266
your memory page size is 4096 bytes
detected max file descriptor number: 256
lock engine: OSX spinlocks
uwsgi socket 0 bound to UNIX address /tmp/uwsgi.sock fd 3
Python version: 2.6.1 (r261:67515, Jun 24 2010, 21:47:49) [GCC 4.2.1 (Apple Inc. build 5646)]
Set PythonHome to /Users/graham/Python/uwsgi-testing
Python main interpreter initialized at 0x1003096a0
python threads support enabled
your server socket listen backlog is limited to 100 connections
mapped 217152 bytes (212 KB) for 2 cores
*** Operational MODE: preforking ***
PID 2632
SYS.PREFIX /Users/graham/Python/uwsgi-testing
SYS.PATH ['.', '', '/Users/graham/Python/uwsgi-testing/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg', '/Users/graham/Python/uwsgi-testing/lib/python2.6/site-packages/pip-1.1-py2.6.egg', '/Users/graham/Python/uwsgi-testing/lib/python26.zip', '/Users/graham/Python/uwsgi-testing/lib/python2.6', '/Users/graham/Python/uwsgi-testing/lib/python2.6/plat-darwin', '/Users/graham/Python/uwsgi-testing/lib/python2.6/plat-mac', '/Users/graham/Python/uwsgi-testing/lib/python2.6/plat-mac/lib-scriptpackages', '/Users/graham/Python/uwsgi-testing/Extras/lib/python', '/Users/graham/Python/uwsgi-testing/lib/python2.6/lib-tk', '/Users/graham/Python/uwsgi-testing/lib/python2.6/lib-old', '/Users/graham/Python/uwsgi-testing/lib/python2.6/lib-dynload', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-darwin', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-tk', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/lib-scriptpackages', '/Users/graham/Python/uwsgi-testing/lib/python2.6/site-packages', '/Users/graham/Python/uwsgi-testing/lib/python2.6/site-packages/newrelic-1.8.0.13']
WSGI app 0 (mountpoint='') ready in 0 seconds on interpreter 0x1003096a0 pid: 2632 (default app)
spawned uWSGI master process (pid: 2632)
spawned uWSGI worker 1 (pid: 2633, cores: 1)
spawned uWSGI worker 2 (pid: 2634, cores: 1)
!!! uWSGI process 2634 got Segmentation Fault !!!
*** backtrace of 2634 ***
0 uwsgi 0x000000010002a986 uwsgi_backtrace + 38
1 uwsgi 0x000000010002aa92 uwsgi_segfault + 50
2 libSystem.B.dylib 0x00007fff874831ba _sigtramp + 26
3 ??? 0x4289f6a66c769224 0x0 + 4794634472957317668
4 libSystem.B.dylib 0x00007fff87428489 pthread_mutex_lock + 593
5 Python 0x0000000100147cb4 PyThread_acquire_lock + 46
6 uwsgi 0x000000010003fcc9 gil_real_get + 9
7 uwsgi 0x00000001000366e7 uwsgi_python_master_fixup + 87
8 uwsgi 0x0000000100017eea uwsgi_respawn_worker + 666
9 uwsgi 0x000000010002cfa2 uwsgi_start + 3314
10 uwsgi 0x000000010002f1ef main + 2655
11 uwsgi 0x0000000100000d74 start + 52
*** end of backtrace ***
^CSIGINT/SIGQUIT received...killing workers...
worker 1 (pid: 2633) is taking too much time to die...NO MERCY !!!
worker 2 (pid: 2634) is taking too much time to die...NO MERCY !!!
goodbye to uWSGI.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment