This is the mail archive of the pthreads-win32@sources.redhat.com mailing list for the pthreas-win32 project.


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

Re: execute of pthreads-2001-07-03 fails


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                   |
+-----------------------------+


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