Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is address 0xbaddc0dedeadbead "Bad decode dead bead"

I've had bugs on trying to dereference pointers in some class members pointing to address 0xbaddc0dedeadbead, which is obviously not a random value but a message "Bad decode dead bead", but from whom? Knowing this could help fixing these bugs; is it the C++ compiler (llvm), the linker, the loader, or some or other MacOS service that can produce this address? (I'm on MacOS 10.10). Cheers!

like image 861
diemo Avatar asked Dec 21 '25 23:12

diemo


1 Answers

Many c++ compilers initialize your pointers with this value if you don't initialize them manually in debug mode to simplify search for non-initialized pointers dereference bugs.

like image 152
alexeykuzmin0 Avatar answered Dec 26 '25 00:12

alexeykuzmin0



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!