Bugs: Browse | Submit New | Admin

[#24868] seg fault in mysql/ruby 2.8.1

Date:
2009-03-25 15:35
Priority:
3
Submitted By:
Nobody
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
seg fault in mysql/ruby 2.8.1

Detailed description
Ruby Version:

$ ruby --version
ruby 1.8.6 (2007-09-23 patchlevel 110) [i686-linux]

Steps to reproduce:

$ irb
irb(main):001:0> require 'rubygems'
=> true
irb(main):002:0> require 'mysql'
=> true
irb(main):003:0> m = Mysql.init
=> #<Mysql:0xb7b155dc>
irb(main):004:0> m.ping
(irb):4: [BUG] Segmentation fault
ruby 1.8.6 (2007-09-23) [i686-linux]

Aborted

Add A Comment: Notepad

Please login


Followup

Message
Date: 2010-01-08 07:37
Sender: Grégory Duchatelet

I can confirm that on ruby 1.9.0 and 1.9.1, stack trace:

cypher-02:/var/lib/gems/1.9.1/gems/mysql-2.8.1/test# irb1.9.1
irb(main):001:0> require 'rubygems'
=> true
irb(main):002:0> require 'mysql'
=> true
irb(main):003:0> m = Mysql.init
=> #<Mysql:0x00000000905628>
irb(main):004:0> m.ping
(irb):4: [BUG] Segmentation fault
ruby 1.9.1p376 (2009-12-07 revision 26041) [x86_64-linux]

-- control frame ----------
c:0024 p:---- s:0085 b:0085 l:000084 d:000084 CFUNC  :ping
c:0023 p:0011 s:0082 b:0082 l:0001c8 d:000081 EVAL   (irb):4
c:0022 p:---- s:0080 b:0080 l:000079 d:000079 FINISH
c:0021 p:---- s:0078 b:0078 l:000077 d:000077 CFUNC  :eval
c:0020 p:0027 s:0071 b:0071 l:000070 d:000070 METHOD
/usr/lib/ruby/1.9.1/irb/workspace.rb:80
c:0019 p:0031 s:0064 b:0063 l:000062 d:000062 METHOD
/usr/lib/ruby/1.9.1/irb/context.rb:218
c:0018 p:0030 s:0058 b:0058 l:000e58 d:000057 BLOCK
/usr/lib/ruby/1.9.1/irb.rb:157
c:0017 p:0039 s:0050 b:0050 l:000049 d:000049 METHOD
/usr/lib/ruby/1.9.1/irb.rb:271
c:0016 p:0011 s:0045 b:0045 l:000e58 d:000044 BLOCK
/usr/lib/ruby/1.9.1/irb.rb:154
c:0015 p:0132 s:0041 b:0041 l:000024 d:000040 BLOCK
/usr/lib/ruby/1.9.1/irb/ruby-lex.rb:244
c:0014 p:---- s:0038 b:0038 l:000037 d:000037 FINISH
c:0013 p:---- s:0036 b:0036 l:000035 d:000035 CFUNC  :loop
c:0012 p:0009 s:0033 b:0033 l:000024 d:000032 BLOCK
/usr/lib/ruby/1.9.1/irb/ruby-lex.rb:230
c:0011 p:---- s:0031 b:0031 l:000030 d:000030 FINISH
c:0010 p:---- s:0029 b:0029 l:000028 d:000028 CFUNC  :catch
c:0009 p:0023 s:0025 b:0025 l:000024 d:000024 METHOD
/usr/lib/ruby/1.9.1/irb/ruby-lex.rb:229
c:0008 p:0042 s:0022 b:0022 l:000e58 d:000e58 METHOD
/usr/lib/ruby/1.9.1/irb.rb:153
c:0007 p:0011 s:0019 b:0019 l:001ec8 d:000018 BLOCK
/usr/lib/ruby/1.9.1/irb.rb:70
c:0006 p:---- s:0017 b:0017 l:000016 d:000016 FINISH
c:0005 p:---- s:0015 b:0015 l:000014 d:000014 CFUNC  :catch
c:0004 p:0174 s:0011 b:0011 l:001ec8 d:001ec8 METHOD
/usr/lib/ruby/1.9.1/irb.rb:69
c:0003 p:0039 s:0006 b:0006 l:000428 d:0008a8 EVAL
/usr/bin/irb1.9.1:12
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:000428 d:000428 TOP
---------------------------
-- Ruby level backtrace information------------------------------
-----------
(irb):4:in `ping'
(irb):4:in `irb_binding'
/usr/lib/ruby/1.9.1/irb/workspace.rb:80:in `eval'
/usr/lib/ruby/1.9.1/irb/workspace.rb:80:in `evaluate'
/usr/lib/ruby/1.9.1/irb/context.rb:218:in `evaluate'
/usr/lib/ruby/1.9.1/irb.rb:157:in `block (2 levels)
in eval_input'
/usr/lib/ruby/1.9.1/irb.rb:271:in `signal_status'
/usr/lib/ruby/1.9.1/irb.rb:154:in `block in eval_input'
/usr/lib/ruby/1.9.1/irb/ruby-lex.rb:244:in `block (2 levels)
in each_top_level_statement'
/usr/lib/ruby/1.9.1/irb/ruby-lex.rb:230:in `loop'
/usr/lib/ruby/1.9.1/irb/ruby-lex.rb:230:in `block in
each_top_level_statement'
/usr/lib/ruby/1.9.1/irb/ruby-lex.rb:229:in `catch'
/usr/lib/ruby/1.9.1/irb/ruby-lex.rb:229:in
`each_top_level_statement'
/usr/lib/ruby/1.9.1/irb.rb:153:in `eval_input'
/usr/lib/ruby/1.9.1/irb.rb:70:in `block in start'
/usr/lib/ruby/1.9.1/irb.rb:69:in `catch'
/usr/lib/ruby/1.9.1/irb.rb:69:in `start'
/usr/bin/irb1.9.1:12:in `<main>'

-- C level backtrace information
-------------------------------------------
0x7ff4d79d5cfb /usr/lib/libruby-1.9.1.so.1.9(rb_vm_bugreport+0x4b)
[0x7ff4d79d5cfb]
0x7ff4d78f5514 /usr/lib/libruby-1.9.1.so.1.9 [0x7ff4d78f5514]
0x7ff4d78f5683 /usr/lib/libruby-1.9.1.so.1.9(rb_bug+0xb3)
[0x7ff4d78f5683]
0x7ff4d797cfcc /usr/lib/libruby-1.9.1.so.1.9 [0x7ff4d797cfcc]
0x7ff4d7695a80 /lib/libpthread.so.0 [0x7ff4d7695a80]
0x7ff4d50f0b2a /usr/lib/libmysqlclient.so.15(mysql_ping+0x2a)
[0x7ff4d50f0b2a]
0x7ff4d54addf7 /var/lib/gems/1.9.1/gems/mysql-2.8.1/lib/mysql_api.so
[0x7ff4d54addf7]
0x7ff4d79c3040 /usr/lib/libruby-1.9.1.so.1.9 [0x7ff4d79c3040]
0x7ff4d79d1590 /usr/lib/libruby-1.9.1.so.1.9 [0x7ff4d79d1590]
0x7ff4d79c626f /usr/lib/libruby-1.9.1.so.1.9 [0x7ff4d79c626f]
0x7ff4d79cb642 /usr/lib/libruby-1.9.1.so.1.9 [0x7ff4d79cb642]
0x7ff4d79cc498 /usr/lib/libruby-1.9.1.so.1.9 [0x7ff4d79cc498]
0x7ff4d79cca94 /usr/lib/libruby-1.9.1.so.1.9(rb_f_eval+0xf4)
[0x7ff4d79cca94]
0x7ff4d79c3040 /usr/lib/libruby-1.9.1.so.1.9 [0x7ff4d79c3040]
0x7ff4d79d1590 /usr/lib/libruby-1.9.1.so.1.9 [0x7ff4d79d1590]
0x7ff4d79c626f /usr/lib/libruby-1.9.1.so.1.9 [0x7ff4d79c626f]
0x7ff4d79cb642 /usr/lib/libruby-1.9.1.so.1.9 [0x7ff4d79cb642]
0x7ff4d79cce56 /usr/lib/libruby-1.9.1.so.1.9 [0x7ff4d79cce56]
0x7ff4d78f6d9b /usr/lib/libruby-1.9.1.so.1.9(rb_rescue2+0x16b)
[0x7ff4d78f6d9b]
0x7ff4d79c4915 /usr/lib/libruby-1.9.1.so.1.9 [0x7ff4d79c4915]
0x7ff4d79c3040 /usr/lib/libruby-1.9.1.so.1.9 [0x7ff4d79c3040]
0x7ff4d79d1590 /usr/lib/libruby-1.9.1.so.1.9 [0x7ff4d79d1590]
0x7ff4d79c626f /usr/lib/libruby-1.9.1.so.1.9 [0x7ff4d79c626f]
0x7ff4d79cb642 /usr/lib/libruby-1.9.1.so.1.9 [0x7ff4d79cb642]
0x7ff4d79cbed3 /usr/lib/libruby-1.9.1.so.1.9 [0x7ff4d79cbed3]
0x7ff4d79c3040 /usr/lib/libruby-1.9.1.so.1.9 [0x7ff4d79c3040]
0x7ff4d79d1590 /usr/lib/libruby-1.9.1.so.1.9 [0x7ff4d79d1590]
0x7ff4d79c626f /usr/lib/libruby-1.9.1.so.1.9 [0x7ff4d79c626f]
0x7ff4d79cb642 /usr/lib/libruby-1.9.1.so.1.9 [0x7ff4d79cb642]
0x7ff4d79cbed3 /usr/lib/libruby-1.9.1.so.1.9 [0x7ff4d79cbed3]
0x7ff4d79c3040 /usr/lib/libruby-1.9.1.so.1.9 [0x7ff4d79c3040]
0x7ff4d79d1590 /usr/lib/libruby-1.9.1.so.1.9 [0x7ff4d79d1590]
0x7ff4d79c626f /usr/lib/libruby-1.9.1.so.1.9 [0x7ff4d79c626f]
0x7ff4d79cb642 /usr/lib/libruby-1.9.1.so.1.9 [0x7ff4d79cb642]
0x7ff4d79cb811 /usr/lib/libruby-1.9.1.so.1.9(rb_iseq_eval_main+0xb1)
[0x7ff4d79cb811]
0x7ff4d78f7704 /usr/lib/libruby-1.9.1.so.1.9(ruby_exec_node+0xb4)
[0x7ff4d78f7704]
0x7ff4d78f8d83 /usr/lib/libruby-1.9.1.so.1.9(ruby_run_node+0x33)
[0x7ff4d78f8d83]
0x40097f irb1.9.1(main+0x4f) [0x40097f]
0x7ff4d6a8a1a6 /lib/libc.so.6(__libc_start_main+0xe6)
[0x7ff4d6a8a1a6]
0x400869 irb1.9.1 [0x400869]

[NOTE]
You may encounter a bug of Ruby interpreter. Bug reports are
welcome.
For details: http://www.ruby-lang.org/bugreport.html

Aborted

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item