Gentoo Archives: gentoo-alt

From: Fabian Groffen <grobian@g.o>
To: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] scanelf on sparc-solaris-5.10
Date: Fri, 27 Nov 2009 09:07:44
Message-Id: 20091127090722.GU19586@gentoo.org
In Reply to: [gentoo-alt] scanelf on sparc-solaris-5.10 by Markus Duft
1 On 27-11-2009 09:58:41 +0100, Markus Duft wrote:
2 > Hey :)
3 >
4 > just asking before i open a bug: i'm having a reproducible scanelf crash
5 > while building perl:
6 >
7 > (gdb) r -v -qyRAF '%T %p'
8 > var/tmp/portage/dev-lang/perl-5.8.8-r6/work/perl-5.8.8/ext/SDBM_File/sdbm/libsdbm.a
9 > Starting program: /tools/gentoo/mduft/toolsbase-2010.0/usr/bin/scanelf
10 > -v -qyRAF '%T %p'
11 [snip]
12 >
13 > seems like either scanelf has a bug, or that perl archive is damaged...?
14 > from what i see in gdb, is the buffer contents what it is expected to be
15 > ("\177ELF\001\002\001")? i think it's off by one, shouldn't ELF be the
16 > first bytes (i don't know ELF that well, just PE/COFF, so i might be
17 > plain wrong here ;))?
18
19 You probably want to tell scanelf to scan an archive (-A), but
20 regardless, scanelf shouldn't crash, so I'd say, file a bug. I had a
21 similar issue with scanmacho and Java byte-code files a while ago.
22
23
24 --
25 Fabian Groffen
26 Gentoo on a different level