Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Re-enable initlocals clearing in System.Net.Sockets on Unix#27411

Merged
stephentoub merged 1 commit into
dotnet:masterfrom
stephentoub:fixsocketsinit
Feb 23, 2018
Merged

Re-enable initlocals clearing in System.Net.Sockets on Unix#27411
stephentoub merged 1 commit into
dotnet:masterfrom
stephentoub:fixsocketsinit

Conversation

@stephentoub
Copy link
Copy Markdown
Member

@stephentoub stephentoub commented Feb 23, 2018

We disabled it because some ReceiveMessageFrom tests were failing. The issue turned out to be that we weren't explicitly clearing an IPPacketInformation struct before handing it to native code, and the native code wasn't clearing it. This fixes that (https://github.com/dotnet/corefx/pull/27411/files#diff-74b2e83ee829756a9dc8177b5154b7f7R50). Along with it, I initialized a few other variables, just for good measure.

Fixes https://github.com/dotnet/corefx/issues/27392
cc: @erozenfeld, @geoffkizer

We disabled it because some ReceiveMessageFrom tests were failing.  The issue turned out to be that we weren't explicitly clearing an IP packet information struct before handing it to native code, and the native code wasn't clearing it.  This fixes that.  Along with it, I initialized a few other variables, just for good measure.
@MarcoRossignoli
Copy link
Copy Markdown
Member

MarcoRossignoli commented Feb 23, 2018

@stephentoub not related to you commit, but the title hit me, what do you use to dev coreclr/corefx on unix?I worked with vscode on ubuntu(xfce) vm for a past PR, but it's not so easy, vscode it's a great growing ide, but some features doesn't work well with corefx solutions/projects(intellisense on top). Can you give me some advice? Thank's in advance for your time, if ask here is not correct i'll remove.

@davidsh davidsh added os-linux Linux OS (any supported distro) area-System.Net.Sockets labels Feb 23, 2018
@stephentoub
Copy link
Copy Markdown
Member Author

@dotnet-bot test Linux x64 Release Build please (seg fault in System.Xml.XmlSchemaSet.Tests, which doesn't have any dependencies on System.Net.Sockets)

@stephentoub
Copy link
Copy Markdown
Member Author

what do you use to dev coreclr/corefx on unix?

I generally just use Visual Studio on Windows. I've got WSL set up and do lots of Unix testing locally. If I need to target a particular distro/version, I often set up a VM in Azure and ssh into it, then use vim.

Copy link
Copy Markdown
Member

@erozenfeld erozenfeld left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@stephentoub stephentoub merged commit 1885cf8 into dotnet:master Feb 23, 2018
@stephentoub stephentoub deleted the fixsocketsinit branch February 23, 2018 21:05
@karelz karelz added this to the 2.1.0 milestone Mar 10, 2018
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
…orefx#27411)

We disabled it because some ReceiveMessageFrom tests were failing.  The issue turned out to be that we weren't explicitly clearing an IP packet information struct before handing it to native code, and the native code wasn't clearing it.  This fixes that.  Along with it, I initialized a few other variables, just for good measure.

Commit migrated from dotnet/corefx@1885cf8
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-System.Net.Sockets os-linux Linux OS (any supported distro)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Re-enable clearing of initlocals in System.Net.Sockets on Unix

5 participants