Compiling with mingw, fossil receives SIGSEGV in in sbsWriteText : int x = strlen(p->zStart);
Printing zStart in gdb shows : $2 = 0x7 <Address 0x7 out of bounds>. In the caller, we have: s.zStart = "<span class=\"diffrm\">"; ... /* nothing here modifies zStart */ sbsWriteText(&s, ...); gdb details follow: > (gdb) bt > #0 0x004147ea in sbsWriteText (p=0x28fce4, pLine=<value optimized out>, > flags=<value optimized out>) at src/diff.c:397 > #1 0x00415316 in sbsDiff (pA_Blob=0x28fddc, pB_Blob=0x28fdc8, pOut=0x28fdb4, > diffFlags=324009991) at src/diff.c:972 > #2 text_diff (pA_Blob=0x28fddc, pB_Blob=0x28fdc8, pOut=0x28fdb4, > diffFlags=324009991) at src/diff.c:1498 > #3 0x00422919 in diff_page () at src/info.c:1112 > #4 0x00427850 in process_one_web_page (zNotFound=<value optimized out>) at > src/main.c:1347 > #5 0x00428d15 in main (argc=3, argv=0x3f1ab0) at src/main.c:501 > (gdb) up > #1 0x00415316 in sbsDiff (pA_Blob=0x28fddc, pB_Blob=0x28fdc8, pOut=0x28fdb4, > diffFlags=324009991) at src/diff.c:972 > 972 sbsWriteText(&s, &A[a], SBS_PAD); > (gdb) set print pretty on > (gdb) print s > $6 = { > zLine = 0x2855548 "<span class=\"diffln\"> 125 </span> <span > class=\"diffrm\">#ifnde", ' ' <repeats 56 times>, "<span class=\"diffln\"> > 124 </span> #endif\ninclude <sys/mman.h>\nº\rðº\rðº\rðº"..., > n = 35, > width = 80, > escHtml = 1 '\001', > iStart = 6, > zStart = 0x7 <Address 0x7 out of bounds>, > iEnd = 80, > iStart2 = 0, > zStart2 = 0x7 <Address 0x7 out of bounds>, > iEnd2 = 2686280 > } On Sun, Mar 18, 2012 at 6:20 PM, Jos Groot Lipman <donts...@home.nl> wrote: > > Today I downloaded the latest Fossil version 1.22 from the website and > started using it on my Windows Vista. > > When I start 'fossil ui' and ask Fossil for a 'diff' of a file Fossil > crashes and Windows show a 'Fossil.exe has stopped working' > -- Benoit Mortgat _______________________________________________ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users