This is the mail archive of the
pthreads-win32@sources.redhat.com
mailing list for the pthreas-win32 project.
Re: execute of pthreads-2001-07-03 fails
- To: Harish SS <harish at myneton-india dot com>
- Subject: Re: execute of pthreads-2001-07-03 fails
- From: Ross Johnson <rpj at ise dot canberra dot edu dot au>
- Date: Tue, 10 Jul 2001 18:08:57 +1000
- CC: pthreads-win32 at sources dot redhat dot com
- Organization: University of Canberra, Information Sciences and Engineering
- References: <022601c10892$dd2dd3a0$19321aac@boris.com> <000a01c108f6$6697b580$4d02a8c0@opel>
Hi,
Harish SS wrote:
>
> Hi,
>
> When building the pthreads-2001.-7-03 tests, I get the following message.
>
> Compiling exception3.exe
> exception3.c
> ... Running VCE test: exception3.exe
> NMAKE : fatal error U1077: '.\exception3.exe' : return code '0x3'
> Stop.
> NMAKE : fatal error U1077: 'C:\MSDEV\VC98\BIN\NMAKE.EXE' : return code '0x2'
> Stop.
> with an exception unhadled exception.
>
> Could you help me iron out the reason/bug.
>
tests/exception3.c is designed to exercise this known bug. The bug is
mentioned in the ANNOUNCE file:
---------------------------
Known bugs in this snapshot
---------------------------
1. Under MS VC++ (only tested with version 6.0), a term_func
set via the standard C++ set_terminate() function is not called
for some reason. The code in private.c:ptw32_threadStart()
makes an explicit call to terminate(), which works as expected
under MinGW32 g++, but doesn't appear to run the term_func
under
MS VC++ 6.0.
The code has changed slightly since this was written, but the logic is
basically the same. The user supplied terminate function is retrieved
using set_terminate() and then run directly. If anybody does have a
solution it would nice to clean this one up.
Ross
--
+-------------------------+---+
| Ross Johnson | | "Come down off the cross
| Management & Technology |___| We can use the wood" - Tom Waits
| Building 11 |
| University of Canberra | eMail: rpj@ise.canberra.edu.au
| ACT 2601 | WWW:
http://public.ise.canberra.edu.au/~rpj/
| AUSTRALIA |
+-----------------------------+