[Python-apps-team] Bug#636396: mercurial: Cloning fails with: mpatch.mpatchError: patch cannot be decoded

Arno Huggenfeld ahgf80 at hotmail.com
Wed Sep 14 09:53:50 UTC 2011


Thanks for the new version. Hg verify is working but I can confirm that your test fails.

Some more infos to my system:

jupiter:/# uname -rm
2.6.39.1 armv5tel

jupiter:/# cat /proc/cpuinfo
Processor       : Feroceon rev 0 (v5l)
BogoMIPS        : 265.42
Features        : swp half thumb fastmult edsp
CPU implementer : 0x41
CPU architecture: 5TEJ
CPU variant     : 0x0
CPU part        : 0x926
CPU revision    : 0

Hardware        : Buffalo Linkstation Pro/Live
Revision        : 0000
Serial          : 0000000000000000

Package: mercurial
Version: 1.9.2-1

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: armel (armv5tel)

Kernel: Linux 2.6.39.1
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages mercurial depends on:
ii  libc6             2.13-18
ii  mercurial-common  1.9.2-1
ii  python            2.6.7-3
ii  python2.6         2.6.7-3
ii  python2.7         2.7.2-5
ii  ucf               3.0025+nmu2

mercurial recommends no packages.

Versions of packages mercurial suggests:
pn  kdiff3        0.9.95-7+b2
pn  qct           <none>
pn  tk8.4 [wish]  8.4.19-4
pn  tk8.5 [wish]  8.5.10-1
pn  vim | emacs   <none>


I started the tests suite with setting 0:

jupiter:/# cat /proc/cpu/alignment
User:           1042610
System:         2
Skipped:        0
Half:           1808
Word:           1040674
DWord:          2
Multi:          6
User faults:    0 (ignored)

@jupiter:~/mercurial-test/mercurial-1.9.2$ LANG=C make local
...

@jupiter:~/mercurial-test/mercurial-1.9.2$ LANG=C make tests > tests.log
...
I will send the results when finished but it isn't looking good.
Or did you want me to run the test with # echo 2 > /proc/cpu/alignment ?

Cheers
Arno

----------------------------------------
> Date: Wed, 14 Sep 2011 08:53:56 +0100
> From: cibervicho at gmail.com
> To: ahgf80 at hotmail.com; 636396 at bugs.debian.org
> Subject: Re: Bug#636396: mercurial: Cloning fails with: mpatch.mpatchError: patch cannot be decoded
>
> On 14/09/11 08:12, Arno Huggenfeld wrote:
> >
> > Ok,
> >
> > third try.
> >
> > ----------------------------------------
> > As it seems that my first two mails vanished in the spam filter, next try with different settings.
> > ----------------------------------------
> > I discovered by chance that mercurial is working after
> >
> > # echo 2 > /proc/cpu/alignment
> > (meaning fix problem, default 0 means do nothing)
> >
> > which strongly suggests that there is an alignment problem in mpatch.c . Most of the times it is code which implicitly relies on a specific alignment of structure members or array elements, which is not standardized and cpu, os and compiler specific. http://netwinder.osuosl.org/users/b/brianbr/public_html/alignment.html and http://lecs.cs.ucla.edu/wiki/index.php have good explanations.
>
> Nice!
>
> > ----------------------------------------
> > I did some experiments with various versions:
> >
> > 1.8.3-1 (wheezy): only working with echo 2 > /proc/cpu/alignment
> > 1.8.4+174-6ab8b17adc03 (upstream hg-stable): only working with echo 2 > /proc/cpu/alignment
> > 1.9.1 (upstream previous release): only working with echo 2 > /proc/cpu/alignment
> > 1.9.1-2 (sid): only working with echo 2 > /proc/cpu/alignment
> > 1.9.2 (upstream latest release): working
> > 1.9.2+17-d23dfcbb8840+20110912 (upstream main): working
> >
> > All tests were limited to hg verify on a small repository.
>
> My current test case is:
>
> cd /tmp
> rm -rf a
> hg init a
> cd a
> echo a > a
> hg ci -Am0
> hg tag t1
> hg tag --remove t1
>
> which fails in 1.9.2 .
>
> > It is not mentioned in the release notes but something was fixed between 1.9.1 and 1.9.2.
>
> Yes, the situation has improved a lot in 1.9.2, you can clone and
> commit, but there are still problems (see the test case above).
>
> > Therefore I suggest Debian upgrading to 1.9.2.
>
> 1.9.2 was uploaded to debian yesterday. I'm not root in the ARM machine
> I'm using for debugging, so I can't test your suggestion. Can you
> please upgrade your package and see if it works?
>
> It would really help if you could run the whole mercurial test suite.
> To do that, download the sources from [0] unpack them and run "make
> tests". It will probably take hours to execute.
>
> [0] http://mercurial.selenic.com/release/mercurial-1.9.2.tar.gz
>
> Thanks,
> Javi (Vicho)
>
 		 	   		  




More information about the Python-apps-team mailing list