http://bugzilla.novell.com/show_bug.cgi?id=559045
http://bugzilla.novell.com/show_bug.cgi?id=559045#c0 Summary: Printing an array of enum shows wrong garbage values Classification: Mono Product: Mono: Debugger Version: 2.4.x Platform: x86-64 OS/Version: Ubuntu Status: NEW Severity: Normal Priority: P5 - None Component: backend AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: --- Blocker: --- Created an attachment (id=329904) --> (http://bugzilla.novell.com/attachment.cgi?id=329904) Test-case User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.5) Gecko/20091109 Ubuntu/9.10 (karmic) Firefox/3.5.5 Using mono-debugger 2.4.2-1 on Ubuntu 9.10. mono-debugger's "print" command sometimes shows garbage values when inspecting arrays of enums. (While these are not the actual values according to the program) The problem manifests both with the mdb command line, and through MonoDevelop's debugging GUI. The attached test-case is a small program that demonstrates the problem. In larger programs, I have seen even more garbage values. e.g.: [ [ One, One, One, One, One, One ], [ One, One, One, 6, 23438080, One ], [ One, -492366400, One, -221197184, 671036160, 1117152832 ], [ One, One, -313044928, 1029679104, 23438080, One ], [ -2147483574, 140, 82, 142, One, 57 ], [ 61, 139, -2147483579, -2147483575, 23438080, One ] ] Reproducible: Sometimes Steps to Reproduce: 1. Compile Test.cs with debug symbols. 2. Run mdb on Test.exe and set a breakpoint right after "_arr = new myEnum[n, n];" 3. Enter the mdb command "print _arr" Actual Results: All of the printed values will show "One", except arr[1,3] which will print "6". Stepping to the WriteLine call will print the correct value of _arr[1,3] ("One") to stdout. Expected Results: The array should be shown to have "One" in all cells. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
