--
You received this message because you are subscribed to the Google Groups "TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send an email to turbogears+...@googlegroups.com.
To post to this group, send email to turbo...@googlegroups.com.
Visit this group at http://groups.google.com/group/turbogears.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "TurboGears" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/turbogears/VHKKc0iN1F4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to turbogears+...@googlegroups.com.
You received this message because you are subscribed to the Google Groups "TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send an email to turbogears+...@googlegroups.com.
[core:notice] [pid 45371:tid 139899616245632] AH00094: Command line: '/usr/sbin/apache2'[core:notice] [pid 45371:tid 139899616245632] AH00051: child pid 45375 exit signal Segmentation fault (11), possible coredump in /etc/apache2[core:notice] [pid 45371:tid 139899616245632] AH00051: child pid 55064 exit signal Segmentation fault (11), possible coredump in /etc/apache2
In many cases using "WSGIApplicationGroup %{GLOBAL}"
--
--
You received this message because you are subscribed to a topic in the Google Groups "TurboGears" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/turbogears/VHKKc0iN1F4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to turbogears+...@googlegroups.com.
The link helped but didn't solve my issues. I reduced my threads from 5 to 1 with processes not set and that made it go away. To be honest i don't understand how processs and threads are used and what there meaning is in the mod-wsgi settings.
Does this now mean apache is using i a single process and thread to handle all requests? That can't be good. How are these variables used and what are the ramifications on how i have them set (processes ommited and threads=1).
In case you have issues with C modules, it might often help to set an high number of processes and use a single thread for each one of them.I still suspect that your problems are caused by pyodbc by the way
ODBC drivers and managers are usually compiled as a shared library. When running CGI scripts most HTTP daemons (or web servers) don't pass through the path for the dynamic loader (e.g. LD_LIBRARY_PATH) to the script, thus importing the mxODBC C extension will fail with unresolved symbols because the loader doesn't find the ODBC driver/manager's libs.
To have the loader find the path to those shared libs you can either wrap the Python script with a shell script that sets the path according to your system configuration or tell the HTTP daemon to set or pass these through (see the daemon's documentation for information on how to do this; for Apache the directives are named SetEnvandPassEnv).
On Windows, you also have to take into account that the ODBC data sources defined in the ODBC manager are usually restricted to specific user accounts. You can work around this by either setting up the ODBC data sources for the web server service account or by configuring the data as system data sources.
Using mxODBC with mod_wsgi is generally possible. However, since the script will run under a restricted user account, some care has to be taken to make the setup work. Please see 15.1Running mxODBC from a CGI script for more details on getting ODBC drivers to work in such an environment.
On Windows, there is also another issue to consider when running the combination Apache, mod_wsgi and Python 2.7. Due to changes in Python 2.7, manifests for the Visual C++ runtime environment, needed by Windows to find the right DLL to load, are no longer added to Python extensions, since this caused problems with loading them into Python processes (see Python Issue 4120).
Unfortunately, neither mod_wsgi nor Apache appear to include the required manifests either. This causes an import error when trying to load mxODBC into a mod_wsgi run process, since Windows cannot resolve the DLL references in mxODBC without the manifest.
Since this affects not only mxODBC, but other Python C extensions as well, you may want to use a work-around until either Apache or the mod_wsgi team solves the problem:
Adding the VC++ manifests to the Apache process is explained in this posting.
You will also have to install the MS VC++ 2008 CRT SP1 redistributable package on the server running Apache.
With those changes in place, mxODBC should load without problems.