From: Alexey Tourbin <at@altlinux.ru>
To: ALT Devel discussion list <devel@altlinux.org>
Subject: [devel] Re: RPM::Database
Date: Wed, 19 Oct 2005 21:46:29 +0400
Message-ID: <20051019174628.GS7934@solemn.turbinal.org> (raw)
In-Reply-To: <20051019171724.GA14948@nomad.office.altlinux.org>
[-- Attachment #1: Type: text/plain, Size: 1208 bytes --]
On Wed, Oct 19, 2005 at 09:17:25PM +0400, Dmitry V. Levin wrote:
> alt51$ ./rttest-alt52
> ./rttest-alt52: Symbol `rpmTagTable' has different size in shared object, consider re-linking
> rpmTagTableSize = 125
> rpmTagTable = 0x16b8e4
> Segmentation fault
^^^
В этой ситуации вот что происходит:
#0 0x400d73ef in strlen () from /usr/lib/debug/libc.so.6
#1 0x400ae405 in _IO_vfprintf (s=0x4017c7e0,
format=0x544d5052 <Address 0x544d5052 out of bounds>, ap=0xbffff1dc "ы\204\004\bфї\027@@ў")
at vfprintf.c:1468
#2 0x400b496f in *__GI_fprintf (stream=0x544d5052,
format=0x544d5052 <Address 0x544d5052 out of bounds>) at fprintf.c:32
#3 0x080484d4 in main () at test.c:6
(gdb) frame 3
#3 0x080484d4 in main () at test.c:6
6 fprintf(stdout, "tag0: %s$\n", tag0);
(gdb) p tag0
$1 = 0x544d5052 <Address 0x544d5052 out of bounds>
(gdb) p rpmTagTable
$2 = (const struct headerTagTableEntry_s *) 0x4006e8e4
(gdb) p rpmTagTable[0]
$3 = {name = 0x544d5052 <Address 0x544d5052 out of bounds>, val = 1214203713}
Такое впечатление, что происходит неправильный dereferencing, то есть
rpmTagTable в качестве указателя уже смотрит непойми куда. Я озадачен. :)
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2005-10-19 17:46 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-18 23:30 [devel] RPM::Database Alexey Tourbin
2005-10-19 9:05 ` Dmitry V. Levin
2005-10-19 13:01 ` [devel] RPM::Database Alexey Tourbin
2005-10-19 13:29 ` Dmitry V. Levin
2005-10-19 14:00 ` Alexey Tourbin
2005-10-19 13:56 ` Alexey Tourbin
2005-10-19 14:06 ` Dmitry V. Levin
2005-10-19 14:18 ` Alexey Tourbin
2005-10-19 15:50 ` Alexey Tourbin
2005-10-19 17:17 ` Dmitry V. Levin
2005-10-19 17:23 ` Alexey Tourbin
2005-10-19 17:43 ` Dmitry V. Levin
2005-10-19 17:46 ` Alexey Tourbin [this message]
2005-10-19 18:00 ` Alexey Tourbin
2005-10-19 18:04 ` Dmitry V. Levin
2005-10-19 19:07 ` Alexey Tourbin
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=20051019174628.GS7934@solemn.turbinal.org \
--to=at@altlinux.ru \
--cc=devel@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