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

Cannot create new project #54148

Closed
Firehead16 opened this issue Jun 14, 2021 · 9 comments
Closed

Cannot create new project #54148

Firehead16 opened this issue Jun 14, 2021 · 9 comments

Comments

@Firehead16
Copy link

Describe the bug

Cannot create new project

To Reproduce

when I try to create new app (dotnet new console -o myApp), from tutorial, this error appears

Exceptions (if any)

segmentation fault (core dumped)

Further technical details

Пакет SDK для .NET (отражающий любой global.json):
Version: 5.0.301
Commit: ef17233f86

Среда выполнения:
OS Name: ubuntu
OS Version: 21.04
OS Platform: Linux
RID: ubuntu.21.04-x64
Base Path: /snap/dotnet-sdk/129/sdk/5.0.301/

Host (useful for support):
Version: 5.0.7
Commit: 556582d

.NET SDKs installed:
5.0.301 [/snap/dotnet-sdk/129/sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 5.0.7 [/snap/dotnet-sdk/129/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 5.0.7 [/snap/dotnet-sdk/129/shared/Microsoft.NETCore.App]

  • ASP.NET Core version
  • The IDE (VS / VS Code/ VS4Mac) you're running on, and its version

VS Code 1.57.0

@javiercn javiercn transferred this issue from dotnet/aspnetcore Jun 14, 2021
@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged New issue has not been triaged by the area owner label Jun 14, 2021
@dotnet-issue-labeler
Copy link

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

@wfurt
Copy link
Member

wfurt commented Jun 15, 2021

do you have the core? Is is possible that you are missing some dependencies?
cc: @tmds for additional thoughts.

@Firehead16
Copy link
Author

Firehead16 commented Jun 15, 2021 via email

@tmds
Copy link
Member

tmds commented Jun 23, 2021

Base Path: /snap/dotnet-sdk/129/sdk/5.0.301/

You're using the snap install of .NET. Probably the package install will work fine for you: https://docs.microsoft.com/en-us/dotnet/core/install/linux-ubuntu.

dotnet new console -o myApp

This command starts 2 applications, it's not clear which one gives you the segfault.
Can you run it as separate steps?

$ dotnet new console -o myApp --no-restore
$ cd myApp
$ dotnet restore

Can you also share the output of?

$ ldd $(dirname $(realpath $(which dotnet)))/shared/Microsoft.NETCore.App/*/*.so

@NikolaMilosavljevic
Copy link
Member

cc @tarekgh, @safern

@NikolaMilosavljevic NikolaMilosavljevic removed the untriaged New issue has not been triaged by the area owner label Jun 23, 2021
@Firehead16
Copy link
Author

Base Path: /snap/dotnet-sdk/129/sdk/5.0.301/

You're using the snap install of .NET. Probably the package install will work fine for you: https://docs.microsoft.com/en-us/dotnet/core/install/linux-ubuntu.

dotnet new console -o myApp

This command starts 2 applications, it's not clear which one gives you the segfault.
Can you run it as separate steps?

$ dotnet new console -o myApp --no-restore
$ cd myApp
$ dotnet restore

Can you also share the output of?

$ ldd $(dirname $(realpath $(which dotnet)))/shared/Microsoft.NETCore.App/*/*.so

Sure

~$ dotnet new console -o myApp --no-restore
segmentation fault (core dumped)
cd myApp
bash: cd: myApp: no such file or directory
~$ dotnet restore
segmentation fault (core dumped)
$ ldd $(dirname $(realpath $(which dotnet)))/shared/Microsoft.NETCore.App/*/*.so
/snap/dotnet-sdk/129/shared/Microsoft.NETCore.App/5.0.7/libclrjit.so:
	linux-vdso.so.1 (0x00007ffd139f0000)
	libgcc_s.so.1 => /snap/dotnet-sdk/129/shared/Microsoft.NETCore.App/5.0.7/../../../lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f41fb5e9000)
	libpthread.so.0 => /snap/core18/current/lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f41fb3ca000)
	librt.so.1 => /snap/core18/current/lib/x86_64-linux-gnu/librt.so.1 (0x00007f41fb1c2000)
	libdl.so.2 => /snap/core18/current/lib/x86_64-linux-gnu/libdl.so.2 (0x00007f41fafbe000)
	libstdc++.so.6 => /snap/dotnet-sdk/129/shared/Microsoft.NETCore.App/5.0.7/../../../usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f41fabeb000)
	libm.so.6 => /snap/core18/current/lib/x86_64-linux-gnu/libm.so.6 (0x00007f41fa84b000)
	libc.so.6 => /snap/core18/current/lib/x86_64-linux-gnu/libc.so.6 (0x00007f41fa45a000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f41fbb34000)
/snap/dotnet-sdk/129/shared/Microsoft.NETCore.App/5.0.7/libcoreclr.so:
	linux-vdso.so.1 (0x00007ffdd5fed000)
	libgcc_s.so.1 => /snap/dotnet-sdk/129/shared/Microsoft.NETCore.App/5.0.7/../../../lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fdab9501000)
	libpthread.so.0 => /snap/core18/current/lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fdab92e2000)
	librt.so.1 => /snap/core18/current/lib/x86_64-linux-gnu/librt.so.1 (0x00007fdab90da000)
	libdl.so.2 => /snap/core18/current/lib/x86_64-linux-gnu/libdl.so.2 (0x00007fdab8ed6000)
	libstdc++.so.6 => /snap/dotnet-sdk/129/shared/Microsoft.NETCore.App/5.0.7/../../../usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fdab8b03000)
	libm.so.6 => /snap/core18/current/lib/x86_64-linux-gnu/libm.so.6 (0x00007fdab8763000)
	libc.so.6 => /snap/core18/current/lib/x86_64-linux-gnu/libc.so.6 (0x00007fdab8372000)
	/lib64/ld-linux-x86-64.so.2 (0x00007fdab9e1c000)
/snap/dotnet-sdk/129/shared/Microsoft.NETCore.App/5.0.7/libcoreclrtraceptprovider.so:
	linux-vdso.so.1 (0x00007ffd6e977000)
	liblttng-ust.so.0 => /snap/dotnet-sdk/129/shared/Microsoft.NETCore.App/5.0.7/../../../usr/lib/x86_64-linux-gnu/liblttng-ust.so.0 (0x00007fea994c0000)
	libstdc++.so.6 => /snap/dotnet-sdk/129/shared/Microsoft.NETCore.App/5.0.7/../../../usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fea990ed000)
	libm.so.6 => /snap/core18/current/lib/x86_64-linux-gnu/libm.so.6 (0x00007fea98d4f000)
	libgcc_s.so.1 => /snap/dotnet-sdk/129/shared/Microsoft.NETCore.App/5.0.7/../../../lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fea98b36000)
	libc.so.6 => /snap/core18/current/lib/x86_64-linux-gnu/libc.so.6 (0x00007fea98745000)
	libdl.so.2 => /snap/core18/current/lib/x86_64-linux-gnu/libdl.so.2 (0x00007fea9853f000)
	liblttng-ust-tracepoint.so.0 => /snap/dotnet-sdk/129/shared/Microsoft.NETCore.App/5.0.7/../../../usr/lib/x86_64-linux-gnu/liblttng-ust-tracepoint.so.0 (0x00007fea98322000)
	librt.so.1 => /snap/core18/current/lib/x86_64-linux-gnu/librt.so.1 (0x00007fea9811a000)
	liburcu-bp.so.6 => /snap/dotnet-sdk/129/shared/Microsoft.NETCore.App/5.0.7/../../../usr/lib/x86_64-linux-gnu/liburcu-bp.so.6 (0x00007fea97f11000)
	liburcu-cds.so.6 => /snap/dotnet-sdk/129/shared/Microsoft.NETCore.App/5.0.7/../../../usr/lib/x86_64-linux-gnu/liburcu-cds.so.6 (0x00007fea97d06000)
	libpthread.so.0 => /snap/core18/current/lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fea97ae5000)
	/lib64/ld-linux-x86-64.so.2 (0x00007fea999e6000)
/snap/dotnet-sdk/129/shared/Microsoft.NETCore.App/5.0.7/libdbgshim.so:
	linux-vdso.so.1 (0x00007ffe9d1ec000)
	libgcc_s.so.1 => /snap/dotnet-sdk/129/shared/Microsoft.NETCore.App/5.0.7/../../../lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007ff6af94e000)
	libpthread.so.0 => /snap/core18/current/lib/x86_64-linux-gnu/libpthread.so.0 (0x00007ff6af72f000)
	librt.so.1 => /snap/core18/current/lib/x86_64-linux-gnu/librt.so.1 (0x00007ff6af527000)
	libdl.so.2 => /snap/core18/current/lib/x86_64-linux-gnu/libdl.so.2 (0x00007ff6af323000)
	libstdc++.so.6 => /snap/dotnet-sdk/129/shared/Microsoft.NETCore.App/5.0.7/../../../usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007ff6aef50000)
	libm.so.6 => /snap/core18/current/lib/x86_64-linux-gnu/libm.so.6 (0x00007ff6aebb0000)
	libc.so.6 => /snap/core18/current/lib/x86_64-linux-gnu/libc.so.6 (0x00007ff6ae7bf000)
	/lib64/ld-linux-x86-64.so.2 (0x00007ff6afe29000)
/snap/dotnet-sdk/129/shared/Microsoft.NETCore.App/5.0.7/libhostpolicy.so:
	linux-vdso.so.1 (0x00007ffd1c5b2000)
	libstdc++.so.6 => /snap/dotnet-sdk/129/shared/Microsoft.NETCore.App/5.0.7/../../../usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fd8478b7000)
	libm.so.6 => /snap/core18/current/lib/x86_64-linux-gnu/libm.so.6 (0x00007fd847519000)
	libgcc_s.so.1 => /snap/dotnet-sdk/129/shared/Microsoft.NETCore.App/5.0.7/../../../lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fd847300000)
	libc.so.6 => /snap/core18/current/lib/x86_64-linux-gnu/libc.so.6 (0x00007fd846f0f000)
	/lib64/ld-linux-x86-64.so.2 (0x00007fd847ee9000)
/snap/dotnet-sdk/129/shared/Microsoft.NETCore.App/5.0.7/libmscordaccore.so:
	linux-vdso.so.1 (0x00007fffb13fb000)
	libgcc_s.so.1 => /snap/dotnet-sdk/129/shared/Microsoft.NETCore.App/5.0.7/../../../lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f77d9f14000)
	libpthread.so.0 => /snap/core18/current/lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f77d9cf5000)
	librt.so.1 => /snap/core18/current/lib/x86_64-linux-gnu/librt.so.1 (0x00007f77d9aed000)
	libdl.so.2 => /snap/core18/current/lib/x86_64-linux-gnu/libdl.so.2 (0x00007f77d98e9000)
	libstdc++.so.6 => /snap/dotnet-sdk/129/shared/Microsoft.NETCore.App/5.0.7/../../../usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f77d9516000)
	libm.so.6 => /snap/core18/current/lib/x86_64-linux-gnu/libm.so.6 (0x00007f77d9176000)
	libc.so.6 => /snap/core18/current/lib/x86_64-linux-gnu/libc.so.6 (0x00007f77d8d85000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f77da5d2000)
/snap/dotnet-sdk/129/shared/Microsoft.NETCore.App/5.0.7/libmscordbi.so:
	linux-vdso.so.1 (0x00007fff954da000)
	libmscordaccore.so => /snap/dotnet-sdk/129/shared/Microsoft.NETCore.App/5.0.7/libmscordaccore.so (0x00007f5d56583000)
	libstdc++.so.6 => /snap/dotnet-sdk/129/shared/Microsoft.NETCore.App/5.0.7/../../../usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f5d561b0000)
	libm.so.6 => /snap/core18/current/lib/x86_64-linux-gnu/libm.so.6 (0x00007f5d55e12000)
	libgcc_s.so.1 => /snap/dotnet-sdk/129/shared/Microsoft.NETCore.App/5.0.7/../../../lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f5d55bf9000)
	libc.so.6 => /snap/core18/current/lib/x86_64-linux-gnu/libc.so.6 (0x00007f5d55808000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f5d56deb000)
	libpthread.so.0 => /snap/core18/current/lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f5d555e7000)
	librt.so.1 => /snap/core18/current/lib/x86_64-linux-gnu/librt.so.1 (0x00007f5d553df000)
	libdl.so.2 => /snap/core18/current/lib/x86_64-linux-gnu/libdl.so.2 (0x00007f5d551db000)
/snap/dotnet-sdk/129/shared/Microsoft.NETCore.App/5.0.7/libSystem.IO.Compression.Native.so:
	linux-vdso.so.1 (0x00007ffc27b51000)
	libz.so.1 => /snap/dotnet-sdk/129/shared/Microsoft.NETCore.App/5.0.7/../../../lib/x86_64-linux-gnu/libz.so.1 (0x00007f2a3a652000)
	libc.so.6 => /snap/core18/current/lib/x86_64-linux-gnu/libc.so.6 (0x00007f2a3a261000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f2a3ab51000)
/snap/dotnet-sdk/129/shared/Microsoft.NETCore.App/5.0.7/libSystem.Native.so:
	linux-vdso.so.1 (0x00007ffce0d5e000)
	librt.so.1 => /snap/core18/current/lib/x86_64-linux-gnu/librt.so.1 (0x00007f02e2c71000)
	libc.so.6 => /snap/core18/current/lib/x86_64-linux-gnu/libc.so.6 (0x00007f02e2880000)
	libpthread.so.0 => /snap/core18/current/lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f02e2661000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f02e3091000)
/snap/dotnet-sdk/129/shared/Microsoft.NETCore.App/5.0.7/libSystem.Net.Security.Native.so:
	linux-vdso.so.1 (0x00007fff50f47000)
	libgssapi_krb5.so.2 => /snap/dotnet-sdk/129/shared/Microsoft.NETCore.App/5.0.7/../../../usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2 (0x00007f14ad108000)
	libc.so.6 => /snap/core18/current/lib/x86_64-linux-gnu/libc.so.6 (0x00007f14acd17000)
	libkrb5.so.3 => /snap/dotnet-sdk/129/shared/Microsoft.NETCore.App/5.0.7/../../../usr/lib/x86_64-linux-gnu/libkrb5.so.3 (0x00007f14aca3a000)
	libk5crypto.so.3 => /snap/dotnet-sdk/129/shared/Microsoft.NETCore.App/5.0.7/../../../usr/lib/x86_64-linux-gnu/libk5crypto.so.3 (0x00007f14ac806000)
	libcom_err.so.2 => /snap/dotnet-sdk/129/shared/Microsoft.NETCore.App/5.0.7/../../../usr/lib/x86_64-linux-gnu/../../../lib/x86_64-linux-gnu/libcom_err.so.2 (0x00007f14ac5ff000)
	libkrb5support.so.0 => /snap/dotnet-sdk/129/shared/Microsoft.NETCore.App/5.0.7/../../../usr/lib/x86_64-linux-gnu/libkrb5support.so.0 (0x00007f14ac3f3000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f14ad55d000)
	libkeyutils.so.1 => /snap/dotnet-sdk/129/shared/Microsoft.NETCore.App/5.0.7/../../../usr/lib/x86_64-linux-gnu/../../../lib/x86_64-linux-gnu/libkeyutils.so.1 (0x00007f14ac1ee000)
	libresolv.so.2 => /snap/core18/current/lib/x86_64-linux-gnu/libresolv.so.2 (0x00007f14abfd4000)
	libpthread.so.0 => /snap/core18/current/lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f14abdb5000)
	libdl.so.2 => /snap/core18/current/lib/x86_64-linux-gnu/libdl.so.2 (0x00007f14abbaf000)
/snap/dotnet-sdk/129/shared/Microsoft.NETCore.App/5.0.7/libSystem.Security.Cryptography.Native.OpenSsl.so:
	linux-vdso.so.1 (0x00007fff9c1be000)
	libdl.so.2 => /snap/core18/current/lib/x86_64-linux-gnu/libdl.so.2 (0x00007f6354bbf000)
	libc.so.6 => /snap/core18/current/lib/x86_64-linux-gnu/libc.so.6 (0x00007f63547ce000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f6354fe9000)

@tmds
Copy link
Member

tmds commented Jun 28, 2021

Can you install lldb.
Then install the sos tool and lldb integration as follows:

$ dotnet tool install -g dotnet-sos
$ dotnet sos install

Start the debugger:

$ lldb -- dotnet new console -o myApp --no-restore

Now run the app:

(lldb) r

The app will segfault.
Can you share the backtrace?

(lldb) bt

@Firehead16
Copy link
Author

$ dotnet tool install -g dotnet-sos
$ dotnet sos install

both return "segmentation fault (core dumped)"

$ lldb -- dotnet new console -o myApp --no-restore
(lldb) target create "dotnet"
Current executable set to 'dotnet' (x86_64).
(lldb) settings set -- target.run-args  "new" "console" "-o" "myApp" "--no-restore"
(lldb) r
Process 4872 launched: '/usr/local/bin/dotnet' (x86_64)
Process 4872 stopped
* thread #10, name = '.NET ThreadPool', stop reason = signal SIGSEGV: invalid address (fault address: 0x38)
    frame #0: 0x00007ffff7ddfc78
->  0x7ffff7ddfc78: movl   0x8(%r8), %esi
    0x7ffff7ddfc7c: movl   $0x0, %eax
    0x7ffff7ddfc81: testl  %esi, %esi
    0x7ffff7ddfc83: cmoveq %rax, %r8
(lldb) bt
* thread #10, name = '.NET ThreadPool', stop reason = signal SIGSEGV: invalid address (fault address: 0x38)
  * frame #0: 0x00007ffff7ddfc78
    frame #1: 0x00007ffff7de825d
    frame #2: 0x00007ffff6d9c1ef libc.so.6`_dl_catch_exception + 111

@NikolaMilosavljevic
Copy link
Member

[Triage] Closing Snap issues to reflect current priorities.

@ghost ghost locked as resolved and limited conversation to collaborators Aug 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants