Skip to content

Don't enable FeatureXplatEventSource for linux-bionic - #137158

Merged
akoeplinger merged 2 commits into
dotnet:mainfrom
virzak:fix/bionic-xplat-eventsource
Nov 11, 2026
Merged

akoeplinger merged 2 commits into
dotnet:mainfrom
virzak:fix/bionic-xplat-eventsource

Conversation

@virzak

@virzak virzak commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

A VMR build for linux-bionic has TargetOS=linux, so CoreLib gets FeatureXplatEventSource while clrfeatures.cmake leaves FEATURE_EVENTSOURCE_XPLAT off for Android. CoreLib then calls EventSource_GetClrConfig, which the runtime doesn't register, and the first EventSource (for example ArrayPoolEventSource, from any interpolated string) jumps to a null P/Invoke target.

Follow-up to #131115. Found and verified with a 10.0.13 source build running on Android.

@dotnet-policy-service dotnet-policy-service Bot added the community-contribution Indicates that the PR has been added by a community member label Nov 8, 2026
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).
12 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @dotnet/runtime-infrastructure
See info in area-owners.md if you want to be subscribed.

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to 'arch-android': @vitek-karas, @simonrozsival, @steveisok, @akoeplinger
See info in area-owners.md if you want to be subscribed.

@jkotas

jkotas commented Nov 9, 2026

Copy link
Copy Markdown
Member
  • Does this problem still exist on the current main?
  • If it does, we are missing a bionic test configuration for CoreCLR.

@virzak

virzak commented Nov 9, 2026

Copy link
Copy Markdown
Contributor Author

Yes, still broken on main. The only bionic leg is Mono, and its test runs are disabled (#100281). I added a CoreCLR build leg, which would have caught #137159, but not this one since it only fails at runtime.

@jkotas

jkotas commented Nov 10, 2026

Copy link
Copy Markdown
Member

Since you are working with linux bionic, do you happen to have a read how broken is it currently - how many tests are failing?

@virzak

virzak commented Nov 11, 2026

Copy link
Copy Markdown
Contributor Author

I ran 12 library test suites from 10.0.13 on two arm64 Android devices (Termux's CoreCLR build): Runtime, Globalization, IO.FileSystem, Console, Process, Tracing, Threading, Threading.Thread, IO.Pipes, Sockets, Cryptography and InteropServices. That's ~103k tests, with 42 failures and no crashes or hangs.

Most are the Android sandbox (SELinux denying /proc reads, netlink sockets and enumerating /) or tests hardcoding /tmp. The rest are small: #117760, thread priority, GMT not flagged as an IANA ID, SendFile cancellation timing.

The one product bug I found isn't covered by tests: CurrentCulture is always invariant on bionic because setlocale returns "C.UTF-8", so ICU never reads LANG.

@akoeplinger

Copy link
Copy Markdown
Member

/ba-g unrelated failures on wasi

@akoeplinger
akoeplinger merged commit 6137f96 into dotnet:main Nov 11, 2026
195 of 203 checks passed
@virzak
virzak deleted the fix/bionic-xplat-eventsource branch November 11, 2026 12:26
@virzak

virzak commented Nov 11, 2026

Copy link
Copy Markdown
Contributor Author

@akoeplinger could this, #137159 and #137198 go to release/11.0? 11.0 enables CoreCLR for linux-bionic (#131115), so a source build of it currently has no bundled CoreCLR runtime pack, crashes on the first EventSource, and reports the wrong console size.

akoeplinger added a commit that referenced this pull request Nov 11, 2026
<!-- -->

Remove remaining Mono CI coverage for Apple and Android: the iOS
simulator smoke job, Android outerloop leg, and iOS/Android performance
sample builds.

Convert the existing Linux Bionic job to CoreCLR and remove the
additional CoreCLR job introduced in #137158. The Bionic matrix now
honors the selected runtime. Desktop/browser Mono coverage and shared
mobile tooling are unchanged.

> [!NOTE]
> This PR description was generated with GitHub Copilot.

Co-authored-by: Copilot App <[email protected]>
@akoeplinger

Copy link
Copy Markdown
Member

@virzak can you please open a new issue tracking that? we should make sure that we have all of the fixes before we do backports

@virzak

virzak commented Nov 11, 2026

Copy link
Copy Markdown
Contributor Author

Opened #137361. It also lists a named mutex regression on Android that I'll send a PR for.

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

Labels

area-Infrastructure community-contribution Indicates that the PR has been added by a community member os-android

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants