fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int const i=4;
  6. int const* pi = & i;
  7. delete pi;
  8. }
Runtime error #stdin #stdout #stderr 0s 3472KB
stdin
Standard input is empty
stdout

Standard output is empty

stderr
*** Error in `./prog': munmap_chunk(): invalid pointer: 0xbff10afc ***
======= Backtrace: =========
/lib/i386-linux-gnu/i686/cmov/libc.so.6(+0x75e72)[0xb7552e72]
/lib/i386-linux-gnu/i686/cmov/libc.so.6(+0x76525)[0xb7553525]
/usr/lib/i386-linux-gnu/libstdc++.so.6(_ZdlPv+0x1f)[0xb773582f]
./prog[0x80484cd]
/lib/i386-linux-gnu/i686/cmov/libc.so.6(__libc_start_main+0xf5)[0xb74f68f5]
./prog[0x8048531]
======= Memory map: ========
08048000-08049000 r-xp 00000000 09:03 16269486   /home/A6a2kE/prog
08049000-0804a000 rw-p 00000000 09:03 16269486   /home/A6a2kE/prog
09848000-09869000 rw-p 00000000 00:00 0          [heap]
b74db000-b74dd000 rw-p 00000000 00:00 0 
b74dd000-b7686000 r-xp 00000000 09:03 16394299   /lib/i386-linux-gnu/i686/cmov/libc-2.17.so
b7686000-b7687000 ---p 001a9000 09:03 16394299   /lib/i386-linux-gnu/i686/cmov/libc-2.17.so
b7687000-b7689000 r--p 001a9000 09:03 16394299   /lib/i386-linux-gnu/i686/cmov/libc-2.17.so
b7689000-b768a000 rw-p 001ab000 09:03 16394299   /lib/i386-linux-gnu/i686/cmov/libc-2.17.so
b768a000-b768d000 rw-p 00000000 00:00 0 
b768d000-b76a8000 r-xp 00000000 09:03 16394343   /lib/i386-linux-gnu/libgcc_s.so.1
b76a8000-b76a9000 rw-p 0001a000 09:03 16394343   /lib/i386-linux-gnu/libgcc_s.so.1
b76a9000-b76aa000 rw-p 00000000 00:00 0 
b76aa000-b76eb000 r-xp 00000000 09:03 16394296   /lib/i386-linux-gnu/i686/cmov/libm-2.17.so
b76eb000-b76ec000 r--p 00040000 09:03 16394296   /lib/i386-linux-gnu/i686/cmov/libm-2.17.so
b76ec000-b76ed000 rw-p 00041000 09:03 16394296   /lib/i386-linux-gnu/i686/cmov/libm-2.17.so
b76ed000-b77c9000 r-xp 00000000 09:03 16679929   /usr/lib/i386-linux-gnu/libstdc++.so.6.0.18
b77c9000-b77ca000 ---p 000dc000 09:03 16679929   /usr/lib/i386-linux-gnu/libstdc++.so.6.0.18
b77ca000-b77ce000 r--p 000dc000 09:03 16679929   /usr/lib/i386-linux-gnu/libstdc++.so.6.0.18
b77ce000-b77cf000 rw-p 000e0000 09:03 16679929   /usr/lib/i386-linux-gnu/libstdc++.so.6.0.18
b77cf000-b77d6000 rw-p 00000000 00:00 0 
b77d9000-b77dc000 rw-p 00000000 00:00 0 
b77dc000-b77dd000 r-xp 00000000 00:00 0          [vdso]
b77dd000-b77fc000 r-xp 00000000 09:03 16394256   /lib/i386-linux-gnu/ld-2.17.so
b77fc000-b77fd000 r--p 0001f000 09:03 16394256   /lib/i386-linux-gnu/ld-2.17.so
b77fd000-b77fe000 rw-p 00020000 09:03 16394256   /lib/i386-linux-gnu/ld-2.17.so
bfef1000-bff12000 rw-p 00000000 00:00 0          [stack]