-
Notifications
You must be signed in to change notification settings - Fork 269
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
double free or corruption (fasttop) #54
Comments
Original comment by Juan Oxoby (Bitbucket: Juan Oxoby).
|
3 similar comments
Original comment by Juan Oxoby (Bitbucket: Juan Oxoby).
|
Original comment by Juan Oxoby (Bitbucket: Juan Oxoby).
|
Original comment by Juan Oxoby (Bitbucket: Juan Oxoby).
|
Original comment by Louise Poubel (Bitbucket: chapulina, GitHub: chapulina). I'm not able to reproduce your issue. See pull request #578 for an example. I also tried with the exact code you posted, on Blueprint and Citadel, and never got a crash. Your trace points to the loader, but I don't know how |
Original comment by Juan Oxoby (Bitbucket: Juan Oxoby). Hi Louise - Thanks for giving it a try. Yes, the trace is from that code snippet. Address sanitizer points to |
Original comment by Louise Poubel (Bitbucket: chapulina, GitHub: chapulina). Humm could be, I'm running Are you using Ignition debs or building from source? |
Original comment by Juan Oxoby (Bitbucket: Juan Oxoby). Hi Louise - It seems that the problem was a result of linking two different Running
No wonder why the “double free“ error… So, removing |
Original report (archived issue) by Juan Oxoby (Bitbucket: Juan Oxoby).
Prerequisites
[ X] Put an X between the brackets on this line if you have done all of the following:
Description
double free or corruption (fasttop)
after executing a simple program usingServer
.Steps to Reproduce
Build and run the following test program:
Expected behavior:
The program should run and finish without any problems.
Actual behavior:
At the end of the execution, the program fails with this output:
double free or corruption (fasttop)
Aborted (core dumped)
Reproduces how often:
Always.
Versions
gcc (Ubuntu 8.3.0-6ubuntu1~18.04.1) 8.3.0
ldd (Ubuntu GLIBC 2.27-3ubuntu1) 2.27
Additional Information
When running with valgrind:
valgrind --keep-stacktraces=alloc-and-free crash_test
Pointed to line: https://github.com/ignitionrobotics/ign-plugin/blob/94482af3e9b2cc1cbb7c2dbeb2c7846f8283f0f6/loader/src/Loader.cc#L457
If running with address sanitizer, we get:
The text was updated successfully, but these errors were encountered: