[Mono-bugs] [Bug 701733] New: Setting ENV variables for mono causes crash while generating Xml serializers
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu Jun 23 02:18:36 EDT 2011
https://bugzilla.novell.com/show_bug.cgi?id=701733
https://bugzilla.novell.com/show_bug.cgi?id=701733#c0
Summary: Setting ENV variables for mono causes crash while
generating Xml serializers
Classification: Mono
Product: Mono: Class Libraries
Version: 2.10.x
Platform: 64bit
OS/Version: Ubuntu
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Sys.XML
AssignedTo: atsushi at ximian.com
ReportedBy: maciej.paszta at mlabs.pl
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML,
like Gecko) Chrome/13.0.782.24 Safari/535.1
Mono takes different ENV variables to alter it's behavior. Some of that
variables' values are only valid when mono is run with specific parameters,
eg.:
MONO_GC_PARAMS=nursery-size=32m
is only valid when mono in invoked with "--gc=sgen", invoked without this
switch, mono crashes as the default GC doesn't handle this parameter.
Generation of Xml Serializer causes mono subprocess to be spawned, this
subprocess inherits the ENV variables, but doesn't pay attention to additional
options passed to the original command, and so it crashes, because it cannot
handle the mentioned MONO_GC_PARAMS
Reproducible: Always
Steps to Reproduce:
1. Compile provided file with: "gmcs Program.cs"
2. Invoke command: "MONO_GC_PARAMS=nursery-size=64m mono --gc=sgen Program.exe"
Actual Results:
The following lines appear on the console:
Error while compiling generated serializer
(0,0) : error : MONO_GC_PARAMS must be a comma-delimited list of one or more of
the following:
(0,0) : error : max-heap-size=N (where N is an integer, possibly with a k, m
or a g suffix)
Hello
Expected Results:
Program should successfully generate serializer.
Code works ok on mono 2.8 (Mono JIT compiler version 2.8.2 (mono-2-8/6621fbe))
Code doesn't work on mono 2.10.1 (Mono JIT compiler version 2.10.1
(mono-2-10/0214f74)
Code doesn't work on master (Mono JIT compiler version 2.11 (master/41f79be))
--
Configure bugmail: https://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