[gst-devel] Re: valgrind & gstreamer

Joshua N Pritikin vishnu at pobox.com
Mon Jan 20 18:23:01 CET 2003


On Mon, Jan 20, 2003 at 08:59:44PM +0000, Nicholas Nethercote wrote:
> On Sun, 5 Jan 2003, Joshua N Pritikin wrote:
> > i'm trying to run gstreamer in valgrind.  i get:
> > > disInstr: unhandled 2-byte opcode 0xC7
> > > This _might_ be the result of executing an MMX, SSE, SSE2 or 3DNow!
> > > instruction.  Valgrind does not currently support such instructions.  Sorry.
> > > Illegal instruction
> >
> > Erik Walthinsen suggested:
> > > Somewhere something is doing an 'emms' (0x0f 0xc7) anyway.  Can valgrind
> > > and gdb cooperate and give you a backtrace when that happens?
> >
> > Is this possible?
> 
> I don't think so;  Valgrind does too many nasty low-level complicated
> things to co-operate with GDB.  Sorry.

Actually, it was trivial.  i just hacked valgrind to generate an invalid
opcode but still continue as if nothing was wrong.  When it hit the
invalid opcode during execution then it panicked and produced an accurate
stack backtrace.

-- 
Victory to the Divine Mother!!         after all,
  http://sahajayoga.org                  http://why-compete.org




More information about the gstreamer-devel mailing list