[Mono-bugs] [Bug 559045] New: Printing an array of enum shows wrong garbage values

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Nov 29 09:24:02 EST 2009



           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: martin at novell.com
        ReportedBy: ori at avtalion.name
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---

Created an attachment (id=329904)
 --> (http://bugzilla.novell.com/attachment.cgi?id=329904)

User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:
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

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,
3. Enter the mdb command "print _arr"
Actual Results:  
All of the printed values will show "One", except arr[1,3] which will print

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.

More information about the mono-bugs mailing list