I ran the offending diff through valgrind <http://valgrind.org/> and it
turned up one use of an uninitialized variable, though that use seemed
harmless to me.  The fix is at
http://www.fossil-scm.org/fossil/info/9262546e43 - can you try this change
and see if that clears the problem?  I'm not able to reproduce the problem
on linux.

On Mon, Mar 19, 2012 at 6:18 AM, Benoit Mortgat <[email protected]> wrote:

> This issue appears to be the same with different compilers then:
> Compiling with MinGW, with “CFLAGS=-O0 make -f win/Makefile.mingw”
> the problem disappears.
>
> On Mon, Mar 19, 2012 at 11:08, Jos Groot Lipman <[email protected]> wrote:
> > I compiled with Visual Studio 2005 and the crash occurs at line 404 in
> > diff.c
> >   int x = strlen(p->zStart);
> > It fails (access violation) because p->zStart is 0x00000050
> >
> > This happened when I compiled with /Zi (include debug info)
> > Debugging is still difficult because of /O2 (optimize for speed) so I
> tried
> > with /Od (no optimizing)
> > However, now the problem is gone. I hate that.
> >
>
> --
> Benoit Mortgat
> _______________________________________________
> fossil-users mailing list
> [email protected]
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>



-- 
D. Richard Hipp
[email protected]
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to