Grokbase
x

Re: "panic: MUTEX_LOCK" in blead, but not in maint

View PostFlat  Thread  Threaded | < Prev - Next >
Dave Mitchell Re: "panic: MUTEX_LOCK" in blead, but not in maint
| +1 vote
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
On Sat, Feb 28, 2004 at 11:56:46AM +0100, Marcus Holland-Moritz wrote:
> On 2004-02-27, at 20:12:07 +0100, Marcus Holland-Moritz wrote:
>
> > I'm a bit lost in finding the cause for this problem and I cannot
> > currently run a binary search to find out which patch causes it. I
> > also cannot provide a small testcase because I don't fully understand
> > the problem.
> >
> > [...]
>
> Ok, after downloading APC a binary search showed that change #22302
> is causing the trouble. That was the switch from byacc to bison.

I've found the problem - Perl_yylex_r() isn't (and never has been!)
threadsafe. Am working on a fix.

Dave.

--
print+qq&$}$"$/$s$,$*${d}$g$s$@$.$q$,$:$.$q$^$,$@$*$~$;$.$q$m&if+map{m,^\d{0\,},,${$::{$'}}=chr($"+=$&||1)}q&10m22,42}6:17*2~2.3@3;^2dg3q/s"&=~m*\d\*.*g

Thread : "panic: MUTEX_LOCK" in blead, but not in maint
1)
Marcus Holland-Moritz I'm a bit lost in finding the cause for this problem and I cannot currently run a binary search to...
2)
Marcus Holland-Moritz Ok, after downloading APC a binary search showed that change #22302 is causing the trouble. That...
3)
Dave Mitchell I've found the problem - Perl_yylex_r() isn't (and never has been!) threadsafe. Am working on a...
4)
Marcus Holland-Moritz Just a couple of minutes ago I've also tracked it down to Perl_yylex_r()... However, I don't think...
5)
Nicholas Clark Valgrind might help: ==5979== pthread_mutex_lock/trylock: mutex is invalid ==5979== at 0x402B1EA3:...
6)
Dave Mitchell Yes, I'm aware of this :-) I'm in the process of excising yylex_r from bleed even as we speak.
7)
Dave Mitchell Now fixed by the change below (hopefully).
8)
Marcus Holland-Moritz Very nice! Marcus
spacer
View PostFlat  Thread  Threaded | < Prev - Next >