Possible libc_r pthread bug

2001-11-30 Thread Louis-Philippe Gagnon
derr,"cancel failed!\n"); } fprintf(stderr,"after cancel, before join...\n"); if(0!=pthread_join(thread,&pthread_param)) { fprintf(stderr,"join failed!\n"); } fprintf(stderr,"after join\n"); } please ask if more details are needed Tha

possible lib_c pthread bug

2001-11-27 Thread Louis-Philippe Gagnon
; } fprintf(stderr,"after cancel, before join...\n"); if(0!=pthread_join(thread,&pthread_param)) { fprintf(stderr,"join failed!\n"); } fprintf(stderr,"after join\n"); } please ask if more details are needed Thanks in advance, Louis-Philippe Gagnon To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: flock/pthread bug?

2001-07-19 Thread Louis-Philippe Gagnon
Lots of ideas to try (esp. since I don't need FIFO); thanks! LPG - Original Message - From: "Terry Lambert" <[EMAIL PROTECTED]> > Louis-Philippe Gagnon wrote: > > > > From: "Julian Elischer" <[EMAIL PROTECTED]> > > >

Re: flock/pthread bug?

2001-07-18 Thread Louis-Philippe Gagnon
ypher that. I'd rather have something portable though, and I would still like to know if what I was doing should have worked... Louis-Philippe Gagnon To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

flock/pthread bug?

2001-07-18 Thread Louis-Philippe Gagnon
lock the file, whole process blocks (thread 1 is blocked, can't unlock the file : deadlock) So : -Is flock() supposed to block the whole process? -Is my test program wrong? -Does this look like a bug in libc_r? -Is there a better (working) way of getting interprocess synchronization in multi

Re: pthread/longjmp/signal problem

2001-07-05 Thread Louis-Philippe Gagnon
I finally got around to trying the patch on -stable; I can confirm that it solves the problem. Thanks again! Louis-Philippe Gagnon - Original Message - From: "Daniel Eischen" <[EMAIL PROTECTED]> To: "Louis-Philippe Gagnon" <[EMAIL PROTECTED]> Cc: &

Re: pthread/longjmp/signal problem

2001-06-28 Thread Louis-Philippe Gagnon
Thanks! I'll try it as soon as possible (I don't have a -stable machine ready, and I'd rather not try my first "make world" attempts on my production machine...) Louis-Philippe Gagnon - Original Message - From: "Daniel Eischen" <[EMAIL PROTECTED

Re: pthread/longjmp/signal problem

2001-06-21 Thread Louis-Philippe Gagnon
[snip] > > ERRORS > If the contents of the env are corrupted, or correspond to an environment > that has already returned, the longjmp() routine calls the routine I interpreted that as referring to the case when we longjmp after the _function_ that called setjmp has returned, but yes, "

pthread/longjmp/signal problem

2001-06-21 Thread Louis-Philippe Gagnon
ing libc and libc_r on that machine : no change (though I didn't expect any) I also tried the same code in Linux (RedHat 6.1), where it behaves as expected. So the questions are : -Am I doing something obviously wrong? -Is this a bug? -Is this a known bug with a known workaround? Thanks for an

question about signals, longjmp and pthread

2001-06-19 Thread Louis-Philippe Gagnon
I didn't expect any) I also tried the same code in Linux (RedHat 6.1), where it behaves as expected. So the questions are : -Am I doing something obviously wrong? -Is this a bug? -Is this a known bug with a known workaround? Thanks for any help. Louis-Philippe Gagnon ps. please don'