C

Core dump

Në shqip përdoret i njëjti emër.

ShpjegimiSQ

Kur një program rrëzohet keq (p.sh. segfault), sistemi mund të ruajë një „core dump“ — një fotografi të memories në momentin e rrëzimit. Me GDB e hap dhe sheh saktë ku ndodhi.

EnglishEN

When a program crashes badly (e.g. a segfault), the system can save a “core dump” — a snapshot of memory at the moment of the crash. You open it with GDB and see exactly where it happened.

Si ta mendosh

Si kutia e zezë e avionit: regjistron gjithçka për ta kuptuar më vonë çfarë shkoi keq.

Lexoje në anglisht

Like a plane's black box: it records everything so you can work out later what went wrong.

Shembull kodibash

ulimit -c unlimited
./programi        # Segmentation fault (core dumped)
gdb ./programi core

Terma të lidhur