babel "Open Babel 2.2.1 -- Mar 1 2009 -- 19:20:41" crashes
on "Darwin 9.7.0 Darwin Kernel Version 9.7.0: Tue Mar 31 22:52:17 PDT 2009; root:xnu-1228.12.14~1/RELEASE_I386 i386"
for "babel -i cif 2aev.cif -o pdb test2.pdb"
with
==============================
*** Open Babel Warning in Init
Unable to open data file 'space-groups.txt'
==============================
*** Open Babel Warning in Init
Cannot initialize database
Segmentation fault
at
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0xfffffffc
0x937666e1 in __gnu_cxx::__exchange_and_add ()
example cif
The space-groups.txt is not installed or installed at the wrong place.
Ok, then it seems this is an installation problem:
I use the precompiled install package. I found the following files:
-rw-r--r-- 1 raik wheel 104997 10 Jul 17:40 /usr/local/share/openbabel/2.2.2/space-groups.txt
-rw-r--r-- 1 raik wheel 104997 10 Jul 17:34 /usr/local/share/openbabel/2.2.2b6/space-groups.txt
I use this binary: /usr/local/bin/babel
Additional remark: When I use babel from the Avogadro package it seems to work, however this is a different version (2.2.2b1) and it produces the same warning message nevertheless.
/Applications/Avogadro.app/Contents/bin/babel
Open Babel 2.2.2b1 -- Jun 2 2009 -- 12:15:39
/Applications/Avogadro.app/Contents/bin/babel -i cif 2aev.cif -o pdb test.pdb
*** Open Babel Warning in Init
Unable to open data file 'space-groups.txt'
==============================
*** Open Babel Warning in Init
Cannot initialize database
==============================
*** Open Babel Warning in Find
Unknown space group with incomplete or wrong definition.
1 molecule converted
3 warnings 80 audit log messages 1 debugging messages
I'm closing this -- it was fixed in 2.2.2. The version from Avogadro 0.9.5 is old, and the 2.2.1 version you report for the initial bug report is also vulnerable.
If you use 2.2.2-release or later, you should be fine.
Thanks for the report!