This is the mail archive of the libc-alpha@sources.redhat.com 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]

Re: question re: questions


On Sun, Jul 07, 2002 at 10:18:43AM +0200, Wolfram Gloger wrote:
> 
> > The
> > problem is the corrupted doubly linked list of active threads. The
> > linked list is maitained by pthread_handle_create and pthread_exited.
> > However, memset in pthread_allocate_stack can trash the doubly linked
> > list before the dead threads are removed from the active thread list.
> > I don't know what is the best fix. It can be very tricky.
> 
> Indeed, I have decided then that it is not worth while to bother with
> this because even if you got it working, the feature couldn't be used
> portably.

How about we change pthread_attr_setstack such that it will always fail
if it detects any stack memory reuse instead of failing silent?



H.J.


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