Flexweb Forum
Welcome, Guest. Please login or register.
November 23, 2009, 04:11:47 PM

Login with username, password and session length
Search:     Advanced search
FIRST 6.0 is now available! Please visit the software/first_download/ section of Flexweb to see more details.
571 Posts in 218 Topics by 122 Members
Latest Member: aluna
* Home Help Search Login Register

+  FlexWeb
|-+  FIRST - Command-line Version
| |-+  Developer's Corner
| | |-+  ERROR: memory leak in PebbleGame found
« previous next »
Pages: [1] Print
Author Topic: ERROR: memory leak in PebbleGame found  (Read 1762 times)
rader
Global Moderator
Isostatic
*****
Posts: 39


ERROR: memory leak in PebbleGame found
« on: June 10, 2008, 12:37:20 PM »

I found a memory leak in the PebbleGame program. This was found because of a segmentation fault of certain Ecut values for certain pdb files. I'll attach one.

If you run it using  the following options:

FIRST -non -E -2.0 1y8nI.pdb -v 3

everything is fine, but if you use the following option:

FIRST -non -E -2.1 1y8nI.pdb -v 3

then a segfault involving the following invalid pointer call occurs and the screen output is as follows.
[font=Verdana][color=Blue]

* 1y8nI.pdb.txt (1237.46 KB - downloaded 1 times.)
Logged
kirill
Administrator
Flexible
*****
Posts: 2


Re: ERROR: memory leak in PebbleGame found
« Reply #1 on: June 12, 2008, 05:27:08 PM »

I fixed it. There was an error in array allocations in PebbleGameDecompHinges.cpp file.

Line 36: neighbors = new unsigned int[2*total_bonds+1];
...
Line 42: labels_array = new int[2*total_bonds+1];

You can download new version of this file from cvs.
Please let me know if you still have a problem. Thanks for your report!
Logged
Pages: [1] Print 
« previous next »
Jump to:  

FlexWeb | Powered by SMF 1.0.3.
© 2001-2005, Lewis Media. All Rights Reserved.
 
  Valid XHTML 1.1! Valid CSS!