The cookies thing is from overagressive cache closes. In the script right AFTER "create ram table cookies" (line 535) delete the line <sqlcp cache close>.
You may be hitting a memory limit or a ulimit of some kind during index creation. In the "createindex" function (around line 850 of dowalk) add the following line AFTER the <sqlcp cache close> line:
<sql "set indexmem=25"></sql><!-- only use 25% of ram -->
BTW, how much total ram does the system have? If Texis has a problem determining the amount that could cause a problem. In that case you can tell it how much to use with something like:
<sql "set indexmem=50000000"></sql><!-- use this amt of ram -->
You may be hitting a memory limit or a ulimit of some kind during index creation. In the "createindex" function (around line 850 of dowalk) add the following line AFTER the <sqlcp cache close> line:
<sql "set indexmem=25"></sql><!-- only use 25% of ram -->
BTW, how much total ram does the system have? If Texis has a problem determining the amount that could cause a problem. In that case you can tell it how much to use with something like:
<sql "set indexmem=50000000"></sql><!-- use this amt of ram -->