Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Conversation

@dotnet-maestro-bot
Copy link

@dotnet-maestro-bot dotnet-maestro-bot commented Mar 5, 2018

No description provided.

@dotnet-maestro-bot
Copy link
Author

Discarded 0622f06: Update BuildTools, CoreClr to preview2-02605-02, preview2-26305-09, respectively

CI Status: 12:hourglass: 2:heavy_check_mark: (click to expand)
  • Alpine.3.6 x64 Debug Build Started Details
  • CROSS Check Triggered.
  • Linux arm Release Build Triggered.
  • Linux x64 Release Build Started Details
  • NETFX x86 Release Build Started Details
  • OSX x64 Debug Build Started Details
  • Packaging All Configurations x64 Debug Build Started Details
  • Tizen armel Debug Build Triggered.
  • UWP CoreCLR x64 Debug Build Started Details
  • UWP NETNative x86 Release Build Started Details
  • Windows x64 Debug Build Started Details
  • Windows x86 Release Build Started Details
  • ✔️ license/cla All CLA requirements met. Details
  • ✔️ WIP ready for review Details

@dotnet-maestro-bot dotnet-maestro-bot force-pushed the master-UpdateDependencies branch from 0622f06 to ef0357c Compare March 5, 2018 19:36
@joperezr
Copy link
Member

joperezr commented Mar 5, 2018

Ingestion of buildtools will fail because of my recent mapping changes. I will fix this in a separate PR.

@dotnet-maestro-bot
Copy link
Author

Discarded ef0357c: Update BuildTools, CoreClr to preview2-02605-02, preview2-26305-09, respectively

CI Status: 3:x: 1:hourglass: 10:heavy_check_mark: (click to expand)
  • Linux x64 Release Build Build finished. Details
  • OSX x64 Debug Build Build finished. Details
  • Packaging All Configurations x64 Debug Build Build finished. Details
  • Linux arm Release Build Started. Details
  • ✔️ Alpine.3.6 x64 Debug Build Build finished. Details
  • ✔️ CROSS Check Build finished. Details
  • ✔️ license/cla All CLA requirements met. Details
  • ✔️ NETFX x86 Release Build Build finished. Details
  • ✔️ Tizen armel Debug Build Build finished. Details
  • ✔️ UWP CoreCLR x64 Debug Build Build finished. Details
  • ✔️ UWP NETNative x86 Release Build Build finished. Details
  • ✔️ Windows x64 Debug Build Build finished. Details
  • ✔️ Windows x86 Release Build Build finished. Details
  • ✔️ WIP ready for review Details

@dotnet-maestro-bot dotnet-maestro-bot changed the title Update BuildTools, CoreClr to preview2-02605-02, preview2-26305-09, respectively (master) Update BuildTools, CoreClr to preview2-02606-01, preview2-26305-12, respectively (master) Mar 6, 2018
@dotnet-maestro-bot dotnet-maestro-bot force-pushed the master-UpdateDependencies branch from ef0357c to 30b0cc2 Compare March 6, 2018 00:38
@dotnet-maestro-bot
Copy link
Author

Discarded 30b0cc2: Update BuildTools, CoreClr to preview2-02606-01, preview2-26305-12, respectively

CI Status: 3:x: 2:hourglass: 8:heavy_check_mark: (click to expand)
  • Linux x64 Release Build Build finished. Details
  • Packaging All Configurations x64 Debug Build Build finished. Details
  • Windows x64 Debug Build Build finished. Details
  • Linux arm Release Build Triggered. (66/88 on ubuntu1404-20170120)
  • Tizen armel Debug Build Triggered. (67/88 on ubuntu1404-20170120)
  • ✔️ Alpine.3.6 x64 Debug Build Build finished. Details
  • ✔️ CROSS Check Build finished. Details
  • ✔️ license/cla All CLA requirements met. Details
  • ✔️ NETFX x86 Release Build Build finished. Details
  • ✔️ UWP CoreCLR x64 Debug Build Build finished. Details
  • ✔️ UWP NETNative x86 Release Build Build finished. Details
  • ✔️ Windows x86 Release Build Build finished. Details
  • ✔️ WIP ready for review Details

@dotnet-maestro-bot dotnet-maestro-bot changed the title Update BuildTools, CoreClr to preview2-02606-01, preview2-26305-12, respectively (master) Update BuildTools, CoreClr, CoreSetup to preview2-02606-01, preview2-26306-01, preview2-26305-07, respectively (master) Mar 6, 2018
@dotnet-maestro-bot dotnet-maestro-bot force-pushed the master-UpdateDependencies branch from 30b0cc2 to 6a63e67 Compare March 6, 2018 02:04
@stephentoub
Copy link
Member

The packaging build is hitting these failures:

D:\j\workspace\windows-TGrou---0d2c9ac4\Tools\Packaging.targets(1120,5): error : CoreFx.Private.TestUtilities should not be supported on UAP,Version=v10.0.16299/win10-x86 but has both compile and runtime assets. [D:\j\workspace\windows-TGrou---0d2c9ac4\pkg\CoreFx.Private.TestUtilities\CoreFx.Private.TestUtilities.pkgproj]
D:\j\workspace\windows-TGrou---0d2c9ac4\Tools\Packaging.targets(1120,5): error : CoreFx.Private.TestUtilities should not be supported on UAP,Version=v10.0.16299/win10-x86-aot but has both compile and runtime assets. [D:\j\workspace\windows-TGrou---0d2c9ac4\pkg\CoreFx.Private.TestUtilities\CoreFx.Private.TestUtilities.pkgproj]
D:\j\workspace\windows-TGrou---0d2c9ac4\Tools\Packaging.targets(1120,5): error : CoreFx.Private.TestUtilities should not be supported on UAP,Version=v10.0.16299/win10-x64 but has both compile and runtime assets. [D:\j\workspace\windows-TGrou---0d2c9ac4\pkg\CoreFx.Private.TestUtilities\CoreFx.Private.TestUtilities.pkgproj]
D:\j\workspace\windows-TGrou---0d2c9ac4\Tools\Packaging.targets(1120,5): error : CoreFx.Private.TestUtilities should not be supported on UAP,Version=v10.0.16299/win10-x64-aot but has both compile and runtime assets. [D:\j\workspace\windows-TGrou---0d2c9ac4\pkg\CoreFx.Private.TestUtilities\CoreFx.Private.TestUtilities.pkgproj]
D:\j\workspace\windows-TGrou---0d2c9ac4\Tools\Packaging.targets(1120,5): error : CoreFx.Private.TestUtilities should not be supported on UAP,Version=v10.0.16299/win10-arm but has both compile and runtime assets. [D:\j\workspace\windows-TGrou---0d2c9ac4\pkg\CoreFx.Private.TestUtilities\CoreFx.Private.TestUtilities.pkgproj]
D:\j\workspace\windows-TGrou---0d2c9ac4\Tools\Packaging.targets(1120,5): error : CoreFx.Private.TestUtilities should not be supported on UAP,Version=v10.0.16299/win10-arm-aot but has both compile and runtime assets. [D:\j\workspace\windows-TGrou---0d2c9ac4\pkg\CoreFx.Private.TestUtilities\CoreFx.Private.TestUtilities.pkgproj]

@ericstj, the netfx build is hitting this failure:

      Microsoft.Win32.SystemEventsTests.CreateTimerTests.TimerElapsedSignaled [FAIL]
        System.Runtime.InteropServices.ExternalException : Cannot create timer.
        Stack Trace:
             at Microsoft.Win32.SystemEvents.CreateTimer(Int32 interval)
             at Microsoft.Win32.SystemEventsTests.CreateTimerTests.TimerElapsedSignaled()

@danmosemsft, and the Linux leg failed because every distro fireballed with a seg fault in the System.ComponentModel.Composition.Tests tests, e.g.

018-03-06 02:51:15,353: INFO: proc(54): run_and_log_output: Output: Discovering: System.ComponentModel.Composition.Tests
2018-03-06 02:51:16,299: INFO: proc(54): run_and_log_output: Output: Discovered:  System.ComponentModel.Composition.Tests
2018-03-06 02:51:16,836: INFO: proc(54): run_and_log_output: Output: Starting:    System.ComponentModel.Composition.Tests
2018-03-06 02:51:18,001: INFO: proc(54): run_and_log_output: Output: requiredService: System.ComponentModel.Composition.Hosting.CompositionContainer+CompositionServiceShim
2018-03-06 02:51:18,002: INFO: proc(54): run_and_log_output: Output: optionalService: System.ComponentModel.Composition.Hosting.CompositionContainer+CompositionServiceShim
2018-03-06 02:51:18,985: INFO: proc(54): run_and_log_output: Output: /home/helixbot/dotnetbuild/work/c0667078-295e-40d0-a266-5ed87b489917/Work/ae82b440-c379-49f6-ba99-75d04ddc058c/Unzip/RunTests.sh: line 88: 26162 Segmentation fault      (core dumped) $RUNTIME_PATH/dotnet xunit.console.netcore.exe System.ComponentModel.Composition.Tests.dll -xml testResults.xml -notrait Benchmark=true -notrait category=nonnetcoreapptests -notrait category=nonlinuxtests -notrait category=OuterLoop -notrait category=failing
2018-03-06 02:51:19,028: INFO: proc(54): run_and_log_output: Output: Dumpling has not been installed yet. Please run "DumplingHelper.py install_dumpling" before collect_dumps.
2018-03-06 02:51:19,032: INFO: proc(54): run_and_log_output: Output: ~/dotnetbuild/work/c0667078-295e-40d0-a266-5ed87b489917/Work/ae82b440-c379-49f6-ba99-75d04ddc058c/Unzip
2018-03-06 02:51:19,033: INFO: proc(54): run_and_log_output: Output: ----- end 02:51:19 ----- exit code 139 ----------------------------------------------------------
2018-03-06 02:51:19,035: INFO: proc(54): run_and_log_output: Output: Unable to find executable corerun
2018-03-06 02:51:19,038: INFO: proc(54): run_and_log_output: Output: Copying core file core.26162 to /tmp/coredumps
2018-03-06 02:51:19,901: INFO: proc(58): run_and_log_output: Exit Code: 139

@dotnet-maestro-bot
Copy link
Author

Discarded 6a63e67: Update BuildTools, CoreClr, CoreSetup to preview2-02606-01, preview2-26306-01, preview2-26305-07, respectively

CI Status: 3:x: 9:heavy_check_mark: (click to expand)
  • Linux x64 Release Build Build finished. Details
  • NETFX x86 Release Build Build finished. Details
  • Packaging All Configurations x64 Debug Build Build finished. Details
  • ✔️ Alpine.3.6 x64 Debug Build Build finished. Details
  • ✔️ CROSS Check Build finished. Details
  • ✔️ Linux arm Release Build Build finished. Details
  • ✔️ Tizen armel Debug Build Build finished. Details
  • ✔️ UWP CoreCLR x64 Debug Build Build finished. Details
  • ✔️ UWP NETNative x86 Release Build Build finished. Details
  • ✔️ Windows x64 Debug Build Build finished. Details
  • ✔️ Windows x86 Release Build Build finished. Details
  • ✔️ WIP ready for review Details

…C to preview2-02606-01, preview2-26306-01, preview2-26305-07, beta-26306-00, beta-26306-00, respectively
@dotnet-maestro-bot dotnet-maestro-bot changed the title Update BuildTools, CoreClr, CoreSetup to preview2-02606-01, preview2-26306-01, preview2-26305-07, respectively (master) Update BuildTools, CoreClr, CoreSetup, ProjectNTfs, ProjectNTfsTestILC to preview2-02606-01, preview2-26306-01, preview2-26305-07, beta-26306-00, beta-26306-00, respectively (master) Mar 6, 2018
@dotnet-maestro-bot dotnet-maestro-bot force-pushed the master-UpdateDependencies branch from 6a63e67 to 04aebb6 Compare March 6, 2018 06:18
@dotnet-maestro-bot
Copy link
Author

Couldn't update this pull request: Head commit author 'Jose Perez Rodriguez' is not 'dotnet-maestro-bot'
Would have applied 'Update BuildTools, CoreClr, CoreSetup, ProjectNTfs, ProjectNTfsTestILC to preview2-02606-03, preview2-26306-01, preview2-26306-04, beta-26306-00, beta-26306-00, respectively'

@joperezr
Copy link
Member

joperezr commented Mar 6, 2018

@stephentoub I'm not sure why a few tests are failing and not sure if this is caused by the ingestion of coreclr, coresetup, or some other dependency. Do you know if this is ok to merge?

@dotnet-maestro-bot
Copy link
Author

Couldn't update this pull request: Head commit author 'Jose Perez Rodriguez' is not 'dotnet-maestro-bot'
Would have applied 'Update BuildTools, CoreClr, CoreSetup, ProjectNTfs, ProjectNTfsTestILC to preview2-02606-03, preview2-26306-01, preview2-26306-04, beta-26306-00, beta-26306-00, respectively'

@stephentoub
Copy link
Member

Do you know if this is ok to merge?

Please hold off. Those component model test failures look like a real issue, as they're seg faulting consistently on all Linux distros. @danmosemsft and @Anipik are investigating, I believe.

@Anipik
Copy link

Anipik commented Mar 6, 2018

I am trying to repro the failure on Linux, i will post as soon as i have an update.

@dotnet-maestro-bot
Copy link
Author

Couldn't update this pull request: Head commit author 'Jose Perez Rodriguez' is not 'dotnet-maestro-bot'
Would have applied 'Update BuildTools, CoreClr, CoreSetup, ProjectNTfs, ProjectNTfsTestILC to preview2-02606-04, preview2-26306-01, preview2-26306-04, beta-26306-00, beta-26306-00, respectively'

@Anipik
Copy link

Anipik commented Mar 6, 2018

@danmosemsft @stephentoub
The failing tests are
Constructor1_LockedFileAsCodeBaseArgument_ShouldThrowFileLoad
Constructor2_LockedFileAsCodeBaseArgument_ShouldThrowFileLoad
Constructor3_LockedFileAsCodeBaseArgument_ShouldThrowFileLoad
Constructor4_LockedFileAsCodeBaseArgument_ShouldThrowFileLoad

https://github.com/dotnet/corefx/blob/master/src/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/Hosting/AssemblyCatalogTests.cs#L167

dump

@dotnet-maestro-bot
Copy link
Author

Couldn't update this pull request: Head commit author 'Jose Perez Rodriguez' is not 'dotnet-maestro-bot'
Would have applied 'Update BuildTools, CoreClr, CoreFx, CoreSetup, ProjectNTfs, ProjectNTfsTestILC to preview2-02606-04, preview2-26306-01, preview2-26306-04, preview2-26306-04, beta-26306-00, beta-26306-00, respectively'

@dotnet-maestro-bot
Copy link
Author

Couldn't update this pull request: Head commit author 'Jose Perez Rodriguez' is not 'dotnet-maestro-bot'
Would have applied 'Update BuildTools, CoreClr, CoreFx, CoreSetup, ProjectNTfs, ProjectNTfsTestILC to preview2-02606-05, preview2-26306-01, preview2-26306-04, preview2-26306-04, beta-26306-00, beta-26306-00, respectively'

@Anipik
Copy link

Anipik commented Mar 7, 2018

Callstack for the failure

Process 41210 stopped
* thread #9: tid = 41222, 0x00007ffff64939b3 libcoreclr.so`PEDecoder::HasWriteableSections() const [inlined] PEDecoder::FindNTHeaders(this=0x00007fff4c0022d8) const + 3 at pedecoder.inl:1211, name = 'dotnet', stop reason = signal SIGSEGV: invalid address (fault address: 0x3c)
    frame #0: 0x00007ffff64939b3 libcoreclr.so`PEDecoder::HasWriteableSections() const [inlined] PEDecoder::FindNTHeaders(this=0x00007fff4c0022d8) const + 3 at pedecoder.inl:1211
(lldb) bt
* thread #9: tid = 41222, 0x00007ffff64939b3 libcoreclr.so`PEDecoder::HasWriteableSections() const [inlined] PEDecoder::FindNTHeaders(this=0x00007fff4c0022d8) const + 3 at pedecoder.inl:1211, name = 'dotnet', stop reason = signal SIGSEGV: invalid address (fault address: 0x3c)
  * frame #0: 0x00007ffff64939b3 libcoreclr.so`PEDecoder::HasWriteableSections() const [inlined] PEDecoder::FindNTHeaders(this=0x00007fff4c0022d8) const + 3 at pedecoder.inl:1211
    frame #1: 0x00007ffff64939b0 libcoreclr.so`PEDecoder::HasWriteableSections(this=0x00007fff4c0022d8) const at pedecoder.cpp:456
    frame #2: 0x00007ffff6134ba6 libcoreclr.so`PEImage::GetLayoutInternal(unsigned int, unsigned int) [inlined] PEImage::CreateLayoutFlat(this=0x00007fff4c001e90) + 36 at peimage.cpp:1032
    frame #3: 0x00007ffff6134b82 libcoreclr.so`PEImage::GetLayoutInternal(this=0x00007fff4c001e90, imageLayoutMask=<unavailable>, flags=<unavailable>) + 98 at peimage.cpp:934
    frame #4: 0x00007ffff61335a7 libcoreclr.so`PEImage::GetLayout(this=0x00007fff4c001e90, imageLayoutMask=<unavailable>, flags=<unavailable>) + 231 at peimage.cpp:875
    frame #5: 0x00007ffff62f41a2 libcoreclr.so`AssemblyNameNative::GetFileInformation(StringObject*) [inlined] PEImage::HasNTHeaders(this=0x00007fff4c001e90) + 33 at peimage.inl:204
    frame #6: 0x00007ffff62f4181 libcoreclr.so`AssemblyNameNative::GetFileInformation(filenameUNSAFE=<unavailable>) + 113 at assemblyname.cpp:60

@ruben-ayrapetyan it seems related to your change dotnet/coreclr#16747 . can you please take a look ?

@danmoseley
Copy link
Member

Ironically dotnet/coreclr#16747 was to fix https://github.com/dotnet/coreclr/issues/15544 which was discovered by these same tests. They are handy.

@stephentoub
Copy link
Member

cc: @jkotas

@jkotas
Copy link
Member

jkotas commented Mar 7, 2018

I have reverted the bad change in dotnet/coreclr#16790

@danmoseley
Copy link
Member

I guess the bot will not update this due to @joperezr commit. I suggest we close, it will make a new one and he will need to apply your change to the new one

@ruben-ayrapetyan
Copy link

ruben-ayrapetyan commented Mar 10, 2018

@danmosemsft

I applied the following patch to CoreFX version 2be66d4.
In the try described in #27737 (comment) the patch was applied also.

diff --git a/src/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/Hosting/AssemblyCatalogTests.cs b/src/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/Hosting/AssemblyCatalogTests.cs
index 3822cb9331..f06c97145e 100644
--- a/src/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/Hosting/AssemblyCatalogTests.cs
+++ b/src/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/Hosting/AssemblyCatalogTests.cs
@@ -163,7 +163,7 @@ namespace System.ComponentModel.Composition
             });
         }
 
-        [PlatformSpecific(TestPlatforms.Windows)] // Unix doesn't (and doesn't need) to check for locking
+        // [PlatformSpecific(TestPlatforms.Windows)] // Unix doesn't (and doesn't need) to check for locking
         [Fact]
         public void Constructor1_LockedFileAsCodeBaseArgument_ShouldThrowFileLoad()
         {
@@ -274,7 +274,7 @@ namespace System.ComponentModel.Composition
             });
         }
 
-        [PlatformSpecific(TestPlatforms.Windows)] // Unix doesn't (and doesn't need) to check for locking
+        // [PlatformSpecific(TestPlatforms.Windows)] // Unix doesn't (and doesn't need) to check for locking
         [Fact]
         public void Constructor2_LockedFileAsCodeBaseArgument_ShouldThrowFileLoad()
         {
@@ -384,7 +384,7 @@ namespace System.ComponentModel.Composition
             });
         }
 
-        [PlatformSpecific(TestPlatforms.Windows)] // Unix doesn't (and doesn't need) to check for locking
+        // [PlatformSpecific(TestPlatforms.Windows)] // Unix doesn't (and doesn't need) to check for locking
         [Fact]
         public void Constructor3_LockedFileAsCodeBaseArgument_ShouldThrowFileLoad()
         {
@@ -493,7 +493,7 @@ namespace System.ComponentModel.Composition
             });
         }
 
-        [PlatformSpecific(TestPlatforms.Windows)] // Unix doesn't (and doesn't need) to check for locking
+        // [PlatformSpecific(TestPlatforms.Windows)] // Unix doesn't (and doesn't need) to check for locking
         [Fact]
         public void Constructor4_LockedFileAsCodeBaseArgument_ShouldThrowFileLoad()
         {

For the patched CoreFX (based on 2be66d4) Debug Linux x64 build I tried the following builds of CoreCLR:

  1. exactly the reverted commit (383736b) - Debug and Release Linux x64 builds

Output for System.ComponentModel.Composition.AssemblyCatalogConstructorTests.Constructor1_LockedFileAsCodeBaseArgument_ShouldThrowFileLoad is the following:

dotnet xunit.console.netcore.exe System.ComponentModel.Composition.Tests.dll  -xml testResults.xml -notrait Benchmark=true -notrait category=nonnetcoreapptests -notrait category=nonlinuxtests  -notrait category=OuterLoop -notrait category=failing -showprogress -maxthreads 1 -method System.ComponentModel.Composition.AssemblyCatalogConstructorTests.Constructor1_LockedFileAsCodeBaseArgument_ShouldThrowFileLoad
xUnit.net console test runner (64-bit .NET Core)
Copyright (C) 2014 Outercurve Foundation.

Discovering: System.ComponentModel.Composition.Tests
Discovered:  System.ComponentModel.Composition.Tests
Starting:    System.ComponentModel.Composition.Tests
   System.ComponentModel.Composition.AssemblyCatalogConstructorTests.Constructor1_LockedFileAsCodeBaseArgument_ShouldThrowFileLoad [STARTING]
   System.ComponentModel.Composition.AssemblyCatalogConstructorTests.Constructor1_LockedFileAsCodeBaseArgument_ShouldThrowFileLoad [FAIL]
      Assert.Throws() Failure
      Expected: typeof(System.IO.FileLoadException)
      Actual:   typeof(System.BadImageFormatException): Could not load file or assembly '/tmp/user/1000/tmpiF2r9l.tmp'. An attempt was made to load a program with an incorrect format.

      Stack Trace:
            at System.Reflection.AssemblyName.nGetFileInformation(String s)
            at System.Reflection.AssemblyName.GetAssemblyName(String assemblyFile)   [ this line appears for case of debug build only]
         /.../coreclr/coreclr-1/_/fx/src/System.ComponentModel.Composition/src/System/ComponentModel/Composition/Hosting/AssemblyCatalog.cs(561,0): at System.ComponentModel.Composition.Hosting.AssemblyCatalog.LoadAssembly(String codeBase)
         /.../coreclr/coreclr-1/_/fx/src/System.ComponentModel.Composition/src/System/ComponentModel/Composition/Hosting/AssemblyCatalog.cs(78,0): at System.ComponentModel.Composition.Hosting.AssemblyCatalog..ctor(String codeBase)
         /.../coreclr/coreclr-1/_/fx/src/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/Hosting/AssemblyCatalogTests.cs(172,0): at System.ComponentModel.Composition.AssemblyCatalogConstructorTests.<>c.<Constructor1_LockedFileAsCodeBaseArgument_ShouldThrowFileLoad>b__14_0(String s)
         /.../coreclr/coreclr-1/_/fx/src/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/Hosting/AssemblyCatalogTests.cs(81,0): at System.ComponentModel.Composition.AssemblyCatalogConstructorTests.<>c__DisplayClass1_0.<Constructor_LockedFileAsCodeBaseArgument_ShouldThrowFileLoad>b__0()
   System.ComponentModel.Composition.AssemblyCatalogConstructorTests.Constructor1_LockedFileAsCodeBaseArgument_ShouldThrowFileLoad [FINISHED] Time: 0.0732813s
Finished:    System.ComponentModel.Composition.Tests

=== TEST EXECUTION SUMMARY ===
   System.ComponentModel.Composition.Tests  Total: 1, Errors: 0, Failed: 1, Skipped: 0, Time: 0.229s
  1. the [ WIP ] Fix handling of incorrect assemblies on Unix coreclr#16812 (0ab06b541d7efff9b01e9da32ec7dc0574ab01cb) - Debug and Release Linux x64 builds

Output for System.ComponentModel.Composition.AssemblyCatalogConstructorTests.Constructor1_LockedFileAsCodeBaseArgument_ShouldThrowFileLoad is the following:

dotnet xunit.console.netcore.exe System.ComponentModel.Composition.Tests.dll  -xml testResults.xml -notrait Benchmark=true -notrait category=nonnetcoreapptests -notrait category=nonlinuxtests  -notrait category=OuterLoop -notrait category=failing -showprogress -maxthreads 1 -method System.ComponentModel.Composition.AssemblyCatalogConstructorTests.Constructor1_LockedFileAsCodeBaseArgument_ShouldThrowFileLoad
xUnit.net console test runner (64-bit .NET Core)
Copyright (C) 2014 Outercurve Foundation.

Discovering: System.ComponentModel.Composition.Tests
Discovered:  System.ComponentModel.Composition.Tests
Starting:    System.ComponentModel.Composition.Tests
   System.ComponentModel.Composition.AssemblyCatalogConstructorTests.Constructor1_LockedFileAsCodeBaseArgument_ShouldThrowFileLoad [STARTING]
   System.ComponentModel.Composition.AssemblyCatalogConstructorTests.Constructor1_LockedFileAsCodeBaseArgument_ShouldThrowFileLoad [FINISHED] Time: 0.0276312s
Finished:    System.ComponentModel.Composition.Tests

=== TEST EXECUTION SUMMARY ===
   System.ComponentModel.Composition.Tests  Total: 1, Errors: 0, Failed: 0, Skipped: 0, Time: 0.184s

@ruben-ayrapetyan
Copy link

Could it be that I can't reproduce the failure, because I use different base version of CoreFX?

@danmoseley
Copy link
Member

@Anipik do you still have the machine on which this reproed on?

@Anipik
Copy link

Anipik commented Mar 10, 2018

no, I reset my desktop yesterday, but I can give it a try reproducing it.

@danmoseley
Copy link
Member

Yes please. @jkotas can you think of what we're missing, why this isn't reproing? It seems the exact same.

jkotas added a commit to jkotas/corefx that referenced this pull request Mar 10, 2018
@jkotas
Copy link
Member

jkotas commented Mar 10, 2018

Submitted #27926 to see whether it still repros in CI.

@karelz karelz added this to the 2.1.0 milestone Mar 10, 2018
@jkotas
Copy link
Member

jkotas commented Mar 11, 2018

@ruben-ayrapetyan #27926 has the repro now.

If using the exact commit doesn't work then maybe those disabled tests were the ones triggering it so I would revert f31d24f and build a new System.ComponentModel.Composition.Tests.dll.

Yes, that was the problem. Perhaps we should keep the tests enable, but just change the expected outcome on Unix.

@stephentoub
Copy link
Member

Perhaps we should keep the tests enable, but just change the expected outcome on Unix.

Do we know what's unique about those tests? I assumed we already separately had tests that validated loading something other than an assembly.

@jkotas
Copy link
Member

jkotas commented Mar 11, 2018

They call GetAssemblyName on locked file. I have pushed a commit to #27926 to see whether a simple test that does just that will reproduce the problem.

@ruben-ayrapetyan
Copy link

@danmosemsft @jkotas

Locally, I get Segmentation fault on the following versions of CoreCLR:

and I don't get Segmentation fault on the following versions:

As far as I understand, the CI in #27926 was started for dotnet/coreclr@964fa686 version of CoreCLR.
From https://mc.dot.net/#/user/jkotas/pr~2Fjenkins~2Fdotnet~2Fcorefx~2Fmaster~2F/test~2Ffunctional~2Fcli~2F/2ace55e2c1ebccbb7a8ab3fb7af5ef939e356012/workItem/System.ComponentModel.Composition.Tests/wilogs I see that System.Runtime System.ComponentModel.Composition tests fail with Segmentation fault, so the outcome is different from what I see locally.


Is it possible to download the archive of binaries from the CI to try running them locally?


Please, find details of the local experiment below.

I tried the System.Reflection.Tests.AssemblyNameTests.GetAssemblyName and System.ComponentModel.Composition.AssemblyCatalogConstructorTests.Constructor1_LockedFileAsCode tests on the following:

  1. dotnet/coreclr@5b553b81 (just before the merge of Fix handling of incorrect assemblies on Unix coreclr#16747)
  2. dotnet/coreclr@383736b9 (the merge of Fix handling of incorrect assemblies on Unix coreclr#16747)
  3. dotnet/coreclr@964fa686 (two commits before the merge of revert of Fix handling of incorrect assemblies on Unix coreclr#16747)
  4. dotnet/coreclr@47bef69b (the merge of revert of Fix handling of incorrect assemblies on Unix coreclr#16747)

This resulted in the following output on the tests:

  1. dotnet/coreclr@5b553b81:
dotnet xunit.console.netcore.exe System.Runtime.Tests.dll  -xml testResults.xml -notrait Benchmark=true -notrait category=nonnetcoreapptests -notrait category=nonlinuxtests  -notrait category=OuterLoop -notrait category=failing -showprogress -maxthreads 1 -method System.Reflection.Tests.AssemblyNameTests.GetAssemblyName
xUnit.net console test runner (64-bit .NET Core)
Copyright (C) 2014 Outercurve Foundation.

Discovering: System.Runtime.Tests
Discovered:  System.Runtime.Tests
Starting:    System.Runtime.Tests
   System.Reflection.Tests.AssemblyNameTests.GetAssemblyName [STARTING]
Segmentation fault (core dumped)


dotnet xunit.console.netcore.exe System.ComponentModel.Composition.Tests.dll  -xml testResults.xml -notrait Benchmark=true -notrait category=nonnetcoreapptests -notrait category=nonlinuxtests  -notrait category=OuterLoop -notrait category=failing -showprogress -maxthreads 1 -method System.ComponentModel.Composition.AssemblyCatalogConstructorTests.Constructor1_LockedFileAsCodeBaseArgument_ShouldThrowFileLoad
xUnit.net console test runner (64-bit .NET Core)
Copyright (C) 2014 Outercurve Foundation.

Discovering: System.ComponentModel.Composition.Tests
Discovered:  System.ComponentModel.Composition.Tests
Starting:    System.ComponentModel.Composition.Tests
   System.ComponentModel.Composition.AssemblyCatalogConstructorTests.Constructor1_LockedFileAsCodeBaseArgument_ShouldThrowFileLoad [STARTING]
Segmentation fault (core dumped)
  1. dotnet/coreclr@383736b9:
dotnet xunit.console.netcore.exe System.Runtime.Tests.dll  -xml testResults.xml -notrait Benchmark=true -notrait category=nonnetcoreapptests -notrait category=nonlinuxtests  -notrait category=OuterLoop -notrait category=failing -showprogress -maxthreads 1 -method System.Reflection.Tests.AssemblyNameTests.GetAssemblyName
xUnit.net console test runner (64-bit .NET Core)
Copyright (C) 2014 Outercurve Foundation.

Discovering: System.Runtime.Tests
Discovered:  System.Runtime.Tests
Starting:    System.Runtime.Tests
   System.Reflection.Tests.AssemblyNameTests.GetAssemblyName [STARTING]
   System.Reflection.Tests.AssemblyNameTests.GetAssemblyName [FINISHED] Time: 0.0117775s
Finished:    System.Runtime.Tests

=== TEST EXECUTION SUMMARY ===
   System.Runtime.Tests  Total: 1, Errors: 0, Failed: 0, Skipped: 0, Time: 0.171s


dotnet xunit.console.netcore.exe System.ComponentModel.Composition.Tests.dll  -xml testResults.xml -notrait Benchmark=true -notrait category=nonnetcoreapptests -notrait category=nonlinuxtests  -notrait category=OuterLoop -notrait category=failing -showprogress -maxthreads 1 -method System.ComponentModel.Composition.AssemblyCatalogConstructorTests.Constructor1_LockedFileAsCodeBaseArgument_ShouldThrowFileLoad
xUnit.net console test runner (64-bit .NET Core)
Copyright (C) 2014 Outercurve Foundation.

Discovering: System.ComponentModel.Composition.Tests
Discovered:  System.ComponentModel.Composition.Tests
Starting:    System.ComponentModel.Composition.Tests
   System.ComponentModel.Composition.AssemblyCatalogConstructorTests.Constructor1_LockedFileAsCodeBaseArgument_ShouldThrowFileLoad [STARTING]
   System.ComponentModel.Composition.AssemblyCatalogConstructorTests.Constructor1_LockedFileAsCodeBaseArgument_ShouldThrowFileLoad [FAIL]
      Assert.Throws() Failure
      Expected: typeof(System.IO.FileLoadException)
      Actual:   typeof(System.BadImageFormatException): Could not load file or assembly '/tmp/user/1000/tmpRP9O7T.tmp'. An attempt was made to load a program with an incorrect format.
      
      Stack Trace:
            at System.Reflection.AssemblyName.nGetFileInformation(String s)
         /home/ruben/coreclr/coreclr-1/_/fx/src/System.ComponentModel.Composition/src/System/ComponentModel/Composition/Hosting/AssemblyCatalog.cs(561,0): at System.ComponentModel.Composition.Hosting.AssemblyCatalog.LoadAssembly(String codeBase)
         /home/ruben/coreclr/coreclr-1/_/fx/src/System.ComponentModel.Composition/src/System/ComponentModel/Composition/Hosting/AssemblyCatalog.cs(78,0): at System.ComponentModel.Composition.Hosting.AssemblyCatalog..ctor(String codeBase)
         /home/ruben/coreclr/coreclr-1/_/fx/src/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/Hosting/AssemblyCatalogTests.cs(171,0): at System.ComponentModel.Composition.AssemblyCatalogConstructorTests.<>c.<Constructor1_LockedFileAsCodeBaseArgument_ShouldThrowFileLoad>b__14_0(String s)
   System.ComponentModel.Composition.AssemblyCatalogConstructorTests.Constructor1_LockedFileAsCodeBaseArgument_ShouldThrowFileLoad [FINISHED] Time: 0.0883084s
Finished:    System.ComponentModel.Composition.Tests

=== TEST EXECUTION SUMMARY ===
   System.ComponentModel.Composition.Tests  Total: 1, Errors: 0, Failed: 1, Skipped: 0, Time: 0.254s
  1. dotnet/coreclr@964fa686:
dotnet xunit.console.netcore.exe System.Runtime.Tests.dll  -xml testResults.xml -notrait Benchmark=true -notrait category=nonnetcoreapptests -notrait category=nonlinuxtests  -notrait category=OuterLoop -notrait category=failing -showprogress -maxthreads 1 -method System.Reflection.Tests.AssemblyNameTests.GetAssemblyName
xUnit.net console test runner (64-bit .NET Core)
Copyright (C) 2014 Outercurve Foundation.

Discovering: System.Runtime.Tests
Discovered:  System.Runtime.Tests
Starting:    System.Runtime.Tests
   System.Reflection.Tests.AssemblyNameTests.GetAssemblyName [STARTING]
   System.Reflection.Tests.AssemblyNameTests.GetAssemblyName [FINISHED] Time: 0.0199968s
Finished:    System.Runtime.Tests

=== TEST EXECUTION SUMMARY ===
   System.Runtime.Tests  Total: 1, Errors: 0, Failed: 0, Skipped: 0, Time: 0.233s


dotnet xunit.console.netcore.exe System.ComponentModel.Composition.Tests.dll  -xml testResults.xml -notrait Benchmark=true -notrait category=nonnetcoreapptests -notrait category=nonlinuxtests  -notrait category=OuterLoop -notrait category=failing -showprogress -maxthreads 1 -method System.ComponentModel.Composition.AssemblyCatalogConstructorTests.Constructor1_LockedFileAsCodeBaseArgument_ShouldThrowFileLoad
xUnit.net console test runner (64-bit .NET Core)
Copyright (C) 2014 Outercurve Foundation.

Discovering: System.ComponentModel.Composition.Tests
Discovered:  System.ComponentModel.Composition.Tests
Starting:    System.ComponentModel.Composition.Tests
   System.ComponentModel.Composition.AssemblyCatalogConstructorTests.Constructor1_LockedFileAsCodeBaseArgument_ShouldThrowFileLoad [STARTING]
   System.ComponentModel.Composition.AssemblyCatalogConstructorTests.Constructor1_LockedFileAsCodeBaseArgument_ShouldThrowFileLoad [FAIL]
      Assert.Throws() Failure
      Expected: typeof(System.IO.FileLoadException)
      Actual:   typeof(System.BadImageFormatException): Could not load file or assembly '/tmp/user/1000/tmptXOxK5.tmp'. An attempt was made to load a program with an incorrect format.
      
      Stack Trace:
            at System.Reflection.AssemblyName.nGetFileInformation(String s)
         /home/ruben/coreclr/coreclr-1/_/fx/src/System.ComponentModel.Composition/src/System/ComponentModel/Composition/Hosting/AssemblyCatalog.cs(561,0): at System.ComponentModel.Composition.Hosting.AssemblyCatalog.LoadAssembly(String codeBase)
         /home/ruben/coreclr/coreclr-1/_/fx/src/System.ComponentModel.Composition/src/System/ComponentModel/Composition/Hosting/AssemblyCatalog.cs(78,0): at System.ComponentModel.Composition.Hosting.AssemblyCatalog..ctor(String codeBase)
         /home/ruben/coreclr/coreclr-1/_/fx/src/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/Hosting/AssemblyCatalogTests.cs(171,0): at System.ComponentModel.Composition.AssemblyCatalogConstructorTests.<>c.<Constructor1_LockedFileAsCodeBaseArgument_ShouldThrowFileLoad>b__14_0(String s)
   System.ComponentModel.Composition.AssemblyCatalogConstructorTests.Constructor1_LockedFileAsCodeBaseArgument_ShouldThrowFileLoad [FINISHED] Time: 0.0932637s
Finished:    System.ComponentModel.Composition.Tests

=== TEST EXECUTION SUMMARY ===
   System.ComponentModel.Composition.Tests  Total: 1, Errors: 0, Failed: 1, Skipped: 0, Time: 0.264s
  1. dotnet/coreclr@47bef69b:
dotnet xunit.console.netcore.exe System.Runtime.Tests.dll  -xml testResults.xml -notrait Benchmark=true -notrait category=nonnetcoreapptests -notrait category=nonlinuxtests  -notrait category=OuterLoop -notrait category=failing -showprogress -maxthreads 1 -method System.Reflection.Tests.AssemblyNameTests.GetAssemblyName
xUnit.net console test runner (64-bit .NET Core)
Copyright (C) 2014 Outercurve Foundation.

Discovering: System.Runtime.Tests
Discovered:  System.Runtime.Tests
Starting:    System.Runtime.Tests
   System.Reflection.Tests.AssemblyNameTests.GetAssemblyName [STARTING]
Segmentation fault (core dumped)


dotnet xunit.console.netcore.exe System.ComponentModel.Composition.Tests.dll  -xml testResults.xml -notrait Benchmark=true -notrait category=nonnetcoreapptests -notrait category=nonlinuxtests  -notrait category=OuterLoop -notrait category=failing -showprogress -maxthreads 1 -method System.ComponentModel.Composition.AssemblyCatalogConstructorTests.Constructor1_LockedFileAsCodeBaseArgument_ShouldThrowFileLoad
xUnit.net console test runner (64-bit .NET Core)
Copyright (C) 2014 Outercurve Foundation.

Discovering: System.ComponentModel.Composition.Tests
Discovered:  System.ComponentModel.Composition.Tests
Starting:    System.ComponentModel.Composition.Tests
   System.ComponentModel.Composition.AssemblyCatalogConstructorTests.Constructor1_LockedFileAsCodeBaseArgument_ShouldThrowFileLoad [STARTING]
Segmentation fault (core dumped)

@ruben-ayrapetyan
Copy link

ruben-ayrapetyan commented Mar 11, 2018

To clarify, the local call stack for Segmentation fault on version dotnet/coreclr@47bef69b, which is the merge of revert of dotnet/coreclr#16747:

// GDB version
#0  0x00007ffff642a653 in PEDecoder::FindNTHeaders (this=0x7fff4c010a68) at src/inc/pedecoder.inl:1211
#1  PEDecoder::HasWriteableSections (this=0x7fff4c010a68) at src/utilcode/pedecoder.cpp:456
#2  0x00007ffff60cbb76 in PEImage::CreateLayoutFlat (this=0x7fff4c0040f0, bPermitWriteableSections=<optimized out>) at src/vm/peimage.cpp:1032
#3  PEImage::GetLayoutInternal (this=0x7fff4c0040f0, imageLayoutMask=<optimized out>, flags=<optimized out>) at src/vm/peimage.cpp:934
#4  0x00007ffff60ca577 in PEImage::GetLayout (this=0x7fff4c0040f0, imageLayoutMask=<optimized out>, flags=<optimized out>) at src/vm/peimage.cpp:875
#5  0x00007ffff628ae42 in PEImage::HasNTHeaders (this=0x7fff4c0040f0) at src/vm/peimage.inl:204
#6  AssemblyNameNative::GetFileInformation (filenameUNSAFE=<optimized out>) at src/vm/assemblyname.cpp:60

// LLDB version
* frame #0: 0x00007ffff642a653 libcoreclr.so`PEDecoder::HasWriteableSections() const [inlined] PEDecoder::FindNTHeaders(this=0x00007fff4000e158) const + 3 at pedecoder.inl:1211                          
  frame #1: 0x00007ffff642a650 libcoreclr.so`PEDecoder::HasWriteableSections(this=0x00007fff4000e158) const at pedecoder.cpp:456                                                                          
  frame #2: 0x00007ffff60cbb76 libcoreclr.so`PEImage::GetLayoutInternal(unsigned int, unsigned int) [inlined] PEImage::CreateLayoutFlat(this=0x00007fff40003950) + 36 at peimage.cpp:1032                 
  frame #3: 0x00007ffff60cbb52 libcoreclr.so`PEImage::GetLayoutInternal(this=0x00007fff40003950, imageLayoutMask=<unavailable>, flags=<unavailable>) + 98 at peimage.cpp:934                              
  frame #4: 0x00007ffff60ca577 libcoreclr.so`PEImage::GetLayout(this=0x00007fff40003950, imageLayoutMask=<unavailable>, flags=<unavailable>) + 231 at peimage.cpp:875                                     
  frame #5: 0x00007ffff628ae42 libcoreclr.so`AssemblyNameNative::GetFileInformation(StringObject*) [inlined] PEImage::HasNTHeaders(this=0x00007fff40003950) + 33 at peimage.inl:204                       
  frame #6: 0x00007ffff628ae21 libcoreclr.so`AssemblyNameNative::GetFileInformation(filenameUNSAFE=<unavailable>) + 113 at assemblyname.cpp:60

The LLDB version is very similar to #27737 (comment)

@ruben-ayrapetyan
Copy link

ruben-ayrapetyan commented Mar 11, 2018

Also, not sure if it does really matter, call to PEDecoder::FindNTHeaders is located on line pedecoder.cpp:456 without the change dotnet/coreclr#16747.

With the change dotnet/coreclr#16747:

  • the line pedecoder.cpp:456 is empty
  • the line pedecoder.cpp:457 contains call to PEDecoder::FindFirstSection
  • which in turn calls FindNTHeaders from pedecoder.inl:1194
frame #0: ... libcoreclr.so`PEDecoder::HasWriteableSections() const [inlined] PEDecoder::FindNTHeaders(this=0x00007fff4c0022d8) const + 3
     at pedecoder.inl:1211
frame #1: ... libcoreclr.so`PEDecoder::HasWriteableSections(this=0x00007fff4c0022d8) const
     at pedecoder.cpp:456

@danmoseley
Copy link
Member

Is it possible to download the archive of binaries from the CI to try running them locally?

Did you already try setting a remote to https://github.com/jkotas/corefx and checking out the "test" branch? This should give you exactly what the CI built. I would do a git clean -fdx before building, to be sure.

As for figuring out exactly what CoreCLR commit the bits have, the easiest way to know for sure is to determine which system.private.corelib.dll is getting loaded, then look at that assembly in a tool like ILDASM or ILSPY for the CoreCLR commit hash in its assembly metadata, eg here is one from a different one:

[assembly: AssemblyInformationalVersion("4.6.25015.04 built by: dlab-DDVSOWINAGE016. Commit Hash: 94d1639d5d0b969489abbb3ce78b11a72c4493c4")]

@ruben-ayrapetyan
Copy link

ruben-ayrapetyan commented Mar 11, 2018

@danmosemsft
Yes, I use the test branch (2ace55e). Although, I didn't git clean -fdx, I removed the bin directory.
I could try with git clean -fdx also.


For now, I reproduced the Segmentation fault locally using runtime from runtime.linux-x64.Microsoft.NETCore.Runtime.CoreCLR.2.1.0-preview2-26306-01.nupkg (https://dotnetmyget.blob.core.windows.net/privatefeeddotnet0core/runtime.linux-x64.Microsoft.NETCore.Runtime.CoreCLR-2.1.0-preview2-26306-01?sv=2015-12-11&sr=b&sig=bcx4jjXwsPhhbEgMQzG4rTdPbraHBMh2UKr9qz1EqEU%3D&st=2018-03-11T21:55:00Z&se=2018-03-11T23:05:00Z&sp=r&rscc=max-age%3D3600&rsct=binary%2Foctet-stream&rscd=filename%3Druntime.linux-x64.Microsoft.NETCore.Runtime.CoreCLR.2.1.0-preview2-26306-01.nupkg)

However, objdump -d for libcoreclr.so (sha256 fd21d0c42b98cd6957cfd88f130c35061638e2725bd90226b0a1fe39adf21a1b) from the package shows that:

  • PEImage::Load calls CheckFormat, and doesn't call CheckILOnlyFormat
  • PEImage::CreateFlatLayout doesn't call CheckNTHeaders

According to #27737 (comment), this should indicate that the libcoreclr.so was built without dotnet/coreclr#16747 change

As for figuring out exactly what CoreCLR commit the bits have, the easiest way to know for sure is to determine which system.private.corelib.dll is getting loaded, then look at that assembly in a tool like ILDASM or ILSPY for the CoreCLR commit hash in its assembly metadata, eg here is one from a different one:

System.PrivateCoreLib.dll (sha256 7b5037c06117fecac0b1dbfe254d9fe6a8031d22b958fd5417d87f1f76b9f09c) from the package shows commit hash dotnet/coreclr@aea934091c11eb25eb11, which is before merge of dotnet/coreclr#16747

@ruben-ayrapetyan
Copy link

Do I understand correctly that the CI run used 2.1.0-preview2-26306-01 version?

@danmoseley
Copy link
Member

The CI job has
<CoreClrCurrentRef>58c7375b3bb24910c9384d1aaa67e74c8e376de1</CoreClrCurrentRef>
this commit is always from the dotnet/versions repo:

C:\git\versions>git show 58c7375b3bb24910c9384d1aaa67e74c8e376de1:build-info/dotnet/coreclr/master/Last_Build_Packages.txt | find /i "coreclr"
Microsoft.NETCore.Runtime.CoreCLR 2.1.0-preview2-26306-01

which gives

Microsoft.NETCore.Runtime.CoreCLR 2.1.0-preview2-26306-01

So yes.

@danmoseley
Copy link
Member

And from this we can get the commit most easily using myget:

https://dotnet.myget.org/feed/dotnet-core/package/nuget/Microsoft.NETCore.Runtime.CoreCLR/2.1.0-preview2-26306-01

The .NET Core runtime, called CoreCLR, and the base library, called System.Private.CoreLib. It includes the garbage collector, JIT compiler, base .NET data types and many low-level classes. aea934091c11eb25eb11cb624780ba9e70c72641 When using NuGet 3.x this package requires at least version 3.4.

So aea9340 which confirms what you see.

@ruben-ayrapetyan
Copy link

ruben-ayrapetyan commented Mar 13, 2018

Do I understand correctly that the CI run used 2.1.0-preview2-26306-01 version?
So yes.

So aea9340 which confirms what you see.

The commit hash dotnet/coreclr@aea9340 is before merge of dotnet/coreclr#16747

Does it imply that the CI checked something different than expected?

I get Segmentation fault on the following versions of CoreCLR:

dotnet/coreclr@5b553b8 (just before the merge of dotnet/coreclr#16747)
dotnet/coreclr@47bef69 (the merge of revert of dotnet/coreclr#16747)

and I don't get Segmentation fault on the following versions:

dotnet/coreclr@383736b (the merge of dotnet/coreclr#16747)
dotnet/coreclr@964fa68 (two commits before the merge of revert of dotnet/coreclr#16747)

This suggests that the change dotnet/coreclr#16747 didn't introduce the regression - other way around, it fixed the failure that looked as a regression. Does the analysis look correct?

@danmoseley
Copy link
Member

danmoseley commented Mar 13, 2018

Logs above are unfortunately gone, but based on history above #27737 (comment) is the first one where Linux definitely failed - that one introduced CoreCLR preview2-26305-12 - and preview2-26306-01 is the last one before @stephentoub commented it segfaulted so it definitely contained the problem.

Looking at https://dotnet.myget.org/feed/dotnet-core/package/nuget/Microsoft.NETCore.Runtime.CoreCLR/2.1.0-preview2-26305-12 I see this corresponds to CoreCLR dotnet/coreclr@1affbe5. Similarly 26306-01 corresponds to dotnet/coreclr@aea9340.

.. and both were BEFORE your dotnet/coreclr#16747 which was dotnet/coreclr@383736b:

C:\git\coreclr>git rev-list  383736b | find /i "1affbe5"
1affbe5800ab35836e14e3d7fbe133f8762c1779

C:\git\coreclr>git rev-list  383736b | find /i "aea9340"
aea934091c11eb25eb11cb624780ba9e70c72641

So this seems to eliminate your change as the cause. However I do not understand why we did not see the segfault before. At this point I am inclined to recommend you put your change back in CoreCLR. As an extra check, in your PR in CoreCLR you can request it run CoreFX tests:

@dotnet-bot test Windows_NT x86 corefx_baseline
@dotnet-bot test Ubuntu x64 corefx_baseline

cc @jkotas.

@stephentoub
Copy link
Member

stephentoub commented Mar 13, 2018

At this point I am inclined to recommend you put your change back in CoreCLR. As an extra check, in your PR in CoreCLR you can request it run CoreFX tests

If we still believe there may be a negative interaction with the tests that were permanently disabled on Unix, I'd suggest we re-enable those (with whatever changes they need) before putting the change back.

@danmoseley
Copy link
Member

Ah, yes, @ruben-ayrapetyan you may want to submit a revert of f31d24f in CoreFX before doing the change again in CoreCLR.

Note that when you request CoreFX tests in a CoreCLR CI job, it uses HEAD of CoreFX, so it will immediately "see" your revert.

Thanks for your patience...

@danmoseley
Copy link
Member

And @ruben-ayrapetyan also apologies for apparently misattributing ths issue.

@stephentoub
Copy link
Member

you may want to submit a revert of f31d24f

It can't just be a revert; the tests will need to also be changed to expect a different exception type on Unix.

@jkotas
Copy link
Member

jkotas commented Mar 13, 2018

I understand what happened: Change that made System.ComponentModel.Composition.Tests crash was dotnet/coreclr#16752 . The tests stopped failing on file lock violation and proceeded further and hit https://github.com/dotnet/coreclr/issues/15544 that was being fixed by dotnet/coreclr#16747.

I have submitted revert of the revert as dotnet/coreclr#16917 . @ruben-ayrapetyan Thanks for helping us to trace this down, and apologizes for the false alarm.

Wrt tests: dotnet/coreclr#16747 is adding a simple regression test to CoreCLR. I am going to take a look whether it make sense to re-enable and update the System.ComponentModel.Composition.Tests .

@ruben-ayrapetyan
Copy link

And @ruben-ayrapetyan also apologies for apparently misattributing ths issue.

Thanks for helping us to trace this down, and apologizes for the false alarm.

It's fine.

I have submitted revert of the revert as dotnet/coreclr#16917 .

Thank you @danmosemsft, @jkotas.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants