[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Debugging General

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 14
Thread images: 2

File: Nhuwf.png (112KB, 1280x800px) Image search: [Google]
Nhuwf.png
112KB, 1280x800px
gdb, lldb, etc
>>
>>58569245
I'd like to get some experience using the crash utility to look at linux kernel dumps, but I don't have any real-world crashes.
>>
>>58569292
just write a quick C program which has an overflow or a loop that goes out of bounds

do you have any advice for getting the same functionality of gdb out of lldb?
>>
>>58569372
Well crash uses gdb under the hood.

https://people.redhat.com/anderson/crash_whitepaper/#WHY_CRASH

I've used the classic echo 1 /proc/sys/kernel/sysrq && echo 'c' | sudo tee /proc/sysrq-trigger to cause crashes, but I really want to find a crash dump where I don't already know what I'm looking for.
>>
How does one (power user, not programmer), take advantage of debugging tools to determine and resolve problems/events?

I use strace right now to troubleshoot hanging programs (file access and fuse mounts), but gdb looks cool.
>>
>>58569245
the visual studio debugger, while slow, is probably the best there is. I dont see one that come close to it on linux unfortunatly.
>>
>>58569589
well i think the program would have needed to been compiled with debug flag so you might not be able to. it wouldn't hurt to try. in fact, you might get lucky and they accidentally ship a component of a huge software suite with debugging enabled. in that case you'll be quite able to exploit it since you'll have full access
>>
GNU DEBUGGER

IS

HARD
>>
>>58570925
Use DDD
>>
>>58569245
pdb
>>
>>58569483
get a usb to serial device. install the wrong driver on it, and it will crash your kernel
>>
>>58571013
wrong driver for it* it will crash as soon as you plug it in
>>
File: edb_bitch.png (431KB, 1920x1080px) Image search: [Google]
edb_bitch.png
431KB, 1920x1080px
evans debugger here.
gdb a shit.
>>
>>58570931
How the hell do you view source code while running?
Thread posts: 14
Thread images: 2


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.