This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
problem in glibc backtrace done inside nptl library
- From: "Vinu Rajashekhar" <vinutheraj at gmail dot com>
- To: libc-help at sourceware dot org
- Date: Tue, 17 Jun 2008 15:27:38 +0200
- Subject: problem in glibc backtrace done inside nptl library
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=8sfj0vBAHSZtX27n/vi04oBP+ClAbsn702Mu1Pky9pY=; b=x+aU29Qo+l7WptPvemdtt7oUzziI5nIT0AsB/IyOSb8M72c23aOvA/TZq0Fatj52q4 F1OG03TdniktJUUZ0wTqOtJJ69d4hf3TS2CBTbqlztSEZQFkDqJuWT4sG4V3Wj7WrUtf 1qq6tr6lIyKHVP1XAb7LwnsXSZw+oJ2Yi2cKI=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=SlgDlwgB2AcGrrLVbgYBrRZ1XbpV07SvqSQlTGT1UUUNNQlMoGLd7p/gdJfpQRtyQ1 Pjo84lZmUiErGNgz+lZWNIg92HhneuXsfV02lRjhD6Gd7B4VRXFpKtoiQRRZ4L2QZwoG JCXLoliUOvGsZ0cFDuPndrOhF9C8tlxDDabAA=
Hi,
I am working on adding some code to the nptl library,
the code is in C++ and I have added the code to the nptl library,
changed the makefiles to compile it with nptl.
I have instrumented pthread_mutex_lock , which calls a function from my
code and inside I do a backtrace, but in the backtrace I dont get all
the function names.
I want to know if the problem is because of the -rdynamic flag,
because I am using it
in both the build phase and compiling the binary and also I did the
ldd to confirm its using
the new libraries, compiled with my sources.
Heres the backtrace I get after using backtrace_symbols
/home/vinu/glibc/local/lib
/libpthread.so.0 [0xb7f11820]
/home/vinu/glibc/local/lib/libpthread.so.0 [0xb7f05e0e]
/home/vinu/glibc/local/lib/libpthread.so.0 [0xb7f05ff7]
/home/vinu/glibc/local/lib/libpthread.so.0(pthread_mutex_lock+0x90) [0xb7eef600]
./a.out(thr_fn0+0x12) [0x80487a6]
/home/vinu/glibc/local/lib/libpthread.so.0 [0xb7eed347]
/home/vinu/glibc/local/lib/libc.so.6(clone+0x5e) [0xb7e749ae]
I want to get the function names of the other functions. The funny thing is
gdb is able to do it, then why not glibc backtrace ?