aaanand / modwsgi

Automatically exported from code.google.com/p/modwsgi
0 stars 0 forks source link

mod_wsgi: bottle segmentation fauld problem #289

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
hello,

when i tried to call wsgi application with "import bottle" i got segmentation 
fault. if i don't use "import bottle" wsgi application is working correctly.
hwo can i solve it?

platform: freebsd 8.3 stable
python version: Python 2.7.3
openssl version: OpenSSL 0.9.8q 2 
httpd version: 2.2
# /usr/local/sbin/httpd -V
Server version: Apache/2.2.23 (FreeBSD)
Server built:   Feb  6 2013 10:10:01
Server's Module Magic Number: 20051115:31
Server loaded:  APR 1.4.6, APR-Util 1.4.1
Compiled using: APR 1.4.6, APR-Util 1.4.1
Architecture:   64-bit
Server MPM:     Prefork
  threaded:     no
    forked:     yes (variable process count)
Server compiled with....
 -D APACHE_MPM_DIR="server/mpm/prefork"
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses disabled)
 -D APR_USE_FLOCK_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D DYNAMIC_MODULE_LIMIT=128
 -D HTTPD_ROOT="/usr/local"
 -D SUEXEC_BIN="/usr/local/bin/suexec"
 -D DEFAULT_PIDLOG="/var/run/httpd.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_LOCKFILE="/var/run/accept.lock"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="etc/apache22/mime.types"
 -D SERVER_CONFIG_FILE="etc/apache22/httpd.conf"

Error message in httpd-errorlog
==
[Wed Feb 06 11:38:18 2013] [notice] child pid 43439 exit signal Segmentation 
fault (11), possible coredump in /usr/local

details about core file:
==
(gdb) bt
#0  0x0000000803e0c2f0 in EVP_PKEY_CTX_dup () from /usr/local/lib/libcrypto.so.8
#1  0x0000000803dffa4f in EVP_MD_CTX_copy_ex () from 
/usr/local/lib/libcrypto.so.8
#2  0x0000000807309f26 in EVPnew () from 
/usr/local/lib/python2.7/lib-dynload/_hashlib.so
#3  0x000000080730a250 in EVP_new_md5 () from 
/usr/local/lib/python2.7/lib-dynload/_hashlib.so
#4  0x0000000805347c52 in PyEval_EvalFrameEx () from 
/usr/local/lib/libpython2.7.so
#5  0x0000000805349013 in PyEval_EvalFrameEx () from 
/usr/local/lib/libpython2.7.so
#6  0x00000008053498a5 in PyEval_EvalCodeEx () from 
/usr/local/lib/libpython2.7.so
#7  0x00000008053499a2 in PyEval_EvalCode () from /usr/local/lib/libpython2.7.so
#8  0x00000008053588e2 in PyImport_ExecCodeModuleEx () from 
/usr/local/lib/libpython2.7.so
#9  0x0000000805358ec0 in PyImport_ImportFrozenModule () from 
/usr/local/lib/libpython2.7.so
#10 0x0000000805359fa9 in PyImport_ReloadModule () from 
/usr/local/lib/libpython2.7.so
#11 0x000000080535a480 in PyImport_ReloadModule () from 
/usr/local/lib/libpython2.7.so
#12 0x000000080535b078 in PyImport_ImportModuleLevel () from 
/usr/local/lib/libpython2.7.so
#13 0x0000000805341d1d in _PyBuiltin_Init () from /usr/local/lib/libpython2.7.so
#14 0x00000008052b1a98 in PyObject_Call () from /usr/local/lib/libpython2.7.so
#15 0x0000000805342246 in PyEval_CallObjectWithKeywords () from 
/usr/local/lib/libpython2.7.so
#16 0x0000000805344d4d in PyEval_EvalFrameEx () from 
/usr/local/lib/libpython2.7.so
#17 0x00000008053498a5 in PyEval_EvalCodeEx () from 
/usr/local/lib/libpython2.7.so
#18 0x00000008053499a2 in PyEval_EvalCode () from /usr/local/lib/libpython2.7.so
#19 0x00000008053588e2 in PyImport_ExecCodeModuleEx () from 
/usr/local/lib/libpython2.7.so
#20 0x0000000805358ec0 in PyImport_ImportFrozenModule () from 
/usr/local/lib/libpython2.7.so
#21 0x0000000805359fa9 in PyImport_ReloadModule () from 
/usr/local/lib/libpython2.7.so
#22 0x000000080535a480 in PyImport_ReloadModule () from 
/usr/local/lib/libpython2.7.so
#23 0x000000080535b078 in PyImport_ImportModuleLevel () from 
/usr/local/lib/libpython2.7.so
#24 0x0000000805341d1d in _PyBuiltin_Init () from /usr/local/lib/libpython2.7.so
#25 0x00000008052b1a98 in PyObject_Call () from /usr/local/lib/libpython2.7.so
#26 0x0000000805342246 in PyEval_CallObjectWithKeywords () from 
/usr/local/lib/libpython2.7.so
#27 0x0000000805344d4d in PyEval_EvalFrameEx () from 
/usr/local/lib/libpython2.7.so
---Type <return> to continue, or q <return> to quit---
#28 0x00000008053498a5 in PyEval_EvalCodeEx () from 
/usr/local/lib/libpython2.7.so
#29 0x00000008053499a2 in PyEval_EvalCode () from /usr/local/lib/libpython2.7.so
#30 0x00000008053588e2 in PyImport_ExecCodeModuleEx () from 
/usr/local/lib/libpython2.7.so
#31 0x0000000805358ec0 in PyImport_ImportFrozenModule () from 
/usr/local/lib/libpython2.7.so
#32 0x0000000805359fa9 in PyImport_ReloadModule () from 
/usr/local/lib/libpython2.7.so
#33 0x000000080535a480 in PyImport_ReloadModule () from 
/usr/local/lib/libpython2.7.so
#34 0x000000080535b078 in PyImport_ImportModuleLevel () from 
/usr/local/lib/libpython2.7.so
#35 0x0000000805341d1d in _PyBuiltin_Init () from /usr/local/lib/libpython2.7.so
#36 0x00000008052b1a98 in PyObject_Call () from /usr/local/lib/libpython2.7.so
#37 0x0000000805342246 in PyEval_CallObjectWithKeywords () from 
/usr/local/lib/libpython2.7.so
#38 0x0000000805344d4d in PyEval_EvalFrameEx () from 
/usr/local/lib/libpython2.7.so
#39 0x00000008053498a5 in PyEval_EvalCodeEx () from 
/usr/local/lib/libpython2.7.so
#40 0x00000008053499a2 in PyEval_EvalCode () from /usr/local/lib/libpython2.7.so
#41 0x00000008053588e2 in PyImport_ExecCodeModuleEx () from 
/usr/local/lib/libpython2.7.so
#42 0x0000000805358ec0 in PyImport_ImportFrozenModule () from 
/usr/local/lib/libpython2.7.so
#43 0x0000000805359fa9 in PyImport_ReloadModule () from 
/usr/local/lib/libpython2.7.so
#44 0x000000080535a480 in PyImport_ReloadModule () from 
/usr/local/lib/libpython2.7.so
#45 0x000000080535b078 in PyImport_ImportModuleLevel () from 
/usr/local/lib/libpython2.7.so
#46 0x0000000805341d1d in _PyBuiltin_Init () from /usr/local/lib/libpython2.7.so
#47 0x00000008052b1a98 in PyObject_Call () from /usr/local/lib/libpython2.7.so
#48 0x0000000805342246 in PyEval_CallObjectWithKeywords () from 
/usr/local/lib/libpython2.7.so
#49 0x0000000805344d4d in PyEval_EvalFrameEx () from 
/usr/local/lib/libpython2.7.so
#50 0x00000008053498a5 in PyEval_EvalCodeEx () from 
/usr/local/lib/libpython2.7.so
#51 0x00000008053499a2 in PyEval_EvalCode () from /usr/local/lib/libpython2.7.so
#52 0x00000008053588e2 in PyImport_ExecCodeModuleEx () from 
/usr/local/lib/libpython2.7.so
#53 0x0000000805358ec0 in PyImport_ImportFrozenModule () from 
/usr/local/lib/libpython2.7.so
#54 0x0000000805359fa9 in PyImport_ReloadModule () from 
/usr/local/lib/libpython2.7.so
#55 0x000000080535a480 in PyImport_ReloadModule () from 
/usr/local/lib/libpython2.7.so
---Type <return> to continue, or q <return> to quit---
#56 0x000000080535b078 in PyImport_ImportModuleLevel () from 
/usr/local/lib/libpython2.7.so
#57 0x0000000805341d1d in _PyBuiltin_Init () from /usr/local/lib/libpython2.7.so
#58 0x00000008052b1a98 in PyObject_Call () from /usr/local/lib/libpython2.7.so
#59 0x0000000805342246 in PyEval_CallObjectWithKeywords () from 
/usr/local/lib/libpython2.7.so
#60 0x0000000805344d4d in PyEval_EvalFrameEx () from 
/usr/local/lib/libpython2.7.so
#61 0x00000008053498a5 in PyEval_EvalCodeEx () from 
/usr/local/lib/libpython2.7.so
#62 0x00000008053499a2 in PyEval_EvalCode () from /usr/local/lib/libpython2.7.so
#63 0x00000008053588e2 in PyImport_ExecCodeModuleEx () from 
/usr/local/lib/libpython2.7.so
#64 0x0000000805358ec0 in PyImport_ImportFrozenModule () from 
/usr/local/lib/libpython2.7.so
#65 0x0000000805359fa9 in PyImport_ReloadModule () from 
/usr/local/lib/libpython2.7.so
#66 0x000000080535a480 in PyImport_ReloadModule () from 
/usr/local/lib/libpython2.7.so
#67 0x000000080535b078 in PyImport_ImportModuleLevel () from 
/usr/local/lib/libpython2.7.so
#68 0x0000000805341d1d in _PyBuiltin_Init () from /usr/local/lib/libpython2.7.so
#69 0x00000008052b1a98 in PyObject_Call () from /usr/local/lib/libpython2.7.so
#70 0x0000000805342246 in PyEval_CallObjectWithKeywords () from 
/usr/local/lib/libpython2.7.so
#71 0x0000000805344d4d in PyEval_EvalFrameEx () from 
/usr/local/lib/libpython2.7.so
#72 0x00000008053498a5 in PyEval_EvalCodeEx () from 
/usr/local/lib/libpython2.7.so
#73 0x00000008053499a2 in PyEval_EvalCode () from /usr/local/lib/libpython2.7.so
#74 0x00000008053588e2 in PyImport_ExecCodeModuleEx () from 
/usr/local/lib/libpython2.7.so
#75 0x0000000805154b39 in wsgi_load_source (pool=0x80175d028, r=0x80175d0a0, 
name=0x80175f5f0 "_mod_wsgi_e93ce327bcb956f5b8088e28e282797d", exists=Variable 
"exists"                               is not available.
)
    at mod_wsgi.c:6402
#76 0x000000080515882e in wsgi_execute_script (r=0x80175d0a0) at mod_wsgi.c:6759
#77 0x000000080515c315 in wsgi_process_socket (p=Variable "p" is not available.
) at mod_wsgi.c:13567
#78 0x000000080515c794 in wsgi_daemon_thread (thd=0x80169eda0, data=Variable 
"data" is not available.
) at mod_wsgi.c:10993
#79 0x00000008012924f1 in pthread_getprio () from /lib/libthr.so.3
#80 0x0000000000000000 in ?? ()
Cannot access memory at address 0x7fffff7fd000

Original issue reported on code.google.com by kaox....@gmail.com on 6 Feb 2013 at 9:47

GoogleCodeExporter commented 8 years ago
Go read:

http://code.google.com/p/modwsgi/wiki/ApplicationIssues#SSL_Shared_Library_Confl
icts

and other parts of that document about possible core dumps.

It appears you have conflicts over versions of SSL library used by Apache, 
Python and maybe even mod_php.

Original comment by Graham.Dumpleton@gmail.com on 7 Feb 2013 at 2:43

GoogleCodeExporter commented 8 years ago
Closing as never found to be an issue in mod_wsgi that needed addressing.

Original comment by Graham.Dumpleton@gmail.com on 16 Sep 2014 at 6:58