https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17097754782018-04-11T12:47:46ZRuby Issue Tracking SystemRuby master - Bug #14678: Segmentation fault in pghttps://bugs.ruby-lang.org/issues/14678?journal_id=714502018-04-11T12:47:46Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul><li><strong>File</strong> <a href="/attachments/7115">bug-14678.log</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/7115/bug-14678.log">bug-14678.log</a> added</li><li><strong>Description</strong> updated (<a title="View differences" href="/journals/71450/diff?detail_id=48916">diff</a>)</li><li><strong>Status</strong> changed from <i>Open</i> to <i>Feedback</i></li></ul><p>Could you show small code to reproduce it and/or show local variables with a debugger?</p> Ruby master - Bug #14678: Segmentation fault in pghttps://bugs.ruby-lang.org/issues/14678?journal_id=719192018-05-09T13:01:01Zyb601 (Iain Barnett)iainspeed@gmail.com
<ul><li><strong>File</strong> <a href="/attachments/7140">ruby_2018-05-09-135249_iains-MacBook-Air.crash</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/7140/ruby_2018-05-09-135249_iains-MacBook-Air.crash">ruby_2018-05-09-135249_iains-MacBook-Air.crash</a> added</li></ul><p>Hi,</p>
<p>I have the same problem, exactly the same Ruby version and revision. I can supply a crash report or 3 if you require, here is some code that causes it:</p>
<pre><code class="ruby syntaxhl" data-language="ruby"><span class="nb">require</span> <span class="s1">'nenv'</span>
<span class="nb">require</span> <span class="s1">'dotenv/load'</span>
<span class="nb">require</span> <span class="s1">'sequel'</span>
<span class="nb">require</span> <span class="s1">'pry-byebug'</span>
<span class="k">unless</span> <span class="k">defined?</span> <span class="no">DB</span>
<span class="no">DB</span> <span class="o">=</span> <span class="no">Sequel</span><span class="p">.</span><span class="nf">connect</span><span class="p">(</span><span class="no">Nenv</span><span class="p">.</span><span class="nf">database_url</span><span class="p">)</span> <span class="c1"># <-- this line</span>
<span class="k">end</span>
</code></pre>
<blockquote>
<p>ruby/2.5.0/gems/sequel-5.8.0/lib/sequel/adapters/postgres.rb:146: [BUG] Segmentation fault at 0x0000000000000000<br>
ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-darwin13]</p>
</blockquote>
<p>I was running ruby 2.5.0p0 (2017-12-25 revision 61468) [x86_64-darwin13] with the same code, no problems.</p>
<p>Let me know if you need any more.</p>
<p>Regards,<br>
iain</p> Ruby master - Bug #14678: Segmentation fault in pghttps://bugs.ruby-lang.org/issues/14678?journal_id=735482018-08-14T17:48:47ZRicochet (SeHoon Park)
<ul><li><strong>File</strong> <a href="/attachments/7319">rails_2018-8-13.crash</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/7319/rails_2018-8-13.crash">rails_2018-8-13.crash</a> added</li></ul><p>I wanted to use ruby v2.5.1 instead v2.5.0<br>
But I got this error.<br>
With ruby v2.5.0, my rails project works great without any error.</p>
<p>I was using Rails v5.2.1 on macbook pro macos High Sierra 10.13.6 with Postgres.app v2.1.4</p> Ruby master - Bug #14678: Segmentation fault in pghttps://bugs.ruby-lang.org/issues/14678?journal_id=745772018-10-23T06:32:42Zmasutaka (Takashi Masuda)
<ul></ul><p>I avoided this problem by reinstalling vendor/bundle. My OS is macOS High Sierra.</p>
<p>I guess vendor/bundle/ruby/2.5.0/gems/pg-0.21.0/lib/pg_ext.bundle is inconsistent.</p>
<p>After I overwrote with the pg_ext.bundle made in ruby-2.5.0, it reproduced.</p> Ruby master - Bug #14678: Segmentation fault in pghttps://bugs.ruby-lang.org/issues/14678?journal_id=745782018-10-23T06:34:58Zmasutaka (Takashi Masuda)
<ul><li><strong>ruby -v</strong> changed from <i>ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-darwin16]</i> to <i>ruby 2.5.3p105 (2018-10-18 revision 65156) [x86_64-darwin17]</i></li></ul> Ruby master - Bug #14678: Segmentation fault in pghttps://bugs.ruby-lang.org/issues/14678?journal_id=745792018-10-23T06:35:37Zmasutaka (Takashi Masuda)
<ul><li><strong>ruby -v</strong> changed from <i>ruby 2.5.3p105 (2018-10-18 revision 65156) [x86_64-darwin17]</i> to <i>ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-darwin16]</i></li></ul> Ruby master - Bug #14678: Segmentation fault in pghttps://bugs.ruby-lang.org/issues/14678?journal_id=745882018-10-23T14:38:23Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul></ul><p>masutaka (Takashi Masuda) wrote:</p>
<blockquote>
<p>I avoided this problem by reinstalling vendor/bundle. My OS is macOS High Sierra.</p>
<p>I guess vendor/bundle/ruby/2.5.0/gems/pg-0.21.0/lib/pg_ext.bundle is inconsistent.</p>
<p>After I overwrote with the pg_ext.bundle made in ruby-2.5.0, it reproduced.</p>
</blockquote>
<p>Do you mean they are binary incompatible?<br>
Only the difference between 2.5.0 and 2.5.1 in the headers seems [Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: rb_funcall too strict on extra args (Closed)" href="https://bugs.ruby-lang.org/issues/14425">#14425</a>].</p> Ruby master - Bug #14678: Segmentation fault in pghttps://bugs.ruby-lang.org/issues/14678?journal_id=746452018-10-28T14:50:33Zmasutaka (Takashi Masuda)
<ul></ul><p>Yes. I'm not sure but they are binary incompatible.</p> Ruby master - Bug #14678: Segmentation fault in pghttps://bugs.ruby-lang.org/issues/14678?journal_id=821432019-10-17T22:57:24Zjeremyevans0 (Jeremy Evans)merch-redmine@jeremyevans.net
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Closed</i></li></ul>