PDA

View Full Version : Problem with valgrind



momesana
9th November 2006, 00:00
When I run valgrind on Qt apps, it always reports this error and exits:

unhandled opc_aux = 0x 1
first_opcode == 0xDD
vex x86->IR: unhandled instruction bytes: 0xDD 0xC 0x24 0x8B
==19005== valgrind: Unrecognised instruction at address 0x479851D.
==19005== Your program just tried to execute an instruction that Valgrind
==19005== did not recognise. There are two possible reasons for this.
==19005== 1. Your program has a bug and erroneously jumped to a non-code
==19005== location. If you are running Memcheck and you just saw a
==19005== warning about a bad jump, it's probably your program's fault.
==19005== 2. The instruction is legitimate but Valgrind doesn't handle it,
==19005== i.e. it's Valgrind's fault. If you think this is the case or
==19005== you are not sure, please let us know and we'll try to fix it.
==19005== Either way, Valgrind will now raise a SIGILL signal which will
==19005== probably kill your program.
==19005==
==19005== Process terminating with default action of signal 4 (SIGILL)
==19005== Illegal opcode at address 0x479851D
==19005== at 0x479851D: (within /usr/lib/libfontconfig.so.1.0.4)
==19005== by 0x3801707F: (within /usr/lib/valgrind/x86-linux/memcheck)
==19005== by 0x1000: ???

Any clue?

Thanx in advance
momesana

e8johan
9th November 2006, 06:38
Are you running valgrind as x86 on an AMD64 system?

momesana
9th November 2006, 11:24
Are you running valgrind as x86 on an AMD64 system?

I am running it on an x86er System.

Here is some more information

Portage 2.1.1-r1 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r3, 2.6.16-gentoo-r13 i686)
================================================== ===============
System uname: 2.6.16-gentoo-r13 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System version 1.12.6
Last Sync: Wed, 08 Nov 2006 00:00:01 +0000
ccache version 2.3 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python: 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache: 2.3
dev-util/confcache: [Not Present]
sys-apps/sandbox: 1.2.17
sys-devel/autoconf: 2.13, 2.60
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils: 2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool: 1.5.22
virtual/os-headers: 2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/NX/etc /usr/NX/home /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"

Any Ideas?

Thanx in advance
momesana