The following reply was made to PR backtrace/2325; it has been noted by GNATS.
From: "Yan, Michael" <myan@xxxxxxxxxxxxxxxxx>
To: "Daniel Jacobowitz" <drow@xxxxxxxxx>
Cc: <gdb-gnats@xxxxxxxxxxxxxxxxxx>
Subject: RE: backtrace/2325: wrong back trace onx86_64whenpthread_mutex_lock is
the innermost function call.bitmode/kernelversion/compiler version are
irrelevant
Date: Fri, 5 Oct 2007 16:43:21 -0400
I will try it out. Thanks a million.
-----Original Message-----
From: Daniel Jacobowitz [mailto:drow@xxxxxxxxx]
Sent: Friday, October 05, 2007 4:42 PM
To: Yan, Michael
Cc: gdb-gnats@xxxxxxxxxxxxxxxxxx
Subject: Re: backtrace/2325: wrong back trace
onx86_64whenpthread_mutex_lock is the innermost function
call.bitmode/kernelversion/compiler version are irrelevant
On Fri, Oct 05, 2007 at 04:34:40PM -0400, Yan, Michael wrote:
> I tried RedHat AS 5 distribution which has glibc version 2.5. It works =
fine.
>=20
> However, we have to support customers with glibc 2.3 which means we =
have to patch that version. Do you know which change make the difference =
? Any information is appreciated.
I suspect it was this patch:
2006-03-03 Jakub Jelinek <jakub@xxxxxxxxxx>
Roland McGrath <roland@xxxxxxxxxx>
* sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
(LLL_STUB_UNWIND_INFO_START, LLL_STUB_UNWIND_INFO_END,
LLL_STUB_UNWIND_INFO_5, LLL_STUB_UNWIND_INFO_6): Define.
(lll_mutex_lock, lll_robust_mutex_lock, lll_mutex_cond_lock,
lll_robust_mutex_cond_lock, lll_mutex_timedlock,
lll_robust_mutex_timedlock, lll_mutex_unlock,
lll_robust_mutex_unlock, lll_lock, lll_unlock): Use them.
Add _L_*_ symbols around the subsection.
* sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Add unwind
info.
* sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S:
Likewise.
However, patching glibc is difficult; I can't promise that patch will
work on any other version.
--=20
Daniel Jacobowitz
CodeSourcery
|