Bug 23198 – rt_trap_exceptions_drt_gdb test fails with gdb 12

Status
NEW
Severity
minor
Priority
P3
Component
druntime
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2022-06-20T16:59:20Z
Last change time
2024-12-07T13:42:10Z
Assigned to
No Owner
Creator
opna2608
Moved to GitHub: dmd#17450 →

Attachments

IDFilenameSummaryContent-TypeSize
1855dmd-tests-druntime-rt_trap_exceptions_drt_gdb-gdb_12_1.logLog of failing rt_trap_exceptions_drt_gdb runtext/x-log3453

Comments

Comment #0 by opna2608 — 2022-06-20T16:59:20Z
Created attachment 1855 Log of failing rt_trap_exceptions_drt_gdb run After we updated our gdb package from 11.2 to 12.1, the rt_trap_exceptions_drt_gdb test started to fail [1]. I've attached the full log for this test, but the gist is that the gdb backtrace > #5 0x0000000000437709 in _Dmain (args=...) at src/rt_trap_exceptions_drt.d:9 doesn't match the grep > grep "in D main (args=...) at .*rt_trap_exceptions_drt.d:9" > /dev/null < ./generated/linux/release/64/rt_trap_exceptions_drt_gdb.output anymore, so the test fails. Our workaround is to patch the grep expression in test/exceptions/Makefile to look for _Dmain instead [2], but I don't think that would work with older gdb versions. [1] Original issue on Nixpkgs, with bisection down to the gdb bump: https://github.com/NixOS/nixpkgs/issues/177320 [2] https://github.com/NixOS/nixpkgs/pull/178128
Comment #1 by robert.schadek — 2024-12-07T13:42:10Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/17450 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB