Date: Tue, 5 Jun 2012 11:42:09 +0200 From: Romain =?iso-8859-1?Q?Tarti=E8re?= <romain@FreeBSD.org> To: Stanislav Sedov <stas@freebsd.org> Cc: Konstantin Belousov <kostikbel@gmail.com>, ports@freebsd.org, ruby@freebsd.org, Steve Wills <swills@freebsd.org> Subject: Re: Ruby 1.9 as default Message-ID: <20120605094209.GB45332@FreeBSD.org> In-Reply-To: <07758721-BD54-4732-9B17-83D4CCCF55E0@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>
next in thread | previous in thread | raw e-mail | index | archive | help
--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 <romain@FreeBSD.org> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120605094209.GB45332>