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

unable to find source line info for address #43

Open
czlovemath123 opened this issue Feb 19, 2023 · 5 comments
Open

unable to find source line info for address #43

czlovemath123 opened this issue Feb 19, 2023 · 5 comments

Comments

@czlovemath123
Copy link

Sorry for leaving this message here because I do not know how to solve this problem.

I have tried using bfd and dwarf/elf to convert the binary to the source line number but all failed.

mpiP Configuration Summary

C compiler : mpicc
C++ compiler : mpicxx
Fortran compiler : mpif90

Timer : MPI_Wtime
Stack Unwinding : libunwind
Address to Source Lookup : bfd

MPI-I/O support : yes
MPI-RMA support : yes
MPI-NBC support : yes


mpiP Configuration Summary

C compiler : mpicc
C++ compiler : mpicxx
Fortran compiler : mpif90

Timer : MPI_Wtime
Stack Unwinding : libunwind
Address to Source Lookup : libelf/libdwarf

MPI-I/O support : yes
MPI-RMA support : yes
MPI-NBC support : yes


The source line of the output always look like this:

28 @--- Callsites: 4 ---------------------------------------------------------
29 ---------------------------------------------------------------------------
30 ID Lev File/Address Line Parent_Funct MPI_Call
31 1 0 0x7fe7d3ae7b2a [unknown] Recv
32 2 0 0x7f260692259a [unknown] Send
33 3 0 0x7f1637a7859a [unknown] Send
34 4 0 0x7f044e9dc59a [unknown] Send

Can someone point me to the right direction? Much appreciated!

@czlovemath123
Copy link
Author

I compiled the code with -g -L/path_to_libmpiP.so -lmpiP

@luozijun123
Copy link

请问你解决这个问题了吗

@2397798540
Copy link

--disable-libunwind

Stack Unwinding: glibc-backtrace

@sant0s12
Copy link

Setting a higher k seems to help

@amir-raoofy
Copy link

amir-raoofy commented Jun 10, 2024

I experienced a similar issue, and thanks to @schulzm, I traced this back to address randomization, which seems to be enabled by default in many distributions. This work around worked for me.

https://askubuntu.com/questions/318315/how-can-i-temporarily-disable-aslr-address-space-layout-randomization

The background is that the address-to-source translation in mpiP seems to only happen on one of the MPI processes (e.g., rank 0), assuming that the addresses are the same on different processes. Address randomization breaks this assumption.

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

5 participants