Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Distributed LDC does not include file path for runtime modules #3687

Closed
Geod24 opened this issue Mar 22, 2021 · 2 comments
Closed

Distributed LDC does not include file path for runtime modules #3687

Geod24 opened this issue Mar 22, 2021 · 2 comments

Comments

@Geod24
Copy link
Contributor

Geod24 commented Mar 22, 2021

void main ()
{
    int a;
    assert(a);
}
$HOME/dlang/ldc-1.25.1/bin/ldc2 -g --link-defaultlib-debug -run a.d
core.exception.AssertError@a.d(4): Assertion failure
----------------
exception.d:429 onAssertError [0x10ab09a00]
exception.d:595 _d_assert [0x10ab09f44]
a.d:4 _Dmain [0x10a8f4172]
Error: /var/folders/1_/wzk0c3d17t37j8r1q8_3zl840000gn/T/a-321895 failed with status: 1

Note how exception.d is just the file name, and not the file path. IDK if there's a way to represent a path relative to the binary, but at least having core/exception.d in there would be good. This triggers for any runtime module.

@kinke
Copy link
Member

kinke commented Mar 22, 2021

AFAIK, this is just one of many druntime backtrace shortcomings, not using some dirs DWARF table emitted by LLVM.

@Geod24
Copy link
Contributor Author

Geod24 commented Jun 1, 2021

Thanks, applied the patch in our fork and it works like a charm!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants