ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Linux Sisyphus mailing list <sisyphus@lists.altlinux.org>
Subject: Re: [sisyphus] i586 rpm setversions regression
Date: Mon, 24 Dec 2012 18:26:03 +0400
Message-ID: <20121224142603.GA15446@altlinux.org> (raw)
In-Reply-To: <20121224125959.GB13879@altlinux.org>

[-- Attachment #1: Type: text/plain, Size: 1776 bytes --]

On Mon, Dec 24, 2012 at 04:59:59PM +0400, Alexey Tourbin wrote:
> On Mon, Dec 24, 2012 at 04:42:46PM +0400, Gleb Fotengauer-Malinovskiy wrote:
> > On Mon, Dec 24, 2012 at 04:05:23PM +0400, Alexey Tourbin wrote:
> > > [builder@people ~]$ /usr/lib/rpm/setcmp set:kdSxWgTyZxEcQx104N1sOQPFrBU4hMyJgswBQdypWl99UkQfZ7FfVfLes8xXStDq2ZBO04AhAjro2klgZ3IPusa9PpeHQCT4xiF5vDAsf0PvkfkbHFKHGGYt7lk6gVuQUZg05tAONMVt1 set:jhK9a5Z0
> > > -2
> > > [builder@people ~]$
> > > 
> > > Похоже на проблему перекодирования в меньшую битность (в данном
> > > случае set:k > set:j).  Кажется, нашел ошибку, только теперь не знаю,
> > > как проверить - хешер не заводится.
> > 
> > У меня завёлся hasher на i586, в нём собрался rpm с этим патчем.
> > C этим rpm и corosync собирается и:
> > 
> > [builder@people .in]$ /usr/lib/rpm/setcmp set:kdSxWgTyZxEcQx104N1sOQPFrBU4hMyJgswBQdypWl99UkQfZ7FfVfLes8xXStDq2ZBO04AhAjro2klgZ3IPusa9PpeHQCT4xiF5vDAsf0PvkfkbHFKHGGYt7lk6gVuQUZg05tAONMVt1 set:jhK9a5Z0
> > 1
> 
> Да, теперь работает.
> 4.0.4-alt100.58-1-gf25f962

Спасибо, отправил в Сизиф под именем 4.0.4-alt100.59.

> > > --- lib/set.c-
> > > +++ lib/set.c
> > > @@ -1107,8 +1107,8 @@ int rpmsetcmp(const char *str1, const ch
> > >      int c1 = cache_decode_set(str1, Mshift1, &v1);
> > >      if (c1 < 0)
> > >  	return -3;
> > > -    unsigned v1bufA[c1 + 1];
> > > -    unsigned v1bufB[c1 + 1];
> > > +    unsigned v1bufA[c1 + SENTINELS];
> > > +    unsigned v1bufB[c1 + SENTINELS];
> > >      // decode set2 (on the stack)
> > >      int len2 = strlen(str2);
> > >      int c2 = decode_set_size(len2, Mshift2);

Хотел бы я знать, почему без этого патча код работает на x86-64, а также
на x86, будучи собранным gcc-4.5; чудеса оптимизации, наверное.


-- 
ldv

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

  reply	other threads:[~2012-12-24 14:26 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-24  9:55 [sisyphus] разнос по held packages Michael Shigorin
2012-12-24 10:09 ` Ildar Mulyukov
2012-12-24 10:22   ` Michael Shigorin
2012-12-24 10:30     ` Ildar Mulyukov
2012-12-24 10:29 ` Sergey Bolshakov
2012-12-24 10:39   ` Michael Shigorin
2012-12-24 10:54     ` Turkov Oleg
2012-12-24 11:00 ` Pavel N. Solovyov
2012-12-24 11:00 ` Pavel Vainerman
2012-12-24 11:28 ` [sisyphus] i586 rpm setversions regression Dmitry V. Levin
2012-12-24 12:05   ` Alexey Tourbin
2012-12-24 12:42     ` Gleb Fotengauer-Malinovskiy
2012-12-24 12:59       ` Alexey Tourbin
2012-12-24 14:26         ` Dmitry V. Levin [this message]
2012-12-24 16:38           ` Michael Shigorin
2012-12-24 19:22             ` Gleb Fotengauer-Malinovskiy
2012-12-25  5:49         ` Pavel N. Solovyov
2012-12-25  5:58           ` Sergey
2012-12-25  6:47             ` Pavel N. Solovyov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20121224142603.GA15446@altlinux.org \
    --to=ldv@altlinux.org \
    --cc=sisyphus@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git