On Thu, Jun 20, 2013 at 09:05:50AM -0400, Martin Gagnon wrote: > On Wed, Jun 19, 2013 at 10:28:29AM +0200, Michai Ramakers wrote: > > On 19 June 2013 10:25, Edward Berner <e...@bernerfam.com> wrote: > > > > > > I'm surprised, but yeah, its looking that way. I just ran the test again > > > using the same fossil binary on XP and Windows 7. The clone failed on XP > > > but succeeded on (64 bit) Windows 7. It also succeeds on 32 bit Vista but > > > fails on Windows 2000 (I had to use a different binary on Windows 2000). > > > > > > As a sanity check I served up a copy of Fossil's own repository in the > > > same > > > way as my test repository. All systems were able to successfully clone > > > it. > > > > That's a big help, thank you. Did you happen to also try cloning from > > WinXP to the same WinXP box, using either file:// or http:// with > > 'fossil clone' ? > > > > I get same problem on my Windows XP SP3 virtual machine using normal > http:// protocol. But using file:// and ssh:// protocol, the clone was > successfull. > > Also, I was able to open the resulting clone (when using http://), but > checkout was empty, and when I try to do a: "fossil pull", I got the > following error: > > Error: bad command: pull <big sha1 number> > > I didn't see that error during the clone, and I grep for "bad command" > in the source code and I found nothing.. > > Does it give some any hints to someone ? >
After doing the clone under GDB (under mingw), I got a segmentation fault during the clone. here's a part of my gdb session output: ------%<------------------------------------------------------------ (gdb) 172 fossil_print("Rebuilding repository meta-data...\n"); (gdb) Rebuilding repository meta-data... 173 rebuild_db(0, 1, 0); (gdb) 50.0% complete... Program received signal SIGSEGV, Segmentation fault. 0x00404d42 in blobReallocStatic (pBlob=0x22fe7c, newSize=76281) at src/blob.c:176 176 memcpy(pNew, pBlob->aData, pBlob->nUsed); (gdb) p pNew $26 = 0x805568 "\356■\356■\356■\356■\356■\356■\356■\356■\r¡║\r¡║\r¡║\r¡║\r¡║\r¡║\r¡║\r¡║\r¡ ║\r¡║\r¡║\r¡║\r¡║\r¡║\r¡║\r¡║\r¡║\r¡║\r¡║\r¡║\r¡║\r¡║\r¡║\r¡║\r¡║\r¡║\r¡║\r¡║\r¡ ║\r¡║\r¡║\r¡║\r¡║\r¡║\r¡║\r¡║\r¡║\r¡║\r¡║\r¡║\r¡║\r¡║\r¡║\r¡║\r¡║\r¡║"... (gdb) p bBlob-aData No symbol "bBlob" in current context. (gdb) p pBlob $27 = (Blob *) 0x22fe7c (gdb) bt #0 0x00404d42 in blobReallocStatic (pBlob=0x22fe7c, newSize=76281) at src/blob.c:176 #1 0x00405394 in blob_resize (pBlob=0x22fe7c, newSize=76280) at src/blob.c:377 #2 0x00405436 in blob_materialize (pBlob=0x22fe7c) at src/blob.c:387 #3 0x004302cd in manifest_parse (pContent=0x22fe7c, rid=2, pErr=0x0) at src/manifest.c:375 #4 0x00432382 in manifest_crosslink (rid=2, pContent=0x22fe7c) at src/manifest.c:1650 #5 0x0043d3bf in rebuild_step (rid=2, size=262223975, pBase=0x22fe7c) at src/rebuild.c:255 #6 0x0043d7da in rebuild_db (randomize=0, doOut=1, doClustering=0) at src/rebuild.c:393 #7 0x0040dcd5 in clone_cmd () at src/clone.c:173 #8 0x0042efc5 in main (argc=4, argv=0x3e41d8) at src/main.c:629 (gdb) l 171 if( newSize==0 ){ 172 *pBlob = empty_blob; 173 }else{ 174 char *pNew = fossil_malloc( newSize ); 175 if( pBlob->nUsed>newSize ) pBlob->nUsed = newSize; 176 memcpy(pNew, pBlob->aData, pBlob->nUsed); 177 pBlob->aData = pNew; 178 pBlob->xRealloc = blobReallocMalloc; 179 pBlob->nAlloc = newSize; 180 } ------%<------------------------------------------------------------ -- Martn G. _______________________________________________ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users