Skip to content

Instantly share code, notes, and snippets.

@GrahamDumpleton
Created November 23, 2012 03:36
Show Gist options
  • Save GrahamDumpleton/4133897 to your computer and use it in GitHub Desktop.
Save GrahamDumpleton/4133897 to your computer and use it in GitHub Desktop.
uWSGI crash when using -p 2 option.
$ uwsgi --ini uwsgi.ini -p 2
[uWSGI] getting INI configuration from uwsgi.ini
*** Starting uWSGI 1.4.1 (64bit) on [Fri Nov 23 14:35:44 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
*** WARNING: you are running uWSGI without its master process manager ***
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 0x1003095c0
python threads support enabled
your server socket listen backlog is limited to 100 connections
mapped 144768 bytes (141 KB) for 2 cores
*** Operational MODE: preforking ***
PID 2593
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 1 seconds on interpreter 0x1003095c0 pid: 2593 (default app)
spawned uWSGI worker 1 (pid: 2593, cores: 1)
spawned uWSGI worker 2 (pid: 2594, cores: 1)
!!! uWSGI process 2594 got Segmentation Fault !!!
*** backtrace of 2594 ***
0 uwsgi 0x000000010002a986 uwsgi_backtrace + 38
1 uwsgi 0x000000010002aa92 uwsgi_segfault + 50
2 libSystem.B.dylib 0x00007fff874831ba _sigtramp + 26
3 ??? 0x00000001012dd280 0x0 + 4314747520
4 libSystem.B.dylib 0x00007fff87428489 pthread_mutex_lock + 593
5 Python 0x0000000100147c39 PyThread_release_lock + 22
6 Python 0x000000010011f840 PyEval_EvalFrameEx + 654
7 Python 0x00000001001232e1 PyEval_EvalFrameEx + 15663
8 Python 0x0000000100124cce PyEval_EvalCodeEx + 1803
9 Python 0x00000001000c68e1 PyClassMethod_New + 1748
10 Python 0x00000001000a4ff3 PyObject_Call + 112
11 Python 0x00000001000b49df PyClass_New + 1575
12 Python 0x00000001000a4ff3 PyObject_Call + 112
13 Python 0x000000010011e9db PyEval_CallObjectWithKeywords + 175
14 uwsgi 0x0000000100036b47 uwsgi_python_reset_random_seed + 103
15 uwsgi 0x000000010003949d uwsgi_python_post_fork + 61
16 uwsgi 0x000000010002d132 uwsgi_start + 3714
17 uwsgi 0x000000010002f1ef main + 2655
18 uwsgi 0x0000000100000d74 start + 52
*** end of backtrace ***
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment