If your are using Pure Data in Linux Mint 15 or Ubuntu 13, after typing the 4th character of a new object, X server crashes ending the logging session. After a few days of research I found that the problem is caused by the Intel video driver and the solution is quite simple.
The problem is produced by the package xserver-xorg-video-intel. If your X server crashes because of Pure Data, probably you have the xserver-xorg-video-intel version 2:2.21.6-0ubuntu4 or 2:2.21.6-0ubuntu4.3. You can check the version with the Package Manager.
What you need to do is to uninstall this driver using the Package Manager and download the new driver version (2:2.21.9-0ubuntu0~raring) from here. Choose the normal driver version (not the dev package), select the .deb file (not the tar.xz one) and verify if your system is 32 or 64 bits. After you download the driver you can install it with the following command:
sudo dpkg -i xserver-xorg-video-intel_2.21.9-0ubuntu0~raring_amd64.deb
Please note that the previous command is for a 64 bits system. Finally, reboot your computer and the problem should be solved!