Questions tagged [libunwind]
43 questions
2
votes
2 answers
Building libunwind for Mac
I am trying to build libunwind on Mac for both iOS and Mac, I was able to resolve few of the compilation problem.
Building on Mac
I configured the project using
./configure CC="cc -Ae -D_XOPEN_SOURCE=500"
And copied elf.h from google's breakpad…

Vishvesh
- 512
- 8
- 21
1
vote
1 answer
Build LLVM 16 (master) fail on libunwind
I'm trying building LLVM master on Ubuntu 22.04. But there's an error of libunwind.
CMake Error at /home/hxf0223/tmp/llvm-project/libunwind/src/CMakeLists.txt:109 (message):
Compiler doesn't support generation of unwind tables if exception…

roderick
- 21
- 3
1
vote
0 answers
try-catch cannot catch exception in a shared library load by dlopen
The library which contains the try-catch block is load dynamically using dlopen, and the try-catch block is as simple as bellow:
try {
throw "sth";
} catch (...) {}
The program that dynamically load the library abort complains:
terminate…

Xiaofeng
- 532
- 7
- 22
1
vote
2 answers
source code name and line number of the remote process
Hi I am trying to create some sort of a debugger that looks at system calls to detect them, but from an usability standpoint I wish to be able to get the source code name and line number where the error is detected.
I have been using library called…

Yuta Nakamura
- 49
- 3
1
vote
0 answers
unw_get_proc_name() sporadically returns UNW_EUNSPEC and UNW_ENOINFO errors
I am using libunwind 1.4.0 to collect the stack-trace. It almost always works, but there are cases that I either get unspecified (general) error or no unwind info found when calling unw_get_proc_name. I can walk through the stack-trace in core-dumps…

samanca
- 153
- 3
- 11
1
vote
1 answer
Broke yum on Centos 6.10, cannot install missing GLIBC in error due to missing libunwind
I was installing nvidia-drivers on Centos 6.10 which included a --skip-broken flag and may have broken yum. Whenever I ran yum commands this error pops up.
There was a problem importing one of the Python modules
required to run yum. The error…

Sam Soong
- 11
- 1
1
vote
0 answers
Prevent PIN_Backtrace() Unsuccessful Exit
I have a pintool that has calls to PIN_Backtrace(). It seems that libunwind does not support some registers in x86_64 and this leads to the following error message and an abnormal exit:
libunwind: uint64_t…

TheAhmad
- 810
- 1
- 9
- 21
1
vote
1 answer
_Unwind_ and unw_ functions (LLVM's libunwind)
I'm new to the LLVM's libunwind library. Could you please tell me what's the purpose and the difference of the two sets of functions that libunwind provides:
functions with the prefix _Unwind_
functions with the prefix unw_

embedc
- 1,485
- 1
- 6
- 20
1
vote
0 answers
What are the purposes of different libraries present under cxx-stl\llvm-libc++\libs folder?
In android ndk, under folder sources\cxx-stl\llvm-libc++\libs\armeabi-v7a, I can see these following libraries.
libandroid_support.a
libc++.so
libc++_shared.so
libc++abi.a
libunwind.a
Could you please explain what is the purpose of each one. If…

Pendyala
- 585
- 1
- 6
- 17
1
vote
1 answer
unw_init_remote failed with UNW_EBADREG
On android, while collecting traces of a particular native process, I observed that the backtrace of a particular thread of the process was not collected(libunwind is used to collect the backtrace).
First attempt:
12-29 20:47:20.902 13088 13088 W…

sg1993
- 335
- 2
- 19
1
vote
1 answer
undefined reference to symbol '_ULx86_64_step' libunwind.so.8: error adding symbols: DSO missing from command line
I'm trying to compile Caffe.
make all -j4
worked fine. But making the tests is giving the following error.
Debian GNU/Linux 8 (jessie) 64-bit
g++ --version
g++ (Debian 4.9.2-10) 4.9.2
Gives this error on
make test -j4
caffe$ make test…

muglikar
- 146
- 2
- 18
1
vote
2 answers
Error: lo register required when build libunwind in android ndk
I want to build libunwind from Android source at eclipse using ndk r10d.
But I fail at compiling "Gresume.c" , and it fail at the asm code .
I can't understand asm code and I searched any place can't found people who has the same problem ,so I hope…

spiritchen
- 13
- 1
- 4
1
vote
0 answers
Is it safe to iterate through a stack frame?
In my previous question, I was trying to see if I could programmatically obtain a stack trace of a child process from its parent.
I've successfully done so, but now another question has arisen in my mind - is it safe to directly examine these frames…

tonysdg
- 1,335
- 11
- 32
1
vote
1 answer
How could I remove a certain .o section out of .a file
I have a .a file with a bunch of symbols and objects. There is a section which
libunwind.o:
00000184 T _Unwind_Backtrace
00000160 T _Unwind_ForcedUnwind
000000f4 T _Unwind_RaiseException
00000118 T _Unwind_Resume
0000013c T…

seanxiaoxiao
- 1,282
- 2
- 11
- 23
0
votes
1 answer
Debian bookworm: Use both libunwind8 and libunwind-14?
I updated my container from debian bullseye to bookworm.
I used both libunwind8 (and libunwind-dev) and libc++-dev
Since bookworm, libc++-dev depends on libunwind-14-dev (probably because it now supports std::basic_stacktrace). This is a conflict,…

kuga
- 1,483
- 1
- 17
- 38