Ruby 1.9 as default

Romain Tartière romain at FreeBSD.org
Tue Jun 5 09:42:12 UTC 2012


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.
> 
> 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;
| 
| 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
| 
| system("/usr/local/bin/mono foo.exe");
| system("/usr/local/bin/mono foo.exe");
| $ ./foo.rb
| Hello World
| Hello World
| $


-- 
Romain Tartière <romain at FreeBSD.org>  http://people.FreeBSD.org/~romain/
pgp: 8234 9A78 E7C0 B807 0B59  80FF BA4D 1D95 5112 336F (ID: 0x5112336F)
(plain text =non-HTML= PGP/GPG encrypted/signed e-mail much appreciated)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 663 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20120605/dac479b6/attachment.pgp


More information about the freebsd-ports mailing list