digitalmars.D.bugs - [Issue 19039] New: __entrypoint.main has file and line location of
- d-bugmail puremagic.com (31/31) Jun 28 2018 https://issues.dlang.org/show_bug.cgi?id=19039
https://issues.dlang.org/show_bug.cgi?id=19039 Issue ID: 19039 Summary: __entrypoint.main has file and line location of app.d Product: D Version: D2 Hardware: x86 OS: Windows Status: NEW Severity: normal Priority: P1 Component: druntime Assignee: nobody puremagic.com Reporter: andre s-e-a-p.de This is only occurs on windows and only for OMF. The issue does not occur for COFF. I created an issue for the Mago debugger (https://github.com/rainers/mago/issues/21) because in the stack trace "__entrypoint.main" has as file and line location of my app.d file. stack=[ frame={level="0",addr="0x00402256",func="D main+0x6",args=[],file="C:\\D\\projects\\rasptest1\\source\\app.d",fullname="C:\\D\\projects\\rasptest1\\source\\app.d",line="12"}, frame={level="1",addr="0x0040e34f",func="__D2rt6dmain211_d_run_mainUiPPaPUAAaZiZ6runAllMFZ9__lambda1MFZv+0x1b",args=[]}, frame={level="2",addr="0x0040e2d1",func="__D2rt6dmain211_d_run_mainUiPPaPUAAaZiZ6runAllMFZv+0x89",args=[]}, frame={level="3",addr="0x0040e16c",func="__d_run_main+0x1f8",args=[]}, frame={level="4",addr="0x0040df64",func="__entrypoint.main+0x14",args=[],file="C:\\D\\projects\\rasptest1\\source\\app.d",fullname="C:\\D\\projects\\rasptest1\\source\\app.d",line="7"}, frame={level="5",addr="0x00430401",func="_mainCRTStartup+0xa9",args=[]}, frame={level="6",addr="0x75828484",from="C:\\Windows\\SysWOW64\\kernel32.dll"}, frame={level="7",addr="0x76ef2fea",from="C:\\Windows\\SysWOW64\\ntdll.dll"}, frame={level="8",addr="0x76ef2fba",from="C:\\Windows\\SysWOW64\\ntdll.dll"}] The assumption is that this is a bug within the debug info generation of DMD. --
Jun 28 2018