Problem 1954 - pdb4dna: malloc(): memory corruption: 0
Summary: pdb4dna: malloc(): memory corruption: 0
Status: RESOLVED DUPLICATE of problem 1955
Alias: None
Product: Bugzilla
Classification: Unclassified
Component: general (show other problems)
Version: other
Hardware: PC Linux
: P4 minor
Assignee: Koichi Murakami
URL:
Depends on:
Blocks:
 
Reported: 2017-03-17 03:20 CET by Duurenbuyan Baatar
Modified: 2017-03-17 09:06 CET (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
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 ***