On Thursday 07 January 2010, richard vegh wrote:
> GDB. Now I guess I have found one problem.
> 
> In lpc3180c line 519 allocates memory:
>         oob_buffer = malloc(6);
> But later set more then allocated at line 562:
>             memset(oob_buffer, 0xff, (nand->page_size == 512) ? 6 : 24);
> and crashes when free it at line 602:
>         free(oob_buffer);
> 
> So I corrected it and no crash anymore!

That malloc looks wrong, yes.  

> Although not all the data written to 
> flash so I have to investigate it more.
> 
> Anyway it strange why gdb does not list the whole call stack after crash.
> Only lists glibc's backtraces...

Yes, strange.  
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to