It happens in WindowMaker too.
I think it is something related to xdm.
edit: 2013-05-17: BTW, in the end, having 6 GB of memory, I raised datasize-cur to 5 GB, enough for most desktop applications. Lazy me
Thanks again, rocket357, I had not thought about ulimit without your help. I was more familiar with csh than with ksh.