when I end my program, I found ‘glibc detected’ message like this.
However, I do not know this is error or warning or else.. could someone explain what this message meaning and how I have to do?

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It means you have heap corruption in your program. You likely allocate some memory using
malloc, but write outside the actual bounds, corrupting the heap. When you callfree, glibc detects the corruption and reports it (specifically, the size of the next free chunk is overwritten).You should definitely fix this problem. Valgrind can be a huge help in tracking down the code that actually causes the heap corruption.