<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>44332</bug_id>
          
          <creation_ts>2022-11-17 09:29:01 +0300</creation_ts>
          <short_desc>Ошибка при создании приложения dotnet</short_desc>
          <delta_ts>2026-09-05 13:44:37 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>dotnet-3.1</component>
          <version>unstable</version>
          <rep_platform>e2k</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Радюк Михаил">torabora08</reporter>
          <assigned_to name="Michael Shigorin">mike</assigned_to>
          <cc>lav</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>217484</commentid>
    <comment_count>0</comment_count>
    <who name="Радюк Михаил">torabora08</who>
    <bug_when>2022-11-17 09:29:01 +0300</bug_when>
    <thetext>При попытке создать приложение или выполнить какую-либо другую команду dotnet возникает ошибка вида &quot;System.AccessViolationException: Attempted to read or write protected memory&quot;.

Архитектура e2kv6, версия пакета:
dotnet-bootstrap-3.1-3.1.14-alt2.E2K.1.e2kv5

Шаги для воспроизведения:
# apt-get install dotnet-bootstrap-3.1

$ export PATH=/usr/lib64/dotnet-bootstrap-3.1:$PATH DOTNET_SYSTEM_NET_HTTP_USESOCKETSHTTPHANDLER=0

$ dotnet new console -o MyApp

Fatal error. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
   at Microsoft.AspNetCore.Certificates.Generation.CertificateManager.ListCertificates(Microsoft.AspNetCore.Certificates.Generation.CertificatePurpose, System.Security.Cryptography.X509Certificates.StoreName, System.Security.Cryptography.X509Certificates.StoreLocation, Boolean, Boolean, DiagnosticInformation)
   at Microsoft.AspNetCore.Certificates.Generation.CertificateManager.EnsureValidCertificateExists(System.DateTimeOffset, System.DateTimeOffset, Microsoft.AspNetCore.Certificates.Generation.CertificatePurpose, System.String, Boolean, Boolean, System.String, System.String, Boolean)
   at Microsoft.AspNetCore.Certificates.Generation.CertificateManager.EnsureAspNetCoreHttpsDevelopmentCertificate(System.DateTimeOffset, System.DateTimeOffset, System.String, Boolean, Boolean, System.String, System.String, Boolean)
   at Microsoft.AspNetCore.DeveloperCertificates.XPlat.CertificateGenerator.GenerateAspNetHttpsCertificate()
   at Microsoft.DotNet.Cli.AspNetCoreCertificateGenerator.GenerateAspNetCoreDevelopmentCertificate()
   at Microsoft.DotNet.Configurer.DotnetFirstTimeUseConfigurer.GenerateAspNetCertificate()
   at Microsoft.DotNet.Configurer.DotnetFirstTimeUseConfigurer.Configure()
   at Microsoft.DotNet.Cli.Program.ConfigureDotNetForFirstTimeUse(Microsoft.DotNet.Configurer.IFirstTimeUseNoticeSentinel, Microsoft.DotNet.Configurer.IAspNetCertificateSentinel, Microsoft.DotNet.Configurer.IFileSentinel, Boolean, Microsoft.DotNet.Configurer.DotnetFirstRunConfiguration, Microsoft.DotNet.Cli.Utils.IEnvironmentProvider)
   at Microsoft.DotNet.Cli.Program.ProcessArgs(System.String[], Microsoft.DotNet.Cli.Telemetry.ITelemetry)
   at Microsoft.DotNet.Cli.Program.Main(System.String[])
Aborted

PS Такая же версия dotnet на Elbrus Linux 7.1 отрабатывает штатно.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>217527</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2022-11-17 13:22:55 +0300</bug_when>
    <thetext>Это всё-таки явно не к Виталику, ну и ты забыл упомянуть, что на v6 запускается в виртуалке -- возможно, какие-либо наводки от другого ядра.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>295728</commentid>
    <comment_count>2</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2026-09-05 13:44:37 +0300</bug_when>
    <thetext>dotnet-bootstrap-3.1 удалён из Сизифа заданием 325683 (27.07.2023, .NET Core 3.1 снят с поддержки апстримом): https://packages.altlinux.org/tasks/325683/ — неактуально.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>