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
Debian - segmentation fault dotnet new console #973
Comments
Can you run an
Edit: does |
Here you go :
The strace also returns a segmentation fault :
|
Hi, any news on this ? Anything else I can do to help debug? |
@livarcocc is this the one people have been working around by disabling the first run experience? |
Looks like this one: #649 (comment) @livarcocc do you have an issue tracking fixing this in the cli? |
export DOTNET_CLI_TELEMETRY_OPTOUT=1 removed the segmentation fault for me |
👍 |
should I close the issue or you want it left open until a real fix has been issued? |
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! |
@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. |
Could this be an incompatibility via libcurl? See #963 (comment) and https://github.com/dotnet/corefx/issues/8951#issuecomment-299793545 |
@Petermarcu you're welcome! @omajid For info my version of libcurl is : libcurl 7.55.1 |
@livarcocc I'm installing fresh debian now, will report back tomorrow. |
I couldn't repro. I used debian stretch. One difference is that
@ierpe what is the contents of your /etc/apt/sources.list.d/dotnetdev.list file? I have:
|
the same issue @Mac dotnet new console -o hwapp
cd hwapp I checked the dotnet help (dotnet core sdk 2.0)
all the guide shuold be update to : mkdir -p hwapp
cd hwapp
dotnet new -t console |
@steveharter /etc/apt/sources.list.d/dotnetdev.list file : deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-debian-stretch-prod stretch main |
FWIW here's my Debian Stretch environment (no repro, clean install)
|
So you're also getting the seg fault during Does |
@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. |
Can you confirm this? What does
That looks like the older 1.0 Preview SDK. |
@steveharter nope I haven't, don't know how actually... |
@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
and then run dotnet:
after seg fault
hopefully you get a crashing module (libcurl?) and stack. |
@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 But it's really puzzle, the the 2.0 sdk not remove the old sdk automaticlly or even notify me the incompact..... |
@steveharter is that what you wanted ?
|
@ierpe yes thanks. It is likely crashing when calling into OpenSsl. Can you run a couple commands please: You should get back If not, and you're getting the 1.0.0 version you can give this a try:
|
|
@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 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 |
@steveharter removing ssl1.0.0 fixed it for me, thanks for the support! |
@steveharter The reason I had 1.0.0 version was that |
I have multiple apps that depend on version 1.0.0 and others that depend on 1.0.2. |
Hi, just followed the official guide to install dotnet on debian.
Install went fine, but when I tried to launch the tutorial example, I get :
`
$ dotnet new console -o hwapp
Getting ready...
[1] 18216 segmentation fault dotnet new console -o hwapp
`
The text was updated successfully, but these errors were encountered: