Re: pthreads & fork & execve

2001-04-03 Thread Richard Guenther
On Mon, 2 Apr 2001, Gustavo Niemeyer wrote: > Hi Richard! Hi Dennis! [...] > Btw, both are mainly C++ programs. Is your software written in C++? Not, just plain C - but one point is that we started seeing the problem after we started using pthread_sigmask() to block certain signals from

Re: pthreads fork execve

2001-04-03 Thread Richard Guenther
On Mon, 2 Apr 2001, Gustavo Niemeyer wrote: Hi Richard! Hi Dennis! [...] Btw, both are mainly C++ programs. Is your software written in C++? Not, just plain C - but one point is that we started seeing the problem after we started using pthread_sigmask() to block certain signals from reaching

Re: pthreads & fork & execve

2001-04-02 Thread Gustavo Niemeyer
> People making Apache 1.3.X modules have a problem too. They have to > rebuilt Apache and add -lpthread if any modules uses threads. It seems to be the same case here. > The following small program illustrates this. The program, main-wot, > crashes - the other, main-wt, doesn't. [...] Both

Re: pthreads & fork & execve

2001-04-02 Thread Gustavo Niemeyer
Hello Jakub!! [...] > By any chance, are you dlopening a DSO linked against -lpthread from > program not linked against -lpthread? Yes, I am!! Is this some limitation I'm not aware of? Indeed, this seems to be made in many cases... is this about pthread?? -- Gustavo Niemeyer [ 2AAC 7928

Re: pthreads & fork & execve

2001-04-02 Thread Adam Dickmeiss
Hi. On Mon, Apr 02, 2001 at 09:54:25AM -0300, Gustavo Niemeyer wrote: > Hi Richard! Hi Dennis! > > > I tracked this down to a corrupt jumptable somewhere in the pthreads > > part of the libc (didnt have the source handy at that time, though). So > > I think this is a libc bug (version does not

Re: pthreads & fork & execve

2001-04-02 Thread Gustavo Niemeyer
Hi Richard! Hi Dennis! > I tracked this down to a corrupt jumptable somewhere in the pthreads > part of the libc (didnt have the source handy at that time, though). So > I think this is a libc bug (version does not matter) - I even did a > followup to a similar bug in the libc gnats database (I

Re: pthreads & fork & execve

2001-04-02 Thread Jakub Jelinek
On Mon, Apr 02, 2001 at 09:54:25AM -0300, Gustavo Niemeyer wrote: > Hi Richard! Hi Dennis! > > > I tracked this down to a corrupt jumptable somewhere in the pthreads > > part of the libc (didnt have the source handy at that time, though). So > > I think this is a libc bug (version does not

Re: pthreads & fork & execve

2001-04-02 Thread Richard Guenther
Hi! I tracked this down to a corrupt jumptable somewhere in the pthreads part of the libc (didnt have the source handy at that time, though). So I think this is a libc bug (version does not matter) - I even did a followup to a similar bug in the libc gnats database (I think I should have opened

Re: pthreads fork execve

2001-04-02 Thread Richard Guenther
Hi! I tracked this down to a corrupt jumptable somewhere in the pthreads part of the libc (didnt have the source handy at that time, though). So I think this is a libc bug (version does not matter) - I even did a followup to a similar bug in the libc gnats database (I think I should have opened

Re: pthreads fork execve

2001-04-02 Thread Gustavo Niemeyer
Hi Richard! Hi Dennis! I tracked this down to a corrupt jumptable somewhere in the pthreads part of the libc (didnt have the source handy at that time, though). So I think this is a libc bug (version does not matter) - I even did a followup to a similar bug in the libc gnats database (I

Re: pthreads fork execve

2001-04-02 Thread Jakub Jelinek
On Mon, Apr 02, 2001 at 09:54:25AM -0300, Gustavo Niemeyer wrote: Hi Richard! Hi Dennis! I tracked this down to a corrupt jumptable somewhere in the pthreads part of the libc (didnt have the source handy at that time, though). So I think this is a libc bug (version does not matter) - I

Re: pthreads fork execve

2001-04-02 Thread Adam Dickmeiss
Hi. On Mon, Apr 02, 2001 at 09:54:25AM -0300, Gustavo Niemeyer wrote: Hi Richard! Hi Dennis! I tracked this down to a corrupt jumptable somewhere in the pthreads part of the libc (didnt have the source handy at that time, though). So I think this is a libc bug (version does not matter)

Re: pthreads fork execve

2001-04-02 Thread Gustavo Niemeyer
Hello Jakub!! [...] By any chance, are you dlopening a DSO linked against -lpthread from program not linked against -lpthread? Yes, I am!! Is this some limitation I'm not aware of? Indeed, this seems to be made in many cases... is this about pthread?? -- Gustavo Niemeyer [ 2AAC 7928 0FBF

Re: pthreads fork execve

2001-04-02 Thread Gustavo Niemeyer
People making Apache 1.3.X modules have a problem too. They have to rebuilt Apache and add -lpthread if any modules uses threads. It seems to be the same case here. The following small program illustrates this. The program, main-wot, crashes - the other, main-wt, doesn't. [...] Both work

pthreads & fork & execve

2001-04-01 Thread Dennis Noordsij
Hi, I have question regarding use of pthreads, forks and execve's which appears to not work very well :-) First let me explain the reasoning though We have an app that launches a few other apps and keeps track of their status, resource consumption etc. If one of the apps crashes, it is

pthreads fork execve

2001-04-01 Thread Dennis Noordsij
Hi, I have question regarding use of pthreads, forks and execve's which appears to not work very well :-) First let me explain the reasoning though We have an app that launches a few other apps and keeps track of their status, resource consumption etc. If one of the apps crashes, it is