Issue 23198 - rt_trap_exceptions_drt_gdb test fails with gdb 12
Summary: rt_trap_exceptions_drt_gdb test fails with gdb 12
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: druntime (show other issues)
Version: D2
Hardware: x86_64 Linux
: P3 minor
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-20 16:59 UTC by opna2608
Modified: 2024-12-07 13:42 UTC (History)
0 users

See Also:


Attachments
Log of failing rt_trap_exceptions_drt_gdb run (3.37 KB, text/x-log)
2022-06-20 16:59 UTC, opna2608
Details

Note You need to log in before you can comment on or make changes to this issue.
Description opna2608 2022-06-20 16:59:20 UTC
Created attachment 1855 [details]
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 dlangBugzillaToGithub 2024-12-07 13:42:10 UTC
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