Skip to content

Instantly share code, notes, and snippets.

@brianmario
Created September 9, 2010 21:06
Show Gist options
  • Select an option

  • Save brianmario/572573 to your computer and use it in GitHub Desktop.

Select an option

Save brianmario/572573 to your computer and use it in GitHub Desktop.
C:\mysql2>gdb ruby
GNU gdb (GDB) 7.1
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "mingw32".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from C:\Ruby192\bin/ruby.exe...done.
(gdb) run C:\Ruby192\bin\irb
Starting program: C:\Ruby192\bin/ruby.exe C:\Ruby192\bin\irb
[New Thread 1436.0x3b4]
[New Thread 1436.0x988]
irb(main):001:0> $LOAD_PATH.unshift
=> ["C:/Ruby192/lib/ruby/site_ruby/1.9.1", "C:/Ruby192/lib/ruby/site_ruby/1.9.1/i386-msvcrt", "C:/Ruby192/lib/ruby/site_ruby", "C:/Ruby192/lib/ruby/vendor_ruby/1.9.1", "C:/Ruby192/lib/ruby/vendor_ruby/1.9.1/i386-msvcrt", "C:/Ruby192/lib/ruby/vendor_ruby", "C:/Ruby192/lib/ruby/1.9.1", "C:/Ruby192/lib/ruby/1.9.1/i386-mingw32"]
irb(main):002:0> $LOAD_PATH.unshift 'lib'
=> ["lib", "C:/Ruby192/lib/ruby/site_ruby/1.9.1", "C:/Ruby192/lib/ruby/site_ruby/1.9.1/i386-msvcrt", "C:/Ruby192/lib/ruby/site_ruby", "C:/Ruby192/lib/ruby/vendor_ruby/1.9.1", "C:/Ruby192/lib/ruby/vendor_ruby/1.9.1/i386-msvcrt", "C:/Ruby192/lib/ruby/vendor_ruby", "C:/Ruby192/lib/ruby/1.9.1", "C:/Ruby192/lib/ruby/1.9.1/i386-mingw32"]
irb(main):003:0> require 'mysql2'
=> true
irb(main):004:0> Mysql2::Client.new
[New Thread 1436.0x354]
Program received signal SIGSEGV, Segmentation fault.
0x1000a2b7 in mysql_fetch_field () from C:\Ruby192\bin\libmysql.dll
(gdb) bt
#0 0x1000a2b7 in mysql_fetch_field () from C:\Ruby192\bin\libmysql.dll
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment