I get a program form website and it is ok after port to N810. Based on it , I have added something to it, but when I port it to N810 again,it
has this problem "***glibc detected : memory corruption***" ,but i have used the tool named "valgrind --tool=memcheck --leak-check=yes"
to check it , and there is no error and no memory problem.
what can i do?
I guess:
1. glibc version problem
the pc linux glibc version is : libglib 2.0-0;
the n810 glilbc version is :libglib2.0-0 too, which matches to pl linux. Maybe the glibc version is compatible. At the same times, the program from the website is ok to N810, and it just goes wrong when i have done something to it.
2. the memory problem
i have doubted the memory problem, but i have check it using tool valgrind. And the result shows the memory on leak, and it is ok.
But why it will omit the problem when port it to N810 :
"glibc detected".
Can we see the source code? Might give us a better idea.
Valgrind will look for memory leaks, but won't necessarily see if you overwrite the wrong bit of memory (and manage to not cause a segfault). Did it give you an address and location of the memory corruption?
I get a program form website and it is ok after port to N810. Based on it , I have added something to it, but when I port it to N810 again,it
has this problem "***glibc detected : memory corruption***" ,but i have used the tool named "valgrind --tool=memcheck --leak-check=yes"
to check it , and there is no error and no memory problem.
what can i do?
I guess:
1. glibc version problem
the pc linux glibc version is : libglib 2.0-0;
the n810 glilbc version is :libglib2.0-0 too, which matches to pl linux. Maybe the glibc version is compatible. At the same times, the program from the website is ok to N810, and it just goes wrong when i have done something to it.
2. the memory problem
i have doubted the memory problem, but i have check it using tool valgrind. And the result shows the memory on leak, and it is ok.
But why it will omit the problem when port it to N810 :
"glibc detected".
Any help for appreciate.
B&R
D.K