Problem 1954

Summary: pdb4dna: malloc(): memory corruption: 0
Product: Bugzilla Reporter: Duurenbuyan Baatar <cosmosduuree02>
Component: generalAssignee: Koichi Murakami <Koichi.Murakami>
Status: RESOLVED DUPLICATE    
Severity: minor    
Priority: P4    
Version: other   
Hardware: PC   
OS: Linux   

Description Duurenbuyan Baatar 2017-03-17 03:20:16 CET
I trying to build another molecule in Geant4 using your application "pdb4dna".
In the case of my .pdb file, total number of atoms in each residue (nbAtom) is 52!
"pdb4dna" successfully reading .pdb file when nbAtom<49. But, it does not read .pdb file when nbAtom more than 49.
Error on display:
*** Error in `./pdb4dna': malloc(): memory corruption: 0
En example of my .pdb file:
ATOM      1  N   POPCA   1     -85.938 -67.912  20.706 
ATOM      2  C11 POPCA   1     -85.233 -66.984  21.693 
ATOM      3  C12 POPCA   1     -86.672 -67.098  19.681 
....................
ATOM     48 C312 POPCA   1     -85.321 -63.221   7.272
ATOM     49 C313 POPCA   1     -84.516 -62.900   6.005
ATOM     50 C314 POPCA   1     -85.163 -63.436   4.724
ATOM     51 C315 POPCA   1     -84.323 -63.139   3.477
ATOM     52 C316 POPCA   1     -84.941 -63.684   2.189

Please advice me, how to solve this problem and/or where is use the "free(a);" in PDBlib.cc?

Best regards,
B.Duurenbuyan.
Comment 1 Gabriele Cosmo 2017-03-17 09:06:24 CET

*** This problem has been marked as a duplicate of problem 1955 ***