djberg96/sys-proctable — Issue #11: seg fault on os x 10.7
Author: emiltin
Created: 2012-02-16 17:24:43+00:00
State: open

this code:

```ruby
def each_process name, &block
Sys::ProcTable.ps do |process| # line 15
if process.comm.strip == name.strip
yield process.pid.to_i, process.state.strip
end
end
end
```

sometimes seg faults with:
```
/Users/emil/code/Project-OSRM/features/support/launch.rb:15: [BUG] Segmentation fault
ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-darwin10.7.1]

-- control frame ----------
c:0093 p:---- s:0344 b:0344 l:000343 d:000343 CFUNC :ps
c:0092 p:0019 s:0341 b:0341 l:000340 d:000340 METHOD /Users/emil/code/Project-OSRM/features/support/launch.rb:15
c:0091 p:0025 s:0336 b:0336 l:002448 d:002448 METHOD /Users/emil/code/Project-OSRM/features/support/launch.rb:48
c:0090 p:0025 s:0333 b:0333 l:000324 d:000332 BLOCK /Users/emil/code/Project-OSRM/features/support/launch.rb:9
c:0089 p:---- s:0331 b:0331 l:000330 d:000330 FINISH
[...]
```