Magic Numbers

closed account (3hM2Nwbp)
I found these on Wikipedia earlier today, thought I'd share. They're simple return values - or are they? Anyway, I enjoyed them and hopefully you do as well.

0x8BADF00D ("ate bad food") is used by Apple in iOS crash reports, when an application takes too long to launch, terminate, or respond to system events.

0x1BADB002 ("I bad boot") Multiboot header magic number.

0xBAADF00D ("bad food") is used by Microsoft's LocalAlloc(LMEM_FIXED) to indicate uninitialised allocated heap memory when the debug heap is used

0xD15EA5E ("disease") is a flag that indicates regular boot on the Nintendo GameCube and Wii consoles.

0xDEADBABE ("Dead Babe") is used by IBM Jikes RVM as a sanity check of the stack of the primary thread

0xDEADBEEF ("dead beef") is frequently used to indicate a software crash or deadlock in embedded systems.

0xDEADDEAD ("dead dead") is the bug check (STOP) code displayed when invoking a Blue Screen of Death either by telling the kernel via the attached debugger, or by using a special keystroke combination

0xDEADFA11 ("dead fall") is used by Apple in iOS crash reports, when user force quit the application

0xDEFEC8ED ("defecated") is the magic number for OpenSolaris core dumps.

0xFACEFEED ("face feed") is used by Alpha servers running Windows NT. The Alpha Hardware Abstraction Layer (HAL) generates this error when it encounters a hardware failure.

0xFEE1DEAD ("feel dead") is used as a magic number in the Linux reboot system call.

0xE011CFD0 is used as magic number for Microsoft Office files. In little endian this reads D0CF11E0, "docfile0".


And a few others that came to mind today

0xBADC0DE
0x600DC0DE
0xDEADC0DE


Any others to add?
Last edited on
Wow. Good. That certainly is interesting.
Topic archived. No new replies allowed.