From: Gustavo Anatoly Date: 2012-11-05T23:28:33+09:00 Subject: [ruby-core:48931] Re: [ruby-trunk - Bug #7134][Assigned] Signal handling bug in Mac OS X --e89a8fb1f1d6ba7c3004cdc04ca7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi, Yusuke. I was studying this bug and I did a little bit changes to test git://gist.github.com/4017432.git because self lock is not allowed on ruby, please correct me if I wrong. Thanks. 2012/11/5 mame (Yusuke Endoh) > > Issue #7134 has been updated by mame (Yusuke Endoh). > > Status changed from Open to Assigned > Assignee set to kosaki (Motohiro KOSAKI) > > Kosaki-san, do you know anything about this? > > -- > Yusuke Endoh > ---------------------------------------- > Bug #7134: Signal handling bug in Mac OS X > https://bugs.ruby-lang.org/issues/7134#change-32417 > > Author: auastro (Andy Kitchen) > Status: Assigned > Priority: Normal > Assignee: kosaki (Motohiro KOSAKI) > Category: > Target version: 1.9.3 > ruby -v: ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin12] > > > On Mac OS X, running the attached program causes the exception below abou= t > 1/10 times it is run. > > $ ruby hup.rb > hup.rb:2:in `write': deadlock; recursive locking (ThreadError) > from hup.rb:2:in `puts' > from hup.rb:2:in `puts' > from hup.rb:2:in `block in
' > from hup.rb:6:in `call' > from hup.rb:6:in `write' > from hup.rb:6:in `puts' > from hup.rb:6:in `puts' > from hup.rb:6:in `
' > > The expected output is: > > In Hup Handler > >Finished... > > or > > > Finished... > > In Hup Handler > > My ruby is compiled with clang: > > $ clang --version > Apple clang version 4.1 (tags/Apple/clang-421.11.65) (based on LLVM 3.1sv= n) > Target: x86_64-apple-darwin12.2.0 > Thread model: posix > > > > -- > http://bugs.ruby-lang.org/ > > --=20 *=BB* *Gustavo Anatoly Fernandes Vel=E1squez Sol=EDs* *=BB* Information Systems - Bachelor *=BB* Gmail: gustavoanatoly@gmail.com *=BB* Skype: gustavoanatoly *=BB* Cell Phone: +55 (83) 9918-1763 --e89a8fb1f1d6ba7c3004cdc04ca7 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi,=A0Yusuke.

<= /span>
I was studying this bug and I did a little bit changes to test=A0<= /div>


because self lock is not allowed on ruby, please correc= t me if I wrong.

Thanks.


2012/11/5 mam= e (Yusuke Endoh) <mame@tsg.ne.jp>

Issue #7134 has been updated by mame (Yusuke Endoh).

Status changed from Open to Assigned
Assignee set to kosaki (Motohiro KOSAKI)

Kosaki-san, do you know anything about this?

--
Yusuke Endoh <mame@tsg.ne.jp>
----------------------------------------
Bug #7134: Signal handling bug in Mac OS X
https://bugs.ruby-lang.org/issues/7134#change-32417

Author: auastro (Andy Kitchen)
Status: Assigned
Priority: Normal
Assignee: kosaki (Motohiro KOSAKI)
Category:
Target version: 1.9.3
ruby -v: ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin12]


On Mac OS X, running the attached program causes the exception below about = 1/10 times it is run.

$ ruby hup.rb
hup.rb:2:in `write': deadlock; recursive locking (ThreadError)
=A0 =A0 =A0 =A0 from hup.rb:2:in `puts'
=A0 =A0 =A0 =A0 from hup.rb:2:in `puts'
=A0 =A0 =A0 =A0 from hup.rb:2:in `block in <main>'
=A0 =A0 =A0 =A0 from hup.rb:6:in `call'
=A0 =A0 =A0 =A0 from hup.rb:6:in `write'
=A0 =A0 =A0 =A0 from hup.rb:6:in `puts'
=A0 =A0 =A0 =A0 from hup.rb:6:in `puts'
=A0 =A0 =A0 =A0 from hup.rb:6:in `<main>'

The expected output is:
> In Hup Handler
>Finished...

or

> Finished...
> In Hup Handler

My ruby is compiled with clang:

$ clang --version
Apple clang version 4.1 (tags/Apple/clang-421.11.65) (based on LLVM 3.1svn)=
Target: x86_64-apple-darwin12.2.0
Thread model: posix



--
http://bugs.ruby-l= ang.org/




--
= =BB Gustavo Anatoly Fernandes Vel=E1squez Sol=EDs
=BB<= /b> Information Systems - Bachelor=A0
=BB Skype: gustavoanatoly
=BB=A0Cell Phone: +5= 5 (83) 9918-1763


--e89a8fb1f1d6ba7c3004cdc04ca7--