Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Glibc Error 1

Status
Not open for further replies.

nrich239

Programmer
Jun 9, 2004
22
US
I'm running a program trying to get run JNI from C.

It compiles without error but during execution I get:
*** glibc detected *** double free or corruption (fasttop): 0xacc13d68 ***

Any ideas?

Let me know if more info is needed,
Nrich239
 
That could mean almost anything.

What it's telling you is that you called free() on a memory block, and it detected a problem.

Determining the actual cause of the problem is another matter. Where you corrupted the memory could be a long way from where you free the memory.

If it's a small program you've written, then you need to post it here - don't forget the [code][/code] tags.

If you're on Linux, then you could try
Code:
gcc prog.c -lefence
to link with the electric fence memory debug library. When run inside the debugger (say gdb or ddd), it should take you to the point where the corruption happens.

--
 
I started playing with it more and more and found that a line of code to de-reference an array was being called before it should have been.

Thanks though
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top