fork download
  1. #include <iostream>
  2. #include <string>
  3.  
  4. struct A
  5. {
  6. std::string s;
  7. };
  8.  
  9. int main()
  10. {
  11. A a;
  12. a.~A();
  13. }
Runtime error #stdin #stdout #stderr 0s 15240KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
*** Error in `./prog': munmap_chunk(): invalid pointer: 0x0000557ba255d870 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x70bcb)[0x2ab559f65bcb]
/lib/x86_64-linux-gnu/libc.so.6(+0x76f96)[0x2ab559f6bf96]
./prog(+0x707)[0x557ba255d707]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf1)[0x2ab559f152b1]
./prog(+0x76a)[0x557ba255d76a]
======= Memory map: ========
2ab559215000-2ab559238000 r-xp 00000000 fd:00 2840974                    /lib/x86_64-linux-gnu/ld-2.24.so
2ab559238000-2ab55923c000 rw-p 00000000 00:00 0 
2ab559245000-2ab55924a000 rw-p 00000000 00:00 0 
2ab559438000-2ab559439000 r--p 00023000 fd:00 2840974                    /lib/x86_64-linux-gnu/ld-2.24.so
2ab559439000-2ab55943a000 rw-p 00024000 fd:00 2840974                    /lib/x86_64-linux-gnu/ld-2.24.so
2ab55943a000-2ab55943b000 rw-p 00000000 00:00 0 
2ab55943b000-2ab5595ad000 r-xp 00000000 fd:00 2967755                    /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.22
2ab5595ad000-2ab5597ad000 ---p 00172000 fd:00 2967755                    /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.22
2ab5597ad000-2ab5597b7000 r--p 00172000 fd:00 2967755                    /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.22
2ab5597b7000-2ab5597b9000 rw-p 0017c000 fd:00 2967755                    /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.22
2ab5597b9000-2ab5597bd000 rw-p 00000000 00:00 0 
2ab5597bd000-2ab5598c0000 r-xp 00000000 fd:00 2841003                    /lib/x86_64-linux-gnu/libm-2.24.so
2ab5598c0000-2ab559abf000 ---p 00103000 fd:00 2841003                    /lib/x86_64-linux-gnu/libm-2.24.so
2ab559abf000-2ab559ac0000 r--p 00102000 fd:00 2841003                    /lib/x86_64-linux-gnu/libm-2.24.so
2ab559ac0000-2ab559ac1000 rw-p 00103000 fd:00 2841003                    /lib/x86_64-linux-gnu/libm-2.24.so
2ab559ac1000-2ab559ad7000 r-xp 00000000 fd:00 2840941                    /lib/x86_64-linux-gnu/libgcc_s.so.1
2ab559ad7000-2ab559cd6000 ---p 00016000 fd:00 2840941                    /lib/x86_64-linux-gnu/libgcc_s.so.1
2ab559cd6000-2ab559cd7000 r--p 00015000 fd:00 2840941                    /lib/x86_64-linux-gnu/libgcc_s.so.1
2ab559cd7000-2ab559cd8000 rw-p 00016000 fd:00 2840941                    /lib/x86_64-linux-gnu/libgcc_s.so.1
2ab559cd8000-2ab559cf0000 r-xp 00000000 fd:00 2840960                    /lib/x86_64-linux-gnu/libpthread-2.24.so
2ab559cf0000-2ab559eef000 ---p 00018000 fd:00 2840960                    /lib/x86_64-linux-gnu/libpthread-2.24.so
2ab559eef000-2ab559ef0000 r--p 00017000 fd:00 2840960                    /lib/x86_64-linux-gnu/libpthread-2.24.so
2ab559ef0000-2ab559ef1000 rw-p 00018000 fd:00 2840960                    /lib/x86_64-linux-gnu/libpthread-2.24.so
2ab559ef1000-2ab559ef5000 rw-p 00000000 00:00 0 
2ab559ef5000-2ab55a08a000 r-xp 00000000 fd:00 2841097                    /lib/x86_64-linux-gnu/libc-2.24.so
2ab55a08a000-2ab55a289000 ---p 00195000 fd:00 2841097                    /lib/x86_64-linux-gnu/libc-2.24.so
2ab55a289000-2ab55a28d000 r--p 00194000 fd:00 2841097                    /lib/x86_64-linux-gnu/libc-2.24.so
2ab55a28d000-2ab55a28f000 rw-p 00198000 fd:00 2841097                    /lib/x86_64-linux-gnu/libc-2.24.so
2ab55a28f000-2ab55a293000 rw-p 00000000 00:00 0 
557ba255d000-557ba255e000 r-xp 00000000 fd:00 27224066                   /home/jP2kjd/prog
557ba275d000-557ba275e000 r--p 00000000 fd:00 27224066                   /home/jP2kjd/prog
557ba275e000-557ba275f000 rw-p 00001000 fd:00 27224066                   /home/jP2kjd/prog
557ba3997000-557ba39c9000 rw-p 00000000 00:00 0                          [heap]
7ffd1c89c000-7ffd1c8bd000 rw-p 00000000 00:00 0                          [stack]
7ffd1c901000-7ffd1c903000 r-xp 00000000 00:00 0                          [vdso]
7ffd1c903000-7ffd1c905000 r--p 00000000 00:00 0                          [vvar]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]