[#75225] [Ruby trunk Feature#12324] Support OpenSSL 1.1.0 (and drop support for 0.9.6/0.9.7) — k@...
Issue #12324 has been reported by Kazuki Yamaguchi.
6 messages
2016/04/27
[#78693] Re: [Ruby trunk Feature#12324] Support OpenSSL 1.1.0 (and drop support for 0.9.6/0.9.7)
— Eric Wong <normalperson@...>
2016/12/17
k@rhe.jp wrote:
[#78701] Re: [Ruby trunk Feature#12324] Support OpenSSL 1.1.0 (and drop support for 0.9.6/0.9.7)
— Kazuki Yamaguchi <k@...>
2016/12/17
On Sat, Dec 17, 2016 at 01:31:12AM +0000, Eric Wong wrote:
[#78702] Re: [Ruby trunk Feature#12324] Support OpenSSL 1.1.0 (and drop support for 0.9.6/0.9.7)
— Eric Wong <normalperson@...>
2016/12/17
Kazuki Yamaguchi <k@rhe.jp> wrote:
[ruby-core:74934] [Ruby trunk Bug#12278] Sometimes I have segmentation fault with props reducer
From:
altermn@...
Date:
2016-04-13 18:28:11 UTC
List:
ruby-core #74934
Issue #12278 has been reported by Gleb Averchuk.
----------------------------------------
Bug #12278: Sometimes I have segmentation fault with props reducer
https://bugs.ruby-lang.org/issues/12278
* Author: Gleb Averchuk
* Status: Open
* Priority: Normal
* Assignee:
* ruby -v: ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-darwin15]
* Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN
----------------------------------------
Hello,
Sometimes I have segmentation fault for code like:
~~~
# /Users/newmen/projects/versatile-diamond/analyzer/lib/modules/procs_reducer.rb:35
8 # Combines passed procs to one function
9 # @param [Array] procs which will be combined
10 # @yield returns heart of combination result
11 # @return [Proc] the general function which contains calls of all other nested
12 def reduce_procs(procs, &deepest_block)
13 procs.reverse.reduce(deepest_block) do |acc, block|
14 -> { block[&acc] }
15 end
16 end
17
18 # Calls combined procs as one function
19 # @param [Array] procs which will be combined
20 # @yield returns heart of combination result
21 # @return [Object]
22 def call_procs(procs, &block)
23 reduce_procs(procs, &block).call
24 end
25
26 # Collects procs which nests each other, after than calls combined procedure
27 # @param [Proc] deepest_block the block for the deepest call
28 # @yield [Symbol, Array, Hash] nests the some method call
29 # @return [Object] the result of deepest block call
30 def inlay_procs(deepest_block, &block)
31 procs = []
32 nest = -> method_name, *args, **kwargs do
33 procs <<
34 if kwargs.empty?
35 -> &prc { send(method_name, *args, &prc) }
36 else
37 -> &prc { send(method_name, *args, **kwargs, &prc) }
38 end
39 end
40
41 block[nest]
42 call_procs(procs, &deepest_block)
43 end
~~~
Console report and crash log files are attached.
Both attached source files were written about 2 years ago.
---Files--------------------------------
report.log (107 KB)
ruby_2016-04-13-205136_primemind.crash (27.4 KB)
procs_reducer.rb (1.44 KB)
minuend_spec.rb (5.43 KB)
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>