Bug 21874 – The test suite fails with most recent GDB versions

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2021-04-28T13:45:49Z
Last change time
2021-06-08T21:11:43Z
Keywords
pull, TestSuite
Assigned to
No Owner
Creator
Basile-z
See also
https://issues.dlang.org/show_bug.cgi?id=22009

Comments

Comment #0 by b2.temp — 2021-04-28T13:45:49Z
[basile@pc dmd]$ gdb --version GNU gdb (GDB) Fedora 10.1-4.fc33 Copyright (C) 2020 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. ## output example --- ... runnable/gdb1.d -g -fPIC ()============================== Test 'runnable/gdb1.d' failed. The logged output: /home/basile/dev/repos/dlang/dmd/generated/linux/release/64/dmd -conf= -m64 -Irunnable -g -fPIC -odtest_results/runnable -oftest_results/runnable/gdb1_0 runnable/gdb1.d gdb test_results/runnable/gdb1_0 --batch -x test_results/runnable/gdb1_0.gdb Breakpoint 1 at 0x40115b: file /home/basile/dev/repos/dlang/dmd/test/../../druntime/import/core/internal/entrypoint.d, line 29. [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". Breakpoint 1, main (argc=3, argv=0x7ffc691f3528) at /home/basile/dev/repos/dlang/dmd/test/../../druntime/import/core/internal/entrypoint.d:29 29 return _d_run_main(argc, argv, &_Dmain); RESULT=test_results/runnable/gdb1_0.gdb:5: Error in sourced command file: No symbol "args" in current context. ============================== Test 'runnable/gdb1.d' failed: Expected rc == 0, but exited with rc == 1 ---
Comment #1 by lucien.perregaux — 2021-04-29T09:32:04Z
also affects runnable/gdb14313.d `b <line>` breaks into entrypoint.d and not in the file where `void main()` is.
Comment #2 by b2.temp — 2021-04-29T13:16:15Z
i suggest a '--nogdb' option in the time being. Most CI services will still use the LTS ubuntu with GDB 9 for a while tho.
Comment #3 by dlang-bot — 2021-05-04T22:03:18Z
@ibuclaw created dlang/dmd pull request #12499 "fix Issue 21874 - The test suite fails with most recent GDB versions" fixing this issue: - fix Issue 21874 - The test suite fails with most recent GDB versions https://github.com/dlang/dmd/pull/12499
Comment #4 by dlang-bot — 2021-05-07T08:38:25Z
dlang/dmd pull request #12499 "fix Issue 21874 - The test suite fails with most recent GDB versions" was merged into master: - fdfb6059111f324eba64b418d55ab3f684cb2d50 by Iain Buclaw: fix Issue 21874 - The test suite fails with most recent GDB versions https://github.com/dlang/dmd/pull/12499