bugDotGNU Portable.NET - Bugs: bug #2785, Verifier : ldobj , ldflda causing...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #2785: Verifier : ldobj , ldflda causing problems

Submitted by:  Gopal.V <t3rmin4t0r>
Submitted on:  Tue 11 Mar 2003 04:08:35 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Invalid
Privacy: PublicAssigned to: None
Open/Closed: Closed

Wed 02 Apr 2003 05:32:59 AM UTC, comment #3:

Closing.

Rhys Weatherley <rweather>
Project Administrator
Thu 27 Mar 2003 10:17:04 PM UTC, comment #2:

What was the resolution for this? I still think that
this is a code generation bug in mcs. Taking the address
of a field within the top-most value on the stack doesn't
seem correct - the value will be popped, leaving the
address pointing at invalid memory. Can I close this?

Rhys Weatherley <rweather>
Project Administrator
Tue 11 Mar 2003 09:04:26 PM UTC, comment #1:

I think this is a bug in mcs, but am not sure. It isn't
legal to take the address of a field within a value type
on the stack, as this code is doing. Leaving open for
a little while until more information can be collected.

Rhys Weatherley <rweather>
Project Administrator
Tue 11 Mar 2003 04:08:35 PM UTC, original submission:

The attatched code is shredded down from SDL.Net code and
looks to be Ok.

ldfld valuetype 'SDL_Surface' * 'Surface'::'_surface'
ldobj valuetype 'SDL_Surface'
ldflda native int 'SDL_Surface'::'pixels'

The last line is creating problems because the ldobj makes
STK_UNARY== ILEngineType_MV and there's no case to
handle that.

PS: SDL.net is using MCS

Gopal.V <t3rmin4t0r>
Project Administrator

 

Attached Files
file #344:  unsafe2.il added by t3rmin4t0r (2KiB - application/octet-stream - test case)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Wed 02 Apr 2003 05:32:59 AM UTCrweatherStatusNone=>(Error - Not Found)
  Open/ClosedOpen=>(Error - Not Found)

Back to the top


Powered by Savane 3.1-cleanup1