Dear all,
Last year and before, I used a C++ program based on openbabel without any
problem (for computing interatomic distances). I didn't use it for many
months. I would like to use it again, and now I get a segmentation fault...
To summarize:
- 2.3.2 and 2.3.90 : segfault (I have some gdb backtrace, hinting to
mol2format.cpp or malloc.c, if anybody if able to read that output)
- 2.2.3, 2.3.0 and 2.3.1: openbabel seems to be unable to open the file
(although the C++ program can read it without any problem).
Shortly, an extract of the program is:
#include <openbabel/obconversion.h>
using namespace OpenBabel;
OBMol lig;
OBConversion conv;
conv.SetInFormat("mol2");
lig.Clear();
if(!conv.ReadFile(&lig,LigFile.c_str())){
cout << "Ligand file " << LigFile << " is not read by OB" << endl;
return 1 ;
};
Does that seem correct to you? (C++ is still a foreign language for me,
unfornately :) But if it was correct last year, I don't see why it would
have changed...
Any other hint for other things to check?
This program use boost too. The compilation doesn't show any error.
Using ldd, all .so files are correctly found.
Thanks,
Regards,
Pascal
------------------------------------------------------------------------------
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform
_______________________________________________
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss