This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug nptl/12403] futex issues with --enable-kernel=2.6.22 to 2.6.28


http://sourceware.org/bugzilla/show_bug.cgi?id=12403

Bryan Kadzban <bz-glibc at kdzbn dot homelinux.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bz-glibc at kdzbn dot
                   |                            |homelinux.net

--- Comment #5 from Bryan Kadzban <bz-glibc at kdzbn dot homelinux.net> 2011-01-23 22:38:12 UTC ---
I'm seeing this as well.  I've tracked it down to a bug in the cleanup code in
pthread_rwlock_timedwrlock.S (causing a stack imbalance just before "retq") --
it uses __ASSUME_PRIVATE_FUTEX when deciding whether or not to clean up after
the local variables (and saved register) created for
__ASSUME_FUTEX_CLOCK_REALTIME.  When these two are set differently, "retq"
jumps off into never-never-land.

There's a related bug in pthread_rwlock_timedrdlock.S, which emits the wrong
CFI directives, but I don't think this will affect runtime.  (Could be wrong
though; I don't know a lot about CFI.)

Attached is a patch that fixes both issues; with this, all crashing in the
testsuite is gone.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]