Programming a DOS Twitch Bot: Part 19 (Segmentation fault)
Channel: Jookia
Date: 2022-01-21

After figuring out my packet problems, I finally solve them.
Then I hit our next roadblock. Argh.

This video contains adult language and humor.
Streamed on 2021-12-28
See more at https://twitch.tv/jookia2
All original content in the video is licensed CC0 by me.

Timestamps:

00:00:00 - Migrating bot code to newer mTCP
00:11:40 - Trying to figure out why it prints garbage
00:22:35 - Looking at printf assembly code
00:37:10 - Checking the bot in a debugger
00:42:35 - Trying different linker segments
01:07:05 - Dealing with Linux disk usage 
01:18:00 - Investigating memory layouts and relocations
01:29:00 - Debugging again
01:39:00 - Consulting the NASM forums
01:43:40 - Trying to understand relocation
01:55:00 - Simplifying broken code
02:02:40 - Debugging yet again
02:13:30 - Simplifying and debugging code again
02:39:25 - Disassembling the EXE