After downloading recent src and updating my fossil executable, I am no longer able to use via cgi-bin.  I get an 'out of memory' error. All actions appear to work fine at a server level using fossil command line.

I have managed to traced this to the changes made in 8f41b2fa75 (15-Oct-2010) where fossil-malloc() was introduced, and more specifically, the change to the  xMalloc function in th_main.c.
If this is reverted back to simply use malloc() the problem goes away and the cgi access works as expected.

I am using Apache/1.3.33 (Unix) on AIX