I just found out that the bug is triggered if you close XChat with the "Close Window" button without using /quit before.
-- xchat crashes frequently on quit https://launchpad.net/bugs/57951 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs