Bug 21114 – core.exception.AssertError@std/socket.d(1004): Assertion failure

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2020-08-05T00:13:21Z
Last change time
2022-02-19T08:55:43Z
Keywords
pull
Assigned to
No Owner
Creator
Walter Bright

Comments

Comment #0 by bugzilla — 2020-08-05T00:13:21Z
This happens constantly when running the test suite. Environmental errors should NOT produce assert fails. Log: --- std.socket(999) test fails depending on environment --- (core.exception.AssertError@std/socket.d(1004): Assertion failure ---------------- ??:? onAssertError [0x2c763c21] ??:? _d_assertp [0x2c763eb5] ??:? @safe void std.socket.__unittest_L997_C7().__lambda1() [0x2a9dfc9c] ??:? @trusted void std.socket.softUnittest(void delegate() @safe, int) [0x2a9de095] ??:? @safe void std.socket.__unittest_L997_C7() [0x2a9dfb2c] ??:? void std.socket.__modtest() [0x2aa0152a] ../druntime/src/test_runner.d:73 ??? [0x804922c] ../druntime/src/test_runner.d:44 ??? [0x8049168] ../druntime/src/test_runner.d:25 ??? [0x804902c] ??:? runModuleUnitTests [0x2c7652c3] ??:? void rt.dmain2._d_run_main2(char[][], uint, extern (C) int function(char[][])*).runAll() [0x2c7962bc] ??:? void rt.dmain2._d_run_main2(char[][], uint, extern (C) int function(char[][])*).tryExec(scope void delegate()) [0x2c79621b] ??:? _d_run_main2 [0x2c796174] ??:? _d_run_main [0x2c795f21] ../druntime/import/core/internal/entrypoint.d:29 ??? [0x8049397] ??:? ??? [0x8048e78] ??:? ??? [0x8048d57])
Comment #1 by dlang-bot — 2020-08-05T00:20:20Z
@WalterBright created dlang/phobos pull request #7579 "fix Issue 21114 - core.exception.AssertError@std/socket.d(1004): Asse…" fixing this issue: - fix Issue 21114 - core.exception.AssertError@std/socket.d(1004): Assertion failure https://github.com/dlang/phobos/pull/7579
Comment #2 by bugzilla — 2020-08-05T09:19:00Z
Comment #3 by dlang-bot — 2020-08-05T09:20:43Z
@CyberShadow updated dlang/phobos pull request #7580 "Improve behavior of std.socket "soft" unittests" mentioning this issue: - std.socket: Hide details of "soft" unittests unless built with -debug=std_socket Reduce noise and false alarms in CI logs. Also improve the printed message on failure, to make it clear that it is likely a random failure, and that the ignored test failure is not what's causing the entire test suite run to fail. Fixes Issue 21114. https://github.com/dlang/phobos/pull/7580
Comment #4 by bugzilla — 2020-08-05T09:34:46Z
*** Issue 20985 has been marked as a duplicate of this issue. ***
Comment #5 by dlang-bot — 2020-08-05T12:24:17Z
dlang/phobos pull request #7580 "Improve behavior of std.socket "soft" unittests" was merged into master: - 0a0928059457041c48a4ec0cc38c2981588579f4 by Vladimir Panteleev: std.socket: fix Issue 21114: Hide details of "soft" unittests unless built with -debug=std_socket Reduce noise and false alarms in CI logs. Also improve the printed message on failure, to make it clear that it is likely a random failure, and that the ignored test failure is not what's causing the entire test suite run to fail. https://github.com/dlang/phobos/pull/7580
Comment #6 by pro.mathias.lang — 2022-02-19T08:55:43Z
Fixed by the above PR, but the bot didn't pick it up.