I can't sync on Mac OS X Lion. sync crash with out of memory message.

<pre>
gdb --args sync
GNU gdb 6.3.50-20050815 (Apple version gdb-1705) (Fri Jul  1 10:50:06 UTC 2011)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin"...Reading symbols for shared libraries ...... done

(gdb) break malloc_error_break
Breakpoint 1 at 0x7fff8a1986c0
(gdb) run
Starting program: sync
5 scan steps for 1 rows in [SELECT 1 FROM main.sqlite_master WHERE name=='stashfile' AND sql GLOB '* isLink *']
5 scan steps for 1 rows in [SELECT 1 FROM main.sqlite_master WHERE name=='stashfile']
5 scan steps for 1 rows in [SELECT 1 FROM main.sqlite_master WHERE name=='undo' AND sql GLOB '* isLink *']
5 scan steps for 1 rows in [SELECT 1 FROM main.sqlite_master WHERE name=='undo']
5 scan steps for 1 rows in [SELECT 1 FROM main.sqlite_master WHERE name=='undo_vfile' AND sql GLOB '* islink *']
5 scan steps for 1 rows in [SELECT 1 FROM main.sqlite_master WHERE name=='undo_vfile']
Server:
                Bytes      Cards  Artifacts     Deltas
Sent:             648         12          0          0
Received:         898         11          0          1
Total network traffic: 576 bytes sent, 712 bytes received
fossil(78531) malloc: *** mmap(size=18446744067267100672) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug

Breakpoint 1, 0x00007fff8a1986c0 in malloc_error_break ()


(gdb) bt
#0  0x00007fff8a1986c0 in malloc_error_break ()
#1  0x00007fff8a15b477 in szone_error ()
#2  0x00007fff8a15d404 in allocate_pages ()
#3  0x00007fff8a15dba4 in large_malloc ()
#4  0x00007fff8a163dee in szone_malloc_should_clear ()
#5  0x00007fff8a164972 in szone_realloc ()
#6  0x00007fff8a198243 in malloc_zone_realloc ()
#7  0x00007fff8a199032 in realloc ()
#8  0x000000010002e59e in fossil_realloc (p=Cannot access memory at address 0x0
) at main_.c:510
#9  0x000000010000f79e in content_get (rid=1606416160, pBlob=0x7fff5fbff720) at content_.c:275
#10 0x000000010005222f in verify_rid [inlined] () at
#11 0x000000010005222f in verify_at_commit () at verify_.c:79
#12 0x0000000100011262 in db_end_transaction (rollbackFlag=8) at db_.c:142
#13 0x000000010005afb1 in client_sync (pushFlag=1606417040, pullFlag=1606417040, cloneFlag=1606417040,
privateFlag=1606417040, configRcvMask=1606417040, configSendMask=1606417040) at xfer_.c:1728
#14 0x0000000100044ad4 in sync_cmd () at sync_.c:233
#15 0x000000010002be07 in main (argc=1606417602, argv=0x7fff5fbffcc2) at main_.c:378
</pre>