Hi there, I have a problem with the Python script at the end of this email (the attachment contains this script and the two input files needed). Trying to use the -= operator obviously triggers a memory corruption bug:
*** glibc detected *** python: double free or corruption (out):
0x09d122a0 ***
Thanks a lot,
Hannes.
import openbabel as ob
ob.obErrorLog.SetOutputLevel(0)
conv = ob.OBConversion()
conv.SetInAndOutFormats('pdb', 'pdb')
r = ob.OBMol()
t = ob.OBMol()
conv.ReadFile(r, 'r.pdb')
conv.ReadFile(t, 't.pdb')
shift = r.GetAtom(1).GetVector()
# the following line triggers the bug
shift -= t.GetAtom(1).GetVector()
--
Scanned by iCritical.
bug.tar.gz
Description: GNU Zip compressed data
------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________ OpenBabel-scripting mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openbabel-scripting
