Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation fault (core dumped) #3

Closed
antonkulaga opened this issue Feb 16, 2022 · 3 comments
Closed

Segmentation fault (core dumped) #3

antonkulaga opened this issue Feb 16, 2022 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@antonkulaga
Copy link

I am using pyDockRMSD to compute RMSD for DeepAb folding predictions against known pdbs. I clean the models and do pdb->pdbqt -> mol2 conversions, however, I constantly get segmentation faults.
I attach the models example
inputs_and_conversions.zip
s

@neudinger
Copy link
Owner

The problem seems to came from memory allocation.
I used alloca to be able to alocate memory on the stack as the original c code.
The advantage is the memory is freed when the call stack is unqueue.
But alocate memory on the stack are very limited in size, that why normaly people used malloc but we need to released the memory by hand.

So i will change all allocations from the stack to the heap.
But i need to identify where i need to free.
If we don't free segmentation faults will still happening

I am on it but it will take time.

@neudinger neudinger self-assigned this Feb 21, 2022
@neudinger neudinger added the bug Something isn't working label Feb 21, 2022
@neudinger
Copy link
Owner

neudinger commented Feb 27, 2022

@antonkulaga
Can i add your files in the repository ?
I want want want to use them in regression test and integration test.
Thanks

However after fix the library:

Between 1ADQ_FV_deep.mol2 and 1adq_fixed_RF_short.mol2

I have this return:
"Template and query don't have the same bonding network."

Maybe i should test on other big file ?

@neudinger
Copy link
Owner

With no response i close this issue.

You can find last release here https://github.com/neudinger/pyDockRMSD/releases/tag/pv1.0.0
and here https://pypi.org/project/pydockrmsd/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants