This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/13685] Building KDE3.2 clock applet with -march=pentium3 -O1 gives SIGSEGV
- From: "roger dot larsson at norran dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Jan 2004 23:50:44 -0000
- Subject: [Bug target/13685] Building KDE3.2 clock applet with -march=pentium3 -O1 gives SIGSEGV
- References: <20040114182833.13685.roger.larsson@norran.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From roger dot larsson at norran dot net 2004-01-14 23:50 -------
Code is not from a lib, it is generated by gcc.
=> I do not think this is a DUP of bug 10395
I did a little script to search for the problems.
# /bin/bash
# Filename: objdump_find_problematic
grep_sse ()
{
grep $1 "\(\(mov\(ap\|up\|ntp\)\|shufp\|unpck\(hp\|lp\)\|\(add\|\mul\|
div\|and\|andn\|or\|xor\|max\|min\|cmp\.\.\|sqrt\|rsqrt\|rcp\)p\)s\|
\(cvt\(ps2pi\|ss2pi\)\)\)"
}
if objdump -d $1 | grep_sse -q ; then
echo $1
objdump -d $1 | grep_sse
fi
and run my complete installation of kdecvs (-Os -march=pentium3) through it.
# find /opt/kdecvs/ -type f -perm +111 | xargs -n 1
bin/objdump_find_problematic | tee problematic.sse
Among those found where
kfiresaver3d starting it will crash at a unaligned movaps
(actual code from glibc-2.3)
Complete list, some are OK with aligned offset:
# more problematic.sse | grep "0x\|opt"
/opt/kdecvs/bin/kdm_greet
805e5ac: 0f 29 85 98 fc ff ff movaps %xmm0,0xfffffc98(%ebp)
/opt/kdecvs/bin/keuphoria.kss
804fe6e: 0f 29 45 e0 movaps %xmm0,0xffffffe0(%ebp)
80500fd: 0f 29 45 d0 movaps %xmm0,0xffffffd0(%ebp)
/opt/kdecvs/bin/kfiresaver3d
80502ac: 0f 29 85 7c ff ff ff movaps %xmm0,0xffffff7c(%ebp)
8050529: 0f 29 85 64 ff ff ff movaps %xmm0,0xffffff64(%ebp)
/opt/kdecvs/lib/libartsflow.so.1.0.0
/opt/kdecvs/lib/kde3/kdeprint_cups.so
4042d: 0f 29 45 8c movaps %xmm0,0xffffff8c(%ebp)
/opt/kdecvs/lib/kde3/kcm_clock.so
e294: 0f 29 85 20 fe ff ff movaps %xmm0,0xfffffe20(%ebp)
/opt/kdecvs/lib/kde3/libkiviopart.so
f8a94: 0f 29 45 a8 movaps %xmm0,0xffffffa8(%ebp)
f8d47: 0f 29 45 80 movaps %xmm0,0xffffff80(%ebp)
f90ad: 0f 29 85 5c ff ff ff movaps %xmm0,0xffffff5c(%ebp)
fa0ac: 0f 29 45 a8 movaps %xmm0,0xffffffa8(%ebp)
fa305: 0f 29 45 a4 movaps %xmm0,0xffffffa4(%ebp)
/opt/kdecvs/lib/kde3/libkpovmodelerpart.so.0.0.0
/opt/kdecvs/lib/libkdefx.so.4.2.0
/opt/kdecvs/lib/libnoatunarts.so
576d8: 0f 10 51 10 movups 0x10(%ecx),%xmm2
576dc: 0f c6 d2 00 shufps $0x0,%xmm2,%xmm2
576e0: 0f 10 61 14 movups 0x14(%ecx),%xmm4
576e4: 0f 10 69 24 movups 0x24(%ecx),%xmm5
57720: 0f c6 c8 b1 shufps $0xb1,%xmm0,%xmm1
57737: 0f c6 c5 24 shufps $0x24,%xmm5,%xmm0
5773b: 0f c6 e8 81 shufps $0x81,%xmm0,%xmm5
57743: 0f c6 db 39 shufps $0x39,%xmm3,%xmm3
57747: 0f c6 f6 39 shufps $0x39,%xmm6,%xmm6
57752: 0f 11 69 24 movups %xmm5,0x24(%ecx)
60ea4: 0f c6 c9 00 shufps $0x0,%xmm1,%xmm1
60ee6: 0f c6 c2 00 shufps $0x0,%xmm2,%xmm0
60ef5: 0f c6 c0 02 shufps $0x2,%xmm0,%xmm0
This is a BIG problem! (kivio, and kfiresaver3d have been verified to crash)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13685