Bug 679467 - .cctors run in incorrect order
Summary: .cctors run in incorrect order
Status: RESOLVED FIXED
Alias: None
Product: Mono: Runtime
Classification: Mono
Component: JIT (show other bugs)
Version: 2.10.x
Hardware: All All
: P5 - None : Normal
Target Milestone: ---
Assignee: Paolo Molaro
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-14 17:25 UTC by Jeroen Frijters
Modified: 2011-03-14 22:14 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
Repro (352 bytes, text/plain)
2011-03-14 17:25 UTC, Jeroen Frijters
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeroen Frijters 2011-03-14 17:25:20 UTC
Created attachment 419194 [details]
Repro

User-Agent:       Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)

In the attached program the class constructors run in incorrect order. Note that this can be worked around by using --optimize=shared.

Reproducible: Always

Steps to Reproduce:
1. mcs test.cs
2. mono test.exe

Actual Results:  
B
A


Expected Results:  
A
B
Comment 1 Forgotten User vxPDddArjq 2011-03-14 22:13:49 UTC
Fixed in HEAD/2.10/2.6 branches.
Comment 2 Forgotten User vxPDddArjq 2011-03-14 22:14:00 UTC
Fixed.