From: Raoul Gough (RaoulGough_at_[hidden])
Date: 2002-04-26 12:14:07
I've just managed to compile and link the release 1_27_0 boost threads
library with gcc -mno-cygwin option under cygwin (i.e. mingw32) but
test_thread crashes during exit from the function condition_test_thread. I
had to fiddle a bit to get the boost libraries to compile and link, so I
assume this is not a widely used platform (cygwin in mingw mode, boost
1_27_0 and STLport-4.5.3).
Examining the assembler dump in gdb, the test seems to be crashing in some
exception-handler-related code at the end of condition_test_thread:
----- Disassembly with added comments --------
;; data->awoken++; (last line of function)
;; Some kind of exception handler context stuff (?)
mov (%edx),%ecx ;; <--- SEGV here, $edx is 0
;; boost::mutex::scoped_lock destructor stuff
call 0x40cde8 <_$_Q45boost6detail6threadt11scoped_lock1ZQ25boost5mutex>
;; function exit stuff
----- End disassembly --------
Before I spend too long chasing this, has anybody else seen anything similar
to this? Is anybody using the threads library with mingw and cygwin? I got
pretty much exactly the same crash in my own test code as well.
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk