[Mono-bugs] [Bug 77153][Nor] Changed - mdb can not examine instance variables.

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Apr 18 13:55:09 EDT 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 miguel at ximian.com.

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

--- shadow/77153	2006-04-18 13:05:56.000000000 -0400
+++ shadow/77153.tmp.12236	2006-04-18 13:55:09.000000000 -0400
@@ -1,23 +1,23 @@
 Bug#: 77153
 Product: Mono: Debugger
 Version: unspecified
 OS: unknown
 OS Details: Debian Sid - i686
-Status: RESOLVED   
-Resolution: INVALID
+Status: REOPENED   
+Resolution: 
 Severity: Unknown
 Priority: Normal
 Component: backend
 AssignedTo: martin at ximian.com                            
 ReportedBy: kratz at omnicore.com               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
 URL: 
 Cc: 
-Summary: mdb fails on simple program referencing log4net.dll
+Summary: mdb can not examine instance variables.
 
 Debugger version 0.11. (This version is currently not selectable in 
 Bugzilla) running on Mono 1.1.11.
 
 Please fill in this template when reporting a bug, unless you know what you
 are doing.
@@ -77,6 +77,98 @@
 
 ------- Additional Comments From kratz at omnicore.com  2006-01-04 08:42 -------
 The testcase is a .zip archive.
 
 ------- Additional Comments From martin at ximian.com  2006-04-18 13:05 -------
 Old.
+
+------- Additional Comments From miguel at ximian.com  2006-04-18 13:55 -------
+I am reopening this bug, because while I tried to confirm this bug, I
+found a new problem with the attached sources, which I built like this:
+
+mcs -debug Program.cs -r:log4net.dll
+
+Notice that when it crashes it is not possible to examine the value of
+the 'buckets' instance variable, the debugger reports: 
+
+ERROR: Cannot evaluate expression `buckets'
+
+
+mdb Program.exe
+(mdb) run
+Starting program: Program.exe
+Could not find file "/home/miguel/downloads/test/log4net.dll.mdb".
+Could not find file "/mono/lib/mono/1.0/System.dll.mdb".
+Thread @1 received signal 11 at #0: 0x411592a5 in
+System.Xml.NameTable.AddEntry(System.String,System.Int32)+0x7d at
+/home/cvs/mcs/class/System.XML/System.Xml/NameTable.cs:161.
+ 161                    buckets [bucket] = new Entry (str, hash,
+buckets [bucket]);
+(mdb) where
+(*) #0: 0x411592a5 in
+System.Xml.NameTable.AddEntry(System.String,System.Int32)+0x7d at
+/home/cvs/mcs/class/System.XML/System.Xml/NameTable.cs:161
+(mdb) p buckets
+ERROR: Cannot evaluate expression `buckets'
+(mdb) p hash
+(System.Int32) 641750366
+(mdb) p str
+(System.String) "system.net"
+(mdb) p buckets
+ERROR: Cannot evaluate expression `buckets'
+(mdb) list
+ 160                    int bucket = hash % count;
+ 161                    buckets [bucket] = new Entry (str, hash,
+buckets [bucket]);
+ 162
+ 163                    // Grow whenever we double in size
+ 164                    if (size++ == count) {
+ 165                            count <<= 1;
+ 166                            int csub1 = count - 1;
+ 167
+ 168                            Entry [] newBuckets = new Entry [count];
+ 169                            for (int i = 0; i < buckets.Length; i++) {
+(mdb) p this.buckets
+ERROR: Cannot evaluate expression `buckets'
+(mdb) list
+ 160                    int bucket = hash % count;
+ 161                    buckets [bucket] = new Entry (str, hash,
+buckets [bucket]);
+ 162
+ 163                    // Grow whenever we double in size
+ 164                    if (size++ == count) {
+ 165                            count <<= 1;
+ 166                            int csub1 = count - 1;
+ 167
+ 168                            Entry [] newBuckets = new Entry [count];
+ 169                            for (int i = 0; i < buckets.Length; i++) {
+(mdb) list -
+ 154
+ 155                    return null;
+ 156            }
+ 157
+ 158            string AddEntry (string str, int hash)
+ 159            {
+ 160                    int bucket = hash % count;
+ 161                    buckets [bucket] = new Entry (str, hash,
+buckets [bucket]);
+ 162
+ 163                    // Grow whenever we double in size
+(mdb) ptype this
+class System.Xml.NameTable : System.Xml.XmlNameTable
+{
+   System.Int32 count;
+   System.Xml.NameTable/Entry[] buckets;
+   System.Int32 size;
+   static System.Int32 INITIAL_BUCKETS;
+   System.String Add (System.Char[], System.Int32, System.Int32);
+   System.String Add (System.String);
+   System.String Get (System.Char[], System.Int32, System.Int32);
+   System.String Get (System.String);
+   System.String AddEntry (System.String, System.Int32);
+   static System.Boolean StrEqArray (System.String, System.Char[],
+System.Int32);
+   .ctor ();
+}
+(mdb) p this.buckets
+ERROR: Cannot evaluate expression `buckets'
+


More information about the mono-bugs mailing list