[bdbxml] Re: [mod_python] Segmentation fault with mod_python and DBXML
Manjeet Chaudhary <[email protected]> Mon, 22 Aug 2005 15:29:23 +0530
| Newsgroups | gmane.comp.db.dbxml.general |
|---|---|
| Message-ID | <[email protected]> |
Hello Conrad In my case the culprit was Berkley DB. I checked the Libraries for "httpd" , "python" and "dbxml". I replaced the "libdb-4.2.so" at "/lib/tls/i686/libdb-4.2.so" by "libdb-4.3.so" installed by DBXML-2.1.8 in "/usr/local/lib". But i think this is not a good solution. I need a proper installation and configuration process. I am using CentOS-4.x. For my requirement i use following installation process after OS installation: 1. Install DBXML-2.1.8 with default installation. 2. Copy the Libraries "/usr/local/lib/*" to /usr/lib/ 3. Install pybsddb 4. Install DBXML module for Python. As Berkeley DB get installed with Python and installing DBXML result in some Version conflict. What should i do to avoid this conflict. Should i install individual packages from dbxml-2.1.8 (except DB) to avoid conflict. Manjeet Ch Conrad Steenberg wrote: >Hi Manjeet > >You must use exactly the same libraries in Python and Apache for your >application to work. Apart from expat that was already pointed out, a >common culprit is also Berkeley DB, because it's used very widely. > >Do an 'ldd /usr/sbin/httpd', or whatever your Apache executable is, to >find out what libraries it's linked to. Then do the same for your Python >binary, and maybe the dbxml Python module as well. > >Cheers > >Conrad > >On Tue, 2005-08-16 at 13:14 +0200, Julien wrote: > > >>Maybe a library has problem with threads ... >>try running apache in prefork mode (in place of threads) to see if it >>resolve the problem ... >> >>On Tue, 2005-08-16 at 15:54 +0530, Manjeet Chaudhary wrote: >> >> >>>Hello All, >>> >>>Sorry if the mail got duplicated. >>>I am developing a web based application; based on Apache, mod_python, >>>dbxml and python programming; When i try to import dbxml module( to >>>perform various dbxml operations ) from mod-python handler and give a >>>url request to mod-python handler i am getting an error of Segmentation >>>Fault in apache error log . >>>I am using following versions of software >>>1) dbxml - 2.1.8 >>>2) python - 2.3.4 >>>3) mod-python - 1.3.4 >>>4) apache 2.0.52 >>>5) Kernel version-2.6.9-5.0.5-EL >>> >>>I think the error occurs at the time when i am creating the XmlManager >>>instance in dbxml module. >>>I am using Publisher Handler of mod-python. >>> >>>Apache error log (/var/log/httpd/error_log) >>> >>>[Tue Aug 16 10:17:43 2005] [notice] mod_python: (Re)importing module >>>'mod_python.publisher' >>>[Tue Aug 16 10:17:43 2005] [notice] mod_python: (Re)importing module 'x' >>>with path set to '['/var/www/cgi-bin/sw']' >>>[Tue Aug 16 10:17:44 2005] [notice] child pid 3238 exit signal >>>Segmentation fault (11) >>> >>>Please let me know is there any solution to this problem . >>>It is very urgent. >>>Thanks in advance. >>>Regards, >>> >>>Manjeet Chaudhary >>>_______________________________________________ >>>Mod_python mailing list >>>[email protected] >>>http://mailman.modpython.org/mailman/listinfo/mod_python >>> >>> >>> ------------------------------------------ To remove yourself from this list, send an email to [email protected]