# from Andre Poenitz # on Sunday 14 August 2005 12:56 am: >On Sat, Aug 13, 2005 at 10:11:19PM -0700, Eric Wilhelm wrote: >> Hi all, >> >> An update on this problem and a few questions... >> >> I've traced the hang into src/lyxtextclass.C - >> LyXTextClass::load(). Specifically, the following line (~855) is >> where execution heads toward 500MB. > >Is your cgi running with the same permissions as the user you use for >'manual' testing?
Yes and no. No. Apache runs as user www-data, who doesn't have many permissions. Yes www-data has write access to the directory and files where it is exporting. See my later e-mail, where the bug turns out to be subst() getting stuck in a loop (probably because it is getting called with a null string.) The workaround is to set the $HOME environment variable, though the code should probably catch this somewhere. If it is a fundamental assumption that $HOME is set, maybe lyx should die really early. Otherwise, something like checking for $HOME before using it to call subst(), or maybe having subst() check its parameters before getting stuck in a while loop... --Eric -- We who cut mere stones must always be envisioning cathedrals. --Quarry worker's creed --------------------------------------------- http://scratchcomputing.com ---------------------------------------------