https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112010-04-19T18:06:31ZRuby Issue Tracking SystemBackport191 - Bug #3174: segmentation fault at running Array method eachhttps://bugs.ruby-lang.org/issues/3174?journal_id=103292010-04-19T18:06:31Zmatz (Yukihiro Matsumoto)matz@ruby.or.jp
<ul></ul><p>=begin<br>
Hi,</p>
<p>In message "Re: <a href="/issues/3174">[ruby-core:29621]</a> [Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: segmentation fault at running Array method each (Closed)" href="https://bugs.ruby-lang.org/issues/3174">#3174</a>] segmentation fault at running Array method each"<br>
on Mon, 19 Apr 2010 16:42:42 +0900, Ingo Meierhoff <a href="mailto:redmine@ruby-lang.org" class="email">redmine@ruby-lang.org</a> writes:</p>
<p>|Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: segmentation fault at running Array method each (Closed)" href="https://bugs.ruby-lang.org/issues/3174">#3174</a>: segmentation fault at running Array method each<br>
|<a href="http://redmine.ruby-lang.org/issues/show/3174" class="external">http://redmine.ruby-lang.org/issues/show/3174</a></p>
<p>|Bug happens when using method each at a large array<br>
|<br>
|/home/teddy/daten/workspace/tsm_administration/scripts/MIGRATION_crash.rb:26: [BUG] Segmentation fault<br>
|ruby 1.9.1p378 (2010-01-10 revision 26273) [i686-linux]</p>
<p>Can we see the error reproducing program (and input data)?</p>
<pre><code> matz.
</code></pre>
<p>=end</p> Backport191 - Bug #3174: segmentation fault at running Array method eachhttps://bugs.ruby-lang.org/issues/3174?journal_id=103312010-04-19T18:07:30Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Feedback</i></li></ul><p>=begin<br>
Seems like a third party's issue.<br>
What extension libraries do you use?<br>
=end</p> Backport191 - Bug #3174: segmentation fault at running Array method eachhttps://bugs.ruby-lang.org/issues/3174?journal_id=103342010-04-19T20:49:50Zingo (Ingo M)ingobaer@gmx.de
<ul><li><strong>File</strong> <a href="/attachments/951">reproduce_crash.rb</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/951/reproduce_crash.rb">reproduce_crash.rb</a> added</li></ul><p>=begin<br>
I'm using the pg gem (0.9.0) to copy data from one database to another</p>
<p>with the attached script I was able to reproduce the error</p>
<p>=end</p> Backport191 - Bug #3174: segmentation fault at running Array method eachhttps://bugs.ruby-lang.org/issues/3174?journal_id=103422010-04-20T02:25:16Ztenderlovemaking (Aaron Patterson)tenderlove@ruby-lang.org
<ul><li><strong>File</strong> <a href="/attachments/952">reproduce_crash.rb</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/952/reproduce_crash.rb">reproduce_crash.rb</a> added</li></ul><p>=begin<br>
I was able to run the script (with slight modifications) from Ruby 1.9.2 trunk and had no crashes. I've attached my version of the script.</p>
<p>Here is the output from my run:</p>
<p>$ ruby reproduce_crash.rb<br>
create table<br>
NOTICE: table "crash_table" does not exist, skipping<br>
NOTICE: table "crash_table" does not exist, skipping<br>
fill table<br>
queries<br>
server_a : Session : 250000<br>
server_b : Session : 250000<br>
server_c : Session : 250000<br>
server_d : Session : 250000<br>
server_e : Session : 250000<br>
$ ruby -v<br>
ruby 1.9.2dev (2010-04-17 trunk 27378) [x86_64-darwin10.2.0]<br>
$<br>
=end</p> Backport191 - Bug #3174: segmentation fault at running Array method eachhttps://bugs.ruby-lang.org/issues/3174?journal_id=104992010-04-23T21:39:10Zingo (Ingo M)ingobaer@gmx.de
<ul></ul><p>=begin<br>
if you would like to reproduce it with 1.9.1p378 you have to ensure that your postgres db is fast enough<br>
(for this reason I used in postgres.conf:<br>
fsync = off<br>
synchronous_commit = off<br>
wal_writer_delay = 2s<br>
)</p>
<p>until now I was not able to reproduce the error using version 1.9.2 so it seems to be fixed<br>
or my system is not fast enough<br>
$ ruby -v<br>
ruby 1.9.2dev (2010-04-22 trunk 27435) [i686-linux]<br>
=end</p> Backport191 - Bug #3174: segmentation fault at running Array method eachhttps://bugs.ruby-lang.org/issues/3174?journal_id=811752019-08-27T17:02:47Zjeremyevans0 (Jeremy Evans)merch-redmine@jeremyevans.net
<ul><li><strong>Description</strong> updated (<a title="View differences" href="/journals/81175/diff?detail_id=54860">diff</a>)</li><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Closed</i></li></ul>