* Alejandro Bonilla: > I want to learn how to debug and see what went wrong. How can I > learn to debug this kind of things or how can I enable some > debugging for this kind of things? valgrind is quite helpful for debugging such problems related to memory-management. You could also have a look at mtrace.