ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] mutt1.5-3:1.5.18-alt3: i586 rebuild failed [1]
Date: Mon, 10 Nov 2008 00:15:27 +0300
Message-ID: <20081109211527.GB16282@wo.int.altlinux.org> (raw)
In-Reply-To: <20081109135432.GS27961@altlinux.org>

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

On Sun, Nov 09, 2008 at 04:54:32PM +0300, Alexey I. Froloff wrote:
> * Dmitry V. Levin <ldv@> [081109 16:48]:
> > > Program received signal SIGINT, Interrupt.
> > > memcpy (__dest=0xbfd62df4, __src=0x7, __len=3218488892) at /usr/include/bits/string3.h:52
> > > 52        return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
> > __len=3218488892?  Не многовато ли?
> Да и __src=0x7 тоже не должен просто так проскакивать.  Это те
> параметры, которые передаются в md5_process_bytes().  Я не знаю
> как это отлаживать :-(

В данном случае проще всего сравнить вывод gcc -E у обычного string.h и
этого md5.c в окрестности определения memcpy.

Нижеприведённое изменение исправляет mutt_md5.  Очевидно, в файле md5.h
сидит гадость (отключение __attribute__), которая искажает string.h;
стоит пожаловаться upstream.
В gnulib'овском md5.h отключения __attribute__ уже нет.
Имеет смысл попробовать обновить md5.c _и_ md5.h из gnulib.

--- md5.c
+++ md5.c
@@ -24,11 +24,11 @@
 # include <config.h>
 #endif
 
-#include "md5.h"
-
 #include <stddef.h>
 #include <string.h>
 
+#include "md5.h"
+
 #if USE_UNLOCKED_IO
 # include "unlocked-io.h"
 #endif


-- 
ldv

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

  reply	other threads:[~2008-11-09 21:15 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-08 20:31 ` Alexey I. Froloff
2008-11-08 20:41   ` Dmitry V. Levin
2008-11-08 22:26     ` Alexey I. Froloff
2008-11-08 22:33       ` Dmitry V. Levin
2008-11-09 11:31         ` Alexey I. Froloff
2008-11-09 12:09           ` Dmitry V. Levin
2008-11-09 13:04             ` Alexey I. Froloff
2008-11-09 13:38               ` Dmitry V. Levin
2008-11-09 13:54                 ` Alexey I. Froloff
2008-11-09 21:15                   ` Dmitry V. Levin [this message]
2008-11-09 22:27                     ` Alexey I. Froloff

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=20081109211527.GB16282@wo.int.altlinux.org \
    --to=ldv@altlinux.org \
    --cc=devel@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 Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/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 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

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


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