https://redmine.ruby-lang.org/
https://redmine.ruby-lang.org/favicon.ico?1711330511
2010-09-14T12:43:57Z
Ruby Issue Tracking System
Ruby master - Bug #3826: Repeatable SEGV(seg fault) with ruby-debug19/ruby-debug-ide
https://redmine.ruby-lang.org/issues/3826?journal_id=13308
2010-09-14T12:43:57Z
baldmark (Mark Chapman)
mark.chapman@gmail.com
<ul></ul><p>=begin<br>
I have since fixed my code and the Seg Fault has gone. I am a newbie so you will have to forgive any inaccuracies, but I think what happened is as follows:</p>
<ol>
<li>
<p>I had the line<br>
require '/home/mark/Projects/bc/config/environment.rb'<br>
in my program so I could use Rails models</p>
</li>
<li>
<p>Most of the work in my program was being done by class Setup</p>
</li>
<li>
<p>I was passing a rails model type (Regulator) to a class method of Setup</p>
</li>
<li>
<p>In that method, attempts to resolve the rails model name were causing it to be associated with the Setup namespace</p>
</li>
<li>
<p>I added the line<br>
require '/home/mark/Projects/bc/app/models/regulator.rb'<br>
and the seg fault stopped happening</p>
</li>
</ol>
<p>Hope this helps</p>
<p>Mark<br>
=end</p>
Ruby master - Bug #3826: Repeatable SEGV(seg fault) with ruby-debug19/ruby-debug-ide
https://redmine.ruby-lang.org/issues/3826?journal_id=13777
2010-10-16T19:43:48Z
clyfe (nicolae claudius)
nicolae_claudius@yahoo.com
<ul></ul><p>=begin<br>
I have the same error:</p>
<p>Ubuntu i386-32<br>
ruby 1.9.2.p0<br>
ruby-debug19<br>
ruby-debug-ide19</p>
<p>using from netbeans<br>
sometimes I get this segfault, sometimes a timeout error .</p>
<p>REPORT:</p>
<p>/usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug/xml_printer.rb:52: [BUG] Segmentation fault<br>
ruby 1.9.2p0 (2010-08-18) [i686-linux]</p>
<h2>-- control frame ----------<br>
c:0024 p:0060 s:0094 b:0091 l:000090 d:000090 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug/xml_printer.rb:52<br>
c:0023 p:0018 s:0084 b:0084 l:000069 d:000083 BLOCK /usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug/xml_printer.rb:39<br>
c:0022 p:---- s:0081 b:0081 l:000080 d:000080 FINISH<br>
c:0021 p:---- s:0079 b:0079 l:000078 d:000078 CFUNC :each<br>
c:0020 p:0023 s:0076 b:0076 l:000069 d:000075 BLOCK /usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug/xml_printer.rb:38<br>
c:0019 p:0028 s:0074 b:0074 l:000073 d:000073 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug/xml_printer.rb:253<br>
c:0018 p:0013 s:0070 b:0070 l:000069 d:000069 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug/xml_printer.rb:37<br>
c:0017 p:0034 s:0065 b:0065 l:000064 d:000064 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug/command.rb:85<br>
c:0016 p:---- s:0059 b:0059 l:000058 d:000058 FINISH<br>
c:0015 p:0029 s:0057 b:0057 l:000056 d:000056 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug/commands/frame.rb:41<br>
c:0014 p:0103 s:0054 b:0054 l:000035 d:000053 BLOCK /usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug/processor.rb:74<br>
c:0013 p:---- s:0049 b:0049 l:000048 d:000048 FINISH<br>
c:0012 p:---- s:0047 b:0047 l:000046 d:000046 CFUNC :each<br>
c:0011 p:0020 s:0044 b:0044 l:000035 d:000043 BLOCK /usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug/processor.rb:67<br>
c:0010 p:---- s:0042 b:0042 l:000041 d:000041 FINISH<br>
c:0009 p:---- s:0040 b:0040 l:000039 d:000039 CFUNC :catch<br>
c:0008 p:0196 s:0036 b:0036 l:000035 d:000035 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug/processor.rb:66<br>
c:0007 p:0042 s:0026 b:0026 l:000016 d:000025 BLOCK /usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug/processor.rb:35<br>
c:0006 p:---- s:0023 b:0023 l:000022 d:000022 FINISH<br>
c:0005 p:---- s:0021 b:0021 l:000020 d:000020 CFUNC :catch<br>
c:0004 p:0119 s:0017 b:0017 l:000016 d:000016 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug/processor.rb:31<br>
c:0003 p:0149 s:0010 b:0010 l:000d64 d:000009 BLOCK /usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug-ide.rb:157<br>
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH<br>
c:0001 p:---- s:0002 b:0002 l:000001 d:000001 TOP</h2>
<p>-- Ruby level backtrace information ----------------------------------------<br>
/usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug-ide.rb:157:in <code>block in start_control' /usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug/processor.rb:31:in </code>process_commands'<br>
/usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug/processor.rb:31:in <code>catch' /usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug/processor.rb:35:in </code>block in process_commands'<br>
/usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug/processor.rb:66:in <code>process_context_commands' /usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug/processor.rb:66:in </code>catch'<br>
/usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug/processor.rb:67:in <code>block in process_context_commands' /usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug/processor.rb:67:in </code>each'<br>
/usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug/processor.rb:74:in <code>block (2 levels) in process_context_commands' /usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug/commands/frame.rb:41:in </code>execute'<br>
/usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug/command.rb:85:in <code>method_missing' /usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug/xml_printer.rb:37:in </code>print_frames'<br>
/usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug/xml_printer.rb:253:in <code>print_element' /usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug/xml_printer.rb:38:in </code>block in print_frames'<br>
/usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug/xml_printer.rb:38:in <code>each' /usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug/xml_printer.rb:39:in </code>block (2 levels) in print_frames'<br>
/usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug/xml_printer.rb:52:in `print_frame'</p>
<p>-- C level backtrace information -------------------------------------------<br>
/usr/local/bin/ruby(rb_vm_bugreport+0xa5) [0x815d5e5]<br>
/usr/local/bin/ruby() [0x819c289]<br>
/usr/local/bin/ruby(rb_bug+0x28) [0x819c338]<br>
/usr/local/bin/ruby() [0x80f0538]<br>
[0xcb640c]<br>
/usr/local/bin/ruby() [0x8133e01]<br>
/usr/local/bin/ruby(rb_class_path+0x16) [0x8134006]<br>
/usr/local/bin/ruby(rb_obj_classname+0x3a) [0x8134b1a]<br>
/usr/local/bin/ruby() [0x819d945]<br>
/usr/local/bin/ruby(rb_check_typeddata+0x26) [0x819da06]<br>
/usr/local/bin/ruby(rb_mutex_lock+0x1c) [0x81633fc]<br>
/usr/local/bin/ruby(rb_mutex_synchronize+0x12) [0x81639a2]<br>
/usr/local/bin/ruby() [0x807538c]<br>
/usr/local/bin/ruby() [0x8075769]<br>
/usr/local/bin/ruby(rb_io_fptr_finalize+0xd4) [0x80760c4]<br>
/usr/local/bin/ruby() [0x80645de]<br>
/usr/local/bin/ruby(rb_gc_finalize_deferred+0x29) [0x8064b39]<br>
/usr/local/bin/ruby() [0x8160ff5]<br>
/usr/local/bin/ruby() [0x81545a1]<br>
/usr/local/bin/ruby() [0x81567a8]<br>
/usr/local/bin/ruby() [0x815a126]<br>
/usr/local/bin/ruby(rb_yield+0x50) [0x815b500]<br>
/usr/local/bin/ruby() [0x80bf659]<br>
/usr/local/bin/ruby() [0x81543da]<br>
/usr/local/bin/ruby() [0x81567a8]<br>
/usr/local/bin/ruby() [0x815a126]<br>
/usr/local/bin/ruby() [0x814df44]<br>
/usr/local/bin/ruby() [0x8153cd0]<br>
/usr/local/bin/ruby() [0x815428c]<br>
/usr/local/bin/ruby() [0x81567a8]<br>
/usr/local/bin/ruby() [0x815a126]<br>
/usr/local/bin/ruby(rb_yield+0x50) [0x815b500]<br>
/usr/local/bin/ruby(rb_ary_each+0x41) [0x816c8b1]<br>
/usr/local/bin/ruby() [0x81543da]<br>
/usr/local/bin/ruby() [0x81567a8]<br>
/usr/local/bin/ruby() [0x815a126]<br>
/usr/local/bin/ruby() [0x815b29d]<br>
/usr/local/bin/ruby(rb_catch_obj+0x9f) [0x8148b2f]<br>
/usr/local/bin/ruby() [0x8149d56]<br>
/usr/local/bin/ruby() [0x8148f85]<br>
/usr/local/bin/ruby() [0x81543da]<br>
/usr/local/bin/ruby() [0x81567a8]<br>
/usr/local/bin/ruby() [0x815a126]<br>
/usr/local/bin/ruby() [0x815b29d]<br>
/usr/local/bin/ruby(rb_catch_obj+0x9f) [0x8148b2f]<br>
/usr/local/bin/ruby() [0x8149d56]<br>
/usr/local/bin/ruby() [0x8148f85]<br>
/usr/local/bin/ruby() [0x81543da]<br>
/usr/local/bin/ruby() [0x81567a8]<br>
/usr/local/bin/ruby() [0x815a126]<br>
/usr/local/bin/ruby(rb_vm_invoke_proc+0x76) [0x814daa6]<br>
/usr/local/bin/ruby() [0x8162a22]<br>
/usr/local/bin/ruby() [0x8162ae2]<br>
/lib/libpthread.so.0(+0x5cc9) [0x115cc9]<br>
/lib/libc.so.6(clone+0x5e) [0x22f6ae]</p>
<p>=end</p>
Ruby master - Bug #3826: Repeatable SEGV(seg fault) with ruby-debug19/ruby-debug-ide
https://redmine.ruby-lang.org/issues/3826?journal_id=13778
2010-10-16T19:45:48Z
clyfe (nicolae claudius)
nicolae_claudius@yahoo.com
<ul></ul><p>=begin<br>
Here is the timeout error I get:</p>
<p>Exception in DebugThread loop: Timeout: evaluation took longer than 10 seconds.<br>
=end</p>
Ruby master - Bug #3826: Repeatable SEGV(seg fault) with ruby-debug19/ruby-debug-ide
https://redmine.ruby-lang.org/issues/3826?journal_id=13779
2010-10-16T20:17:28Z
clyfe (nicolae claudius)
nicolae_claudius@yahoo.com
<ul></ul><p>=begin<br>
Even more</p>
<p>Exception in DebugThread loop: Timeout: evaluation took longer than 10 seconds.<br>
/usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug-ide.rb:160:in <code>exit' /usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug-ide.rb:160:in </code>rescue in block in start_control'<br>
/usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug-ide.rb:154:in `block in start_control'<br>
Uncaught exception: exit<br>
=end</p>
Ruby master - Bug #3826: Repeatable SEGV(seg fault) with ruby-debug19/ruby-debug-ide
https://redmine.ruby-lang.org/issues/3826?journal_id=18308
2011-06-26T15:35:20Z
naruse (Yui NARUSE)
naruse@airemix.jp
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Third Party's Issue</i></li></ul><p>It seems ruby-debug-ide's issue.<br>
Please reopen this if this is ruby's issue.</p>
Ruby master - Bug #3826: Repeatable SEGV(seg fault) with ruby-debug19/ruby-debug-ide
https://redmine.ruby-lang.org/issues/3826?journal_id=18558
2011-06-27T16:31:53Z
nahi (Hiroshi Nakamura)
nakahiro@gmail.com
<ul><li><strong>Subject</strong> changed from <i>Repeatable seg fault while debugging in Netbeans</i> to <i>Repeatable SEGV(seg fault) with ruby-debug19/ruby-debug-ide</i></li></ul><p>I'll point ruby-debug19/ruby-debug-ide19 issues to this.</p>
<ul>
<li>Please check the version of ruby-debug19, and try the latest gem if available.</li>
<li>Please consult with ruby-debug19 maintainer: <a href="https://github.com/mark-moseley/ruby-debug/wiki" class="external">https://github.com/mark-moseley/ruby-debug/wiki</a>
</li>
</ul>
<p>Let us know if the error happens without debugging. Thanks!</p>