Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2001-03

Exception-Handling in Threads

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Stephan Struckmann

Hi,

as far as I concern the exception handling seems not to be thread safe? I've written a little server program that handles different connections in threads. If one of those catches an exception, likely some other threads will catch an exception. So different threads catch exceptions quickly. It seems as if the merged list of exception handlers brakes, if one finishes, that was started before the list has been extended with another thread's exception. It results in an "Internal error." halt(255); (the list pointer is nil although it shouldn't be) or - and this is the more enoying form - in unreproducable errors (SIGSEGV - Signals with addresses that can't be found in the code, ...). Am I right? Perhaps it'll be fixed - or do I have to reengineer large parts of that program?

Thanks,

Stephan

Reply by email