Dotnet new console ошибка сегментирования

When I try to run ‘dotnet new console’ in either the Ubuntu or VS Code Terminal, I get the following error

Segmentation fault (core dumped)

Running it in the Ubuntu Terminal seems to give more information, looks like it’s failing to do the ‘dotnet restore’ that automatically runs when you do ‘dotnet new console’

Getting ready...
The template "Console Application" was created successfully.

Processing post-creation actions...
Running 'dotnet restore' on /home/max/Programming/C Sharp/Hello World/Hello World.csproj...
  Determining projects to restore...
Restore failed.
Post action failed.
Description: Restore NuGet packages required by this project.
Manual instructions: Run 'dotnet restore'

Segmentation fault (core dumped)

Running dotnet restore manually just gives the segfault error

Version of Ubuntu is 21.04, I have already installed everything as per https://learn.microsoft.com/en-us/dotnet/core/install/linux-ubuntu#2104-

Another thing to note is that I can build and run C Sharp applications fine in Monodevelop, and I can run non .NET languages such as Python fine in VS Code

Any ideas / assistance would be appreciated, thanks

@omajid

Can you run an strace and upload the log file (logfile below) somewhere?

strace -f -o logfile dotnet new console -o hwapp

Edit: does dotnet --info work?

@erralb

Here you go :

$ dotnet --info
.NET Command Line Tools (2.0.0)

Product Information:
 Version:            2.0.0
 Commit SHA-1 hash:  cdcd1928c9

Runtime Environment:
 OS Name:     debian
 OS Version:  
 OS Platform: Linux
 RID:         debian-x64
 Base Path:   /usr/share/dotnet/sdk/2.0.0/

Microsoft .NET Core Shared Framework Host

  Version  : 2.0.0
  Build    : e8b8861ac7faf042c87a5c2f9f2d04c98b69f28d

The strace also returns a segmentation fault :


$ strace -f -o logfile dotnet new console -o hwapp
Getting ready...
[1]    1297 segmentation fault  strace -f -o logfile dotnet new console -o hwapp

@erralb

Hi, any news on this ? Anything else I can do to help debug?

@Petermarcu

@livarcocc is this the one people have been working around by disabling the first run experience?

@Petermarcu

@erralb

export DOTNET_CLI_TELEMETRY_OPTOUT=1

removed the segmentation fault for me

woxip0, englebt, marcan2020, lakesare, diegotrujillor, agiv, matheuspicioli, rafed, yhnavein, schmidbt, and 28 more reacted with thumbs up emoji
0x1100010010, Shahed-Atik, and DoginUwU reacted with hooray emoji
vitorpiovezam, gilles-leblanc, c-zab, RedlineTriad, Scharps, 0x1100010010, kolaczyn, Dunigan, and DoginUwU reacted with heart emoji
0x1100010010 and DoginUwU reacted with rocket emoji
0x1100010010 and DoginUwU reacted with eyes emoji

@Petermarcu

@erralb

should I close the issue or you want it left open until a real fix has been issued?

@Petermarcu

Lets leave it open until @livarcocc confirms that there is an issue somewhere tracking the fix. Once we have that, this can be closed. Thanks @ierpe!

@livarcocc

@Petermarcu @steveharter can you help debug this and understand why the telemetry code is causing a seg fault? If this were in native code, I would expect a stack trace somewhere. But we will investigate.

@omajid

@erralb

@steveharter

@livarcocc I’m installing fresh debian now, will report back tomorrow.

@steveharter

I couldn’t repro. I used debian stretch. One difference is that dotnet --info reports the RID as Linux-x64 instead of debian-x64.

dotnet --info
.NET Command Line Tools (2.0.0)

Product Information:
 Version:            2.0.0
 Commit SHA-1 hash:  cdcd1928c9

Runtime Environment:
 OS Name:     debian
 OS Version:  9
 OS Platform: Linux
 RID:         linux-x64
 Base Path:   /usr/share/dotnet/sdk/2.0.0/

Microsoft .NET Core Shared Framework Host

  Version  : 2.0.0
  Build    : e8b8861ac7faf042c87a5c2f9f2d04c98b69f28d

@ierpe what is the contents of your /etc/apt/sources.list.d/dotnetdev.list file? I have:

deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-debian-stretch-prod stretch main

@icedfish

the same issue @Mac
the official guide says:

dotnet new console -o hwapp
cd hwapp

I checked the dotnet help (dotnet core sdk 2.0)

~ dotnet help new
.NET Initializer

Usage: dotnet new [options]

Options:
  -h|--help             Show help information
  -l|--lang <LANGUAGE>  Language of project [C#|F#]
  -t|--type <TYPE>      Type of project
➜  source mkdir dotnet

all the guide shuold be update to :

mkdir -p hwapp
cd hwapp
dotnet new -t console

@erralb

@steveharter

FWIW here’s my Debian Stretch environment (no repro, clean install)


$ curl -V
curl 7.52.1 (x86_64-pc-linux-gnu) libcurl/7.52.1 OpenSSL/1.0.2l zlib/1.2.8 libidn2/0.16 libpsl/0.17.0 (+libidn2/0.16) libssh2/1.7.0 nghttp2/1.18.1 librtmp/2.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: AsynchDNS IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz TLS-SRP HTTP2 UnixSockets HTTPS-proxy PSL

$ openssl version
OpenSSL 1.1.0f  25 May 2017

$ cat /proc/version
Linux version 4.9.0-3-amd64 (debian-kernel@lists.debian.org) (gcc version 6.3.0 20170516 (Debian 6.3.0-18) ) #1 SMP Debian 4.9.30-2+deb9u5 (2017-09-19)

$ cat /etc/*-release
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
NAME="Debian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

@steveharter

@icedfish

the same issue @mac

So you’re also getting the seg fault during dotnet new console?

Does export DOTNET_CLI_TELEMETRY_OPTOUT=1 prevent the seg fault?

@steveharter

@ierpe have you tried to debug the seg fault, or look at any dumps in order to determine the crashing module\stack? I can send you gdb instructions.

@omajid

@icedfish

I checked the dotnet help (dotnet core sdk 2.0)

Can you confirm this? What does dotnet --version say? What does dotnet --info say?

~ dotnet help new
.NET Initializer

Usage: dotnet new [options]

Options:
  -h|--help             Show help information
  -l|--lang <LANGUAGE>  Language of project [C#|F#]
  -t|--type <TYPE>      Type of project
➜  source mkdir dotnet

That looks like the older 1.0 Preview SDK. -t does not work with the 1.x or 2.x SDKs.

@erralb

@steveharter

@ierpe probably the easiest way is to catch the seg fault with gdb if you can. You’ll likely need to be root to install that. So

su
apt-get install gdb
exit

and then run dotnet:

gdb --args dotnet new console
run

after seg fault

hopefully you get a crashing module (libcurl?) and stack.

@icedfish

@omajid sorry , I checked my system, find that I used to install the old 1.0RC SDK before install the new 2.0 sdk.

after uninstall the old version by the cli script
and reinstalled the sdk 2.0, It’s ok now.

But it’s really puzzle, the the 2.0 sdk not remove the old sdk automaticlly or even notify me the incompact…..

@erralb

@steveharter is that what you wanted ?


$ gdb --args dotnet new console
GNU gdb (Debian 7.12-6) 7.12.0.20161007-git
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from dotnet...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/dotnet new console
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7f0ea6576700 (LWP 11703)]
[New Thread 0x7f0e9ffff700 (LWP 11704)]
[New Thread 0x7f0ea5d75700 (LWP 11705)]
[New Thread 0x7f0ea5574700 (LWP 11706)]
[New Thread 0x7f0ea4d73700 (LWP 11707)]
[New Thread 0x7f0e9f7fe700 (LWP 11708)]
[New Thread 0x7f0e2e140700 (LWP 11709)]
[Thread 0x7f0e2e140700 (LWP 11709) exited]
[New Thread 0x7f0e2e140700 (LWP 11710)]
[New Thread 0x7f0ea41b9700 (LWP 11711)]
[New Thread 0x7f0e2d93f700 (LWP 11712)]
[New Thread 0x7f0e2d13e700 (LWP 11713)]
[New Thread 0x7f0ea4178700 (LWP 11714)]
[New Thread 0x7f0e07ffd700 (LWP 11715)]
[New Thread 0x7f0e077fc700 (LWP 11716)]
[New Thread 0x7f0deed59700 (LWP 11717)]
[New Thread 0x7f0dee558700 (LWP 11718)]
[Thread 0x7f0dee558700 (LWP 11718) exited]

Thread 16 "dotnet" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7f0deed59700 (LWP 11717)]
0x00007f0e2c67dd6d in ?? () from /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0
(gdb) backtrace
#0  0x00007f0e2c67dd6d in ?? ()
   from /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0
#1  0x00007f0e2c678c8b in X509_verify_cert ()
   from /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0
#2  0x00007f0e31168e06 in ?? ()
#3  0x00007f0deed57e50 in ?? ()
#4  0x6c00fa377b77ae7b in ?? ()
#5  0x0000000007bcbd60 in ?? ()
#6  0x00007f0ea83f5488 in ?? ()
   from /usr/share/dotnet/shared/Microsoft.NETCore.App/2.0.0/libcoreclr.so
#7  0x00007f0deed58688 in ?? ()
#8  0x00007f0e312a2580 in ?? ()
#9  0x00007f0e312a2580 in ?? ()
#10 0x00007f0deed57e50 in ?? ()
#11 0x00007f0e31168e06 in ?? ()
#12 0x00007f0deed57ee0 in ?? ()
#13 0x00007f0e312a2580 in ?? ()
#14 0x00007f0e083b6760 in ?? ()
#15 0x0000000000000001 in ?? ()
#16 0x00007f0e080de958 in ?? ()
#17 0x00007f0e08634f90 in ?? ()
#18 0x00007f0e08634f20 in ?? ()
#19 0x00007f0e083b6760 in ?? ()
---Type <return> to continue, or q <return> to quit---
#20 0x00007f0de40ff270 in ?? ()
#21 0x00007f0deed57f50 in ?? ()
#22 0x00007f0e30f7ce57 in ?? ()
#23 0x00007f0deed57ef0 in ?? ()
#24 0x00007f0e08634f20 in ?? ()
#25 0x00007f0e080de958 in ?? ()
#26 0x0000000000000000 in ?? ()

@steveharter

@ierpe yes thanks. It is likely crashing when calling into OpenSsl.

Can you run a couple commands please:
$ openssl version
and
ls /usr/lib/x86_64-linux-gnu/libssl.so.*

You should get back
OpenSSL 1.1.0f 25 May 2017
and
/usr/lib/x86_64-linux-gnu/libssl.so.1.0.2 /usr/lib/x86_64-linux-gnu/libssl.so.1.1

If not, and you’re getting the 1.0.0 version you can give this a try:

apt-get remove ssl1.0.0
apt-get install ssl1.0.2

@erralb

@steveharter


$ openssl version
OpenSSL 1.1.0f  25 May 2017

$ ls /usr/lib/x86_64-linux-gnu/libssl.so.*
/usr/lib/x86_64-linux-gnu/libssl.so.1.0.0
/usr/lib/x86_64-linux-gnu/libssl.so.1.0.2
/usr/lib/x86_64-linux-gnu/libssl.so.1.1

@steveharter

@ierpe since you have the 1.0.0 version, that is likely conflicting and has been a problem for others. You can remove that by doing an apt-get remove ssl1.0.0

Typically the 1.0.0 version is there due to an upgrade to stretch or buster, and not a clean install. It could have come from another app’s dependency as well.

cc @bartonjs is there an issue to address this in some manner? Like if 1.0.2 is there use that first. Thanks

@erralb

@steveharter removing ssl1.0.0 fixed it for me, thanks for the support!

@thetravis

@steveharter The reason I had 1.0.0 version was that spotify-client depends on it and I had manually installed it. Please refer to my post in #649

This was referenced

May 17, 2018

@JoeKays

I have multiple apps that depend on version 1.0.0 and others that depend on 1.0.2.
What do I do?

Earlier this evening I installed .NET core preview 2 on Debian Sid, and tried to create a new project via the dotnet new command, only to get a segmention fault error message:

matt@IDSiG:~/git/testproject$ dotnet new console
Segmentation fault

In this instance, the segmentation fault on creation of a new project was is due to .NET Core telemetry being incompatible with version 1.1 of OpenSSL.

A quick check via dpkg shows the current version I have of the OpenSSL package is indeed 1.1

matt@IDSiG:~/git/testproject$ dpkg -s openssl | grep Version
Version: 1.1.0e-1

Setting the DOTNET_CLI_TELEMETRY_OPTOUT environment variable disables telemetry.

export DOTNET_CLI_TELEMETRY_OPTOUT=1
matt@IDSiG:~/git/testproject$ dotnet new console
The template "Console Application" was created successfully.

Processing post-creation actions...
Running 'dotnet restore' on /home/zachery/git/testproject/testproject.csproj...
  Restoring packages for /home/zachery/git/testproject/testproject.csproj...
  Generating MSBuild file /home/zachery/git/testproject/obj/testproject.csproj.nuget.g.props.
  Generating MSBuild file /home/zachery/git/testproject/obj/testproject.csproj.nuget.g.targets.
  Restore completed in 219.75 ms for /home/zachery/git/testproject/testproject.csproj.

QED



  • 0




Добрый день, у меня проблема, когда я ставлю .Net core всё проходит хорошо, но когда я запускаю dotnet new console, то вылазит ошибка «ошибка сегментации», в гугле ничего толкового не нашел, подскажите пожалуйста, что делать в данной ситуации?

.Net core ошибка сегментации

  • Комментарий (0)



  • 0




Опишите подробно процесс установки.
Гугл как раз-таки выдает причину: нехватка оперативной памяти. Часто возникает из-за несовместимых версий библиотек и ПО. Часто эта ошибка встречается в программах на Си или C++.
Самое простое, что можно попробовать, это пересобрать программу из исходников.
Устанавливали по этой инструкции? https://www.microsoft.com/net/core?WT.mc_id=Blog_CENews_Announce_CEA#linuxdebian

А вообще, это скорее вопрос на форум этой программы.
Как вариант, можно попробовать увеличить размер свап, или почистить папку /tmp с помощью утилиты tmpwatch, но скорее всего это программный глюк, при распаковке выходит за доступную область оперативной памяти.

  • How to fix «Segmentation fault (core dumped)» when creating new dotnet
  • Dotnet —help -> Segmentation fault (core dumped)
  • Segmentation fault (core dumped) while using dotnet #67465
  • Dotnet build intermittently exits with Segmentation fault (core dumped)
  • segmentation fault (core dumped) dotnet —version #48128
  • Segmentation fault (core dumped) — to where? what is it? and why?
  • [Solved] dotnet —help -> Segmentation fault (core dumped)
  • Segmentation fault and .NET on Linux

How to fix «Segmentation fault (core dumped)» when creating new dotnet

project?

Teams. Q&A for work. Connect and share knowledge within a single location that
is structured and easy to search. Learn more about Teams

[email protected]:~/Programming/Resorvoir-CLI$ dotnet new console -o MyApp
Segmentation fault (core dumped)



sudo snap install dotnet-sdk --classic --channel=5.0
sudo snap alias dotnet-sdk.dotnet dotnet



[email protected]:~/Programming/Resorvoir-CLI$ sudo snap info dotnet-sdk 
name:      dotnet-sdk
summary:   Develop high performance applications in less time, on any platform.
publisher: Microsoft .NET Core (dotnetcore✓)
store-url: https://snapcraft.io/dotnet-sdk
contact:   https://dot.net/core
license:   unset
description: |
  .NET Core is the modular and high performance implementation of .NET for creating web applications
  and services that run on Windows, Linux and Mac. It is open source and it can share the same code
  with .NET Framework and Xamarin apps.

  .NET Core is a .NET Foundation project. https://dotnetfoundation.org/
commands:
  - dotnet-sdk.dotnet
snap-id:      uHc4y9lWxyqYfxsqcr4xILzAai4L1BHs
tracking:     5.0/stable
refresh-date: today at 13:36 BST
channels:
  latest/stable:    5.0.302                   2021-07-13 (132) 139MB classic
  latest/candidate: ↑                                                
  latest/beta:      ↑                                                
  latest/edge:      5.0.202                   2021-04-16 (120) 137MB classic
  lts/stable:       3.1.411                   2021-07-13 (133) 123MB classic
  lts/candidate:    ↑                                                
  lts/beta:         ↑                                                
  lts/edge:         ↑                                                
  6.0/stable:       –                                                
  6.0/candidate:    –                                                
  6.0/beta:         6.0.100-preview.6.21355.2 2021-07-14 (134) 144MB classic
  6.0/edge:         ↑                                                
  5.0/stable:       5.0.302                   2021-07-13 (132) 139MB classic
  5.0/candidate:    ↑                                                
  5.0/beta:         5.0.100                   2020-11-10 (105) 267MB classic
  5.0/edge:         ↑                                                
  3.1/stable:       3.1.411                   2021-07-13 (133) 123MB classic
  3.1/candidate:    ↑                                                
  3.1/beta:         ↑                                                
  3.1/edge:         ↑                                                
  2.1/stable:       2.1.816                   2021-05-11 (124) 245MB classic
  2.1/candidate:    ↑                                                
  2.1/beta:         ↑                                                
  2.1/edge:         2.1.808                   2020-07-14  (91) 245MB classic
installed:          5.0.302                              (132) 139MB classic



sudo snap remove dotnet-sdk
sudo pacman -S dotnet-sdk

Dotnet —help -> Segmentation fault (core dumped)

2. Most dotnet commands I run on my Ubuntu 20.04 system gives me the error:
Segmentation fault (core dumped) I tried rerunning the dotnet installation
scripts and I tried …

sudo snap remove dotnet-sdk



sudo pacman -S dotnet-sdk

Segmentation fault (core dumped) while using dotnet #67465

Note, I can run dotnet new console —framework net6.0 and dotnet complete
«dotnet a» on this VM w/o a seg fault (Update): I’m guessing this is a
different issue than what @arylee reported. I …

$ snap list dotnet-sdk
Name        Version                    Rev  Tracking     Publisher    Notes
dotnet-sdk  7.0.100-preview.7.22377.5  178  latest/beta  dotnetcore✓  classic

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.1 LTS
Release:    22.04
Codename:   jammy

$ dotnet --info
.NET SDK:
 Version:   7.0.100-preview.7.22377.5
 Commit:    ba310d9309

Runtime Environment:
 OS Name:     ubuntu
 OS Version:  22.04
 OS Platform: Linux
 RID:         ubuntu.22.04-x64
 Base Path:   /snap/dotnet-sdk/178/sdk/7.0.100-preview.7.22377.5/

Host:
  Version:      7.0.0-preview.7.22375.6
  Architecture: x64
  Commit:       eecb028078

.NET SDKs installed:
  7.0.100-preview.7.22377.5 [/snap/dotnet-sdk/178/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 7.0.0-preview.7.22376.6 [/snap/dotnet-sdk/178/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 7.0.0-preview.7.22375.6 [/snap/dotnet-sdk/178/shared/Microsoft.NETCore.App]

Other architectures found:
  None

Environment variables:
  DOTNET_ROOT       [/snap/dotnet-sdk/178]

global.json file:
  Not found

Learn more:
  https://aka.ms/dotnet/info

Download .NET:
  https://aka.ms/dotnet/download

$ dotnet new console -n test
Segmentation fault (core dumped)

Dotnet build intermittently exits with Segmentation fault (core dumped)

or 139 on linux

I am using dotnet core sdk 2.1.403 and building projects on linux.
Intermittently the build fails with either Segmentation fault or with 139. The
build itself doesn’t start, as soon as …

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>netcoreapp2.1</TargetFramework>
    <GenerateAssemblyInfo>false</GenerateAssemblyInfo>
    <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
    <OutputPath>$(BROOT)/bin</OutputPath>
    <AssemblyName>Simple</AssemblyName>
    <IntermediateOutputPath>$(OutputPath)</IntermediateOutputPath>
    <OutDir>$(OutputPath)</OutDir>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="x">
      <HintPath>$(BROOT)/bin/x.dll</HintPath>
    </Reference>
  </ItemGroup>

  <Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="'$(OS)' == 'Windows_NT'">
   <Exec Command="rmdir /S /Q obj" />
  </Target>

  <Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="'$(OS)' != 'Windows_NT'">
   <Exec Command="rm -r obj" />
  </Target>

</Project>

segmentation fault (core dumped) dotnet —version #48128

segmentation fault (core dumped) dotnet —version #48128. Closed lucax88x
opened this issue Jan 30, 2021 · 6 comments Closed Process 123429 (dotnet) of
user 1000 …

                                                    Stack trace of thread 123443:
                                                    #0  0x00007ff76dd83b0c n/a (libcoreclr.so + 0x12bb0c)
                                                    dotnet/sdk#1  0x00007ff76deace73 n/a (libcoreclr.so + 0x254e73)
                                                    dotnet/sdk#2  0x00007ff76deadb7b n/a (libcoreclr.so + 0x255b7b)
                                                    dotnet/sdk#3  0x00007ff76deae071 n/a (libcoreclr.so + 0x256071)
                                                    dotnet/sdk#4  0x00007ff76deae248 n/a (libcoreclr.so + 0x256248)
                                                    dotnet/sdk#5  0x00007ff76deae536 n/a (libcoreclr.so + 0x256536)
                                                    dotnet/sdk#6  0x00007ff76e1406ae n/a (libcoreclr.so + 0x4e86ae)
                                                    dotnet/sdk#7  0x00007ff76ed2c3e9 start_thread (libpthread.so.0 + 0x93e9)
                                                    dotnet/sdk#8  0x00007ff76e917293 __clone (libc.so.6 + 0x100293)

                                                    Stack trace of thread 123438:
                                                    #0  0x00007ff76ed326a2 [email protected]@GLIBC_2.3.2 (libpthread.so.0 + 0xf6a2)
                                                    dotnet/sdk#1  0x00007ff76e13532b n/a (libcoreclr.so + 0x4dd32b)
                                                    dotnet/sdk#2  0x00007ff76e134fe1 n/a (libcoreclr.so + 0x4dcfe1)
                                                    dotnet/sdk#3  0x00007ff76e1399c2 n/a (libcoreclr.so + 0x4e19c2)
                                                    dotnet/sdk#4  0x00007ff76e139cd1 n/a (libcoreclr.so + 0x4e1cd1)
                                                    dotnet/sdk#5  0x00007ff76e027019 n/a (libcoreclr.so + 0x3cf019)
                                                    dotnet/sdk#6  0x00007ff76e026e85 n/a (libcoreclr.so + 0x3cee85)
                                                    dotnet/sdk#7  0x00007ff76e026bcd n/a (libcoreclr.so + 0x3cebcd)
                                                    dotnet/sdk#8  0x00007ff76e1406ae n/a (libcoreclr.so + 0x4e86ae)
                                                    dotnet/sdk#9  0x00007ff76ed2c3e9 start_thread (libpthread.so.0 + 0x93e9)
                                                    dotnet/sdk#10 0x00007ff76e917293 __clone (libc.so.6 + 0x100293)

                                                    Stack trace of thread 123433:
                                                    #0  0x00007ff76e90c46f __poll (libc.so.6 + 0xf546f)
                                                    dotnet/sdk#1  0x00007ff76e0300ee n/a (libcoreclr.so + 0x3d80ee)
                                                    dotnet/sdk#2  0x00007ff76de71be4 n/a (libcoreclr.so + 0x219be4)
                                                    dotnet/sdk#3  0x00007ff76de37b97 n/a (libcoreclr.so + 0x1dfb97)
                                                    dotnet/sdk#4  0x00007ff76e1406ae n/a (libcoreclr.so + 0x4e86ae)
                                                    dotnet/sdk#5  0x00007ff76ed2c3e9 start_thread (libpthread.so.0 + 0x93e9)
                                                    dotnet/sdk#6  0x00007ff76e917293 __clone (libc.so.6 + 0x100293)

                                                    Stack trace of thread 123431:
                                                    #0  0x00007ff76e90c46f __poll (libc.so.6 + 0xf546f)
                                                    dotnet/sdk#1  0x00007ff76e137670 n/a (libcoreclr.so + 0x4df670)
                                                    dotnet/sdk#2  0x00007ff76e136cd3 n/a (libcoreclr.so + 0x4decd3)
                                                    dotnet/sdk#3  0x00007ff76e1406ae n/a (libcoreclr.so + 0x4e86ae)
                                                    dotnet/sdk#4  0x00007ff76ed2c3e9 start_thread (libpthread.so.0 + 0x93e9)
                                                    dotnet/sdk#5  0x00007ff76e917293 __clone (libc.so.6 + 0x100293)

                                                    Stack trace of thread 123440:
                                                    #0  0x00007ff76ed329c8 [email protected]@GLIBC_2.3.2 (libpthread.so.0 + 0>
                                                    dotnet/sdk#1  0x00007ff76e135316 n/a (libcoreclr.so + 0x4dd316)
                                                    dotnet/sdk#2  0x00007ff76e134fe1 n/a (libcoreclr.so + 0x4dcfe1)
                                                    dotnet/sdk#3  0x00007ff76e1399c2 n/a (libcoreclr.so + 0x4e19c2)
                                                    dotnet/sdk#4  0x00007ff76e139bf9 n/a (libcoreclr.so + 0x4e1bf9)
                                                    dotnet/sdk#5  0x00007ff76def019a n/a (libcoreclr.so + 0x29819a)
                                                    dotnet/sdk#6  0x00007ff76de5578f n/a (libcoreclr.so + 0x1fd78f)
                                                    dotnet/sdk#7  0x00007ff76de55947 n/a (libcoreclr.so + 0x1fd947)
                                                    dotnet/sdk#8  0x00007ff76ddd973a n/a (libcoreclr.so + 0x18173a)
                                                    dotnet/sdk#9  0x00007ff76ddd9ded n/a (libcoreclr.so + 0x181ded)
                                                    dotnet/sdk#10 0x00007ff76de55b38 n/a (libcoreclr.so + 0x1fdb38)
                                                    dotnet/sdk#11 0x00007ff76e1406ae n/a (libcoreclr.so + 0x4e86ae)
                                                    dotnet/sdk#12 0x00007ff76ed2c3e9 start_thread (libpthread.so.0 + 0x93e9)
                                                    dotnet/sdk#13 0x00007ff76e917293 __clone (libc.so.6 + 0x100293)

                                                    Stack trace of thread 123429:
                                                    #0  0x00007ff76ed33bcb __pthread_getspecific (libpthread.so.0 + 0x10bcb)
                                                    dotnet/sdk#1  0x00007ff76e130538 n/a (libcoreclr.so + 0x4d8538)
                                                    dotnet/sdk#2  0x00007ff76dd254af n/a (libcoreclr.so + 0xcd4af)
                                                    dotnet/sdk#3  0x00007ff76e0f5bab n/a (libcoreclr.so + 0x49dbab)
                                                    dotnet/sdk#4  0x00007ff76ddad864 n/a (libcoreclr.so + 0x155864)
                                                    dotnet/sdk#5  0x00007ff76dd8b1fe n/a (libcoreclr.so + 0x1331fe)
                                                    dotnet/sdk#6  0x00007ff76de95250 n/a (libcoreclr.so + 0x23d250)
                                                    dotnet/sdk#7  0x00007ff76de8cb91 n/a (libcoreclr.so + 0x234b91)
                                                    dotnet/sdk#8  0x00007ff76de9da10 n/a (libcoreclr.so + 0x245a10)
                                                    dotnet/sdk#9  0x00007ff76dd0ecd5 n/a (libcoreclr.so + 0xb6cd5)
                                                    dotnet/sdk#10 0x00007ff76dd0e748 n/a (libcoreclr.so + 0xb6748)
                                                    dotnet/sdk#11 0x00007ff76dd0faa8 n/a (libcoreclr.so + 0xb7aa8)
                                                    dotnet/sdk#12 0x00007ff76dd0b734 n/a (libcoreclr.so + 0xb3734)
                                                    dotnet/sdk#13 0x00007ff76dd0b5eb n/a (libcoreclr.so + 0xb35eb)
                                                    dotnet/sdk#14 0x00007ff76dd0d1d7 n/a (libcoreclr.so + 0xb51d7)
                                                    dotnet/sdk#15 0x00007ff76ddbc159 n/a (libcoreclr.so + 0x164159)
                                                    dotnet/sdk#16 0x00007ff76dd0d694 n/a (libcoreclr.so + 0xb5694)
                                                    dotnet/sdk#17 0x00007ff76de99b93 n/a (libcoreclr.so + 0x241b93)
                                                    dotnet/sdk#18 0x00007ff76dd01e55 n/a (libcoreclr.so + 0xa9e55)
                                                    dotnet/sdk#19 0x00007ff76dd01eb5 n/a (libcoreclr.so + 0xa9eb5)
                                                    dotnet/sdk#20 0x00007ff76dd0e7a6 n/a (libcoreclr.so + 0xb67a6)
                                                    dotnet/sdk#21 0x00007ff76dd0faa8 n/a (libcoreclr.so + 0xb7aa8)
                                                    dotnet/sdk#22 0x00007ff76dd0b734 n/a (libcoreclr.so + 0xb3734)
                                                    dotnet/sdk#23 0x00007ff76dd0ca37 n/a (libcoreclr.so + 0xb4a37)
                                                    dotnet/sdk#24 0x00007ff76dd0d174 n/a (libcoreclr.so + 0xb5174)
                                                    dotnet/sdk#25 0x00007ff76ddbc159 n/a (libcoreclr.so + 0x164159)
                                                    dotnet/sdk#26 0x00007ff76dd0d694 n/a (libcoreclr.so + 0xb5694)
                                                    dotnet/sdk#27 0x00007ff76de99b93 n/a (libcoreclr.so + 0x241b93)
                                                    dotnet/sdk#28 0x00007ff76dd01e55 n/a (libcoreclr.so + 0xa9e55)
                                                    dotnet/sdk#29 0x00007ff76dd01eb5 n/a (libcoreclr.so + 0xa9eb5)
                                                    dotnet/sdk#30 0x00007ff76dd0e7a6 n/a (libcoreclr.so + 0xb67a6)
                                                    dotnet/sdk#31 0x00007ff76dd0faa8 n/a (libcoreclr.so + 0xb7aa8)
                                                    dotnet/sdk#32 0x00007ff76dd0b734 n/a (libcoreclr.so + 0xb3734)
                                                    dotnet/sdk#33 0x00007ff76dd0b98f n/a (libcoreclr.so + 0xb398f)
                                                    dotnet/sdk#34 0x00007ff76dd01ead n/a (libcoreclr.so + 0xa9ead)
                                                    dotnet/sdk#35 0x00007ff76dd0e7a6 n/a (libcoreclr.so + 0xb67a6)
                                                    dotnet/sdk#36 0x00007ff76dd0faa8 n/a (libcoreclr.so + 0xb7aa8)
                                                    dotnet/sdk#37 0x00007ff76dd0b734 n/a (libcoreclr.so + 0xb3734)
                                                    dotnet/sdk#38 0x00007ff76dd0b5eb n/a (libcoreclr.so + 0xb35eb)
                                                    dotnet/sdk#39 0x00007ff76dd0d1d7 n/a (libcoreclr.so + 0xb51d7)
                                                    dotnet/sdk#40 0x00007ff76ddbc159 n/a (libcoreclr.so + 0x164159)
                                                    dotnet/sdk#41 0x00007ff76ddfbcc3 n/a (libcoreclr.so + 0x1a3cc3)
                                                    dotnet/sdk#42 0x00007ff76dd7b9df n/a (libcoreclr.so + 0x1239df)
                                                    dotnet/sdk#43 0x00007ff76dcf9545 n/a (libcoreclr.so + 0xa1545)
                                                    dotnet/sdk#44 0x00007ff76de00654 n/a (libcoreclr.so + 0x1a8654)
                                                    dotnet/sdk#45 0x00007ff76ddffb16 n/a (libcoreclr.so + 0x1a7b16)
                                                    dotnet/sdk#46 0x00007ff76ddae7e1 n/a (libcoreclr.so + 0x1567e1)
                                                    dotnet/sdk#47 0x00007ff76ddae8b7 n/a (libcoreclr.so + 0x1568b7)
                                                    dotnet/sdk#48 0x00007ff76ddae5ce n/a (libcoreclr.so + 0x1565ce)
                                                    dotnet/sdk#49 0x00007ff76dd15b75 n/a (libcoreclr.so + 0xbdb75)
                                                    dotnet/sdk#50 0x00007ff76ddb13cb n/a (libcoreclr.so + 0x1593cb)
                                                    dotnet/sdk#51 0x00007ff76ddb0e6a n/a (libcoreclr.so + 0x158e6a)
                                                    dotnet/sdk#52 0x00007ff76dfc29ac n/a (libcoreclr.so + 0x36a9ac)
                                                    dotnet/sdk#53 0x00007ff76dfc1db7 n/a (libcoreclr.so + 0x369db7)
                                                    dotnet/sdk#54 0x00007ff76de100b6 n/a (libcoreclr.so + 0x1b80b6)
                                                    dotnet/sdk#55 0x00007ff76de1032f n/a (libcoreclr.so + 0x1b832f)
                                                    dotnet/sdk#56 0x00007ff76dd944b4 n/a (libcoreclr.so + 0x13c4b4)
                                                    dotnet/sdk#57 0x00007ff76dd949ae n/a (libcoreclr.so + 0x13c9ae)
                                                    dotnet/sdk#58 0x00007ff76ddb2f3a n/a (libcoreclr.so + 0x15af3a)
                                                    dotnet/sdk#59 0x00007ff76ddb43b8 n/a (libcoreclr.so + 0x15c3b8)
                                                    dotnet/sdk#60 0x00007ff76dfc203b n/a (libcoreclr.so + 0x36a03b)
                                                    dotnet/sdk#61 0x00007ff6f4db096a n/a (n/a + 0x0)
                                                    dotnet/sdk#62 0x00007ff76dfc1db7 n/a (libcoreclr.so + 0x369db7)
                                                    dotnet/sdk#63 0x00007ff76de109eb n/a (libcoreclr.so + 0x1b89eb)

                                                    Stack trace of thread 123436:
                                                    #0  0x00007ff76ed36774 __open (libpthread.so.0 + 0x13774)
                                                    dotnet/sdk#1  0x00007ff76e03067f n/a (libcoreclr.so + 0x3d867f)
                                                    dotnet/sdk#2  0x00007ff76e029738 n/a (libcoreclr.so + 0x3d1738)
                                                    dotnet/sdk#3  0x00007ff76e028879 n/a (libcoreclr.so + 0x3d0879)
                                                    dotnet/sdk#4  0x00007ff76e1406ae n/a (libcoreclr.so + 0x4e86ae)
                                                    dotnet/sdk#5  0x00007ff76ed2c3e9 start_thread (libpthread.so.0 + 0x93e9)
                                                    dotnet/sdk#6  0x00007ff76e917293 __clone (libc.so.6 + 0x100293)

                                                    Stack trace of thread 123442:
                                                    #0  0x00007ff76ed329c8 [email protected]@GLIBC_2.3.2 (libpthread.so.0 + 0>
                                                    dotnet/sdk#1  0x00007ff76e135316 n/a (libcoreclr.so + 0x4dd316)
                                                    dotnet/sdk#2  0x00007ff76e134fe1 n/a (libcoreclr.so + 0x4dcfe1)
                                                    dotnet/sdk#3  0x00007ff76e13a179 n/a (libcoreclr.so + 0x4e2179)
                                                    dotnet/sdk#4  0x00007ff76ddf8edd n/a (libcoreclr.so + 0x1a0edd)
                                                    dotnet/sdk#5  0x00007ff76ddf8db5 n/a (libcoreclr.so + 0x1a0db5)
                                                    dotnet/sdk#6  0x00007ff76e1406ae n/a (libcoreclr.so + 0x4e86ae)
                                                    dotnet/sdk#7  0x00007ff76ed2c3e9 start_thread (libpthread.so.0 + 0x93e9)
                                                    dotnet/sdk#8  0x00007ff76e917293 __clone (libc.so.6 + 0x100293)

Segmentation fault (core dumped) — to where? what is it? and why?

%g (numeric) real GID of dumped process %h hostname (same as nodename returned
by uname(2)) %i TID of thread that triggered core dump, as seen in the PID
namespace in which …

   *  The process does not have permission to write the core file.  (By
      default, the core file is called core or core.pid, where pid is
      the ID of the process that dumped core, and is created in the
      current working directory.  See below for details on naming.) 
      Writing the core file will fail if the directory in which it is to
      be created is nonwritable, or if a file with the same name exists
      and is not writable or is not a regular file (e.g., it is a
      directory or a symbolic link).
   *  A (writable, regular) file with the same name as would be used for
      the core dump already exists, but there is more than one hard link
      to that file.
   *  The filesystem where the core dump file would be created is full;
      or has run out of inodes; or is mounted read-only; or the user has
      reached their quota for the filesystem.
   *  The directory in which the core dump file is to be created does
      not exist.
   *  The RLIMIT_CORE (core file size) or RLIMIT_FSIZE (file size)
      resource limits for the process are set to zero; see getrlimit(2)
      and the documentation of the shell's ulimit command (limit in
      csh(1)).
   *  The binary being executed by the process does not have read
      permission enabled.
   *  The process is executing a set-user-ID (set-group-ID) program that
      is owned by a user (group) other than the real user (group) ID of
      the process, or the process is executing a program that has file
      capabilities (see capabilities(7)).  (However, see the description
      of the prctl(2) PR_SET_DUMPABLE operation, and the description of
      the /proc/sys/fs/suid_dumpable file in proc(5).)
   *  (Since Linux 3.7) The kernel was configured without the
      CONFIG_COREDUMP option.



       %%  a single % character
       %c  core file size soft resource limit of crashing process (since
           Linux 2.6.24)
       %d  dump mode—same as value returned by prctl(2) PR_GET_DUMPABLE
           (since Linux 3.7)
       %e  executable filename (without path prefix)
       %E  pathname of executable, with slashes ('/') replaced by
           exclamation marks ('!') (since Linux 3.0).
       %g  (numeric) real GID of dumped process
       %h  hostname (same as nodename returned by uname(2))
       %i  TID of thread that triggered core dump, as seen in the PID
           namespace in which the thread resides (since Linux 3.18)
       %I  TID of thread that triggered core dump, as seen in the
           initial PID namespace (since Linux 3.18)
       %p  PID of dumped process, as seen in the PID namespace in which
           the process resides
       %P  PID of dumped process, as seen in the initial PID namespace
           (since Linux 3.12)
       %s  number of signal causing dump
       %t  time of dump, expressed as seconds since the Epoch,
           1970-01-01 00:00:00 +0000 (UTC)
       %u  (numeric) real UID of dumped process



apport-unpack /var/crash/_crash_file.crash <path to unpack>



gdb "$(cat ExecutablePath)" CoreDump

[Solved] dotnet —help -> Segmentation fault (core dumped)

Szoke Lorand Asks: dotnet —help -> Segmentation fault (core dumped) Most
dotnet commands I run on my Ubuntu 20.04 system gives me the error:
Segmentation fault …

stream_register_wrapper('myvars', 'MyWrapper');

$fp = fopen('myvars//:curl-verbose', 'r+');

curl_setopt_array($ch, [
    CURLOPT_VERBOSE => true,
    CRULOPT_STDERR => $fp;
];


TypeError: curl_setopt_array(): supplied resource is not a valid File-Handle


    var allFiles []open_api.FilesMetaData
    var fm open_api.FilesMetaData
    for _, e := range file.Files {
      fm = open_api.FilesMetaData {
        FileName: &e.Filename,
        Status:   &e.Status,
      }
    allFiles = append(allFiles, fm)
}


provider "aws" {  
  alias = "aws_2"

  secret_key = "my secret key..." 
  access_key = "my access key..." 

  ###  elbv2 ###
  region = "ap-northeast-2"

}

Segmentation fault and .NET on Linux

Segmentation fault (core dumped) Impossible to create projects. The tool
crashes no matter what type of project I want to create. They talk about the …

sudo snap install dotnet-sdk --classic --channel=5.0



dotnet new blazorserver -o BlazorApp --no-https



Segmentation fault (core dumped)



sudo snap remove dotnet-sdk
sudo pacman -S dotnet-sdk

Понравилась статья? Поделить с друзьями:
  • Dr web произошла ошибка во время удаления
  • Dr web ошибка 256
  • Dr web ошибка 1722 как исправить
  • Dr web ошибка 166
  • Dr web ошибка авторизации на сервере