Re: [bdbxml] Segmentation fault with mod_python and DBXML

Manjeet Chaudhary <[email protected]> Wed, 24 Aug 2005 16:59:32 +0530
Newsgroups gmane.comp.db.dbxml.general
Message-ID <[email protected]>
Hello Conrad

Can i use the "--with-uniquename=NAME" for installing BerkeleyDB.
Even i tried to Install using above parameter. But end up with following 
error.
-------------------------
checking if --with-uniquename=NAME option specified... NewDBXML
configure: error: --with-uniquename is not compatible with --enable-cxx
-------------------------
And "--enable-cxx" is required for installing DBXML.
If you can then please suggest me a right solution for it,
Thank you,
Manjeet Ch


Manjeet Chaudhary wrote:

> Hello Conrad
>
> I tried to install individual package from dbxml-2.1.8.
> The package included in dbxml-2.1.8 are (BerkeleyDB , Xerces, Pathan, 
> XQuery, DBXML)
>
> 1.   Extracted dbxml-2.1.8
> 2.   Installed Xerces (skipped BerkeleyDB installation as it is 
> installed in /usr/lib)
> 3.   Installed Pathan and Xquery
> 4.   But when i try to install dbxml with ( 
> --with-berkeleydb=/usr/lib/ ) it gives following error.
> -----------------------------------
> checking if --with-berkeleydb=DIR option specified... /usr/lib/
> configure: error: /usr/lib not a valid Berkeley DB tree.  Note that 
> Berkeley DB must be configured and built with '--enable-cxx'.
> -----------------------------------
>
> What is the problem.
>
> Should i use the BerkeleyDB source tree from "dbxml-2.1.8" source  
> tree. Will it work for my case; if yes will there be any version 
> conflict with existing libdb-4.2 installed.
>
> Manjeet Ch
>
>
> Conrad Steenberg wrote:
>
>> On Mon, 2005-08-22 at 15:29 +0530, Manjeet Chaudhary wrote:
>>  
>>
>>> 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.
>>>   
>>
>>
>> Yes, you're right :-) Rather keep the system version of libdb-4.2.so and
>> recompile dbxml to use that version - just copying a newer library over
>> an older one is likely to give you a lot of trouble.
>>
>>  
>>
>>> 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.
>>>   
>>
>>
>> I Would say, rather do
>> 1. Install DBXML from source so that it gets linked to the system
>> version of libdb.
>> 2. Ditto pybsddb
>> 3. Ditto DBXML module for Python.
>>
>> Cheers
>>
>> Conrad
>>
>>  
>>
>>> 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]
>
>
>
>
>


------------------------------------------
To remove yourself from this list, send an
email to [email protected]