This is the mail archive of the mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.

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: new syscall stub support for ia64 libc

>>>>> On Mon, 17 Nov 2003 16:53:10 -0800, Ulrich Drepper <> said:

  Uli> David Mosberger wrote:

  >> Or is NPTL simply not making any correctness-guarantees when

  Uli> It is not allowed to call any library function except for
  Uli> pthread_cancel(), pthread_setcancelstate(), and
  Uli> pthread_setcanceltype() (XSH

The HTML version doesn't have section numbers, but I think you're
referring to this section:

  Async-Cancel Safety

  The pthread_cancel(), pthread_setcancelstate(), and
  pthread_setcanceltype() functions are defined to be async-cancel

  No other functions in this volume of IEEE Std 1003.1-2001 are
  required to be async-cancel-safe.

I don't see anything that would prevent NPTL from providing better
async-cancel-safety, but juding by your response, it doesn't.

  Uli> If you want to discuss correctness issues I request you first
  Uli> read the POSIX standard.

Hey, I'm trying...

I still don't understand the interaction between signals and
thread-cancellation and I couldn't find where this is being discussed
in the standard.  Any pointers?

BTW: All NPTL-tests now succeed with libunwind, except that
tst-cancel10 occasionaly segfaults due to some sort of memory
corruption/race.  I'll see now if I can fix GCC's unwind-ia64.c to
work also.



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