[Mono-bugs] [Bug 76732][Cri] New - Dagagrid Malfunction after
binding Empty Dataview.
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Wed Nov 16 18:58:06 EST 2005
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 yogendrathakur at gmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=76732
--- shadow/76732 2005-11-16 18:58:06.000000000 -0500
+++ shadow/76732.tmp.18561 2005-11-16 18:58:06.000000000 -0500
@@ -0,0 +1,307 @@
+Bug#: 76732
+Product: Mono: Class Libraries
+Version: 1.1
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Critical
+Component: Sys.Web
+AssignedTo: gonzalo at ximian.com
+ReportedBy: yogendrathakur at gmail.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Dagagrid Malfunction after binding Empty Dataview.
+
+Run following Aspx page on XSP (mono 1.1.10).
+
+[SOURCE]
+========
+<HEAD>
+ <title>TestGrid</title>
+ <meta name="GENERATOR" Content="Microsoft Visual
+Studio .NET 7.1">
+ <meta name="CODE_LANGUAGE" Content="C#">
+ <meta name="vs_defaultClientScript" content="JavaScript">
+ <meta name="vs_targetSchema"
+content="http://schemas.microsoft.com/intellisense/ie5">
+ <script runat="server" language="C#">
+
+ override protected void OnInit(EventArgs e)
+ {
+
+ this.Button1.Click += new System.EventHandler
+(this.Button1_Click);
+ this.Button2.Click += new System.EventHandler
+(this.Button2_Click);
+ this.Load += new System.EventHandler
+(this.Page_Load);
+
+ base.OnInit(e);
+ }
+
+
+ private void Page_Load(object sender, System.EventArgs e)
+ {
+ if(!IsPostBack)
+ {
+ BindDisplayGrid();
+ }
+ }
+ private void BindZeroRowData()
+ {
+ displayGrid.DataSource = GetZeroRowDataSource();
+ displayGrid.DataBind();
+ }
+
+ private void BindDisplayGrid()
+ {
+ displayGrid.DataSource = GetDataSource();
+ displayGrid.DataBind();
+ }
+
+ //Creates Dummy data
+ private ICollection GetDataSource()
+ {
+ DataTable dt = new DataTable();
+
+ dt.Columns.Add(new DataColumn("Nr",typeof
+(String)));
+ dt.Columns.Add(new DataColumn("Name",typeof
+(String)));
+
+ for(int i =1 ; i <5;i++)
+ {
+ DataRow dr = dt.NewRow();
+ dr["Nr"] = i.ToString();
+ dr["Name"] = "Row " + i.ToString();
+ dt.Rows.Add(dr);
+ dr = dt.NewRow();
+ }
+
+ return dt.DefaultView;
+ }
+
+
+
+ //Creates Dummy data
+ private ICollection GetZeroRowDataSource()
+ {
+ DataTable dt = new DataTable();
+ dt.Columns.Add(new DataColumn("Nr",typeof
+(String)));
+ dt.Columns.Add(new DataColumn("Name",typeof
+(String)));
+ return dt.DefaultView;
+ }
+ private void Button1_Click(object sender,
+System.EventArgs e)
+ {
+ BindZeroRowData();
+ }
+
+ private void Button2_Click(object sender,
+System.EventArgs e)
+ {
+ BindDisplayGrid();
+ }
+ </script>
+ </HEAD>
+ <body MS_POSITIONING="FlowLayout">
+ <form id="Form1" method="post" runat="server">
+ <asp:datagrid id="displayGrid" runat="server"
+AutoGenerateColumns="False" GridLines="Horizontal"
+ CellPadding="4" BackColor="White"
+BorderWidth="3px" BorderStyle="Double" BorderColor="#336666"
+ PageSize="5">
+ <FooterStyle ForeColor="#333333"
+BackColor="White"></FooterStyle>
+ <SelectedItemStyle Font-Bold="True"
+ForeColor="White" BackColor="#339966"></SelectedItemStyle>
+ <ItemStyle ForeColor="#333333"
+BackColor="White"></ItemStyle>
+ <HeaderStyle Font-Bold="True"
+ForeColor="White" BackColor="#336666"></HeaderStyle>
+ <Columns>
+ <asp:BoundColumn DataField="Nr"
+SortExpression="Nr" ReadOnly="True" HeaderText="Nr"></asp:BoundColumn>
+ <asp:BoundColumn DataField="Name"
+HeaderText="Name"></asp:BoundColumn>
+ </Columns>
+ <PagerStyle VerticalAlign="Middle"
+NextPageText=">" PrevPageText="<" HorizontalAlign="Center"
+ ForeColor="White"
+BackColor="#336666" Mode="NumericPages"></PagerStyle>
+ </asp:datagrid>
+ <asp:Button id="Button1" runat="server"
+Text="Bind Empty"></asp:Button>
+ <asp:Button id="Button2" runat="server"
+Text="Bind Filled"></asp:Button>
+ </form>
+ </body>
+</HTML>
+
+
+1. Browse page in Browser.
+
+2. Click on "Bind Empty" button. It will display datagrid with only
+header row.
+
+3. Click on "Bind Empty" or "Bind Filled" button.
+
+4. This will crash xsp.
+
+Actual Results:
+===============
+
+=================================================================
+Got a SIGSEGV while executing native code. This usually indicates
+a fatal error in the mono runtime or one of the native libraries
+used by your application.
+=================================================================
+
+Stacktrace:
+
+in <0xffffffff> System.Web.UI.ControlCollection:Remove
+(System.Web.UI.Control)
+in <0x26> System.Web.UI.ControlCollection:Remove (System.Web.UI.Control)
+in <0x34> System.Web.UI.Control:AddedControl (System.Web.UI.Control,int)
+in <0x91> System.Web.UI.ControlCollection:Add (System.Web.UI.Control)
+in <0x229> System.Web.UI.WebControls.DataGrid:CreateControlHierarchy
+(bool)
+in <0x95> System.Web.UI.WebControls.BaseDataList:DataBind ()
+in <0x3f> ASP.TestGrid_aspx:BindZeroRowData ()
+in <0xa> ASP.TestGrid_aspx:Button1_Click (object,System.EventArgs)
+in <0x3591b6> (wrapper delegate-invoke)
+System.MulticastDelegate:invoke_void_object_EventArgs
+(object,System.EventArgs)
+in <0x66> System.Web.UI.WebControls.Button:OnClick (System.EventArgs)
+in <0x45> System.Web.UI.WebControls.Button:RaisePostBackEvent (string)
+in <0xd>
+System.Web.UI.WebControls.Button:System.Web.UI.IPostBackEventHandler.Raise
+PostBackEvent (string)
+in <0x16> System.Web.UI.Page:RaisePostBackEvent
+(System.Web.UI.IPostBackEventHandler,string)
+in <0x31> System.Web.UI.Page:RaisePostBackEvents ()
+in <0x1ee> System.Web.UI.Page:InternalProcessRequest ()
+in <0xa1> System.Web.UI.Page:ProcessRequest (System.Web.HttpContext)
+in <0x1068> <Pipeline>__1:MoveNext ()
+in <0x1f> System.Web.HttpApplication:Tick ()
+in <0x3e> System.Web.HttpApplication:Start (object)
+in <0x68>
+System.Web.HttpApplication:System.Web.IHttpAsyncHandler.BeginProcessReques
+t (System.Web.HttpContext,System.AsyncCallback,object)
+in <0x1ab> System.Web.HttpRuntime:RealProcessRequest (object)
+in <0x2c> System.Web.HttpRuntime:ProcessRequest
+(System.Web.HttpWorkerRequest)
+in <0xa> Mono.WebServer.MonoWorkerRequest:ProcessRequest ()
+in <0x43> Mono.WebServer.BaseApplicationHost:ProcessRequest
+(Mono.WebServer.MonoWorkerRequest)
+in <0x37f> Mono.WebServer.XSPApplicationHost:ProcessRequest
+(int,long,int,long,int,string,string,string,string,byte
+[],string,intptr,Mono.WebServer.SslInformations)
+in <0xfffffa6c> (wrapper remoting-invoke-with-check)
+Mono.WebServer.XSPApplicationHost:ProcessRequest
+(int,long,int,long,int,string,string,string,string,byte
+[],string,intptr,Mono.WebServer.SslInformations)
+in <0xfffee783> (wrapper xdomain-dispatch)
+Mono.WebServer.XSPApplicationHost:ProcessRequest (object,byte[]&,byte[]
+&,int,long,int,long,int,string,string,string,string,byte[],string)
+in <0xfffffe85> (wrapper xdomain-invoke)
+Mono.WebServer.XSPApplicationHost:ProcessRequest
+(int,long,int,long,int,string,string,string,string,byte
+[],string,intptr,Mono.WebServer.SslInformations)
+in <0x21976b> (wrapper remoting-invoke-with-check)
+Mono.WebServer.XSPApplicationHost:ProcessRequest
+(int,long,int,long,int,string,string,string,string,byte
+[],string,intptr,Mono.WebServer.SslInformations)
+in <0x563> Mono.WebServer.XSPWorker:InnerRun (object)
+in <0x22> Mono.WebServer.XSPWorker:Run (object)
+in <0xffffff95> (wrapper delegate-invoke)
+System.MulticastDelegate:invoke_void_object (object)
+in <0x7ad806f> (wrapper runtime-invoke)
+System.Object:runtime_invoke_void_object (object,intptr,intptr,intptr)
+
+Native stacktrace:
+
+ /opt/mono-1.1.10/bin/mono(mono_handle_native_sigsegv+0xba)
+[0x81471da]
+ /opt/mono-1.1.10/bin/mono [0x81354cf]
+ /lib/tls/libpthread.so.0 [0x4068a0]
+ /lib/tls/libc.so.6(__libc_realloc+0xfb) [0x17970b]
+ /usr/lib/libglib-2.0.so.0(g_realloc+0x2a) [0xdb6c4c]
+ /opt/mono-1.1.10/bin/mono(mono_compile_create_var+0xcb)
+[0x8119d4b]
+ /opt/mono-1.1.10/bin/mono [0x8136b3d]
+ /opt/mono-1.1.10/bin/mono [0x811b9ed]
+ /opt/mono-1.1.10/bin/mono [0x8125517]
+ /opt/mono-1.1.10/bin/mono [0x81340ce]
+ /opt/mono-1.1.10/bin/mono [0x8134d7b]
+ /opt/mono-1.1.10/bin/mono [0x8135087]
+ /opt/mono-1.1.10/bin/mono [0x81350ba]
+ /opt/mono-1.1.10/bin/mono(mono_compile_method+0x3a) [0x80d2ada]
+ /opt/mono-1.1.10/bin/mono(mono_magic_trampoline+0x1a) [0x81484ca]
+ [0xf4e032]
+ [0x70b0dd]
+ [0x70af42]
+ [0x7b0dc2]
+ [0x7b0906]
+ [0x7d1718]
+ [0x7d16c3]
+ [0x47852a]
+ [0x7d169f]
+ [0x7d1366]
+ [0x7d1306]
+ [0x7d12ef]
+ [0x7d11da]
+ [0x70f657]
+ [0x70981a]
+ [0x477069]
+ [0x475040]
+ [0x46d44f]
+ [0x46d329]
+ [0x467864]
+ [0x467395]
+ [0x467353]
+ [0x4670bc]
+ [0x457658]
+ [0x456a79]
+ [0x45637d]
+ [0x444784]
+ [0x44448e]
+ [0x65dafc]
+ [0x65d42b]
+ [0x65d3e4]
+ [0x65d33e]
+ /opt/mono-1.1.10/bin/mono [0x8135380]
+ /opt/mono-1.1.10/bin/mono(mono_runtime_invoke+0x27) [0x80d42b7]
+ /opt/mono-1.1.10/bin/mono(mono_runtime_invoke_array+0x1b2)
+[0x80d5432]
+ /opt/mono-1.1.10/bin/mono(mono_message_invoke+0xc5) [0x80d6e95]
+ /opt/mono-1.1.10/bin/mono [0x80a3abf]
+ /opt/mono-1.1.10/bin/mono [0x80a42e9]
+ /opt/mono-1.1.10/bin/mono [0x8098d42]
+ /opt/mono-1.1.10/bin/mono [0x8102db7]
+ /opt/mono-1.1.10/bin/mono [0x810d835]
+ /lib/tls/libpthread.so.0 [0x4001d5]
+ /lib/tls/libc.so.6(__clone+0x5a) [0x1db2da]
+Aborted
+
+
+Expected Results:
+=================
+Should not crash xsp.
+
+
+How often does this happen?
+Everytime.
+
+Additional Information:
+=======================
+Previously instead of Crash DataGrid was displayed with HeaderRow
+Repeated.
+I reinstalled OS and reinstalled mono 1.1.10 and it displays above crash
+message consistently.
More information about the mono-bugs
mailing list