[Mono-bugs] [Bug 60613][Maj] Changed - NullReferenceException in OracleDataReader.GetSchemaTable caused by JIT optimizations

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 25 Jun 2004 09:48:31 -0400 (EDT)


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.

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

--- shadow/60613	2004-06-24 12:50:34.000000000 -0400
+++ shadow/60613.tmp.8813	2004-06-25 09:48:31.000000000 -0400
@@ -208,6 +208,22 @@
 
 ------- Additional Comments From lupus@ximian.com  2004-06-24 12:50 -------
 Yeah, I asked because it could be something due to the sequence of
 operations.
 Anyway, GetPrecision() is compiled identically in the two logs, so I'm
 investigating GetAttributeByte() now.
+
+------- Additional Comments From lupus@ximian.com  2004-06-25 09:48 -------
+I don't see in the generated code anything which would corrupt memory.
+Without being able to run the program it's hard to debug.
+You could try to run it in gdb and set a breakpoint in GetPrecision()
+with:
+(gdb) r --break
+System.Data.OracleClient.Oci.OciHandle:GetAttributeByte ...
+When it stops try and print errorHandle with:
+(gdb) print *(int*)($ebp + 0x10)
+If it's not-null, you set a breakpoint after the first call in the
+method with:
+break *0xXXXXX
+where XXXXX is the address of the instruction after the call (use
+disas to see it with the values printed by print_method_from_ip()).
+