Hello.
I experience segmentation fault with a very simple setup.
I do:
sudo uwsgi -s /var/run/uwsgi_hypernova.sock -M -p 3 -w app
*** Starting uWSGI 1.3-dev-2470 (64bit) on [Fri Jul 27 16:51:36 2012] ***
compiled with version: 4.6.3 on 27 July 2012 16:39:02
os: Linux-3.2.0-27-generic #43-Ubuntu SMP Fri Jul 6 14:25:57 UTC 2012
nodename: nostromo
machine: x86_64
detected number of CPU cores: 2
current working directory: /home/turnaev/box/trunk/frontend_new/src
detected binary path: /usr/local/bin/uwsgi
uWSGI running as root, you can use --uid/--gid/--chroot options
*** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
your memory page size is 4096 bytes
detected max file descriptor number: 1024
lock engine: pthread robust mutexes
uwsgi socket 0 bound to UNIX address /var/run/uwsgi_hypernova.sock fd 3
Python version: 2.7.3 (default, Apr 20 2012, 23:04:22) [GCC 4.6.3]
*** Python threads support is disabled. You can enable it with
--enable-threads ***
Python main interpreter initialized at 0x1e9f900
your server socket listen backlog is limited to 100 connections
*** Operational MODE: preforking ***
!!! uWSGI process 11162 got Segmentation Fault !!!
======= app.py ========
"""
import logging.config # <---- this import causes segfault.
def application(environ, start_response):
start_response("200 Ok", [('Content-type', 'text/plain')])
for x in range(10):
yield "Hello world"
"""
Segmentation fault gets reproduced in various uwsgi versions (1.1, 1.2, 1.3)
witch makes me think it is actually ether a python2.7.3 problem ether
a changed API or wrong usage of embedded python.
This could also be a python bug. (2.7.3 is a default now btw.)
Any help appreciated.
------- Sys info ----
Python 2.7.3 (default, Apr 20 2012, 22:39:59)
[GCC 4.6.3] on linux2
uwsgi version:
1.3-dev-2470
Linux nostromo 3.2.0-27-generic #43-Ubuntu SMP Fri Jul 6 14:25:57 UTC
2012 x86_64 x86_64 x86_64 GNU/Linux
gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
ldd --version
ldd (Ubuntu EGLIBC 2.15-0ubuntu10) 2.15
--
--------------------------------------------
Турнаев Евгений Викторович
+7 906 875 09 43
--------------------------------------------
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi