[Mono-bugs] [Bug 364580] New: error in signatures to vararg functions

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Feb 25 12:06:36 EST 2008


https://bugzilla.novell.com/show_bug.cgi?id=364580


           Summary: error in signatures to vararg functions
           Product: Mono: Tools
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: ilasm
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: andrea.ornstein at st.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Created an attachment (id=196978)
 --> (https://bugzilla.novell.com/attachment.cgi?id=196978)
il file that does not compile properly with ilasm

when a vararg function is called multiple times with arguments with different
types after the ellipsis, the generated assembly is broken
all calls to the function have the same signature, the first one encountered

it seems to me that there is some caching done using the signature as the key
(extracted as a string with CreateSignature)
I looked at GetGlobalMethodRef

but CreateVarargSignature uses only the types till the ellipsis
and so the caching does not work properly

in the attached example test2.il,
if we use monodis on the output of ilasm we can see that the second call to
myvararg is broken


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list