Don't use plain %x to print pointer values. I had changed it from %p