[Mono-bugs] [Bug 77443][Wis] New - gmcs miscompiles code?

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Feb 2 05:14:45 EST 2006


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 alp at atoker.com.

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

--- shadow/77443	2006-02-02 05:14:45.000000000 -0500
+++ shadow/77443.tmp.18677	2006-02-02 05:14:45.000000000 -0500
@@ -0,0 +1,54 @@
+Bug#: 77443
+Product: Mono: Compilers
+Version: 1.0
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: alp at atoker.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: gmcs miscompiles code?
+
+Some update in SVN in the last 24 hours broke code compiled by gmcs:
+
+alp at rover:~/Projects/mono-svn/xnb$ mono testsimple.exe
+fd: 7
+
+Unhandled Exception: System.NullReferenceException: Object reference not
+set to an instance of an object
+in <0x00022> Xnb.XMarshal:Do[QueryExtensionRequestData]
+(Xnb.Protocol.XProto.QueryExtensionRequestData data)
+in <0x00028>
+Xnb.Protocol.XProto.QueryExtensionRequest+<GetEnumerator>__184:MoveNext ()
+in <0x000b6> Xnb.XWriter:Send (IMessagePart message)
+in <0x00046> Xnb.XProto:QueryExtension (UInt16 nameLen, System.String name)
+in <0x0009b> Xnb.Extension:Init (Xnb.Connection connection)
+in <0x0008b> Driver:Main ()
+
+The code in question is in mono svn module xnb:
+
+$ make
+$ mono testsimple.exe
+
+If you don't have the Xnb libraries installed (they are p/invoked), make
+this change to reproduce the bug:
+
+--- Connection.cs       (revision 56437)
++++ Connection.cs       (working copy)
+@@ -26,8 +26,8 @@
+                {
+                        //ParseDisplay ();
+                        int fd;
+-                       //fd = Open (host, display);
+-                       fd = OpenXcb (host, display);
++                       fd = Open (host, display);
++                       //fd = OpenXcb (host, display);
+                        Console.Error.WriteLine ("fd: " + fd);
+                        //ConnectToFD (fd, null);


More information about the mono-bugs mailing list