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: Sun, 9 Nov 2008 16:38:22 +0300
Message-ID: <20081109133822.GB9408@wo.int.altlinux.org> (raw)
In-Reply-To: <20081109130411.GR27961@altlinux.org>
[-- Attachment #1: Type: text/plain, Size: 2499 bytes --]
On Sun, Nov 09, 2008 at 04:04:11PM +0300, Alexey I. Froloff wrote:
> * Dmitry V. Levin <ldv@> [081109 15:10]:
> > Я пока не улавливаю суть происходящего с mutt_md5.
> Код (md5_process_bytes):
>
> /* Move remaining bytes in internal buffer. */
> if (len > 0)
> {
> size_t left_over = ctx->buflen;
>
> memcpy (&((char *) ctx->buffer)[left_over], buffer, len);
> left_over += len;
> if (left_over >= 64)
> {
> md5_process_block (ctx->buffer, 64, ctx);
> left_over -= 64;
> memcpy (ctx->buffer, &ctx->buffer[16], left_over);
> }
> ctx->buflen = left_over;
> }
>
> Соответственно затык происходит на первом memcpy.
>
> (gdb) run
> Starting program: /home/raorn/src/gitsnaps/packages/mutt1.5/work/mutt-1.5.18/mutt_md5
> foobar
>
> Breakpoint 1, md5_process_bytes (buffer=0xbfd62df4, len=7, ctx=0xbfd63e3c) at md5.c:223
> 223 if (ctx->buflen != 0)
> (gdb) nexti
> 220 {
> (gdb)
> 0x080497ac 220 {
> (gdb)
> 0x080497af 220 {
> (gdb)
> 0x080497b2 220 {
> (gdb)
> 223 if (ctx->buflen != 0)
> (gdb)
> 0x080497b8 223 if (ctx->buflen != 0)
> (gdb)
> 0x080497ba 223 if (ctx->buflen != 0)
> (gdb)
> 247 if (len >= 64)
> (gdb)
> 0x080497bf 247 if (len >= 64)
> (gdb)
> 269 if (len > 0)
> (gdb)
> 0x080497c3 269 if (len > 0)
> (gdb)
> 271 size_t left_over = ctx->buflen;
> (gdb)
> 52 return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
> (gdb)
> 271 size_t left_over = ctx->buflen;
> (gdb)
> 52 return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
> (gdb)
> 0x080497e5 52 return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
> (gdb)
> 0x080497e9 52 return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
> (gdb)
> 274 left_over += len;
> (gdb)
> 52 return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
> (gdb)
> 0x080497f2 52 return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
> (gdb)
>
> ^C
> 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? Не многовато ли?
--
ldv
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
next prev parent reply other threads:[~2008-11-09 13:38 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 [this message]
2008-11-09 13:54 ` Alexey I. Froloff
2008-11-09 21:15 ` Dmitry V. Levin
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=20081109133822.GB9408@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