Items tagged with: bugs

Search

Items tagged with: bugs


I noticed a bug in our binutils port that had been generating semi-randomly broken branch relaxation trampolines for decades.

Why did it take so long to notice this code generation bug? The branch has to reach farther than +-32MB for the branch relaxation trampoline generation to kick in. And even then not all branches were affected (the type of relocation affected it, it had to be in a link library in a specific kind of segment and not in the beginning of it). Finally, for it to actually come into play, the branch had to actually be taken, too.

What did it do wrong then? It added the offset to the target function in the link library .text segment twice. So instead of jumping to the intended function it jumped somewhere random after that. Funnily, the jump might end up hitting some code that did not crash, but did something unintended. For you all non-developer peeps: That is very, very bad.

Fun features of this bug: Since whether the trampoline was generated or not depended on the order of object code and from where the affected call was being made, the bug would pop in and out of existence even on the smallest changes to the code or link libraries. If you know a thing about debugging, this is not very conducive to locating bugs.

Needless to say this one took a lot of head scratching to finally figure out. The fix was a change on a single line.

This bug was old enough to get into bars and drink alcohol legally.

EDIT: Oops, this was supposed to be a reply to this post: infosec.exchange/@harrysintone… - so added some context.

#bugstories #bugs #development #coding


We want to find bugs before our users do! So, since the release of 115 Supernova, we’ve been putting a much stronger focus on improving our automated testing.

Read all about it in this new blog from Staff Engineer Geoff Lankow:

blog.thunderbird.net/2024/04/a…

#Thunderbird #QA #Development #Bugs



i wouldn't say this is my most exciting picture in the world, no cute birds or anything, but i really like it as a desktop wallpaper. i mean its what my current wallpaper is lol. i put it up on ko-fi as a pay-what-you-want download. it's yours to have for whatever price you want! i'm currently unemployed so would love to make a little money from my photographs but only if you have the means, you downloading it at all would mean a lot to me

#monarch #bugs #insects #butterflies #photography #flowers

ko-fi.com/s/d21b849afc