The stack size was set to 500000, almost up to 512 * 1024. But I tried 512 and even 1024 * 1024, with the same result (restart every time I go to /dotlrn).
It only restarts if I am logged in as a valid dotlrn user, so it is definitely related to trying to load a user's dotlrn home page. But you probably could tell that from the query.