This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


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

Re: WHOO! RE: exceptions and threads---a survival tactic!


> 
> I stayed home for a while this morning instead of going to work in
> order to install the March 8th snapshot with thread-safe exception
> handling. (My platform is a dual-pentium Linux system, and I'm using
> LinuxThreads.)
> 
> Two words: it works!
> 
> Six word caveat: as far as I can tell. 
> 
> I performed a number of tests with a program that would consistenly
> core dump without the thread-safe eh, due to concurrent exceptions
> triggered by related events. About 10-20% of the trial runs, the program
> would not crash, due to a different order of execution of the threads.
> I was able to successfully run it about half dozen times without
> problem.
> 
> I did correctly enable the thread-support; there are unresolved symbols
> in libgcc.a to various POSIX threading API functions such as
> pthread_setspecific.
> 
> :)
> 
> Hooray! Good work, people!
> 
> What I will try next is compiling a C program and see if it the
> linker complains about undefined pthread-related symbols.
> 

Please note that thread-safe EH is only supported on Linux using
glibc 2. If you use libc 5, it will not work and you are on your
own. However, if you have problems with thread-safe EH on Linux
with glibc 2, please let me know. I will see what I can do.


-- 
H.J. Lu (hjl@gnu.org)


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