This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Fix possible deadlock in stdio locking code
- From: Andreas Schwab <schwab at redhat dot com>
- To: Siddhesh Poyarekar <spoyarek at redhat dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Tue, 18 Oct 2011 16:58:59 +0200
- Subject: Re: [PATCH] Fix possible deadlock in stdio locking code
- References: <20111018140922.GA5701@spoyarek.pnq.redhat.com>
Siddhesh Poyarekar <spoyarek@redhat.com> writes:
> 1) thread A pushes the cleanup callback flush_cleanup using
> _IO_cleanup_region_start_noarg()
>
> 2) Some other thread calls pthread_cancel on thread A before it gets
> to call _IO_lock_lock(list_all_lock)
That pthread_cancel call will have no effect until the next cancellation
point.
Andreas.
--
Andreas Schwab, schwab@redhat.com
GPG Key fingerprint = D4E8 DBE3 3813 BB5D FA84 5EC7 45C6 250E 6F00 984E
"And now for something completely different."