guard/guard-spork — Issue #37: Update to work with Growl 1.3 (for Lion)
Author: dnagir
Created: 2011-10-10 23:56:53+00:00
State: open

Currently I get the segmentation fault error:

```
The process has forked and you cannot use this CoreFoundation functionality safely. You MUST exec().
Break on __THE_PROCESS_HAS_FORKED_AND_YOU_CANNOT_USE_THIS_COREFOUNDATION_FUNCTIONALITY___YOU_MUST_EXEC__() to debug.
The process has forked and you cannot use this CoreFoundation functionality safely. You MUST exec().
Break on __THE_PROCESS_HAS_FORKED_AND_YOU_CANNOT_USE_THIS_COREFOUNDATION_FUNCTIONALITY___YOU_MUST_EXEC__() to debug.
The process has forked and you cannot use this CoreFoundation functionality safely. You MUST exec().
Break on __THE_PROCESS_HAS_FORKED_AND_YOU_CANNOT_USE_THIS_COREFOUNDATION_FUNCTIONALITY___YOU_MUST_EXEC__() to debug
....

/Users/dnagir/.rvm/gems/ruby-1.9.2-p290/gems/rb-appscript-0.6.1/lib/_aem/connect.rb:86: [BUG] Segmentation fault
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin11.1.0]

```

More stuff:

```
-- control frame ----------
c:0041 p:---- s:0176 b:0176 l:000175 d:000175 CFUNC :launch_application
c:0040 p:0070 s:0170 b:0170 l:000169 d:000169 METHOD /Users/dnagir/.rvm/gems/ruby-1.9.2-p290/gems/rb-appscript-0.6.1/lib/_aem/connect.rb:86
c:0039 p:0071 s:0164 b:0164 l:000160 d:000163 BLOCK /Users/dnagir/.rvm/gems/ruby-1.9.2-p290/gems/rb-appscript-0.6.1/lib/_aem/connect.rb:182
c:0038 p:0039 s:0161 b:0161 l:000160 d:000160 METHOD /Users/dnagir/.rvm/gems/ruby-1.9.2-p290/gems/rb-appscript-0.6.1/lib/_aem/connect.rb:177
c:0037 p:0022 s:0155 b:0153 l:000152 d:000152 METHOD /Users/dnagir/.rvm/gems/ruby-1.9.2-p290/gems/rb-appscript-0.6.1/lib/aem.rb:146
c:0036 p:0053 s:0149 b:0149 l:000148 d:000148 METHOD /Users/dnagir/.rvm/gems/ruby-1.9.2-p290/gems/rb-appscript-0.6.1/lib/appscript.rb:57
c:0035 p:0011 s:0146 b:0146 l:000145 d:000145 METHOD /Users/dnagir/.rvm/gems/ruby-1.9.2-p290/gems/rb-appscript-0.6.1/lib/appscript.rb:159
c:0034 p:0013 s:0143 b:0143 l:000142 d:000142 METHOD /Users/dnagir/.rvm/gems/ruby-1.9.2-p290/gems/rb-appscript-0.6.1/lib/appscript.rb:633
c:0033 p:---- s:0134 b:0134 l:000133 d:000133 FINISH
c:0032 p:0034 s:0132 b:0132 l:000131 d:000131 METHOD /Users/dnagir/.rvm/gems/ruby-1.9.2-p290/gems/growl_notify-0.0.3/lib/growl_notify.rb:29
c:0031 p:0023 s:0129 b:0129 l:000128 d:000128 METHOD /Users/dnagir/.rvm/gems/ruby-1.9.2-p290/gems/growl_notify-0.0.3/lib/growl_notify.rb:19
c:0030 p:0066 s:0125 b:0125 l:0017d8 d:0017d8 METHOD /Users/dnagir/.rvm/gems/ruby-1.9.2-p290/gems/guard-0.8.4/lib/guard/notifier.rb:177
c:0029 p:0017 s:0122 b:0122 l:000121 d:000121 METHOD /Users/dnagir/.rvm/gems/ruby-1.9.2-p290/gems/guard-0.8.4/lib/guard/notifier.rb:83
c:0028 p:0142 s:0114 b:0114 l:000113 d:000113 METHOD /Users/dnagir/.rvm/gems/ruby-1.9.2-p290/gems/guard-0.8.4/lib/guard/notifier.rb:56
c:0027 p:0044 s:0107 b:0107 l:000106 d:000106 METHOD /Users/dnagir/.rvm/gems/ruby-1.9.2-p290/gems/guard-rspec-0.5.0/lib/guard/rspec/formatter.rb:33
c:0026 p:0055 s:0102 b:0102 l:000101 d:000101 METHOD /Users/dnagir/.rvm/gems/ruby-1.9.2-p290/gems/guard-rspec-0.5.0/lib/guard/rspec/formatters/notification_rspec.rb:10
c:0025 p:0022 s:0093 b:0093 l:000084 d:000092 BLOCK /Users/dnagir/.rvm/gems/ruby-1.9.2-p290/gems/rspec-core-2.6.4/lib/rspec/core/reporter.rb:75
c:0024 p:---- s:0090 b:0090 l:000089 d:000089 FINISH
c:0023 p:---- s:0088 b:0088 l:000087 d:000087 CFUNC :each
c:0022 p:0015 s:0085 b:0085 l:000084 d:000084 METHOD /Users/dnagir/.rvm/gems/ruby-1.9.2-p290/gems/rspec-core-2.6.4/lib/rspec/core/reporter.rb:74
c:0021 p:0087 s:0079 b:0079 l:000078 d:000078 METHOD /Users/dnagir/.rvm/gems/ruby-1.9.2-p290/gems/rspec-core-2.6.4/lib/rspec/core/reporter.rb:24
c:0020 p:0039 s:0076 b:0075 l:000074 d:000074 METHOD /Users/dnagir/.rvm/gems/ruby-1.9.2-p290/gems/rspec-core-2.6.4/lib/rspec/core/reporter.rb:14
c:0019 p:0125 s:0071 b:0071 l:000070 d:000070 METHOD /Users/dnagir/.rvm/gems/ruby-1.9.2-p290/gems/rspec-core-2.6.4/lib/rspec/core/command_line.rb:21
c:0018 p:0038 s:0066 b:0066 l:000065 d:000065 METHOD /Users/dnagir/.rvm/gems/ruby-1.9.2-p290/gems/rspec-core-2.6.4/lib/rspec/monkey/spork/test_framework/rspec.rb:5
c:0017 p:0080 s:0060 b:0060 l:001320 d:000059 BLOCK /Users/dnagir/.rvm/gems/ruby-1.9.2-p290/gems/spork-0.9.0.rc9/lib/spork/run_strategy/forking.rb:13
c:0016 p:0032 s:0057 b:0056 l:000046 d:000055 BLOCK /Users/dnagir/.rvm/gems/ruby-1.9.2-p290/gems/spork-0.9.0.rc9/lib/spork/forker.rb:21
c:0015 p:---- s:0052 b:0052 l:000051 d:000051 FINISH
c:0014 p:---- s:0050 b:0050 l:000049 d:000049 CFUNC :fork
c:0013 p:0064 s:0047 b:0047 l:000046 d:000046 METHOD /Users/dnagir/.rvm/gems/ruby-1.9.2-p290/gems/spork-0.9.0.rc9/lib/spork/forker.rb:18
c:0012 p:---- s:0043 b:0043 l:000042 d:000042 FINISH
c:0011 p:---- s:0041 b:0041 l:000040 d:000040 CFUNC :new
c:0010 p:0041 s:0038 b:0038 l:001320 d:001320 METHOD /Users/dnagir/.rvm/gems/ruby-1.9.2-p290/gems/spork-0.9.0.rc9/lib/spork/run_strategy/forking.rb:9
c:0009 p:0052 s:0032 b:0032 l:000031 d:000031 METHOD /Users/dnagir/.rvm/gems/ruby-1.9.2-p290/gems/spork-0.9.0.rc9/lib/spork/server.rb:48
c:0008 p:0098 s:0025 b:0025 l:000024 d:000024 METHOD /Users/dnagir/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/drb/drb.rb:1558
c:0007 p:0146 s:0021 b:0021 l:000020 d:000020 METHOD /Users/dnagir/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/drb/drb.rb:1518
c:0006 p:0042 s:0017 b:0017 l:001578 d:000016 BLOCK /Users/dnagir/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/drb/drb.rb:1592
c:0005 p:---- s:0012 b:0012 l:000011 d:000011 FINISH
c:0004 p:---- s:0010 b:0010 l:000009 d:000009 CFUNC :loop
c:0003 p:0068 s:0007 b:0007 l:001578 d:000006 BLOCK /Users/dnagir/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/drb/drb.rb:1588
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:---- s:0002 b:0002 l:000001 d:000001 TOP
```

Why I need that to work - https://github.com/guard/guard-rspec/issues/60
Related issue - https://github.com/scottdavis/growl_notify/issues/6

Suggested workaround was to initialise growl_notify in each fork.
Probably can be done manually, but would be nice if `guard-spork` could do it.

Thanks a lot in advance.