<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>assembly debug Archives - NeuralLantern.com</title>
	<atom:link href="https://www.NeuralLantern.com/tag/assembly-debug/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.NeuralLantern.com/tag/assembly-debug/</link>
	<description></description>
	<lastBuildDate>Sun, 16 Nov 2025 11:52:52 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://www.NeuralLantern.com/wp-content/uploads/2025/04/cropped-2025-04-04-Lantern-03-32x32.png</url>
	<title>assembly debug Archives - NeuralLantern.com</title>
	<link>https://www.NeuralLantern.com/tag/assembly-debug/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>x86-64 Assembly Segfault on printf? Fix Stack Alignment (Yasm + GCC Demo)</title>
		<link>https://www.NeuralLantern.com/x86-64-assembly-segfault-on-printf-fix-stack-alignment-yasm-gcc-demo/</link>
					<comments>https://www.NeuralLantern.com/x86-64-assembly-segfault-on-printf-fix-stack-alignment-yasm-gcc-demo/#respond</comments>
		
		<dc:creator><![CDATA[mike]]></dc:creator>
		<pubDate>Sun, 16 Nov 2025 11:52:51 +0000</pubDate>
				<category><![CDATA[Assembly Language]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[Computer Science]]></category>
		<category><![CDATA[Debugging]]></category>
		<category><![CDATA[Videos]]></category>
		<category><![CDATA[assembly crash]]></category>
		<category><![CDATA[assembly debug]]></category>
		<category><![CDATA[c from assembly]]></category>
		<category><![CDATA[epilogue]]></category>
		<category><![CDATA[function prologue]]></category>
		<category><![CDATA[gcc hybrid]]></category>
		<category><![CDATA[hybrid program]]></category>
		<category><![CDATA[linux assembly]]></category>
		<category><![CDATA[low level programming]]></category>
		<category><![CDATA[printf segfault]]></category>
		<category><![CDATA[push pop]]></category>
		<category><![CDATA[stack alignment]]></category>
		<category><![CDATA[system v abi]]></category>
		<category><![CDATA[x86_64 abi]]></category>
		<category><![CDATA[x86-64 assembly]]></category>
		<category><![CDATA[yasm]]></category>
		<category><![CDATA[yasm printf]]></category>
		<guid isPermaLink="false">https://www.NeuralLantern.com/?p=251</guid>

					<description><![CDATA[<p>x86-64 assembly crashes on printf due to stack alignment. Yasm + GCC hybrid program fixed with push/pop in prologue and epilogue. Live Linux demo.</p>
<p>The post <a href="https://www.NeuralLantern.com/x86-64-assembly-segfault-on-printf-fix-stack-alignment-yasm-gcc-demo/">x86-64 Assembly Segfault on printf? Fix Stack Alignment (Yasm + GCC Demo)</a> appeared first on <a href="https://www.NeuralLantern.com">NeuralLantern.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe title="x86-64 Assembly Segfault on printf? Fix Stack Alignment (Yasm + GCC Demo)" width="1380" height="776" src="https://www.youtube.com/embed/g7EstvrU0pE?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div></figure>



<p class="wp-block-paragraph">Your x86-64 assembly program looks correct, links with GCC, calls printf, and then crashes with a segfault. This video shows exactly why it happens and how to fix it.</p>



<p class="wp-block-paragraph">We build a hybrid program using Yasm and GCC on Linux, print a message from C++, call an assembly function, and hit the crash. Then we fix it with a push and pop of RAX, move the fix into the function prologue and epilogue, and run experiments to prove it works.</p>



<p class="wp-block-paragraph">No long lectures, just code, a real crash, and a real solution that stops the problem for good.</p>



<p class="wp-block-paragraph">Introduction 00:00:00<br>Hybrid Programs 00:00:09<br>Stack Alignment Problem 00:00:33<br>GCC Stack Expectations 00:01:14<br>Makefile Overview 00:02:22<br>Driver Code 00:03:16<br>Assembly Module Setup 00:04:12<br>Calling printf 00:05:20<br>Program Crash Demo 00:07:17<br>Diagnosing Segfault 00:07:56<br>Fix with Push-Pop 00:09:08<br>Prologue Epilogue Fix 00:11:18<br>Experiments Confirm 00:12:54<br>Conclusion 00:13:32<br>Outro Thanks 00:13:52</p>



<p class="wp-block-paragraph">Thanks for watching!</p>



<p class="wp-block-paragraph">Find us on other social media here:</p>



<ul class="wp-block-list">
<li>https://www.NeuralLantern.com/social</li>
</ul>



<p class="wp-block-paragraph">Please help support us!</p>



<ul class="wp-block-list">
<li>Subscribing + Sharing on Social Media</li>



<li>Leaving a comment or suggestion</li>



<li>Subscribing to our Blog</li>



<li>Watching the main &#8220;pinned&#8221; video of this channel for offers and extras</li>
</ul>



<p class="wp-block-paragraph">Hello there. Let&#8217;s talk about stack alignment.</p>



<p class="wp-block-paragraph">When you&#8217;re linking and running a program for x86-64 using a Yasm assembler,</p>



<p class="wp-block-paragraph">and also you have a hybrid program, so you&#8217;re using the GCC libraries in order to get some</p>



<p class="wp-block-paragraph">extra functions or extra functionality, or just so you can have different types of source code</p>



<p class="wp-block-paragraph">is not about how to make a hybrid program look for my other video for that topic this video is</p>



<p class="wp-block-paragraph">only about solving a common problem which costs people tons of time called stack alignment imagine</p>



<p class="wp-block-paragraph">this you&#8217;re writing a program a hybrid program and every once in a while you call on a function</p>



<p class="wp-block-paragraph">within the gcc libraries or perhaps you call another function that you don&#8217;t control or or</p>



<p class="wp-block-paragraph">something that might in turn call on a gcc library and you can&#8217;t figure out why but your program</p>



<p class="wp-block-paragraph">figure out why but your program keeps crashing for no reason seemingly you&#8217;ve spent hours and hours</p>



<p class="wp-block-paragraph">debugging your program it appears to be correct but it still crashes if that happens to you there&#8217;s</p>



<p class="wp-block-paragraph">a chance that you&#8217;re suffering from stack alignment issues so what do i mean by by this i mean uh</p>



<p class="wp-block-paragraph">basically the gcc libraries they expect that your stack which is the data structure you use</p>



<p class="wp-block-paragraph">uh you know when you&#8217;re calling a function or returning from a function or you&#8217;re making local</p>



<p class="wp-block-paragraph">or you&#8217;re making local variables uh where you&#8217;re like pushing you know when you&#8217;re pushing and</p>



<p class="wp-block-paragraph">popping stuff onto the stack uh gcc expects that the stack is aligned to eight bytes</p>



<p class="wp-block-paragraph">um so that means basically every time you do a push or a pop the stack kind of goes out of</p>



<p class="wp-block-paragraph">alignment and goes into alignment so like i do a push the stack goes out of alignment i do another</p>



<p class="wp-block-paragraph">I pop later it gets out of alignment I pop again it goes into alignment every</p>



<p class="wp-block-paragraph">time you do a function call every time you modify the stack by you know a</p>



<p class="wp-block-paragraph">certain number of bytes it could potentially be going out of alignment I</p>



<p class="wp-block-paragraph">think it stays into the same alignment if you push twice as far as I recall or</p>



<p class="wp-block-paragraph">if you jump quickly twice but the point is this is kind of a precarious thing</p>



<p class="wp-block-paragraph">and maybe sometimes you&#8217;re not sure am I suffering from stack alignment well</p>



<p class="wp-block-paragraph">and make sure that it&#8217;s not happening.</p>



<p class="wp-block-paragraph">So first off, I just want to show you my make file real fast.</p>



<p class="wp-block-paragraph">This is not a make file video, so I&#8217;m going to just really,</p>



<p class="wp-block-paragraph">I&#8217;m going to very quickly go through it.</p>



<p class="wp-block-paragraph">This is a hybrid program, so I just have some variables at the top</p>



<p class="wp-block-paragraph">for C++ compilation and some variables over here for assembly in Yasm.</p>



<p class="wp-block-paragraph">And then I&#8217;m going to link using G++.</p>



<p class="wp-block-paragraph">Anytime you&#8217;re linking with G++, that means the G++ libraries are there.</p>



<p class="wp-block-paragraph">You should already think to yourself, maybe it&#8217;s at least possible</p>



<p class="wp-block-paragraph">maybe it&#8217;s at least possible stack alignment could be some of my crashes,</p>



<p class="wp-block-paragraph">especially if you&#8217;re actually calling GCC libraries or a library that you don&#8217;t</p>



<p class="wp-block-paragraph">control or a library that you don&#8217;t know what the source is inside of it.</p>



<p class="wp-block-paragraph">So I&#8217;m just, you know,</p>



<p class="wp-block-paragraph">I have a little menu here and then there&#8217;s like a run target.</p>



<p class="wp-block-paragraph">And then all I&#8217;m doing is I&#8217;m just compiling a driver and an assembly module</p>



<p class="wp-block-paragraph">called whoops,</p>



<p class="wp-block-paragraph">which will do the stack alignment issues for us or which will show us the</p>



<p class="wp-block-paragraph">issues. The driver is pretty simple.</p>



<p class="wp-block-paragraph">simple it&#8217;s the entry point for the program it&#8217;s got a main function it just prints a message and</p>



<p class="wp-block-paragraph">then it calls our whoops function just to prove to you we&#8217;re in a hybrid program we&#8217;ve got an</p>



<p class="wp-block-paragraph">extern c block to disable name mangling on the whoops program so that the c plus plus module</p>



<p class="wp-block-paragraph">can call on the assembly module that&#8217;s not what this video is about check my other videos if you&#8217;re</p>



<p class="wp-block-paragraph">interested in more of that or if you&#8217;re still trying to figure out what to do but basically in</p>



<p class="wp-block-paragraph">You know define some stuff so that I can print string messages. This is all covered in other videos that I&#8217;ve made</p>



<p class="wp-block-paragraph">but we&#8217;re just gonna say there&#8217;s gonna be a welcome message and</p>



<p class="wp-block-paragraph">Then I&#8217;m gonna actually call on a GCC library a regular like C standard library print F</p>



<p class="wp-block-paragraph">To just kind of print something for us</p>



<p class="wp-block-paragraph">Then we&#8217;re gonna do a goodbye message and then</p>



<p class="wp-block-paragraph">We sort of enter up here. So the first thing you</p>



<p class="wp-block-paragraph">probably are wondering is wait a minute can you call printf from assembly yeah you can if you&#8217;re</p>



<p class="wp-block-paragraph">linking with the gcc libraries there are a lot of functions out there that provide extra</p>



<p class="wp-block-paragraph">functionality just be very careful that you don&#8217;t uh accidentally like if you&#8217;re doing homework at</p>



<p class="wp-block-paragraph">home be careful you don&#8217;t actually you don&#8217;t accidentally get in trouble for using a function</p>



<p class="wp-block-paragraph">that was pre-written in order to accomplish something in your homework that you were</p>



<p class="wp-block-paragraph">supposed to do so be careful about that you could you know depending on your professor you could</p>



<p class="wp-block-paragraph">professor you could lose a lot of points or all the points or whatever so anyway you can call</p>



<p class="wp-block-paragraph">printf and other c and c++ library functions all you have to do is number one make a hybrid program</p>



<p class="wp-block-paragraph">that links against the gcc libraries and number two name the functions with extern so i want to</p>



<p class="wp-block-paragraph">call printf in this program so i&#8217;m just going to say extern printf to indicate to the linker that</p>



<p class="wp-block-paragraph">symbol which you know it should should link to it because it&#8217;s like in another module somewhere it&#8217;ll</p>



<p class="wp-block-paragraph">be inside the gcc library then the entry point for this particular module it&#8217;s just a function that</p>



<p class="wp-block-paragraph">i expose as global so that other places in the program can call on it and i&#8217;m just calling it</p>



<p class="wp-block-paragraph">whoops i am let&#8217;s see writing this as a function not a regular assembly label that has to be sys</p>



<p class="wp-block-paragraph">function where I have to actually return when I&#8217;m finished. This is not a functions video,</p>



<p class="wp-block-paragraph">but again, if I was using any Kali preserved registers per the ABI, then I would do like a</p>



<p class="wp-block-paragraph">push pop pair on the top and the bottom, but I&#8217;m not. So first thing that happens is we just print</p>



<p class="wp-block-paragraph">a welcome message. No problem. This is not a printing tutorial video. So check out my other</p>



<p class="wp-block-paragraph">videos. And then we&#8217;ll actually just call on printf. We&#8217;ll ask printf, could you print this</p>



<p class="wp-block-paragraph">We&#8217;ll ask printf, could you print this string for us?</p>



<p class="wp-block-paragraph">And then we&#8217;ll say goodbye with just another print.</p>



<p class="wp-block-paragraph">So this is the problem here, the call to printf.</p>



<p class="wp-block-paragraph">It seems good.</p>



<p class="wp-block-paragraph">I mean, all we&#8217;re doing is we are respecting the ABI by saying,</p>



<p class="wp-block-paragraph">all right, printf wants a pointer to the C string that we wish to print.</p>



<p class="wp-block-paragraph">And so I&#8217;m just going to load up the first integer argument,</p>



<p class="wp-block-paragraph">which also could be a pointer argument, RDI,</p>



<p class="wp-block-paragraph">with a pointer to my string, just printf message.</p>



<p class="wp-block-paragraph">printf message and then I&#8217;m going to call printf. Should work. Let me show you what is actually in</p>



<p class="wp-block-paragraph">the string just for your information. The string is just a message in quotes that says you know</p>



<p class="wp-block-paragraph">this is a string printed by printf and then I add a carriage return line feed to the end of it so</p>



<p class="wp-block-paragraph">printf will do the new lining all for me without me having to call another function and then I give</p>



<p class="wp-block-paragraph">it a null terminator. I&#8217;m not going to explain null terminators too much in this video but just</p>



<p class="wp-block-paragraph">this kind of thing is required for printf because printf will scan printf doesn&#8217;t actually need the</p>



<p class="wp-block-paragraph">length of the message so i don&#8217;t even know why i put this in here so line 24 totally useless</p>



<p class="wp-block-paragraph">anyway so this feels like it should work but it&#8217;s not going to work let&#8217;s see what happens</p>



<p class="wp-block-paragraph">if i do well i&#8217;ll do clear and make run then you can see that the program gets compiled and then</p>



<p class="wp-block-paragraph">We get the welcome message from the driver.</p>



<p class="wp-block-paragraph">It says, my name is Miles Pepperdraut.</p>



<p class="wp-block-paragraph">That&#8217;s not my real name.</p>



<p class="wp-block-paragraph">I just love those names.</p>



<p class="wp-block-paragraph">And then it says, I will now call the whoops module.</p>



<p class="wp-block-paragraph">That&#8217;s the driver talking.</p>



<p class="wp-block-paragraph">And then now we&#8217;re inside of the whoops module and it says,</p>



<p class="wp-block-paragraph">hello, this is the whoops module.</p>



<p class="wp-block-paragraph">And then we get a segfault.</p>



<p class="wp-block-paragraph">Program crashes.</p>



<p class="wp-block-paragraph">Your program doesn&#8217;t work for your customers</p>



<p class="wp-block-paragraph">or you don&#8217;t get your points on your homework or whatever it is</p>



<p class="wp-block-paragraph">because we have a segmentation fault.</p>



<p class="wp-block-paragraph">fault this is not good and this happens to lots of people they&#8217;re coding and</p>



<p class="wp-block-paragraph">they&#8217;re debugging for hours and hours and hours not understanding where the</p>



<p class="wp-block-paragraph">seg fault is coming from it might be coming from stack alignment in this case</p>



<p class="wp-block-paragraph">I know for sure it&#8217;s coming from stack alignment just because I wrote the</p>



<p class="wp-block-paragraph">program on purpose the crash so let&#8217;s let&#8217;s look at a way to I mean first to</p>



<p class="wp-block-paragraph">debug this your first clue is I am sure that it&#8217;s working it&#8217;s still crashing</p>



<p class="wp-block-paragraph">and I&#8217;m calling something that is GCC or I&#8217;m calling something that I don&#8217;t know what the</p>



<p class="wp-block-paragraph">code is inside it could be calling GCC like if you have a library from somewhere else maybe it&#8217;s</p>



<p class="wp-block-paragraph">calling GCC you don&#8217;t really know so that&#8217;s my first clue I&#8217;ll go into the source code and I&#8217;ll</p>



<p class="wp-block-paragraph">just kind of try something so at the beginning of my function we know that every time you jump into</p>



<p class="wp-block-paragraph">a function or do a function call then the stack changes a little bit because the stack has to</p>



<p class="wp-block-paragraph">store the return address of where you&#8217;re going to return to later. So that means there&#8217;s a potential</p>



<p class="wp-block-paragraph">here for stack alignment issues. And I&#8217;m going to go ahead and try something to see if I can</p>



<p class="wp-block-paragraph">prove to myself that this is a stack alignment issue. What I&#8217;m going to do is I&#8217;m just going to</p>



<p class="wp-block-paragraph">move the stack by eight bytes. So how do we do that? You could either move the stack pointer</p>



<p class="wp-block-paragraph">forward and back if you wanted to, like we have add or subtract. I think subtract would be what</p>



<p class="wp-block-paragraph">I think subtract would be what we want to do just to the let&#8217;s see where is it rsp the stack register</p>



<p class="wp-block-paragraph">I&#8217;m not going to do that here</p>



<p class="wp-block-paragraph">I&#8217;m just going to prove a point and make things a little bit easier</p>



<p class="wp-block-paragraph">We&#8217;ll push the number or sorry we won&#8217;t push a number we&#8217;ll push rax and then after that we&#8217;ll pop rax</p>



<p class="wp-block-paragraph">And what&#8217;s happening is i&#8217;m changing the alignment of the stack and then i&#8217;m calling on printf</p>



<p class="wp-block-paragraph">And then i&#8217;m changing the alignment of the stack again</p>



<p class="wp-block-paragraph">I&#8217;m sort of like</p>



<p class="wp-block-paragraph">you can imagine I&#8217;m just like pushing a dummy value onto the stack.</p>



<p class="wp-block-paragraph">Like we don&#8217;t really care what&#8217;s inside of RAX.</p>



<p class="wp-block-paragraph">We&#8217;re not trying to preserve RAX.</p>



<p class="wp-block-paragraph">We&#8217;re not going to use the stack or anything like that.</p>



<p class="wp-block-paragraph">So I&#8217;m just saying, well, let&#8217;s just put something on there.</p>



<p class="wp-block-paragraph">I don&#8217;t even care what it is.</p>



<p class="wp-block-paragraph">And then when we&#8217;re done, we&#8217;ll just pop it right back off.</p>



<p class="wp-block-paragraph">That way, when we&#8217;re finished, the stack is really unchanged.</p>



<p class="wp-block-paragraph">But inside of that push pop pair, the stack is differently aligned by about eight bytes</p>



<p class="wp-block-paragraph">Well, this right here is an 8-byte register, a 64-bit register.</p>



<p class="wp-block-paragraph">So we&#8217;re moving the stack, then we&#8217;re doing the call, and then we&#8217;re moving the stack back.</p>



<p class="wp-block-paragraph">With only that one change, you don&#8217;t want to make the mistake of making a bunch of changes</p>



<p class="wp-block-paragraph">because then it&#8217;s hard to figure out which change actually worked.</p>



<p class="wp-block-paragraph">With just that one change, I&#8217;m going to run the program again.</p>



<p class="wp-block-paragraph">Notice how the program finishes correctly.</p>



<p class="wp-block-paragraph">So, of course, nothing in life is 100%, but at this point, I would be pretty sure that my issue was stack alignment.</p>



<p class="wp-block-paragraph">was stack alignment. I don&#8217;t know where the stack alignment came from. Maybe it came from the</p>



<p class="wp-block-paragraph">function call. Maybe it came from some push pops I had at the top or the bottom. I don&#8217;t really know.</p>



<p class="wp-block-paragraph">You can probably bet that if you call on another function that respects the ABI, that when your</p>



<p class="wp-block-paragraph">function comes, when your call comes back, the stack&#8217;s not going to be in a different alignment,</p>



<p class="wp-block-paragraph">which means let&#8217;s say I had like many, many calls to print F here. I wouldn&#8217;t necessarily want to</p>



<p class="wp-block-paragraph">every single time I called on a function,</p>



<p class="wp-block-paragraph">I probably would want to put this push pop pair</p>



<p class="wp-block-paragraph">like at the very top in the prologue.</p>



<p class="wp-block-paragraph">Maybe let&#8217;s say prologue.</p>



<p class="wp-block-paragraph">I&#8217;ll do like just push R-A-X</p>



<p class="wp-block-paragraph">and then leave myself a comment</p>



<p class="wp-block-paragraph">because it&#8217;s easy to forget assembly in assembly</p>



<p class="wp-block-paragraph">like what you&#8217;re doing.</p>



<p class="wp-block-paragraph">So I&#8217;m just going to leave myself a note</p>



<p class="wp-block-paragraph">and I&#8217;m just going to say stack alignment</p>



<p class="wp-block-paragraph">just to remind myself not to accidentally remove it later.</p>



<p class="wp-block-paragraph">And then I&#8217;m going to do a pop R-A-X at the end.</p>



<p class="wp-block-paragraph">So I&#8217;m going to do like an epilogue.</p>



<p class="wp-block-paragraph">epilog I thought I spelled that right epilog I am sure that I&#8217;m spelling it</p>



<p class="wp-block-paragraph">right okay so then I&#8217;m gonna pop RAX and and hilariously since you don&#8217;t really</p>



<p class="wp-block-paragraph">care about the value of RAX you could pop a different register as long as it</p>



<p class="wp-block-paragraph">wasn&#8217;t call he saved but just so this is a little bit easier to understand and</p>



<p class="wp-block-paragraph">more stable I&#8217;m gonna do it this way so then I&#8217;m gonna say stack alignments</p>



<p class="wp-block-paragraph">stack alignment and maybe I want to like line up these comments so I&#8217;ll just kind</p>



<p class="wp-block-paragraph">of like line up the comments so now the whole entire function because if you</p>



<p class="wp-block-paragraph">look inside of them the you know the body of my function I&#8217;m not really</p>



<p class="wp-block-paragraph">changing the stack alignment I&#8217;m not modifying the stack register I&#8217;m not</p>



<p class="wp-block-paragraph">doing any more push pop pairs I&#8217;m not doing anything so probably the stack is</p>



<p class="wp-block-paragraph">out of alignment during the entire function which means I can make my</p>



<p class="wp-block-paragraph">now by removing these push pop pairs that are surrounding that surround the</p>



<p class="wp-block-paragraph">printf calls so you know I have like half the number of push pop pairs at</p>



<p class="wp-block-paragraph">this point so let&#8217;s see if that works notice how the program still runs no</p>



<p class="wp-block-paragraph">problem and just as another experiment I&#8217;m gonna comment out the push and the</p>



<p class="wp-block-paragraph">pop pair you got to comment out the pair not just one push and not the pop</p>



<p class="wp-block-paragraph">push and not the pop or vice versa. Otherwise the whole program is not going to work.</p>



<p class="wp-block-paragraph">So if I commented it out, now it should crash for sure. Notice how it crashes.</p>



<p class="wp-block-paragraph">All right. So if I put it back one more experiment just to be, you know,</p>



<p class="wp-block-paragraph">just to be like really obsessed with the specificity and make sure that the program works</p>



<p class="wp-block-paragraph">just to be really robust and it works. Okay. So this is a stack alignment in x86-64</p>



<p class="wp-block-paragraph">GCC library dependent hybrid programs in Yasm. I&#8217;m sure this applies to a lot of other areas, but</p>



<p class="wp-block-paragraph">Yasm x86-64 on Linux is what I&#8217;m doing. So I hope this was helpful to you. I hope you learned a</p>



<p class="wp-block-paragraph">little bit and had a little bit of fun. I&#8217;ll see you in the next video.</p>



<p class="wp-block-paragraph">Hey everybody. Thanks for watching this video again from the bottom of my heart. I really</p>



<p class="wp-block-paragraph">appreciate it. I do hope you did learn something and have some fun. If you could do me a please</p>



<p class="wp-block-paragraph">If you could do me a please a small little favor, could you please subscribe and follow this channel or these videos or whatever it is you do on the current social media website that you&#8217;re looking at right now?</p>



<p class="wp-block-paragraph">It would really mean the world to me and it&#8217;ll help make more videos and grow this community.</p>



<p class="wp-block-paragraph">So we&#8217;ll be able to do more videos, longer videos, better videos, or just I&#8217;ll be able to keep making videos in general.</p>



<p class="wp-block-paragraph">So please do me a kindness and subscribe.</p>



<p class="wp-block-paragraph">I&#8217;m sleeping in the middle of the night and I just wake up because I know somebody subscribed or followed.</p>



<p class="wp-block-paragraph">It just wakes me up and I get filled with joy.</p>



<p class="wp-block-paragraph">That&#8217;s exactly what happens every single time.</p>



<p class="wp-block-paragraph">So you could do it as a nice favor to me or you could troll me if you want to just wake me up in the middle of the night.</p>



<p class="wp-block-paragraph">Just subscribe and then I&#8217;ll just wake up.</p>



<p class="wp-block-paragraph">I promise that&#8217;s what will happen.</p>



<p class="wp-block-paragraph">Also, if you look at the middle of the screen right now, you should see a QR code which you can scan in order to go to the website,</p>



<p class="wp-block-paragraph">which I think is also named somewhere at the bottom of this video.</p>



<p class="wp-block-paragraph">it&#8217;ll take you to my main website where you can just kind of like see all the videos i published</p>



<p class="wp-block-paragraph">and the services and tutorials and things that i offer and all that good stuff and uh</p>



<p class="wp-block-paragraph">if you have a suggestion for uh uh clarifications or errata or just future videos that you want to</p>



<p class="wp-block-paragraph">see please leave a comment or if you just want to say hey what&#8217;s up what&#8217;s going on you know just</p>



<p class="wp-block-paragraph">send me a comment whatever i also wake up for those in the middle of the night i get i wake</p>



<p class="wp-block-paragraph">it would really mean the world to me.</p>



<p class="wp-block-paragraph">I would really appreciate it.</p>



<p class="wp-block-paragraph">So again, thank you so much for watching this video</p>



<p class="wp-block-paragraph">and enjoy the cool music</p>



<p class="wp-block-paragraph">as I fade into the darkness,</p>



<p class="wp-block-paragraph">which is coming for us all.</p>



<p class="wp-block-paragraph">Thank you.</p>
<p>The post <a href="https://www.NeuralLantern.com/x86-64-assembly-segfault-on-printf-fix-stack-alignment-yasm-gcc-demo/">x86-64 Assembly Segfault on printf? Fix Stack Alignment (Yasm + GCC Demo)</a> appeared first on <a href="https://www.NeuralLantern.com">NeuralLantern.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.NeuralLantern.com/x86-64-assembly-segfault-on-printf-fix-stack-alignment-yasm-gcc-demo/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
