This is the mail archive of the 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


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
         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 Johnson            |   | "Come down off the cross
| Management & Technology |___|  We can use the wood" - Tom Waits
| Building 11                 |
| University of Canberra      | eMail:
| ACT    2601                 | WWW:
| AUSTRALIA                   |

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