From eb222bd25ddfc39ac156d59331f1dd4c3ef5df9b Mon Sep 17 00:00:00 2001 From: rpj Date: Wed, 10 Feb 1999 23:20:18 +0000 Subject: Update FAQ and MAINTAINERS. --- FAQ | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ MAINTAINERS | 3 ++- 2 files changed, 67 insertions(+), 1 deletion(-) diff --git a/FAQ b/FAQ index d5a0e81..d4665e3 100644 --- a/FAQ +++ b/FAQ @@ -7,6 +7,8 @@ INDEX Q 1 How do I get pthreads-win32 to link under Cygwin32 or Mingw32? +Q 2 Now that pthreads-win32 builds under Mingw32, why do I get + memory access violations? ============================================================================= @@ -70,3 +72,66 @@ not (yet) threadsafe. Regards, Anders +------------------------------------------------------------------------------ + +Q 2 Now that pthreads-win32 builds under Mingw32, why do I get +--- memory access violations (segfaults)? + +A 2 +--- +The following email exchange describes the problem. Until this issue +is resolved people without the Microsoft compiler can obtain the current +MSVC prebuilt DLL (pthread.{dll,lib,h}) at: + +ftp://sourceware.cygnus.com/pub/pthreads-win32/dll-latest + +Date: Wed, 10 Feb 1999 13:21:01 -0000 +From: "Ruland, Kevin" +Reply-To: POSIX threads on Win32 +To: 'POSIX threads on Win32' +Subject: Mingw32 exceptions not thread safe. + +Hello everyone. + +I asked Mumit Khan, maintainer of egcs for mingw and assorted guru, about +the Known Problem listed below. + +> Known problems +> -------------- +> +> There is an unresolved bug which shows up as a segmentation fault +> (memory access violation) when the library is built using g++. Build +> the test program "eyal1.c" and run with an argument of "2" or +> greater. The argument is the number of threads to run, excluding the +> main thread, so the bug appears with 2 or more worker threads. +> +> Kevin Ruland has traced the exception to the try/catch blocks in +> _pthread_threadStart(). +> + +The official word is: + + +EGCS-1.1.1 for win32 (either cygwin or crtdll/msvc runtimes) do not have +thread-safe exception support. + +For Cygwin, it'll happen when Cygwin runtime has mature thread safety and +pthread is fully integrated. Then it's just a matter of rebuilding GCC (or +just libgcc in this) with thread safe EH support. + +For Mingw crtdll/msvc, someone needs to write the thread-wrapper for win32 +threads. Anyone who knows win32 threads should be able to do this without +much trouble at all. It's low on my priority list, so unless someone else +volunteers, it'll have to wait. + +Are you willing to take a look? If so, I can provide details. +<\Quote> + +And there you have it! To summarize, it's nice that pthreads compile but they +aren't much use just yet. + +I'll respond to Mumit with 'Okay, what do I need to look at', but may not be +able to tackle it myself. + +Kevin + diff --git a/MAINTAINERS b/MAINTAINERS index a09e2c5..99e35cd 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -5,8 +5,9 @@ Write permission Ben Elliston bje@cygnus.com Ross Johnson rpj@ise.canberra.edu.au -Active contributors +Contributors (in order of appearance) Robert Colquhoun rjc@trump.net.au John E. Bossom John.Bossom@cognos.com Anders Norlander anorland@hem2.passagen.se +Kevin Ruland Kevin.Ruland@anheuser-busch.com -- cgit v1.2.3