From owner-freebsd-ruby@FreeBSD.ORG Tue Jun 5 09:42:12 2012 Return-Path: Delivered-To: ruby@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 015DD1065865; Tue, 5 Jun 2012 09:42:12 +0000 (UTC) (envelope-from romain@blogreen.org) Received: from marvin.blogreen.org (unknown [IPv6:2001:470:1f12:b9c::2]) by mx1.freebsd.org (Postfix) with ESMTP id 9D9B98FC08; Tue, 5 Jun 2012 09:42:11 +0000 (UTC) Received: by marvin.blogreen.org (Postfix, from userid 1001) id 67D912D98A; Tue, 5 Jun 2012 11:42:09 +0200 (CEST) Date: Tue, 5 Jun 2012 11:42:09 +0200 From: Romain =?iso-8859-1?Q?Tarti=E8re?= To: Stanislav Sedov Message-ID: <20120605094209.GB45332@FreeBSD.org> References: <4FC96D45.8080904@FreeBSD.org> <20120601193059.af9201da.stas@FreeBSD.org> <4FCD51E4.4030309@FreeBSD.org> <20120605085202.GI85127@deviant.kiev.zoral.com.ua> <07758721-BD54-4732-9B17-83D4CCCF55E0@freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="cvVnyQ+4j833TQvp" Content-Disposition: inline In-Reply-To: <07758721-BD54-4732-9B17-83D4CCCF55E0@freebsd.org> X-PGP-Key: http://romain.blogreen.org/pubkey.asc User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Konstantin Belousov , ports@freebsd.org, ruby@freebsd.org, Steve Wills Subject: Re: Ruby 1.9 as default X-BeenThere: freebsd-ruby@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Ruby discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jun 2012 09:42:12 -0000 --cvVnyQ+4j833TQvp Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jun 05, 2012 at 02:04:33AM -0700, Stanislav Sedov wrote: > Actually, the problem I'm trying to debug right now is more weird. > When I run mono via system(3) from the ruby 1.9 process (I mean, > exactly system(3), not via some ruby wrapper) twice, it hangs on some > umtx the second time. This works all the time. >=20 > I'm still trying to track it down in mono, though it's not clear how > this can happen at all. Isn't execve(2) used by system(3) is supposed > to clear everything (mutexes at least)? Hum... mono hanging... I experience this with Banshee this is why it s marked IGNORE: http://www.freshports.org/multimedia/banshee/ I used to see the mono process in the "STOP" state, but last time I tried it was in the "umtx" state. Requesting a backtrace from mono make it abort, attaching gdb to it also fails. The problem happenning after a random amount of time (a few minutes, a few hours) I have not been able de localise the source of the problem yet. If you have experiencing the same problem but can reproduce it, it's a HUGE step forward! Can you please provide me a minimal working example ? I tried to jack something but it works as expected :-/ | $ cat foo.cs | using System; |=20 | public static class Foo { | public static void Main (string[] args) { | Console.WriteLine ("Hello World"); | } | } | $ dmcs foo.cs | $ /var/www/projects.sigabrt.org/.rvm/bin/ruby --version | ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-freebsd9.0] | $ cat foo.rb | #!/var/www/projects.sigabrt.org/.rvm/bin/ruby |=20 | system("/usr/local/bin/mono foo.exe"); | system("/usr/local/bin/mono foo.exe"); | $ ./foo.rb | Hello World | Hello World | $ --=20 Romain Tarti=E8re http://people.FreeBSD.org/~romain/ pgp: 8234 9A78 E7C0 B807 0B59 80FF BA4D 1D95 5112 336F (ID: 0x5112336F) (plain text =3Dnon-HTML=3D PGP/GPG encrypted/signed e-mail much appreciated) --cvVnyQ+4j833TQvp Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iQGcBAEBAgAGBQJPzdRvAAoJELpNHZVREjNvrsoL/AzVek3QuvX7IvczFvKeMbYf vB9sA30Qvrykdq4L9uUFAij+NEI0YUO45IrnUBwMyXBh4ydcdfwcc3R4CFoC5lHB t2F2EDth76ZwMYNBCjjw6wwHO1wSafwqT8gCzhDel0s3kXIB5qvngdMYw+WnFI4G tBFbr2GkuZGbmLph8Lxp/xR26rTiWf026dSbDo6DRYpcfyjJm11SzYPM1Foz3Ntg f/ee3UJ0EBo5+CI12y6D9dZiLg+VCmK5F3d0s6OWziX+cTyPx1HH9pcMM4bv2Am8 ooZDpD8SbrIDP1ZimU9/De5sRVavDQD48wr89N2GQSjdCpImvjVdhY4lI8vo402y uCPfPfPXlUTfa0keK4VYIkRnJr4f858hME3TOaarIR1XK5xjHREYCxquHAlkDHLc DvsVYve90ipQ8V0u6d2wOYkhhpmHtn2v9esE/b6ml+GrrdQ6WR+EI7/inUsAKSjz vppQJRRsAWo8H2awerK/0AlPs8wrgAM127NwZzITeA== =LVWc -----END PGP SIGNATURE----- --cvVnyQ+4j833TQvp--