Bug 19039 – __entrypoint.main has file and line location of app.d

Status
NEW
Severity
normal
Priority
P3
Component
druntime
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-06-28T19:49:45Z
Last change time
2024-12-07T13:38:26Z
Assigned to
No Owner
Creator
Andre
Moved to GitHub: dmd#17367 →

Comments

Comment #0 by andre — 2018-06-28T19:49:45Z
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.
Comment #1 by r.sagitario — 2019-08-30T16:24:54Z
I see it on Win64, too, and issue 17727 suggests it is happening for Linux, too.
Comment #2 by r.sagitario — 2019-08-30T16:28:03Z
*** Issue 17727 has been marked as a duplicate of this issue. ***
Comment #3 by robert.schadek — 2024-12-07T13:38:26Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/17367 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB