Bug 320224 (MONO77439) - Unmanaged code: UNKNOWN OPCODE: 51
Summary: Unmanaged code: UNKNOWN OPCODE: 51
Status: RESOLVED FIXED
Alias: MONO77439
Product: Mono: Debugger
Classification: Mono
Component: backend (show other bugs)
Version: 1.1
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Martin Baulig
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-01 21:32 UTC by Miguel de Icaza
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 19:47:00 UTC


---- Reported by miguel@ximian.com 2006-02-01 14:32:41 MST ----

While trying to evaluate an unmanaged expression, I got this:

(mdb) p src
UNKNOWN OPCODE: 51
ERROR: Cannot evaluate expression `src'

To reproduce you need a recent libgdiplus, mono and mcs, then run this game:

http://www.valil.com/netcf/GemSwap.zip

It takes a while, you must drag a lot of gems, and its not obvious how the
gems work (to me) but eventually you will get a crash, then I tried to
evaluate the expression:

Process @4 received signal 11 at #0: 0x414587b6 in
_cairo_pixman_composite_src_8888x8888mmx+0xc6 at
/cvs/libgdiplus/cairo/pixman/src/fbmmx.c:1386.
1386        s = *src++;
(mdb) up
ERROR: No such frame: 1
(mdb) where
    #0: 0x414587b6 in _cairo_pixman_composite_src_8888x8888mmx+0xc6 at
/cvs/libgdiplus/cairo/pixman/src/fbmmx.c:1386
(*) #1: 0x41443adb in _cairo_pixman_composite+0x4ab at
/cvs/libgdiplus/cairo/pixman/src/fbpict.c:1899
    #2: 0x41428e86 in _cairo_image_surface_composite+0x1f6 at
/cvs/libgdiplus/cairo/src/cairo-image-surface.c:608
    #3: 0x4142df21 in _cairo_surface_composite+0x71 at
/cvs/libgdiplus/cairo/src/cairo-surface.c:847
    #4: 0x41426916 in _cairo_surface_clip_and_composite_trapezoids+0x266 at
/cvs/libgdiplus/cairo/src/cairo-gstate.c:1336
    #5: 0x41426bf8 in _cairo_gstate_clip_and_composite_trapezoids+0x48 at
/cvs/libgdiplus/cairo/src/cairo-gstate.c:1551
    #6: 0x41426eae in _cairo_gstate_fill+0xae at
/cvs/libgdiplus/cairo/src/cairo-gstate.c:1592
    #7: 0x41420ba3 in cairo_fill_preserve+0x23 at
/cvs/libgdiplus/cairo/src/cairo.c:1599
    #8: 0x41420bd0 in cairo_fill+0x10 at /cvs/libgdiplus/cairo/src/cairo.c:1578
    #9: 0x413fa69c in GdipFillRectangle+0x9c at
/cvs/libgdiplus/src/graphics.c:1590
    #10: 0x413fa72b in GdipFillRectangleI+0x3b at
/cvs/libgdiplus/src/graphics.c:1600
    #11: 0x41d2ffd4 in <(wrapper managed-to-native)
System.Drawing.GDIPlus:GdipFillRectangleI
(intptr,intptr,int,int,int,int)>+0x3c at 11
    #12: 0x41d2ff37 in
System.Drawing.Graphics.FillRectangle(System.Drawing.Brush,System.Int32,System.Int32,System.Int32,System.Int32)+0x4f
at /home/cvs/mcs/class/System.Drawing/System.Drawing/Graphics.cs:1591
    #13: 0x41d2fe87 in
System.Drawing.Graphics.FillRectangle(System.Drawing.Brush,System.Drawing.Rectangle)+0x67
at /home/cvs/mcs/class/System.Drawing/System.Drawing/Graphics.cs:1583
    #14: 0x41d2fddf in <(wrapper remoting-invoke-with-check)
System.Drawing.Graphics:FillRectangle
(System.Drawing.Brush,System.Drawing.Rectangle)>+0xcf at 27
    #15: 0x41d7d11e in <GemSwap.Board:DrawSwap
(int,int,int,int,int,int,int)>+0x36 at 7
    #16: 0x41d7ce70 in <GemSwap.BoardDisplay:DoSwap ()>+0x80 at 24
    #17: 0x41d7cd98 in <GemSwap.BoardDisplay:InitSwap ()>+0x1b8 at 77
    #18: 0x41d7c07d in <GemSwap.BoardDisplay:Select (int)>+0x155 at 48
    #19: 0x41d7c75f in <GemSwap.BoardDisplay:handlePointerUp
(object,System.Windows.Forms.MouseEventArgs)>+0x87 at 24
    #20: 0x41d7be5a in <(wrapper delegate-invoke)
System.MulticastDelegate:invoke_void_object_MouseEventArgs
(object,System.Windows.Forms.MouseEventArgs)>+0x42 at 37
    #21: 0x41d7c6cc in
System.Windows.Forms.Control.OnMouseUp(System.Windows.Forms.MouseEventArgs)+0x24
at
/home/cvs/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:4138
    #22: 0x41d726e5 in
System.Windows.Forms.Control.WndProc(System.Windows.Forms.Message&)+0x6e5
at
/home/cvs/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:3701
    #23: 0x41d2cc6d in
System.Windows.Forms.Control/ControlNativeWindow.WndProc(System.Windows.Forms.Message&)+0x15
at
/home/cvs/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:157
    #24: 0x41d2caf4 in
System.Windows.Forms.NativeWindow.WndProc(System.IntPtr,System.Windows.Forms.Msg,System.IntPtr,System.IntPtr)+0x14c
at
/home/cvs/mcs/class/Managed.Windows.Forms/System.Windows.Forms/NativeWindow.cs:145
    #25: 0x41d2c997 in
System.Windows.Forms.XplatUIX11.DispatchMessage(System.Windows.Forms.MSG&)+0x17
at
/home/cvs/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs:2231
    #26: 0x41d2c971 in
System.Windows.Forms.XplatUI.DispatchMessage(System.Windows.Forms.MSG&)+0x29
at
/home/cvs/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUI.cs:384
    #27: 0x41d268a4 in
System.Windows.Forms.Application.RunLoop(System.Boolean,System.Windows.Forms.ApplicationContext)+0x6a4
at
/home/cvs/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:394
    #28: 0x41d260a7 in
System.Windows.Forms.Application.Run(System.Windows.Forms.Form)+0x2f at
/home/cvs/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:291
    #29: 0x40c5b75a in <GemSwap.MainForm:Main ()>+0x2a at 2
(mdb) up
#2: 0x41428e86 in _cairo_image_surface_composite+0x1f6 at
/cvs/libgdiplus/cairo/src/cairo-image-surface.c:608
 608    pixman_composite (_pixman_operator (operator),
(mdb) down
#1: 0x41443adb in _cairo_pixman_composite+0x4ab at
/cvs/libgdiplus/cairo/pixman/src/fbpict.c:1899
1899            x_msk += w_this;
(mdb)
#0: 0x414587b6 in _cairo_pixman_composite_src_8888x8888mmx+0xc6 at
/cvs/libgdiplus/cairo/pixman/src/fbmmx.c:1386
1386        s = *src++;
(mdb) p src
UNKNOWN OPCODE: 51
ERROR: Cannot evaluate expression `src'



---- Additional Comments From martin@ximian.com 2006-05-30 09:08:29 MST ----

This should now be fixed in SVN.


Unknown operating system unknown. Setting to default OS "Other".