Re: state-threads / pthreads interaction on Linux
Jeff <[email protected]> Tue, 26 Nov 2002 09:54:29 -0800
| Newsgroups | gmane.comp.lib.state-threads.user |
|---|---|
| Message-ID | <[email protected]> |
Sascha Schumann wrote: > Hi, > > has anyone encountered the problem that it is apparently > impossible to mix state threads and the pthreads library on > Linux? > 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. I've also recently discovered problems with my cygwin port of state threads. If I call fork after st_init, cygwin makes a bunch of noise about how it couldn't fixup some mmaps or something. Something to do with the assumptions made by the fork implementation when it tries to copy all the stack, heap, mmaps and file handles to the new process. 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. ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en