2022年12月1日 星期四

GDB with a crash file and usual commands (and also CLion)

The crash file could be just 10MB


Commands

sudo apport-unpack some.10MB.crash CoreDump

sudo chown -R user:user CoreDump/

cd ./CoreDump

gdb ./binary CoreDump


Commands

frame

up

down

bt

list

info locals

info args

print iter

print hashTable


CLion

Run > Open Core Dump

Core dump: The 200MB core dump file

Symbol file: The originating executable file

沒有留言:

張貼留言

2025 My Hardware Personal Computer Used

 2025 My Hardware Personal Computer Used Check Ubunut sudo dmidecode -t 2 sudo lsblk -o NAME,FSTYPE,LABEL,MOUNTPOINT,SIZE,MODEL 2025 Intel(R...