[Mono-bugs] [Bug 73258][Nor] Changed - Segmentation violation in multithreaded mode

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sat, 19 Mar 2005 08:55:04 -0500 (EST)


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 yury@serdyuk.botik.ru.

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

--- shadow/73258	2005-03-18 18:50:49.000000000 -0500
+++ shadow/73258.tmp.7902	2005-03-19 08:55:04.000000000 -0500
@@ -544,6 +544,73 @@
 I kept this running on a loop:
 
 while true; do mono th.exe  100; echo hola; done
 
 For 10 minutes and could not get the crash;  I think this bug is gone
 from 1.1.5
+
+------- Additional Comments From Yury@serdyuk.botik.ru  2005-03-19 08:55 -------
+It seems you are right.
+
+This is the log for mono-1.1.4 :
+[serdyuk@itk-104 tmp]$ which mono
+~/m-1.1.4/bin/mono
+[serdyuk@itk-104 tmp]$ mcs /r:System.Drawing TestGDIPlus.cs
+TestGDIPlus.cs(21) warning CS0219: The variable 'bmp' is assigned but
+its value is never used
+Compilation succeeded - 1 warning(s)
+[serdyuk@itk-104 tmp]$ mono TestGDIPlus.exe 8
+[serdyuk@itk-104 tmp]$ mono TestGDIPlus.exe 8
+
+Unhandled Exception: System.NullReferenceException: Object reference
+not set to an instance of an object
+in (unmanaged) (nil)
+in <0x00004> (wrapper managed-to-native)
+System.Drawing.GDIPlus:GdipCreateBitmapFromScan0
+(int,int,int,System.Drawing.Imaging.PixelFormat,intptr,intptr&)
+in <0x0002e> System.Drawing.Bitmap:.ctor
+(int,int,System.Drawing.Imaging.PixelFormat)
+in <0x0003f> (wrapper remoting-invoke-with-check)
+System.Drawing.Bitmap:.ctor (int,int,System.Drawing.Imaging.PixelFormat)
+in <0x0002d> TestGDIPlus:Run ()
+in <0x00041> (wrapper delegate-invoke)
+System.MulticastDelegate:invoke_void ()
+
+But this is the log for mono svn revision 41784 
+( in both cases libgdiplus svn revision 41827 was used ) :
+
+[serdyuk@itk-104 tmp]$ which mono
+~/mono-svn-41784/bin/mono
+[serdyuk@itk-104 tmp]$ echo $LD_LIBRARY_PATH
+/home/serdyuk/gdiplus-svn-41827/lib:/home/serdyuk/gdiplus-svn-41827/lib:/usr/X11R6/lib:/usr/X11R6/lib/modules
+[serdyuk@itk-104 tmp]$ mcs /r:System.Drawing TestGDIPlus.cs
+TestGDIPlus.cs(21) warning CS0219: The variable 'bmp' is assigned but
+its value is never used
+Compilation succeeded - 1 warning(s)
+[serdyuk@itk-104 tmp]$ mono TestGDIPlus.exe 8
+[serdyuk@itk-104 tmp]$ mono TestGDIPlus.exe 8
+[serdyuk@itk-104 tmp]$ mono TestGDIPlus.exe 8
+[serdyuk@itk-104 tmp]$ mono TestGDIPlus.exe 8
+[serdyuk@itk-104 tmp]$ mono TestGDIPlus.exe 8
+[serdyuk@itk-104 tmp]$ mono TestGDIPlus.exe 8
+[serdyuk@itk-104 tmp]$ mono TestGDIPlus.exe 8
+[serdyuk@itk-104 tmp]$ mono TestGDIPlus.exe 8
+[serdyuk@itk-104 tmp]$ mono TestGDIPlus.exe 8
+[serdyuk@itk-104 tmp]$ mono TestGDIPlus.exe 8
+[serdyuk@itk-104 tmp]$ mono TestGDIPlus.exe 8
+[serdyuk@itk-104 tmp]$ mono TestGDIPlus.exe 8
+[serdyuk@itk-104 tmp]$ mono TestGDIPlus.exe 8
+[serdyuk@itk-104 tmp]$ mono TestGDIPlus.exe 8
+[serdyuk@itk-104 tmp]$ mono TestGDIPlus.exe 8
+[serdyuk@itk-104 tmp]$ mono TestGDIPlus.exe 8
+[serdyuk@itk-104 tmp]$ mono TestGDIPlus.exe 8
+[serdyuk@itk-104 tmp]$ mono TestGDIPlus.exe 8
+[serdyuk@itk-104 tmp]$ mono TestGDIPlus.exe 8
+[serdyuk@itk-104 tmp]$ mono TestGDIPlus.exe 8
+[serdyuk@itk-104 tmp]$ mono TestGDIPlus.exe 8
+[serdyuk@itk-104 tmp]$ mono TestGDIPlus.exe 8
+[serdyuk@itk-104 tmp]$ mono TestGDIPlus.exe 8
+[serdyuk@itk-104 tmp]$ mono TestGDIPlus.exe 8
+[serdyuk@itk-104 tmp]$ mono TestGDIPlus.exe 8
+
+Thanks.
+