[Mono-bugs] [Bug 72605][Wis] Changed - NullReferenceException, GdiPlus and rsh problem

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 16 Feb 2005 12:32:24 -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 lupus@ximian.com.


--- shadow/72605	2005-02-16 10:42:25.000000000 -0500
+++ shadow/72605.tmp.12423	2005-02-16 12:32:24.000000000 -0500
@@ -527,6 +527,26 @@
 Does your rsh have some sort of ulimit attached? Does the problem go 
 away if you call Dipsose?
 Can you try a similar test case that just malloc's a similar amount 
 of memory to what you are doing?
+------- Additional Comments From lupus@ximian.com  2005-02-16 12:32 -------
+This is a bug in libgdiplus, it doesn't check
+that malloc/GdipAlloc returns NULL.
+ulimit -v 200000
+mono gdi-segv.exe 64
+It crashes at:
+Program received signal SIGSEGV, Segmentation fault.
+[Switching to Thread 1272462256 (LWP 2147)]
+0x41233241 in memset () from /lib/tls/libc.so.6
+(gdb) bt
+#0  0x41233241 in memset () from /lib/tls/libc.so.6
+#1  0x4086a502 in GdipCreateBitmapFromScan0 (width=1000, height=1000,
+stride=4000, format=2498570, 
+    scan0=0x0, bitmap=0x4bd839b8) at bitmap.c:177
+libgdiplus needs to be changed to deal gracefully with malloc
+returning NULL.