[Mono-bugs] [Bug 80980][Nor] New - SIGSEGV loading invalid image

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Feb 27 17:48:05 EST 2007


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by gert.driesen at pandora.be.

http://bugzilla.ximian.com/show_bug.cgi?id=80980

--- shadow/80980	2007-02-27 17:48:05.000000000 -0500
+++ shadow/80980.tmp.1085	2007-02-27 17:48:05.000000000 -0500
@@ -0,0 +1,134 @@
+Bug#: 80980
+Product: Mono: Class Libraries
+Version: 1.2
+OS: GNU/Linux [Other]
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Sys.Drawing.
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: gert.driesen at pandora.be               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: SIGSEGV loading invalid image
+
+I accidentally executed dos2unix on a (JPG) image, and loaded the 
+(invalid) image using Image.FromFile. 
+
+This resulted in the following SIGSEGV:
+
+Stacktrace:
+
+  at (wrapper managed-to-native) 
+System.Drawing.GDIPlus.GdipLoadImageFromFile (string,intptr&) <0x00004>
+  at (wrapper managed-to-native) 
+System.Drawing.GDIPlus.GdipLoadImageFromFile (string,intptr&) <0xffffffff>
+  at System.Drawing.Image.FromFile (string,bool) [0x00026] 
+in /home/monohead/mono/mcs/class/System.Drawing/System.Drawing/Image.cs:115
+  at System.Drawing.Image.FromFile (string) [0x00000] 
+in /home/monohead/mono/mcs/class/System.Drawing/System.Drawing/Image.cs:101
+  at MainForm.ToolBar_ButtonClick 
+(object,System.Windows.Forms.ToolBarButtonClickEventArgs) <0x000a5>
+  at (wrapper delegate-invoke) 
+System.MulticastDelegate.invoke_void_object_ToolBarButtonClickEventArgs 
+(object,System.Windows.Forms.ToolBarButtonClickEventArgs) <0xffffffff>
+  at System.Windows.Forms.ToolBar.OnButtonClick 
+(System.Windows.Forms.ToolBarButtonClickEventArgs) [0x00071] 
+in /home/monohead/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms
+/ToolBar.cs:478
+  at System.Windows.Forms.ToolBar.ToolBar_MouseUp 
+(object,System.Windows.Forms.MouseEventArgs) [0x00101] 
+in /home/monohead/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms
+/ToolBar.cs:694
+  at (wrapper delegate-invoke) 
+System.MulticastDelegate.invoke_void_object_MouseEventArgs 
+(object,System.Windows.Forms.MouseEventArgs) <0xffffffff>
+  at System.Windows.Forms.Control.OnMouseUp 
+(System.Windows.Forms.MouseEventArgs) [0x0001c] 
+in /home/monohead/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms
+/Control.cs:5230
+  at System.Windows.Forms.Control.WmLButtonUp 
+(System.Windows.Forms.Message&) [0x0005c] 
+in /home/monohead/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms
+/Control.cs:4578
+  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message&) 
+[0x00144] 
+in /home/monohead/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms
+/Control.cs:4359
+  at System.Windows.Forms.ToolBar.WndProc (System.Windows.Forms.Message&) 
+[0x00000] 
+in /home/monohead/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms
+/ToolBar.cs:531
+  at ControlNativeWindow.WndProc (System.Windows.Forms.Message&) [0x00000] 
+in /home/monohead/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms
+/Control.cs:196
+  at System.Windows.Forms.NativeWindow.WndProc 
+(intptr,System.Windows.Forms.Msg,intptr,intptr) [0x0006b] 
+in /home/monohead/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms
+/NativeWindow.cs:171
+  at System.Windows.Forms.XplatUIX11.DispatchMessage 
+(System.Windows.Forms.MSG&) [0x00000] 
+in /home/monohead/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms
+/XplatUIX11.cs:2905
+  at System.Windows.Forms.XplatUI.DispatchMessage 
+(System.Windows.Forms.MSG&) [0x00000] 
+in /home/monohead/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms
+/XplatUI.cs:431
+  at System.Windows.Forms.Application.RunLoop 
+(bool,System.Windows.Forms.ApplicationContext) [0x002bb] 
+in /home/monohead/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms
+/Application.cs:654
+  at System.Windows.Forms.Application.Run (System.Windows.Forms.Form) 
+[0x00000] 
+in /home/monohead/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms
+/Application.cs:520
+  at MainForm.Main () <0x00024>
+  at (wrapper runtime-invoke) System.Object.runtime_invoke_void 
+(object,intptr,intptr,intptr) <0xffffffff>
+
+Native stacktrace:
+
+	mono [0x816976a]
+	mono [0x81537c3]
+	[0xffffe440]
+
+Debug info from gdb:
+
+Using host libthread_db library "/lib/tls/libthread_db.so.1".
+[Thread debugging using libthread_db enabled]
+[New Thread -1210652992 (LWP 16513)]
+[New Thread -1218741328 (LWP 16515)]
+[New Thread -1213039696 (LWP 16514)]
+0xffffe410 in ?? ()
+  3 Thread -1213039696 (LWP 16514)  0xffffe410 in ?? ()
+  2 Thread -1218741328 (LWP 16515)  0xffffe410 in ?? ()
+  1 Thread -1210652992 (LWP 16513)  0xffffe410 in ?? ()
+0xffffe410 in ?? ()
+
+Thread 3 (Thread -1213039696 (LWP 16514)):
+#0  0xffffe410 in ?? ()
+#1  0xb7b27458 in ?? ()
+#2  0x081f8930 in ?? ()
+#3  0x00000000 in ?? ()
+
+Thread 2 (Thread -1218741328 (LWP 16515)):
+#0  0xffffe410 in ?? ()
+#1  0xb75b7288 in ?? ()
+#2  0x00000009 in ?? ()
+#3  0x00000000 in ?? ()
+
+Thread 1 (Thread -1210652992 (LWP 16513)):
+#0  0xffffe410 in ?? ()
+#0  0xffffe410 in ?? ()
+
+I guess this should result in a managed exception, no ?
+
+I'm running Mono SVN on Gentoo Linux.
+
+If you need more info, just let me know. Sorry if I'm short on details 
+right now (spent already too much time on Mono today, if you ask my gf ;-
+)).


More information about the mono-bugs mailing list