I can't access your code, so just a quick thought. Doesn't `scanner` depend somehow on the stack pointer? If it does, it might end up aligned by chance if you add the dprintk call and not aligned otherwise, which makes the CPU crash. Vojta