Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dotnet trace doesn't work on alpine #795

Open
mpozniak95 opened this issue May 18, 2023 · 1 comment
Open

Dotnet trace doesn't work on alpine #795

mpozniak95 opened this issue May 18, 2023 · 1 comment
Labels
bug Something isn't working runtime/dotnet

Comments

@mpozniak95
Copy link
Contributor

Running dotnet profiling in gprofiler_exe on alpine results with:

FileNotFoundError: [Errno 2] No such file or directory: '/tmp/_MEIUIo28e/gprofiler/resources/dotnet/tools/dotnet-trace'

Dotnet-trace needs to run with via_staticx parameter when we invoke it - this way, it runs in staticx context. Also it will require packing additional libraries into the executable

@Jongy Jongy added bug Something isn't working runtime/dotnet labels May 18, 2023
@mpozniak95
Copy link
Contributor Author

Adding staticx $LIBS -l gprofiler/resources/dotnet/tools/ dist/gprofiler dist/gprofiler ; \ leads to another exception:
stderr: Process terminated. Couldn't find a valid ICU package installed on the system. Please install libicu using your package manager and try again. Alternatively you can set the configuration flag System.Globalization.Invariant to true if you want to run with no globalization support. Please see https://aka.ms/dotnet-missing-libicu for more information. at System.Environment.FailFast(System.String) at System.Globalization.GlobalizationMode+Settings..cctor() at System.Globalization.CultureData.CreateCultureWithInvariantData() at System.Globalization.CultureData.get_Invariant() at System.Globalization.CultureInfo..cctor() at System.Globalization.CultureInfo.get_CurrentCulture() at System.String.StartsWith(System.String, System.StringComparison) at System.String.StartsWith(System.String) at System.CommandLine.Parsing.StringExtensions.RemovePrefix(System.String) at System.CommandLine.Option.AddAliasInner(System.String) at System.CommandLine.Option..ctor(System.String[], System.String) at Microsoft.Diagnostics.Tools.Trace.CommonOptions.ProcessIdOption() at Microsoft.Diagnostics.Tools.Trace.CollectCommandHandler.CollectCommand() at Microsoft.Diagnostics.Tools.Trace.Program.Main(System.String[]) at Microsoft.Diagnostics.Tools.Trace.Program.<Main>(System.String[])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working runtime/dotnet
Projects
None yet
Development

No branches or pull requests

2 participants