From: Sascha S. <sa...@sc...> - 2002-11-27 00:08:52
|
> I discovered this also. You also have to avoid librt because it depends > on libpthread. > > My guess is that pthreads is doing some stack and/or heap manipulations > which are incompatible with those of state threads. Since my application needs inter-process locking which won't be available through Pthreads/POSIX semaphores until Linux 2.5, I've added a SysV semaphore set manager to my app and it is running beautifully now. > After doing some research I found out that other projects (e.g. python, > pth) have had similar difficulties in cygwin with their own jmp_buf tricks. Yes, Pth also segfaults with the posted test case on Linux. It's great how the next-generation development effort has benefitted from State-Threads. Through on-going refinement, the original simple design has been extended to a much more complex one. The State-Threads package has enabled me to make tiny steps between each evolutionary change, so that I could validate each step. Mike, thank you for State-Threads. - Sascha |