Bug 53439 - System.Numerics tests on windows fail with System.BadImageFormatException
Summary: System.Numerics tests on windows fail with System.BadImageFormatException
Status: NEW
Alias: None
Product: Runtime
Classification: Mono
Component: JIT (show other bugs)
Version: master
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-03-17 10:04 UTC by Marek Safar
Modified: 2017-06-12 17:26 UTC (History)
3 users (show)

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

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report for Bug 53439 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
NEW

Description Marek Safar 2017-03-17 10:04:20 UTC
Results saved as D:\j\workspace\x\mcs\class\System.Numerics\TestResult-net_4_x.xml.
make[2]: Leaving directory '/cygdrive/d/j/workspace/x/mcs/class/System.Numerics'
make -C ./../../class/Xunit.NetCore.Extensions
make[2]: Entering directory '/cygdrive/d/j/workspace/x/mcs/class/Xunit.NetCore.Extensions'
make all-local
make[3]: Entering directory '/cygdrive/d/j/workspace/x/mcs/class/Xunit.NetCore.Extensions'
Converting Xunit.NetCore.Extensions.dll.sources to ../../build/deps/net_4_x__Xunit.NetCore.Extensions.dll.response ...
CSC     [net_4_x] Xunit.NetCore.Extensions.dll
make[3]: Leaving directory '/cygdrive/d/j/workspace/x/mcs/class/Xunit.NetCore.Extensions'
make[2]: Leaving directory '/cygdrive/d/j/workspace/x/mcs/class/Xunit.NetCore.Extensions'
CSC     [net_4_x] net_4_x_System.Numerics_xunit-test.dll
ok=:; \
PATH="/cygdrive/d/j/workspace/x/runtime/_tmpinst/bin:/opt/mono/bin/:/usr/bin:/usr/local/bin:/cygdrive/c/Program Files (x86)/Mono/bin/:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0:/cygdrive/c/Program Files/Git/cmd:/cygdrive/c/Program Files (x86)/Windows Kits/8.1/Windows Performance Toolkit:/cygdrive/c/Users/builder/AppData/Local/Microsoft/WindowsApps" MONO_PATH="./;./../../class/lib/net_4_x;;$MONO_PATH" /cygdrive/d/j/workspace/x/runtime/mono-wrapper --debug   ./../../../external/xunit-binaries/xunit.console.exe net_4_x_System.Numerics_xunit-test.dll -noappdomain -noshadow -parallel none -nunit TestResult-net_4_x-xunit.xml -notrait category=failing -notrait category=nonnetcoreapptests -notrait Benchmark=true -notrait category=outerloop || ok=false; \
$ok
xUnit.net Console Runner (64-bit .NET 4.0.30319.42000)
System.BadImageFormatException: 
make[1]: *** [../../build/tests.make:215: run-xunit-test-lib] Error 1
Comment 1 Rodrigo Kumpera 2017-06-12 17:14:49 UTC
What peverify says about those assemblies?
How do I reproduce this?

Please provide more context than a random blob of text.
Comment 2 Marek Safar 2017-06-12 17:26:58 UTC
I don't have access to that machine. peverify says ok as same assembly works on Mono on non-Windows without problem. Ale peverify is part of build/test and no error is reported there either.

You can reproduce it running `make check` inside mcs/class/System.Numerics as you can see from the log