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

Fix Segfault in PerfInfo Image Logging #26910

Merged
merged 1 commit into from
Oct 15, 2019

Conversation

brianrob
Copy link
Member

@brianrob brianrob commented Sep 26, 2019

Description

Limits entries in the perfinfo-.map file to disk-based assemblies that are ready to run images.

Customer Impact

Fixes an AV that occurred when dynamically generated assemblies are loaded when COMPlus_PerfMapEnabled=1. The result of profiling on Linux should be unchanged.

Regression

This is a regression from 3.0-preview9 which occurred due to the fact that new versions of perf_events are now emitting virtual addresses instead of file offsets. The change that caused this regression was a reaction to the perf_events change.

Risk

Minimal, and should be limited to when COMPlus_PerfMapEnabled=1.

Tests

No tests added as part of this change. It would be useful to do so, but will require a mechanism to set environment variables before the process starts. Recommend following up on this.

Fixes #26883

@brianrob brianrob added this to the 3.0.x milestone Sep 26, 2019
@jeffschwMSFT
Copy link
Member

cc @MeiChin-Tsai

@vivmishra vivmishra added the Servicing-approved Approved for servicing release label Oct 4, 2019
@vivmishra vivmishra modified the milestones: 3.0.x, 3.0.2 Oct 4, 2019
@brianrob brianrob added the * NO MERGE * The PR is not ready for merge yet (see discussion for detailed reasons) label Oct 4, 2019
@leecow leecow removed * NO MERGE * The PR is not ready for merge yet (see discussion for detailed reasons) ask-mode labels Oct 15, 2019
@leecow leecow modified the milestones: 3.0.2, 3.0.1 Oct 15, 2019
@brianrob brianrob merged commit ecfe3bc into dotnet:release/3.0 Oct 15, 2019
@brianrob brianrob deleted the perfmap_segfault_3.0 branch October 15, 2019 18:23
mmitche pushed a commit that referenced this pull request Dec 2, 2019
* Fix Segfault in PerfInfo Image Logging (#26910)

* update branding for 3.0.2 (#27896)

* update branding

* remove stable properties from coreclr as it never stablises

* [release/3.0] Fix use of ilasm during test builds when using a 3.0 SDK (#27820)

* Add fix for restore of ilasm

The restore logic in buildtools tried to use a netcoreapp2.1 TFM for Linux-musl.
This ended up restoring Linux-x64 binaries which then broke the test build.
This change works around this by saving a copy of the depproj that BuildTools used into
the tree and restore it as a 3.0 app manually in init-tools on our side of the build.

* Change to a 3.0 SDK for servicing

* Bump test versions of ilasm and runtime package to match the RC

* Move off of the old arm32 queue (#27905)

* Add alpine3.10 testing to 3.0 (#27214)

* Fix GetSequencePoints when profiler provides mapping via SetILInstrumentedCodeMap (#27843)

Port #25802 to 3.0.2

* [release/3.0] Update dependencies from dotnet/core-setup (#27910)

* Update dependencies from https://github.com/dotnet/core-setup build 20191016.12

- Microsoft.NETCore.App - 3.0.1-servicing-19516-12

* Update dependencies from https://github.com/dotnet/core-setup build 20191121.02

- Microsoft.NETCore.App - 3.0.2-servicing-19571-02
wtgodbe pushed a commit that referenced this pull request Jan 17, 2020
* Fix Segfault in PerfInfo Image Logging (#26910)

* update branding for 3.0.2 (#27896)

* update branding

* remove stable properties from coreclr as it never stablises

* [release/3.0] Fix use of ilasm during test builds when using a 3.0 SDK (#27820)

* Add fix for restore of ilasm

The restore logic in buildtools tried to use a netcoreapp2.1 TFM for Linux-musl.
This ended up restoring Linux-x64 binaries which then broke the test build.
This change works around this by saving a copy of the depproj that BuildTools used into
the tree and restore it as a 3.0 app manually in init-tools on our side of the build.

* Change to a 3.0 SDK for servicing

* Bump test versions of ilasm and runtime package to match the RC

* Move off of the old arm32 queue (#27905)

* Add alpine3.10 testing to 3.0 (#27214)

* Fix GetSequencePoints when profiler provides mapping via SetILInstrumentedCodeMap (#27843)

Port #25802 to 3.0.2

* [release/3.0] Update dependencies from dotnet/core-setup (#27910)

* Update dependencies from https://github.com/dotnet/core-setup build 20191016.12

- Microsoft.NETCore.App - 3.0.1-servicing-19516-12

* Update dependencies from https://github.com/dotnet/core-setup build 20191121.02

- Microsoft.NETCore.App - 3.0.2-servicing-19571-02

* update brandint to 3.0.3 (#27993)

* Update branding to 3.0.3 (#27997)

eng/Versions.props doesn't seem to the the source of truth for branding

* Fix infrastructure issues in release 3.0 (#28000)

* Restore Helix SDK using Tools.props to work around MSBuild race condition
* Disable formatting jobs
* Disable ARM windows jobs
* Fix tracing in RHEL6 build

* [release/3.0] Update dependencies from dotnet/arcade (#26889)

* Update dependencies from https://github.com/dotnet/arcade build 20190924.3

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19474.3
- Microsoft.DotNet.Build.Tasks.Feed - 2.2.0-beta.19474.3
- Microsoft.DotNet.Build.Tasks.Packaging - 1.0.0-beta.19474.3
- Microsoft.DotNet.Helix.Sdk - 2.0.0-beta.19474.3

* Update NuGet.config

* Update runtime versions

* Update dependencies from https://github.com/dotnet/arcade build 20191119.2

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19569.2
- Microsoft.DotNet.Build.Tasks.Feed - 2.2.0-beta.19569.2
- Microsoft.DotNet.Build.Tasks.Packaging - 1.0.0-beta.19569.2
- Microsoft.DotNet.Helix.Sdk - 2.0.0-beta.19569.2

* Update dependencies from https://github.com/dotnet/arcade build 20191122.3

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19572.3
- Microsoft.DotNet.Build.Tasks.Feed - 2.2.0-beta.19572.3
- Microsoft.DotNet.Build.Tasks.Packaging - 1.0.0-beta.19572.3
- Microsoft.DotNet.Helix.Sdk - 2.0.0-beta.19572.3

* Update dependencies from https://github.com/dotnet/arcade build 20191127.5

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19577.5
- Microsoft.DotNet.Build.Tasks.Feed - 2.2.0-beta.19577.5
- Microsoft.DotNet.Build.Tasks.Packaging - 1.0.0-beta.19577.5
- Microsoft.DotNet.Helix.Sdk - 2.0.0-beta.19577.5

* Add coreclr static feed to NuGet.config

Co-authored-by: Matt Mitchell <[email protected]>
Co-authored-by: Juan Hoyos <[email protected]>

Co-authored-by: Brian Robbins <[email protected]>
Co-authored-by: Anirudh Agnihotry <[email protected]>
Co-authored-by: Juan Hoyos <[email protected]>
Co-authored-by: Jarret Shook <[email protected]>
Co-authored-by: David Mason <[email protected]>
Co-authored-by: dotnet-maestro[bot] <42748379+dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Matt Mitchell <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Servicing-approved Approved for servicing release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants