Hi, Try linking your program with electric fence. It may already be installed it comes on most distros now. Add -lefence when linking. It should help you pin point the problem very quickly when used with a debugger like gdb. James > -----Original Message----- > From: linux-c-programming-owner@xxxxxxxxxxxxxxx [mailto:linux-c- > programming-owner@xxxxxxxxxxxxxxx] On Behalf Of Shriramana Sharma > Sent: 12 May 2006 09:11 > To: linux-c-programming@xxxxxxxxxxxxxxx > Subject: "double free or corruption" - how to solve this? > > One of my programs, which was working quite well till now, suddenly > gives me the error: > > *** glibc detected *** double free or corruption (top): 0x0808a338 *** > Aborted > > It is a pure C program compiled with GCC 4.02 -- I do not understand > why it does not work suddenly. Please tell me what the above error can > be. > > Thanks. > - > : send the line "unsubscribe linux-c- > programming" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html - : send the line "unsubscribe linux-c-programming" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html