Walter gave you examples. You'll find many others in druntime. Here is something I wrote recently that use this again : http://www.deadalnix.me/2012/03/24/get-an-exception-from-a-segfault-on-linux-x86-and-x86_64-using-some-black-magic/