Hi,

I have just compiled uwsgi and its php plugin from git source with PHP
5.4 (I need to replace function_entry with zend_function_entry to make
it compile successfully), and then I tried to run a simple script
showing phpinfo().
The info page was being displayed (got Server API = uWSGI/php
displayed in the page) but uwsgi got segmentation fault. Here are the
log lines

!!! uWSGI process 21330 got Segmentation Fault !!!
*** backtrace of 21330 ***
/opt/uwsgi/bin/uwsgi(uwsgi_backtrace+0x28) [0x8078778]
/opt/uwsgi/bin/uwsgi(uwsgi_segfault+0x2a) [0x807886a]
[0xb7778400]
/opt/uwsgi/plugins/php_plugin.so(uwsgi_php_after_request+0x1b) [0xb7772a5b]
/opt/uwsgi/bin/uwsgi(uwsgi_close_request+0x136) [0x80572f6]
/opt/uwsgi/bin/uwsgi(simple_loop+0x155) [0x8073cd5]
/opt/uwsgi/bin/uwsgi(uwsgi_ignition+0x16a) [0x8078caa]
/opt/uwsgi/bin/uwsgi(uwsgi_start+0x2899) [0x807be29]
/opt/uwsgi/bin/uwsgi(main+0x1008) [0x8056388]
/lib/libc.so.6(__libc_start_main+0xf3) [0xb7383483]
/opt/uwsgi/bin/uwsgi() [0x8056461]
*** end of backtrace ***

My uwsgi.ini contents
--------------------------------

[uwsgi]
master = 1
buffer-size = 65536
socket = /tmp/uwsgid.sock
plugins = php

My build config
----------------------

[uwsgi]
inherit = default

json = false
yaml = false
xml = false
sqlite3 = false
ldap = false

zeromq = false
udp = true

snmp = false
spooler = false

plugin_dir=/opt/uwsgi/plugins
embedded_plugins = python

Uwsgi was compiled in archlinux 32 bit. I have reset CFLAGS to ''
before compiling uwsgi (as indicated in other post that CLAGS can
cause php plugin to crash).
I have also tried running a simple echo 'Hello' script, but it still
resulted in uwsgi getting segmentation fault.
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to