Public bug reported:

While debugging an old Ruby script for determing the Internet connection
status (online vs offline), I found that running exec from Ruby would
crash Unity.

Steps to reproduce:

1. wget 
https://raw.githubusercontent.com/mcandre/mcandre/95350df18b982f455d49eca739f2e1ee42da75f4/ruby/webshout.rb
2. emacs
3. M-x shell
4. ruby webshout.rb

In particular, it seems that the line:

exec 'say You are now online.'

(which I've since corrected to use system instead of exec)

Attempts to replace the ruby process for webshout.rb with a GNUStep say
process. But something messes up, and Unity crashes.

System:

$ specs ruby emacs unity os
Specs:

specs 0.10
https://github.com/mcandre/specs#readme

bundle --version
Bundler version 1.6.2

gem --version
2.2.2

ruby --version
ruby 2.0.0p481 (2014-05-08 revision 45883) [x86_64-linux]

emacs --version
GNU Emacs 24.3.1
Copyright (C) 2013 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of Emacs
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.

unity --version
unity 7.2.2

lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.1 LTS
Release:        14.04
Codename:       trusty

** Affects: unity-2d (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: crash exec unity

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1357524

Title:
  Crashes on Ruby exec

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unity-2d/+bug/1357524/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to