Questions tagged [addr2line]

addr2line translates program addresses into file names and line numbers.

43 questions
2
votes
0 answers

How to convert numerical addresses in the stacktrace to symbols?

I have program that crashes from time to time with a following message in syslog. Is this possible to modify it in a way, so instead of addresses there would be a readable message about function/line where did it crash? I have access to program…
yy7k
  • 61
  • 3
2
votes
0 answers

How to investigate tombstone crash data on Android

Occasionally users are seeing crashes in my app. The are running a signed version but I am able to get the tombstone crash data from their logcat. Trying to use the examples online to run addr2line but I need the symbols to do that. Where can I…
menting311
  • 123
  • 2
  • 11
2
votes
1 answer

How to use atos? (or addr2line on Mac OS X)

I see the following example using addr2line. But the interfaces of atos and addr2line are different. I am not sure how to make it work using atos. Could anybody show me how to convert it to using…
user1424739
  • 11,937
  • 17
  • 63
  • 152
2
votes
2 answers

Libunwind PC value not working with addr2line

I am trying to follow along with an example from the link: https://eli.thegreenplace.net/2015/programmatic-access-to-the-call-stack-in-c/ However I have run into a few issues. I have a piece of code like so that uses libunwind to print backtrace…
Raees Rajwani
  • 487
  • 5
  • 18
2
votes
3 answers

Is there an addr2line which analyzes Code in Memory?

I'm using addr2line to analyze the stacktrace after an exception was thrown (using backtrace and backtrace_symbols). Currently this takes about 2 seconds to analyze the 120Mb binary (debug build) from disk. Is there a library (LGPL), which does the…
Charly
  • 1,270
  • 19
  • 42
1
vote
0 answers

JNI core dump address to line number conversion?

How do I get the line number of an error in a JNI library (which I wrote) from a java core dump ? Alternatively, can I get the line numbers directly in the core dump ? Here are 2 examples, depending on the java options (I added…
dargaud
  • 2,431
  • 2
  • 26
  • 39
1
vote
1 answer

addr2line - fails on basic example

#include void __cyg_profile_func_enter(void *func, void *caller) __attribute__((no_instrument_function)); void __cyg_profile_func_exit(void *this_fn, void *call_site) __attribute__((no_instrument_function)); void…
Bob
  • 4,576
  • 7
  • 39
  • 107
1
vote
1 answer

Given a library function how can I get its file offset?

Using backtrace and backtrace_symbols, I can get a mangled function name of interest (lets call it funcA_mangledName that belongs to libfsw.so. My goal is to get the source file and line number where it is defined. I can do this for functions that…
FirehawkTT
  • 31
  • 4
1
vote
1 answer

nm: some symbols are not related to any source file

In my embedded project I compile amazon-freertos/lib/FreeRTOS-Plus-TCP/FreeRTOS_Sockets.c in this way: /opt/gcc-arm-none-eabi-8-2019-q3-update/bin/arm-none-eabi-gcc \ -std=gnu11 \ -mcpu=cortex-m7 \ -mthumb \ -mapcs \ …
mastupristi
  • 1,240
  • 1
  • 13
  • 29
1
vote
0 answers

gdb backtrace - show inlined functions, like `addr2line -i` does

I have gdb attached to process. I print backtrace, one of frames looks like this: #9 0x000055b748d7467b in CA::CryptUserKeysCache::addSongKeyFast (this=0x55b74e141a90, group_color=..., timePeriodValidUnit=timePeriodValidUnit@entry=366,…
MateuszL
  • 2,751
  • 25
  • 38
1
vote
0 answers

What is this Unity Error? Addr2Line failure

Suddenly I have this error and I dont know how to solve. I have this error on PC /.......................................................... Addr2Line failure Scripting Backend: il2cpp Build Type: release CPU: arm64-v8a Addr2Line…
UnityChop
  • 11
  • 2
1
vote
2 answers

C++ - Is there any command likes addr2line on Windows

If a Windows application crashed on user's device without pdb, it would produce callstack like this: TestGame 0x000000003f790000 + 1c0c9f1 TestGame 0x000000003f790000 + 4b8a97c TestGame 0x000000003f790000 + 4b8a4f1 TestGame 0x000000003f790000…
Protoss
  • 512
  • 7
  • 27
1
vote
2 answers

How to identify the reason for memory corruption using Kernel Panic log?

My custom hardware is based on imax6q processor. Kernel I'm using - Linux-boundary 4.1.15. I'm getting kernel panics while running linux application on my custom hardware design. So how can I debug this to clarify whether this is a hardware related …
Peter_Amond
  • 51
  • 1
  • 9
1
vote
1 answer

addr2line on kernel address cannot find source line

I am building a custom linux kernel (4.15.0 x86_64) with debug symbol enabled. I find that addr2line fails to point to the source code line. addr2line -e vmlinux 0xffffffff9be625f0 gdb also returns "No line number information available for…
Proy
  • 336
  • 2
  • 13
1
vote
0 answers

addr2line produces question mark for line number

Recently while using addr2line for gRPC code I saw that it is not producing line number. The man page of add2line states that line number will be 0 if it can't determine. $ addr2line -s -C -i -f -e mybin 0x85fbc2 0x7f9eacbcf330 0x7f9eacbcb402…
damleak
  • 549
  • 1
  • 5
  • 20