September 25, 2011 [dmd-internals] [D-Programming-Language/dmd] 8c433d: Fix POSIX-only segfault in test/runnable/testsocke... | ||||
---|---|---|---|---|
| ||||
Branch: refs/heads/master Home: https://github.com/D-Programming-Language/dmd Commit: 8c433d7d1f8f7e9c7d0f4ddbf38a498c630ddd9b https://github.com/D-Programming-Language/dmd/commit/8c433d7d1f8f7e9c7d0f4ddbf38a498c630ddd9b Author: Vladimir Panteleev <vladimir at thecybershadow.net> Date: 2011-09-25 (Sun, 25 Sep 2011) Changed paths: M test/runnable/testsocket.d Log Message: ----------- Fix POSIX-only segfault in test/runnable/testsocket.d Since std.socket now correctly enforces SocketSet capacity, the rset.add call will now fail on POSIX. This causes the Connection class to be garbage-collected, instead of being explicitly deleted. Connection's destructor then attempts to access a field allocated on the heap, which has already been collected, and thus segfaults. Commit: 07eea299785d49cd5a153049f8d3b385bb445862 https://github.com/D-Programming-Language/dmd/commit/07eea299785d49cd5a153049f8d3b385bb445862 Author: Walter Bright <walter at walterbright.com> Date: 2011-09-25 (Sun, 25 Sep 2011) Changed paths: M test/runnable/testsocket.d Log Message: ----------- Merge pull request #410 from CyberShadow/fix-test-runnable-testsocket Fix POSIX-only segfault in test/runnable/testsocket.d Compare: https://github.com/D-Programming-Language/dmd/compare/fb3e7b1...07eea29 |
Copyright © 1999-2021 by the D Language Foundation