Bugfix for trace text in crash dumps: use correct length when writing.