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

~Tensor(): malloc: *** error for object 0x7fa66cc25010: pointer being freed was not allocated #11

Closed
sarahaguasvivas opened this issue Aug 20, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@sarahaguasvivas
Copy link
Contributor

sarahaguasvivas commented Aug 20, 2019

generator_test_v2(79319,0x105d775c0) malloc: *** error for object 0x7fa66cc25010: pointer being freed was not allocated
generator_test_v2(79319,0x105d775c0) malloc: *** set a breakpoint in malloc_error_break to debug

This happens when try to go:

weight_generator->addWeight(it->layer->W);
...
In code_generator.cpp

I've been getting this bug for a few weeks

@sarahaguasvivas sarahaguasvivas added the bug Something isn't working label Aug 20, 2019
@sarahaguasvivas
Copy link
Contributor Author

sarahaguasvivas commented Aug 20, 2019

Solution: Tensor had a destructor that was doing delete [] data, this was trying to deallocate data that used to exist.

Need to find out if we can keep deallocating data in the destructor and avoid deallocating it somewhere else.

@sarahaguasvivas sarahaguasvivas changed the title malloc: *** error for object 0x7fa66cc25010: pointer being freed was not allocated ~Tensor(): malloc: *** error for object 0x7fa66cc25010: pointer being freed was not allocated Aug 26, 2019
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

1 participant