Project

General

Profile

Bug #3826

Repeatable SEGV(seg fault) with ruby-debug19/ruby-debug-ide

Added by baldmark (Mark Chapman) about 10 years ago. Updated about 9 years ago.

Status:
Third Party's Issue
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-linux]
Backport:
[ruby-core:32366]

Description

=begin
Everything that came up is below. I will take a snapshot of my code in case anyone wants it.

/usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug/xml_printer.rb:50: [BUG] Segmentation fault
ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-linux]

-- control frame ----------
c:0025 p:---- s:0095 b:0095 l:000094 d:000094 CFUNC :frame_file
c:0024 p:0014 s:0091 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:50
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
c:0022 p:---- s:0081 b:0081 l:000080 d:000080 FINISH
c:0021 p:---- s:0079 b:0079 l:000078 d:000078 CFUNC :each
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
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
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
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
c:0016 p:---- s:0059 b:0059 l:000058 d:000058 FINISH
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
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
c:0013 p:---- s:0049 b:0049 l:000048 d:000048 FINISH
c:0012 p:---- s:0047 b:0047 l:000046 d:000046 CFUNC :each
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
c:0010 p:---- s:0042 b:0042 l:000041 d:000041 FINISH
c:0009 p:---- s:0040 b:0040 l:000039 d:000039 CFUNC :catch
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
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
c:0006 p:---- s:0023 b:0023 l:000022 d:000022 FINISH
c:0005 p:---- s:0021 b:0021 l:000020 d:000020 CFUNC :catch
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
c:0003 p:0149 s:0010 b:0010 l:0023e8 d:000009 BLOCK /usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug-ide.rb:160
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:---- s:0002 b:0002 l:000001 d:000001 TOP


-- Ruby level backtrace information ----------------------------------------
/usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug-ide.rb:160:in 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
process_commands'
/usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug/processor.rb:31:in catch'
/usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug/processor.rb:35:in
block in process_commands'
/usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug/processor.rb:66:in 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
catch'
/usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug/processor.rb:67:in 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
each'
/usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug/processor.rb:74:in 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
execute'
/usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug/command.rb:85:in 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
print_frames'
/usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug/xml_printer.rb:253:in 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
block in print_frames'
/usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug/xml_printer.rb:38:in each'
/usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug/xml_printer.rb:39:in
block (2 levels) in print_frames'
/usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug/xml_printer.rb:50:in print_frame'
/usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug/xml_printer.rb:50:in
frame_file'

-- C level backtrace information -------------------------------------------
/usr/local/bin/ruby(rb_vm_bugreport+0x9e) [0x522bee]
/usr/local/bin/ruby() [0x563f98]
/usr/local/bin/ruby(rb_bug+0xb1) [0x564131]
/usr/local/bin/ruby() [0x4b1df8]
/lib/libpthread.so.0(+0xf8f0) [0x7f29890218f0]
/usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-base19-0.11.24/lib/ruby_debug.so(+0x71dc) [0x7f298778c1dc]
/usr/local/bin/ruby() [0x5190a7]
/usr/local/bin/ruby() [0x51a7f2]
/usr/local/bin/ruby() [0x51f289]
/usr/local/bin/ruby(rb_yield+0x66) [0x5208f6]
/usr/local/bin/ruby() [0x47f1f1]
/usr/local/bin/ruby() [0x5190a7]
/usr/local/bin/ruby() [0x51a7f2]
/usr/local/bin/ruby() [0x51f289]
/usr/local/bin/ruby() [0x51258b]
/usr/local/bin/ruby() [0x51891e]
/usr/local/bin/ruby() [0x518f60]
/usr/local/bin/ruby() [0x51a7f2]
/usr/local/bin/ruby() [0x51f289]
/usr/local/bin/ruby(rb_yield+0x66) [0x5208f6]
/usr/local/bin/ruby(rb_ary_each+0x45) [0x5325a5]
/usr/local/bin/ruby() [0x5190a7]
/usr/local/bin/ruby() [0x51a7f2]
/usr/local/bin/ruby() [0x51f289]
/usr/local/bin/ruby() [0x52061e]
/usr/local/bin/ruby(rb_catch_obj+0xbe) [0x50c6ee]
/usr/local/bin/ruby() [0x50d9ba]
/usr/local/bin/ruby() [0x5190a7]
/usr/local/bin/ruby() [0x51a7f2]
/usr/local/bin/ruby() [0x51f289]
/usr/local/bin/ruby() [0x52061e]
/usr/local/bin/ruby(rb_catch_obj+0xbe) [0x50c6ee]
/usr/local/bin/ruby() [0x50d9ba]
/usr/local/bin/ruby() [0x5190a7]
/usr/local/bin/ruby() [0x51a7f2]
/usr/local/bin/ruby() [0x51f289]
/usr/local/bin/ruby(rb_vm_invoke_proc+0xa1) [0x512021]
/usr/local/bin/ruby() [0x527fbf]
/usr/local/bin/ruby() [0x52807e]
/lib/libpthread.so.0(+0x69ca) [0x7f29890189ca]
/lib/libc.so.6(clone+0x6d) [0x7f29884ad6fd]

[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html
=end


Related issues

Has duplicate Ruby master - Bug #3976: ruby/1.9.1/webrick/server.rb:90: [BUG] Segmentation faultThird Party's Issuenahi (Hiroshi Nakamura)10/23/2010Actions
Has duplicate Ruby master - Bug #4355: Segmentation FaultThird Party's Issue02/02/2011Actions
Has duplicate Ruby master - Bug #4435: Step over/step into extend statement causes bus error in ruby 1.9.2p180Third Party's Issue02/24/2011Actions
Has duplicate Ruby master - Bug #4817: Seg Fault Around xml_printer.rbThird Party's Issue06/03/2011Actions
#1

Updated by baldmark (Mark Chapman) about 10 years ago

=begin
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:

  1. I had the line
    require '/home/mark/Projects/bc/config/environment.rb'
    in my program so I could use Rails models

  2. Most of the work in my program was being done by class Setup

  3. I was passing a rails model type (Regulator) to a class method of Setup

  4. In that method, attempts to resolve the rails model name were causing it to be associated with the Setup namespace

  5. I added the line
    require '/home/mark/Projects/bc/app/models/regulator.rb'
    and the seg fault stopped happening

Hope this helps

Mark
=end

#2

Updated by clyfe (nicolae claudius) almost 10 years ago

=begin
I have the same error:

Ubuntu i386-32
ruby 1.9.2.p0
ruby-debug19
ruby-debug-ide19

using from netbeans
sometimes I get this segfault, sometimes a timeout error .

REPORT:

/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
ruby 1.9.2p0 (2010-08-18) [i686-linux]

-- control frame ----------
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
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
c:0022 p:---- s:0081 b:0081 l:000080 d:000080 FINISH
c:0021 p:---- s:0079 b:0079 l:000078 d:000078 CFUNC :each
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
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
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
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
c:0016 p:---- s:0059 b:0059 l:000058 d:000058 FINISH
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
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
c:0013 p:---- s:0049 b:0049 l:000048 d:000048 FINISH
c:0012 p:---- s:0047 b:0047 l:000046 d:000046 CFUNC :each
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
c:0010 p:---- s:0042 b:0042 l:000041 d:000041 FINISH
c:0009 p:---- s:0040 b:0040 l:000039 d:000039 CFUNC :catch
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
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
c:0006 p:---- s:0023 b:0023 l:000022 d:000022 FINISH
c:0005 p:---- s:0021 b:0021 l:000020 d:000020 CFUNC :catch
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
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
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:---- s:0002 b:0002 l:000001 d:000001 TOP


-- Ruby level backtrace information ----------------------------------------
/usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug-ide.rb:157:in 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
process_commands'
/usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug/processor.rb:31:in catch'
/usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug/processor.rb:35:in
block in process_commands'
/usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug/processor.rb:66:in 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
catch'
/usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug/processor.rb:67:in 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
each'
/usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug/processor.rb:74:in 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
execute'
/usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug/command.rb:85:in 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
print_frames'
/usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug/xml_printer.rb:253:in 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
block in print_frames'
/usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug/xml_printer.rb:38:in each'
/usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug/xml_printer.rb:39:in
block (2 levels) in print_frames'
/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'

-- C level backtrace information -------------------------------------------
/usr/local/bin/ruby(rb_vm_bugreport+0xa5) [0x815d5e5]
/usr/local/bin/ruby() [0x819c289]
/usr/local/bin/ruby(rb_bug+0x28) [0x819c338]
/usr/local/bin/ruby() [0x80f0538]
[0xcb640c]
/usr/local/bin/ruby() [0x8133e01]
/usr/local/bin/ruby(rb_class_path+0x16) [0x8134006]
/usr/local/bin/ruby(rb_obj_classname+0x3a) [0x8134b1a]
/usr/local/bin/ruby() [0x819d945]
/usr/local/bin/ruby(rb_check_typeddata+0x26) [0x819da06]
/usr/local/bin/ruby(rb_mutex_lock+0x1c) [0x81633fc]
/usr/local/bin/ruby(rb_mutex_synchronize+0x12) [0x81639a2]
/usr/local/bin/ruby() [0x807538c]
/usr/local/bin/ruby() [0x8075769]
/usr/local/bin/ruby(rb_io_fptr_finalize+0xd4) [0x80760c4]
/usr/local/bin/ruby() [0x80645de]
/usr/local/bin/ruby(rb_gc_finalize_deferred+0x29) [0x8064b39]
/usr/local/bin/ruby() [0x8160ff5]
/usr/local/bin/ruby() [0x81545a1]
/usr/local/bin/ruby() [0x81567a8]
/usr/local/bin/ruby() [0x815a126]
/usr/local/bin/ruby(rb_yield+0x50) [0x815b500]
/usr/local/bin/ruby() [0x80bf659]
/usr/local/bin/ruby() [0x81543da]
/usr/local/bin/ruby() [0x81567a8]
/usr/local/bin/ruby() [0x815a126]
/usr/local/bin/ruby() [0x814df44]
/usr/local/bin/ruby() [0x8153cd0]
/usr/local/bin/ruby() [0x815428c]
/usr/local/bin/ruby() [0x81567a8]
/usr/local/bin/ruby() [0x815a126]
/usr/local/bin/ruby(rb_yield+0x50) [0x815b500]
/usr/local/bin/ruby(rb_ary_each+0x41) [0x816c8b1]
/usr/local/bin/ruby() [0x81543da]
/usr/local/bin/ruby() [0x81567a8]
/usr/local/bin/ruby() [0x815a126]
/usr/local/bin/ruby() [0x815b29d]
/usr/local/bin/ruby(rb_catch_obj+0x9f) [0x8148b2f]
/usr/local/bin/ruby() [0x8149d56]
/usr/local/bin/ruby() [0x8148f85]
/usr/local/bin/ruby() [0x81543da]
/usr/local/bin/ruby() [0x81567a8]
/usr/local/bin/ruby() [0x815a126]
/usr/local/bin/ruby() [0x815b29d]
/usr/local/bin/ruby(rb_catch_obj+0x9f) [0x8148b2f]
/usr/local/bin/ruby() [0x8149d56]
/usr/local/bin/ruby() [0x8148f85]
/usr/local/bin/ruby() [0x81543da]
/usr/local/bin/ruby() [0x81567a8]
/usr/local/bin/ruby() [0x815a126]
/usr/local/bin/ruby(rb_vm_invoke_proc+0x76) [0x814daa6]
/usr/local/bin/ruby() [0x8162a22]
/usr/local/bin/ruby() [0x8162ae2]
/lib/libpthread.so.0(+0x5cc9) [0x115cc9]
/lib/libc.so.6(clone+0x5e) [0x22f6ae]

=end

#3

Updated by clyfe (nicolae claudius) almost 10 years ago

=begin
Here is the timeout error I get:

Exception in DebugThread loop: Timeout: evaluation took longer than 10 seconds.
=end

#4

Updated by clyfe (nicolae claudius) almost 10 years ago

=begin
Even more

Exception in DebugThread loop: Timeout: evaluation took longer than 10 seconds.
/usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug-ide.rb:160:in exit'
/usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug-ide.rb:160:in
rescue in block in start_control'
/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'
Uncaught exception: exit
=end

Updated by naruse (Yui NARUSE) about 9 years ago

  • Status changed from Open to Third Party's Issue

It seems ruby-debug-ide's issue.
Please reopen this if this is ruby's issue.

Updated by nahi (Hiroshi Nakamura) about 9 years ago

  • Subject changed from Repeatable seg fault while debugging in Netbeans to Repeatable SEGV(seg fault) with ruby-debug19/ruby-debug-ide

I'll point ruby-debug19/ruby-debug-ide19 issues to this.

Let us know if the error happens without debugging. Thanks!

Also available in: Atom PDF