Error Running my Executable

This is the error I get when I run my program:

*** glibc detected *** ./a.out: double free or corruption (fasttop): 0x0804e8c0 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6[0xb7d88a85]
/lib/tls/i686/cmov/libc.so.6(cfree+0x90)[0xb7d8c4f0]
/usr/lib/libstdc++.so.6(_ZdlPv+0x21)[0xb7f54b11]
./a.out[0x8049115]
./a.out[0x8049131]
./a.out[0x8049ce2]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe0)[0xb7d33450]
./a.out(__gxx_personality_v0+0x6d)[0x8048c81]
======= Memory map: ========
08048000-0804b000 r-xp 00000000 00:18 7733452 /a/zonker/u/zon-d2/ugrad/msgree 2/CS216/Program2/a.out
0804b000-0804c000 rw-p 00002000 00:18 7733452 /a/zonker/u/zon-d2/ugrad/msgree 2/CS216/Program2/a.out
0804c000-0806d000 rw-p 0804c000 00:00 0 [heap]
b7c00000-b7c21000 rw-p b7c00000 00:00 0
b7c21000-b7d00000 ---p b7c21000 00:00 0
b7d1c000-b7d1d000 rw-p b7d1c000 00:00 0
b7d1d000-b7e66000 r-xp 00000000 08:11 318264 /lib/tls/i686/cmov/libc-2.7.so
b7e66000-b7e67000 r--p 00149000 08:11 318264 /lib/tls/i686/cmov/libc-2.7.so
b7e67000-b7e69000 rw-p 0014a000 08:11 318264 /lib/tls/i686/cmov/libc-2.7.so
b7e69000-b7e6c000 rw-p b7e69000 00:00 0
b7e6c000-b7e76000 r-xp 00000000 08:11 321638 /lib/libgcc_s.so.1
b7e76000-b7e77000 rw-p 0000a000 08:11 321638 /lib/libgcc_s.so.1
b7e77000-b7e78000 rw-p b7e77000 00:00 0
b7e78000-b7e9b000 r-xp 00000000 08:11 318268 /lib/tls/i686/cmov/libm-2.7.so
b7e9b000-b7e9d000 rw-p 00023000 08:11 318268 /lib/tls/i686/cmov/libm-2.7.so
b7e9d000-b7f85000 r-xp 00000000 08:11 457905 /usr/lib/libstdc++.so.6.0.9
b7f85000-b7f88000 r--p 000e8000 08:11 457905 /usr/lib/libstdc++.so.6.0.9
b7f88000-b7f8a000 rw-p 000eb000 08:11 457905 /usr/lib/libstdc++.so.6.0.9
b7f8a000-b7f90000 rw-p b7f8a000 00:00 0
b7fa4000-b7fa6000 rw-p b7fa4000 00:00 0
b7fa6000-b7fa7000 r-xp b7fa6000 00:00 0 [vdso]
b7fa7000-b7fc1000 r-xp 00000000 08:11 321832 /lib/ld-2.7.so
b7fc1000-b7fc3000 rw-p 00019000 08:11 321832 /lib/ld-2.7.so
bfb45000-bfb5a000 rw-p bffeb000 00:00 0 [stack]
Abort



It compiles fine, but I'm not sure what is causing this error. I have three files, my main: program.cpp, LList.h, and LList.cpp.

Can anyone please help me?
Thanks...
This doesnt mean much to non godlike programmers.
We need some code please.

you might be trying to return a local object from one of your methods, cant really tell

nice to know your computer is caller zonker...or something is...server maybe
It looks like the program might be deleting the same pointer twice...if I had to guess. Post your code if you want real help.
It took me a while, the error was in my header definition file and the compiler didn't catch it till I ran the program and a few logic errors.... Thanks though... I might need some more help later.
Topic archived. No new replies allowed.