This is the mail archive of the mailing list for the Cygwin project.

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

RE: Exception problems-> this is a bug!

I compiled using "g++ -g", and I'm seeing the behavior that Joost
mentioned.  gdb caught the exception and is currently pointing at an
assembly instruction between the last brace of the for loop and the last
brace of the try block: "mov (%edx),%ecx".

I did have to tweak the source a bit to get it to run.  On my machine, I got
the message "couldn't dynamically determine load address for
'CharToOemBuffA' (handle 0x0), Win32 error 127".  Putting a Sleep between
the two calls to CreateThread allows the program to run.  Looks like the
assembly in needs to be thread-safe (just like the FIXME above
it says).

Brad Town

Joost Kraaijeveld [] wrote:
> This program (see below) crashes whenever a function on a 
> separate thread is
> called that contains a try{} catch(){} block. I tested with several
> compilers (Cygwin, MingW, IBM Visual Age, MS Visual C++ and 
> Metrowerks) and
> only CygWin (latest release of all software) crashes. I think 
> that the stack
> of the thread is not cleaned up correctly.
> Is there a workaround availalbe of some kind??

Want to unsubscribe from this list?
Send a message to

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