Up vote 0 down vote favorite share g+ share fb share tw.
I'm writing a Qt program in C for a Chumby, and it runs fine for quite a while before it finally dies with this: *** glibc detected *** /mnt/storage/gui/gui: malloc(): memory corruption (fast): 0x41a00587 *** Semop lock failure Invalid argument Semop unlock failure Invalid argument It can take anywhere from 5-15 minutes to do that, but eventually it always does. I've looked around on the internet a bit and seen that the majority of advice regarding this error is to use valgrind to look for memory leaks/buffer overflows, however as this is a Chumby and is rocking ye old ARM v5, valgrind will not compile. Running it inside of gdb, I get: *** glibc detected *** /mnt/storage/gui/gui: malloc(): memory corruption (fast): 0x41a00a37 *** Program received signal SIGABRT, Aborted.
Switching to Thread 0x419c4490 (LWP 7393) 0x40e3a308 in raise () from /lib/libc.so.6 Does anyone have any other tools/debugging practices I can use to try and track down why this crash is happening? Thanks! C malloc arm embedded-linux link|improve this question edited Jul 22 '11 at 0:52mu is too short77.4k74081 asked Jul 22 '11 at 0:21staticfloat358210 83% accept rate.
1 Inspect memory around 0x41a00a37 and 0x41a00587 to see what lies there (best if you still have the core dumps, otherwise do it the next time you have a crash in gdb). Knowing what kind of objects reside there will help you figure out where you have your likely memory corruption. E.g.
If just before those addresses you see something that looks like a string you're probably overflowing a string buffer. – user786653 Jul 22 '11 at 1:06 Thanks for the tip, managed to fix it. :) – staticfloat Aug 24 '11 at 0:06.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.