New submission from Edwin <[EMAIL PROTECTED]>:

Hello

We have a repository which 'darcs check says' is consistent, but when we do a
get specifying a certain tag, the resulting repository has problems: 'darcs
check' shows an inconsistency, and 'darcs whatsnew' crashes in Windows for darcs
1.0.4 and above (but not v1.0.3, and not in Linux). The crash is the "darcs.exe
has encountered a problem and needs to close" dialog box kind.

A copy of the tree is here:
http://download.businesswebsoftware.com/files/darcs-bug-demo.tgz (1.5MB). To
save space, the pristine and working copies are not present, and the patches
have been edited to change every line of our code to ' 1'.

To reproduce:
Decompress the archive
Run 'darcs repair' to regenerate the pristine tree.
Run 'darcs check' to verify that the repo is consistent.
In another directory, run 'darcs get --tag bugfixes broken' to get a copy up to
the tag.
Run 'darcs check'. This gives the output:
> Applying patch 1168 of 1188... 
> darcs failed:  Error applying hunk to file ./firmstep2/sql_cli.cpp
> Unapplicable patch:
> Wed Nov 30 17:41:48 GMT 2005  [EMAIL PROTECTED]
>  * verbose-odbc-type-selection

Run 'darcs whatsnew' in Windows. darcs will crash.

I modified the darcs makefile to make the compiler include debugging symbols and
tried a 'darcs whatsnew' with gdb.  The first three times, it didn't crash, but
the next time I got:
> Program received signal SIGSEGV, Segmentation fault.
> 0x00689d7b in computematchjumps ()

A backtrace gave:
> #0  0x00689d7b in computematchjumps ()
> #1  0x00686f66 in regcomp ()
> #2  0x0063de48 in s38j_info ()
> #3  0x012037f0 in ?? ()
> #4  0x01203808 in ?? ()
> #5  0x00000001 in ?? ()
> #6  0x012c2eac in ?? ()
> #7  0x00000001 in ?? ()
> #8  0x012037c0 in ?? ()
> #9  0x012037c8 in ?? ()
> #10 0x00000000 in ?? () from

Edwin

----------
messages: 248
nosy: droundy, edwint, tommy
priority: bug
status: unread
title: Getting a tag giving inconsistent repository.

____________________________________
Darcs issue tracker <[EMAIL PROTECTED]>
<http://bugs.darcs.net/issue67>
____________________________________

_______________________________________________
darcs-devel mailing list
[email protected]
http://www.abridgegame.org/cgi-bin/mailman/listinfo/darcs-devel

Reply via email to