mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 00:39:49 +00:00
f9c9c4e767
The following happened: A listening socket (ipv4, first-port) was created. Afterwards another listening socket (ipv6, 0) is being created. We look up in the hashmap if there is already a listening socket on port `0` (which is never the case). So we create a new socket, the OS assigns the socket a random port (which just happens to be `first-port` as well). Then we insert a new OSSocket entry into the hashmap with key `first-port` (and set its `next` field to NULL). This will simply override the existing entry. During shutdown we loop over all (fd, OSSocket) pairs and try to remove `OSSocket` from the port->socket map (via the linked `next` list). We cannot find the `OSSocket` which we accidentally droped earlier, so we dereference `0->next` and hit a SEGFAULT. What should've happend is to correctly link the `OSSocket`s via the next field. Fixes #27847 R=asiva@google.com, fschneider@google.com Review URL: https://codereview.chromium.org/2540013002 . |
||
---|---|---|
build | ||
client | ||
docs/language | ||
pkg | ||
runtime | ||
samples | ||
samples-dev | ||
sdk | ||
tests | ||
third_party | ||
tools | ||
utils | ||
.clang-format | ||
.gitattributes | ||
.gitignore | ||
.gn | ||
.mailmap | ||
.packages | ||
.travis.yml | ||
AUTHORS | ||
BUILD.gn | ||
CHANGELOG.md | ||
codereview.settings | ||
create_sdk.gyp | ||
dart.gyp | ||
DEPS | ||
LICENSE | ||
PATENTS | ||
PRESUBMIT.py | ||
README.dart-sdk | ||
README.md | ||
WATCHLISTS |
Dart
Dart is an open-source, scalable programming language, with robust libraries and runtimes, for building web, server, and mobile apps.
Using Dart
Visit the dartlang.org to learn more about the language, tools, getting started, and more.
Browse pub.dartlang.org for more packages and libraries contributed by the community and the Dart team.
Building Dart
Learn how to get the source and prepare your machine to build the SDK.
There are more documents on our wiki.
Contributing to Dart
The easiest way to contribute to Dart is to file issues.
You can also contribute patches, as described in Contributing.
License
See LICENSE.