Bug 55546 - CSharp tests fails on s390x
Summary: CSharp tests fails on s390x
Status: NEW
Alias: None
Product: Runtime
Classification: Mono
Component: JIT (show other bugs)
Version: 4.8.0 (C9)
Hardware: Other Linux
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-04-25 09:50 UTC by Vaibhav Vaingankar
Modified: 2017-04-27 04:46 UTC (History)
3 users (show)

See Also:
Tags:
Is this bug a regression?: ---
Last known good build:


Attachments

Description Vaibhav Vaingankar 2017-04-25 09:50:33 UTC
Hi,
Greetings.

I am building ANTLR 4 (https://github.com/antlr/antlr4) 4.7 on IBM s390x architecture.

I have installed Mono (https://github.com/mono/mono) 4.8.0 for csharp runtime. I have encountered few test case failures related to csharp. The cause of the failure is delegate.execLexer in BaseRuntimeTest.java returns null. 

Since I have tried the same build steps on AMD x86 processor and it works fine, it is clear that this issue is specific to s390x architecture.

It seems the issue is with the Mono runtime built on s390x. I am not sure what the exact cause of this problem


Any guidance would be appreciated.

 
here is the bug I am am getting

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.antlr.v4.test.runtime.csharp.TestLexerExec
.................................................................................Tests run: 36, Failures: 36, Errors: 0, Skipped: 0, Time elapsed: 405.782 sec <<< FAILURE! - in org.antlr.v4.test.runtime.csharp.TestLexerExec
testOne[CSharp:LargeLexer](org.antlr.v4.test.runtime.csharp.TestLexerExec)  Time elapsed: 82.965 sec  <<< FAILURE!
junit.framework.ComparisonFailure:
expected:<[@0,0:4='KW400',<402>,1:0]
[@1,5:4='<EOF>',<-1>,1:5]
> but was:<null>

testOne[CSharp:ZeroLengthToken](org.antlr.v4.test.runtime.csharp.TestLexerExec)  Time elapsed: 21.704 sec  <<< FAILURE!
junit.framework.ComparisonFailure:
expected:<[@0,0:4=''xxx'',<1>,1:0]
[@1,5:4='<EOF>',<-1>,1:5]
> but was:<null>
Comment 1 Vaibhav Vaingankar 2017-04-27 04:46:32 UTC
here is the compilation log of test class:


Project "/tmp/BaseCSharpTest-main-1493268195472/Antlr4.Test.mono.csproj" (default target(s)):
        Target PrepareForBuild:
                Configuration: Release Platform: AnyCPU
                Created directory "bin/Release/"
                Created directory "obj/Release/"
        Target ResolveProjectReferences:
                Project "/home/test/master/antlr4/runtime-testsuite/target/classes/CSharp/runtime/CSharp/Antlr4.Runtime/Antlr4.Runtime.mono.csproj" (default target(s)):
                        Target PrepareForBuild:
                                Configuration: Release Platform: AnyCPU
                        Target GenerateSatelliteAssemblies:
                        No input files were specified for target GenerateSatelliteAssemblies, skipping.
                        Target CoreCompile:
                        Skipping target "CoreCompile" because its outputs are up-to-date.
                Done building project "/home/test/master/antlr4/runtime-testsuite/target/classes/CSharp/runtime/CSharp/Antlr4.Runtime/Antlr4.Runtime.mono.csproj".
        Target CopyFilesMarkedCopyLocal:
                Copying file from '/home/test/master/antlr4/runtime-testsuite/target/classes/CSharp/runtime/CSharp/Antlr4.Runtime/lib/Release/Antlr4.Runtime.Standard.dll' to '/tmp/BaseCSharpTest-main-1493268195472/bin/Release/Antlr4.Runtime.Standard.dll'
        Target GenerateSatelliteAssemblies:
        No input files were specified for target GenerateSatelliteAssemblies, skipping.
        Target CoreCompile:
                Tool /usr/local/lib/mono/4.5/mcs.exe execution started with arguments: /noconfig /optimize+ /out:obj/Release/Test.exe L.cs Test.cs AssemblyInfo.cs /target:exe /main:Test /nostdlib /reference:/usr/local/lib/mono/2.0-api/System.dll /reference:/usr/local/lib/mono/2.0-api/System.Core.dll /reference:/home/test/master/antlr4/runtime-testsuite/target/classes/CSharp/runtime/CSharp/Antlr4.Runtime/lib/Release//Antlr4.Runtime.Standard.dll /reference:/usr/local/lib/mono/2.0-api//mscorlib.dll /warn:4
        Target _CopyDeployFilesToOutputDirectoryAlways:
                Copying file from '/tmp/BaseCSharpTest-main-1493268195472/App.config' to '/tmp/BaseCSharpTest-main-1493268195472/bin/Release/App.config'
        Target _CopyAppConfigFile:
                Copying file from '/tmp/BaseCSharpTest-main-1493268195472/App.config' to '/tmp/BaseCSharpTest-main-1493268195472/bin/Release/Test.exe.config'
        Target DeployOutputFiles:
                Copying file from '/tmp/BaseCSharpTest-main-1493268195472/obj/Release/Test.exe' to '/tmp/BaseCSharpTest-main-1493268195472/bin/Release/Test.exe'
Done building project "/tmp/BaseCSharpTest-main-1493268195472/Antlr4.Test.mono.csproj".

Build succeeded.
         0 Warning(s)
         0 Error(s)

Time Elapsed 00:00:01.2902890

Failed to compile!

Note You need to log in before you can comment on or make changes to this bug.