Skip to content

Instantly share code, notes, and snippets.

@tamird
Created July 14, 2015 17:50
Show Gist options
  • Save tamird/ccb74572aeb2858e25e7 to your computer and use it in GitHub Desktop.
Save tamird/ccb74572aeb2858e25e7 to your computer and use it in GitHub Desktop.
$ bundle exec rake
install -c tmp/x86_64-darwin14.4.0/mysql2/2.1.0/mysql2.bundle lib/mysql2/mysql2.bundle
cp tmp/x86_64-darwin14.4.0/mysql2/2.1.0/mysql2.bundle tmp/x86_64-darwin14.4.0/stage/lib/mysql2/mysql2.bundle
/Users/tamird/.rubies/rbx-2.5.7-debug/bin/rbx -I/Users/tamird/.gem/rbx/2.1.0/gems/rspec-core-3.3.1/lib:/Users/tamird/.gem/rbx/2.1.0/gems/rspec-support-3.3.0/lib /Users/tamird/.gem/rbx/2.1.0/gems/rspec-core-3.3.1/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb
Randomized with seed 55379
Mysql2::Result
should raise a TypeError exception when it doesn't wrap a result set
should raise a Mysql2::Error exception upon a bad query
should have included Enumerable
should respond to #count, which is aliased as #size
should respond to #each
should be able to return the number of rows in the result set
#each
should throw an exception if we try to iterate twice when streaming is enabled
should yield different value for #first if streaming
should yield the same value for #first if streaming is disabled
should cache previously yielded results by default
should yield rows as hash's
should not cache previously yielded results if cache_rows is disabled
should be able to return results as an array
should yield rows as hash's with symbol keys if :symbolize_keys was set to true
streaming
should maintain a count while streaming
should not yield nil at the end of streaming
should raise an exception if streaming ended due to a timeout
#count should be zero for rows after streaming when there were no results
should retain the count when mixing first and each
metadata queries
should show tables
#fields
should return an array of field names in proper order
method should exist
row data type mapping
should return Fixnum for an INT value
should return Time for a DATETIME value when within the supported range
should return a String for TEXT
should return Float for a DOUBLE value
should return a String for CHAR
should return Fixnum for a YEAR value
should return Float for a FLOAT value
should return Time when timestamp is > 2038-01-19T03:14:07
should return a String for MEDIUMBLOB
should return Fixnum for a BIGINT value
should return Fixnum for a TINYINT value
should return a String for MEDIUMTEXT
should return a String for VARBINARY
should return nil for a NULL value
should return TrueClass or FalseClass for a TINYINT value if :cast_booleans is enabled
should return a String for TINYBLOB
should return a String for TINYTEXT
should return TrueClass or FalseClass for a BIT(1) value if :cast_booleans is enabled
should return String for a SET value
should return String for a BINARY value
should return String for a BIT(64) value
should return a String for LONGBLOB
should return Time for a TIME value
should return Time when timestamp is < 1901-12-13 20:45:52
should return a String for LONGTEXT
should return BigDecimal for a DECIMAL value
should return Date for a DATE value
should return a String for BLOB
should return Fixnum for a SMALLINT value
should raise an error given an invalid DATETIME
should return nil values for NULL and strings for everything else when :cast is false
should return String for a BIT(1) value
should return Fixnum for a MEDIUMINT value
should return a String for VARCHAR
should return String for an ENUM value
should return Time for a TIMESTAMP value when within the supported range
string encoding for TINYBLOB values
should default to binary if Encoding.default_internal is nil
should not use Encoding.default_internal
string encoding for TEXT values
should use Encoding.default_internal
should default to utf-8 if Encoding.default_internal is nil
string encoding for SET values
should use Encoding.default_internal
should default to the connection's encoding if Encoding.default_internal is nil
string encoding for ENUM values
should default to the connection's encoding if Encoding.default_internal is nil
should use Encoding.default_internal
string encoding for LONGTEXT values
should use Encoding.default_internal
should default to utf-8 if Encoding.default_internal is nil
string encoding for MEDIUMTEXT values
should use Encoding.default_internal
should default to utf-8 if Encoding.default_internal is nil
string encoding for CHAR values
should use Encoding.default_internal
should default to utf-8 if Encoding.default_internal is nil
string encoding for BLOB values
should default to binary if Encoding.default_internal is nil
should not use Encoding.default_internal
string encoding for VARCHAR values
should default to utf-8 if Encoding.default_internal is nil
should use Encoding.default_internal
string encoding for BINARY values
should not use Encoding.default_internal
should default to binary if Encoding.default_internal is nil
string encoding for MEDIUMBLOB values
should default to binary if Encoding.default_internal is nil
should not use Encoding.default_internal
string encoding for TINYTEXT values
should use Encoding.default_internal
should default to utf-8 if Encoding.default_internal is nil
string encoding for LONGBLOB values
should not use Encoding.default_internal
should default to binary if Encoding.default_internal is nil
string encoding for VARBINARY values
should not use Encoding.default_internal
should default to binary if Encoding.default_internal is nil
Mysql2::Client
should expect read_timeout to be a positive integer
should not raise an exception on create for a valid encoding
#thread_id should return a boolean
should not close connections when running in a child process
should respond to #query
should respond to #socket
should send init_command after reconnect
#server_info should require an open connection
should respond to #thread_id
#thread_id should be a Fixnum
should have a global default_query_options hash
#server_info should return a hash containing the client version ID and String
#info should return a hash containing the client version ID and String
should not leave dangling connections after garbage collection
should execute init command
should be able to connect to database with numeric-only name
should accept connect flags and pass them to #connect
should default flags to (REMEMBER_OPTIONS, LONG_PASSWORD, LONG_FLAG, TRANSACTIONS, PROTOCOL_41, SECURE_CONNECTION)
should respond to #server_info
should respond to #encoding
should raise an exception on create for invalid encodings
should respond to #escape
should be able to connect via SSL options (PENDING: DON'T WORRY, THIS TEST PASSES - but SSL is not enabled in your MySQL daemon.)
should expect write_timeout to be a positive integer
should respond to escape
should respond to #info
should be able to close properly
should respond to #warning_count
should expect connect_timeout to be a positive integer
should respond to #query_info
should respond to #ping
should raise an exception upon connection failure
should respond to #close
should raise a Mysql2::Error exception upon connection failure
strings returned by #server_info
should default to the connection's encoding if Encoding.default_internal is nil
should use Encoding.default_internal
strings returned by #info
should be tagged as ascii
#escape
should return a new SQL-escape version of the passed string
should not overflow the thread stack
should not overflow the process stack
should return the passed string if nothing was escaped
should require an open connection
:local_infile
should raise an error when local_infile is disabled
should raise an error when a non-existent file is loaded
should LOAD DATA LOCAL INFILE
escape
should return the passed string if nothing was escaped
should not overflow the thread stack
should return a new SQL-escape version of the passed string
should carry over the original string's encoding
should not overflow the process stack
#query
should allow changing query options for subsequent queries
should be able to return results with symbolized keys
should let you query again if iterating is finished when streaming
should not allow another query to be sent without fetching a result first
should require an open connection
should not retain query options set on a query for subsequent queries, but should retain it in the result
should run signal handlers while waiting for a response (FAILED - 1)
#socket should return a Fixnum (file descriptor from C)
should describe the thread holding the active query
threaded queries should be supported
should be impervious to connection-corrupting timeouts (PENDING: `Thread.handle_interrupt` is not defined)
evented async queries should be supported
#socket should require an open connection
should only accept strings as the query parameter
should timeout if we wait longer than :read_timeout
should be able to return results as an array
should return results as a hash by default
should not let you query again if iterating is not finished when streaming
Multiple results sets
will raise on query if there are outstanding results to read
#abandon_results! should work
should raise an exception when one of multiple statements fails
#more_results? should work with stored procedures
returns multiple result sets
#more_results? should work
does not interfere with other statements
when a non-standard exception class is raised
should handle Timeouts without leaving the connection hanging if reconnect is set to true after construction
should handle Timeouts without leaving the connection hanging if reconnect is true
should close the connection when an exception is raised
select_db
should raise a Mysql2::Error when the database doesn't exist
should switch databases
should return the database switched to
should respond to #select_db
using defaults file
should not raise an exception without default group
should not raise an exception for valid defaults group
write operations api
#last_id should handle BIGINT auto-increment ids above 32 bits
should respond to #last_id
should respond to #last_id
#last_id should return a Fixnum, the from the last INSERT/UPDATE
#last_id should return a Fixnum, the from the last INSERT/UPDATE
#warning_count
when has a warnings
should > 0
when no warnings
should 0
strings returned by .info
should be tagged as ascii
#query_info
when no info present
should 0
when has some info
should retrieve it
Mysql2::Error
responds to error_number and sql_state, with aliases
encoding
returns sql state as ASCII
returns error messages as UTF-8 by default
returns error messages and sql state in Encoding.default_internal if set
Mysql2::EM::Client
should support queries in callbacks
should support async queries
should not swallow exceptions raised in callbacks
should not raise error when closing client with no query running
when an exception is raised by the client
should swallow exceptions raised in by the client
should fail the deferrable
Mysql2::Statement
should raise an exception without a block
should tell us the param count
should be reusable 1000 times
should create a statement
should let us execute our statement
should raise an exception when server disconnects
should be reusable 10000 times (FAILED - 2)
should tell us about the fields
should tell us the field count
should select dates
should keep its result after other query
should let us iterate over results
should tell us the result count
utf8_db
should be able to retrieve utf8 param query correctly
should be able to retrieve utf8 field names correctly
The Rubinius process is aborting with signal: SIGSEGV
--- begin system info ---
node info: Tamirs-MacBook-Pro.local Darwin Kernel Version 14.4.0: Thu May 28 11:35:04 PDT 2015; root:xnu-2782.30.5~1/RELEASE_X86_64
--- end system info ---
--- begin rubinius info ---
process info: tamird rbx 55701 2.5.7 2.1.0 2015-07-14 d4fdeaad 3.5.1 JIT
--- end rubinius info ---
--- begin system backtrace ---
0 rbx 0x00000001042a4cb6 _ZN8rubiniusL20abandon_ship_handlerEi + 342
1 libsystem_platform.dylib 0x00007fff87d96f1a _sigtramp + 26
2 ??? 0x00007fda9a000000 0x0 + 140576863289344
3 rbx 0x00000001043de766 rb_gc_mark + 70
4 rbx 0x000000010434143e _ZN8rubinius4Data4Info4markEPNS_6ObjectERNS_10ObjectMarkE + 206
5 rbx 0x00000001043ff8d3 _ZN8rubinius16GarbageCollector11scan_objectEPNS_6ObjectE + 595
6 rbx 0x00000001043f6f0c _ZN8rubinius7BakerGC7collectEPNS_6GCDataEPNS_17YoungCollectStatsE + 1980
7 rbx 0x0000000104274ac7 _ZN8rubinius12ObjectMemory13collect_youngEPNS_5StateEPNS_6GCDataEPNS_17YoungCollectStatsE + 215
8 rbx 0x00000001042746fd _ZN8rubinius12ObjectMemory13collect_maybeEPNS_5StateERNS_11GCTokenImplEPNS_9CallFrameE + 621
9 rbx 0x0000000104323d24 _ZN8rubinius2VM13collect_maybeERNS_11GCTokenImplEPNS_9CallFrameE + 84
10 rbx 0x000000010410107d _ZN8rubinius5State13gc_checkpointERNS_11GCTokenImplEPNS_9CallFrameE + 77
11 rbx 0x0000000104100cd9 _ZN8rubinius5State10checkpointERNS_11GCTokenImplEPNS_9CallFrameE + 57
12 rbx 0x00000001041d185b _ZN8rubinius11MachineCode19execute_specializedINS_16GenericArgumentsEEEPNS_6ObjectEPNS_5StateEPNS_9CallFrameEPNS_10ExecutableEPNS_6ModuleERNS_9ArgumentsE + 1387
13 rbx 0x000000010437f7f7 _ZN8rubinius15MonoInlineCache11check_cacheEPNS_5StateEPNS_8CallSiteEPNS_9CallFrameERNS_9ArgumentsE + 167
14 rbx 0x0000000104155da7 _ZN8rubinius8CallSite7executeEPNS_5StateEPNS_9CallFrameERNS_9ArgumentsE + 71
15 rbx 0x000000010411b218 _ZN8rubinius11MachineCode11interpreterEPNS_5StateEPS0_PNS_20InterpreterCallFrameE + 16376
16 rbx 0x00000001041d1876 _ZN8rubinius11MachineCode19execute_specializedINS_16GenericArgumentsEEEPNS_6ObjectEPNS_5StateEPNS_9CallFrameEPNS_10ExecutableEPNS_6ModuleERNS_9ArgumentsE + 1414
17 rbx 0x000000010437f7f7 _ZN8rubinius15MonoInlineCache11check_cacheEPNS_5StateEPNS_8CallSiteEPNS_9CallFrameERNS_9ArgumentsE + 167
18 rbx 0x0000000104155da7 _ZN8rubinius8CallSite7executeEPNS_5StateEPNS_9CallFrameERNS_9ArgumentsE + 71
19 rbx 0x000000010411afea _ZN8rubinius11MachineCode11interpreterEPNS_5StateEPS0_PNS_20InterpreterCallFrameE + 15818
20 rbx 0x00000001041d1e56 _ZN8rubinius11MachineCode19execute_specializedINS_11NoArgumentsEEEPNS_6ObjectEPNS_5StateEPNS_9CallFrameEPNS_10ExecutableEPNS_6ModuleERNS_9ArgumentsE + 1414
21 rbx 0x00000001043331d5 _ZN8rubinius8CallSite11empty_cacheEPNS_5StateEPS0_PNS_9CallFrameERNS_9ArgumentsE + 597
22 rbx 0x000000010437fb87 _ZN8rubinius8CallSite8fallbackEPNS_5StateEPNS_9CallFrameERNS_9ArgumentsE + 71
23 rbx 0x000000010437f815 _ZN8rubinius15MonoInlineCache11check_cacheEPNS_5StateEPNS_8CallSiteEPNS_9CallFrameERNS_9ArgumentsE + 197
24 rbx 0x0000000104155da7 _ZN8rubinius8CallSite7executeEPNS_5StateEPNS_9CallFrameERNS_9ArgumentsE + 71
25 rbx 0x000000010411b218 _ZN8rubinius11MachineCode11interpreterEPNS_5StateEPS0_PNS_20InterpreterCallFrameE + 16376
26 rbx 0x00000001041d1876 _ZN8rubinius11MachineCode19execute_specializedINS_16GenericArgumentsEEEPNS_6ObjectEPNS_5StateEPNS_9CallFrameEPNS_10ExecutableEPNS_6ModuleERNS_9ArgumentsE + 1414
27 rbx 0x00000001043331d5 _ZN8rubinius8CallSite11empty_cacheEPNS_5StateEPS0_PNS_9CallFrameERNS_9ArgumentsE + 597
28 rbx 0x000000010437fb87 _ZN8rubinius8CallSite8fallbackEPNS_5StateEPNS_9CallFrameERNS_9ArgumentsE + 71
29 rbx 0x000000010437f815 _ZN8rubinius15MonoInlineCache11check_cacheEPNS_5StateEPNS_8CallSiteEPNS_9CallFrameERNS_9ArgumentsE + 197
30 rbx 0x0000000104155da7 _ZN8rubinius8CallSite7executeEPNS_5StateEPNS_9CallFrameERNS_9ArgumentsE + 71
31 rbx 0x000000010411b218 _ZN8rubinius11MachineCode11interpreterEPNS_5StateEPS0_PNS_20InterpreterCallFrameE + 16376
32 rbx 0x00000001041d1876 _ZN8rubinius11MachineCode19execute_specializedINS_16GenericArgumentsEEEPNS_6ObjectEPNS_5StateEPNS_9CallFrameEPNS_10ExecutableEPNS_6ModuleERNS_9ArgumentsE + 1414
33 rbx 0x00000001043331d5 _ZN8rubinius8CallSite11empty_cacheEPNS_5StateEPS0_PNS_9CallFrameERNS_9ArgumentsE + 597
34 rbx 0x0000000104155da7 _ZN8rubinius8CallSite7executeEPNS_5StateEPNS_9CallFrameERNS_9ArgumentsE + 71
35 rbx 0x000000010411b218 _ZN8rubinius11MachineCode11interpreterEPNS_5StateEPS0_PNS_20InterpreterCallFrameE + 16376
36 rbx 0x00000001041d1e56 _ZN8rubinius11MachineCode19execute_specializedINS_11NoArgumentsEEEPNS_6ObjectEPNS_5StateEPNS_9CallFrameEPNS_10ExecutableEPNS_6ModuleERNS_9ArgumentsE + 1414
37 rbx 0x000000010437f7f7 _ZN8rubinius15MonoInlineCache11check_cacheEPNS_5StateEPNS_8CallSiteEPNS_9CallFrameERNS_9ArgumentsE + 167
38 rbx 0x0000000104155da7 _ZN8rubinius8CallSite7executeEPNS_5StateEPNS_9CallFrameERNS_9ArgumentsE + 71
39 rbx 0x000000010411afea _ZN8rubinius11MachineCode11interpreterEPNS_5StateEPS0_PNS_20InterpreterCallFrameE + 15818
40 rbx 0x00000001041d2ff6 _ZN8rubinius11MachineCode19execute_specializedINS_12TwoArgumentsEEEPNS_6ObjectEPNS_5StateEPNS_9CallFrameEPNS_10ExecutableEPNS_6ModuleERNS_9ArgumentsE + 1414
41 rbx 0x000000010437f7f7 _ZN8rubinius15MonoInlineCache11check_cacheEPNS_5StateEPNS_8CallSiteEPNS_9CallFrameERNS_9ArgumentsE + 167
42 rbx 0x0000000104155da7 _ZN8rubinius8CallSite7executeEPNS_5StateEPNS_9CallFrameERNS_9ArgumentsE + 71
43 rbx 0x000000010411b218 _ZN8rubinius11MachineCode11interpreterEPNS_5StateEPS0_PNS_20InterpreterCallFrameE + 16376
44 rbx 0x000000010432f583 _ZN8rubinius16BlockEnvironment19execute_interpreterEPNS_5StateEPNS_9CallFrameEPS0_RNS_9ArgumentsERNS_15BlockInvocationE + 1779
45 rbx 0x000000010432ee70 _ZN8rubinius16BlockEnvironment6invokeEPNS_5StateEPNS_9CallFrameEPS0_RNS_9ArgumentsERNS_15BlockInvocationE + 720
46 rbx 0x000000010432f69d _ZN8rubinius16BlockEnvironment4callEPNS_5StateEPNS_9CallFrameERNS_9ArgumentsEi + 93
47 rbx 0x00000001044ef30f rbx_yield_stack + 127
48 ??? 0x00000001068c96e5 0x0 + 4404844261
49 rbx 0x000000010433c558 _ZN8rubinius12CompiledCode20specialized_executorEPNS_5StateEPNS_9CallFrameEPNS_10ExecutableEPNS_6ModuleERNS_9ArgumentsE + 312
50 rbx 0x000000010437f7f7 _ZN8rubinius15MonoInlineCache11check_cacheEPNS_5StateEPNS_8CallSiteEPNS_9CallFrameERNS_9ArgumentsE + 167
51 rbx 0x0000000104155da7 _ZN8rubinius8CallSite7executeEPNS_5StateEPNS_9CallFrameERNS_9ArgumentsE + 71
52 rbx 0x000000010411b474 _ZN8rubinius11MachineCode11interpreterEPNS_5StateEPS0_PNS_20InterpreterCallFrameE + 16980
53 rbx 0x00000001041d1876 _ZN8rubinius11MachineCode19execute_specializedINS_16GenericArgumentsEEEPNS_6ObjectEPNS_5StateEPNS_9CallFrameEPNS_10ExecutableEPNS_6ModuleERNS_9ArgumentsE + 1414
54 rbx 0x000000010437f7f7 _ZN8rubinius15MonoInlineCache11check_cacheEPNS_5StateEPNS_8CallSiteEPNS_9CallFrameERNS_9ArgumentsE + 167
55 rbx 0x0000000104155da7 _ZN8rubinius8CallSite7executeEPNS_5StateEPNS_9CallFrameERNS_9ArgumentsE + 71
56 rbx 0x000000010411b218 _ZN8rubinius11MachineCode11interpreterEPNS_5StateEPS0_PNS_20InterpreterCallFrameE + 16376
57 rbx 0x00000001041d1876 _ZN8rubinius11MachineCode19execute_specializedINS_16GenericArgumentsEEEPNS_6ObjectEPNS_5StateEPNS_9CallFrameEPNS_10ExecutableEPNS_6ModuleERNS_9ArgumentsE + 1414
58 rbx 0x000000010437f7f7 _ZN8rubinius15MonoInlineCache11check_cacheEPNS_5StateEPNS_8CallSiteEPNS_9CallFrameERNS_9ArgumentsE + 167
59 rbx 0x0000000104155da7 _ZN8rubinius8CallSite7executeEPNS_5StateEPNS_9CallFrameERNS_9ArgumentsE + 71
60 rbx 0x000000010411b218 _ZN8rubinius11MachineCode11interpreterEPNS_5StateEPS0_PNS_20InterpreterCallFrameE + 16376
61 rbx 0x00000001041d1876 _ZN8rubinius11MachineCode19execute_specializedINS_16GenericArgumentsEEEPNS_6ObjectEPNS_5StateEPNS_9CallFrameEPNS_10ExecutableEPNS_6ModuleERNS_9ArgumentsE + 1414
62 rbx 0x00000001043331d5 _ZN8rubinius8CallSite11empty_cacheEPNS_5StateEPS0_PNS_9CallFrameERNS_9ArgumentsE + 597
63 rbx 0x0000000104155da7 _ZN8rubinius8CallSite7executeEPNS_5StateEPNS_9CallFrameERNS_9ArgumentsE + 71
64 rbx 0x000000010411b218 _ZN8rubinius11MachineCode11interpreterEPNS_5StateEPS0_PNS_20InterpreterCallFrameE + 16376
65 rbx 0x000000010432f583 _ZN8rubinius16BlockEnvironment19execute_interpreterEPNS_5StateEPNS_9CallFrameEPS0_RNS_9ArgumentsERNS_15BlockInvocationE + 1779
66 rbx 0x000000010432ee70 _ZN8rubinius16BlockEnvironment6invokeEPNS_5StateEPNS_9CallFrameEPS0_RNS_9ArgumentsERNS_15BlockInvocationE + 720
67 rbx 0x000000010432f9b7 _ZN8rubinius16BlockEnvironment10call_underEPNS_5StateEPNS_9CallFrameEPNS_10ExecutableEPNS_6ModuleERNS_9ArgumentsE + 391
68 rbx 0x00000001041e3f16 _ZN8rubinius10Primitives16block_call_underEPNS_5StateEPNS_9CallFrameEPNS_10ExecutableEPNS_6ModuleERNS_9ArgumentsE + 134
69 rbx 0x000000010437f7f7 _ZN8rubinius15MonoInlineCache11check_cacheEPNS_5StateEPNS_8CallSiteEPNS_9CallFrameERNS_9ArgumentsE + 167
70 rbx 0x0000000104155da7 _ZN8rubinius8CallSite7executeEPNS_5StateEPNS_9CallFrameERNS_9ArgumentsE + 71
71 rbx 0x000000010411b7c0 _ZN8rubinius11MachineCode11interpreterEPNS_5StateEPS0_PNS_20InterpreterCallFrameE + 17824
72 rbx 0x00000001041d2436 _ZN8rubinius11MachineCode19execute_specializedINS_17SplatOnlyArgumentEEEPNS_6ObjectEPNS_5StateEPNS_9CallFrameEPNS_10ExecutableEPNS_6ModuleERNS_9ArgumentsE + 1414
73 rbx 0x00000001043331d5 _ZN8rubinius8CallSite11empty_cacheEPNS_5StateEPS0_PNS_9CallFrameERNS_9ArgumentsE + 597
74 rbx 0x000000010437fb87 _ZN8rubinius8CallSite8fallbackEPNS_5StateEPNS_9CallFrameERNS_9ArgumentsE + 71
75 rbx 0x00000001043a086c _ZN8rubinius15PolyInlineCache11check_cacheEPNS_5StateEPNS_8CallSiteEPNS_9CallFrameERNS_9ArgumentsE + 188
76 rbx 0x0000000104155da7 _ZN8rubinius8CallSite7executeEPNS_5StateEPNS_9CallFrameERNS_9ArgumentsE + 71
77 rbx 0x000000010411b474 _ZN8rubinius11MachineCode11interpreterEPNS_5StateEPS0_PNS_20InterpreterCallFrameE + 16980
78 rbx 0x000000010432f583 _ZN8rubinius16BlockEnvironment19execute_interpreterEPNS_5StateEPNS_9CallFrameEPS0_RNS_9ArgumentsERNS_15BlockInvocationE + 1779
79 rbx 0x000000010432ee70 _ZN8rubinius16BlockEnvironment6invokeEPNS_5StateEPNS_9CallFrameEPS0_RNS_9ArgumentsERNS_15BlockInvocationE + 720
80 rbx 0x000000010432f69d _ZN8rubinius16BlockEnvironment4callEPNS_5StateEPNS_9CallFrameERNS_9ArgumentsEi + 93
81 rbx 0x000000010411d10a _ZN8rubinius11MachineCode11interpreterEPNS_5StateEPS0_PNS_20InterpreterCallFrameE + 24298
82 rbx 0x000000010432f583 _ZN8rubinius16BlockEnvironment19execute_interpreterEPNS_5StateEPNS_9CallFrameEPS0_RNS_9ArgumentsERNS_15BlockInvocationE + 1779
83 rbx 0x000000010432ee70 _ZN8rubinius16BlockEnvironment6invokeEPNS_5StateEPNS_9CallFrameEPS0_RNS_9ArgumentsERNS_15BlockInvocationE + 720
84 rbx 0x000000010432f69d _ZN8rubinius16BlockEnvironment4callEPNS_5StateEPNS_9CallFrameERNS_9ArgumentsEi + 93
85 rbx 0x000000010411d10a _ZN8rubinius11MachineCode11interpreterEPNS_5StateEPS0_PNS_20InterpreterCallFrameE + 24298
86 rbx 0x000000010432f583 _ZN8rubinius16BlockEnvironment19execute_interpreterEPNS_5StateEPNS_9CallFrameEPS0_RNS_9ArgumentsERNS_15BlockInvocationE + 1779
87 rbx 0x000000010432ee70 _ZN8rubinius16BlockEnvironment6invokeEPNS_5StateEPNS_9CallFrameEPS0_RNS_9ArgumentsERNS_15BlockInvocationE + 720
88 rbx 0x000000010432f69d _ZN8rubinius16BlockEnvironment4callEPNS_5StateEPNS_9CallFrameERNS_9ArgumentsEi + 93
89 rbx 0x000000010411d10a _ZN8rubinius11MachineCode11interpreterEPNS_5StateEPS0_PNS_20InterpreterCallFrameE + 24298
90 rbx 0x000000010432f583 _ZN8rubinius16BlockEnvironment19execute_interpreterEPNS_5StateEPNS_9CallFrameEPS0_RNS_9ArgumentsERNS_15BlockInvocationE + 1779
91 rbx 0x000000010432ee70 _ZN8rubinius16BlockEnvironment6invokeEPNS_5StateEPNS_9CallFrameEPS0_RNS_9ArgumentsERNS_15BlockInvocationE + 720
92 rbx 0x000000010432f69d _ZN8rubinius16BlockEnvironment4callEPNS_5StateEPNS_9CallFrameERNS_9ArgumentsEi + 93
93 rbx 0x000000010411d10a _ZN8rubinius11MachineCode11interpreterEPNS_5StateEPS0_PNS_20InterpreterCallFrameE + 24298
94 rbx 0x00000001041d2a16 _ZN8rubinius11MachineCode19execute_specializedINS_11OneArgumentEEEPNS_6ObjectEPNS_5StateEPNS_9CallFrameEPNS_10ExecutableEPNS_6ModuleERNS_9ArgumentsE + 1414
95 rbx 0x000000010437f7f7 _ZN8rubinius15MonoInlineCache11check_cacheEPNS_5StateEPNS_8CallSiteEPNS_9CallFrameERNS_9ArgumentsE + 167
96 rbx 0x0000000104155da7 _ZN8rubinius8CallSite7executeEPNS_5StateEPNS_9CallFrameERNS_9ArgumentsE + 71
97 rbx 0x000000010411b474 _ZN8rubinius11MachineCode11interpreterEPNS_5StateEPS0_PNS_20InterpreterCallFrameE + 16980
98 rbx 0x00000001041d35d6 _ZN8rubinius11MachineCode19execute_specializedINS_14ThreeArgumentsEEEPNS_6ObjectEPNS_5StateEPNS_9CallFrameEPNS_10ExecutableEPNS_6ModuleERNS_9ArgumentsE + 1414
99 rbx 0x000000010437f7f7 _ZN8rubinius15MonoInlineCache11check_cacheEPNS_5StateEPNS_8CallSiteEPNS_9CallFrameERNS_9ArgumentsE + 167
100 rbx 0x0000000104155da7 _ZN8rubinius8CallSite7executeEPNS_5StateEPNS_9CallFrameERNS_9ArgumentsE + 71
101 rbx 0x000000010411b474 _ZN8rubinius11MachineCode11interpreterEPNS_5StateEPS0_PNS_20InterpreterCallFrameE + 16980
102 rbx 0x00000001041d1e56 _ZN8rubinius11MachineCode19execute_specializedINS_11NoArgumentsEEEPNS_6ObjectEPNS_5StateEPNS_9CallFrameEPNS_10ExecutableEPNS_6ModuleERNS_9ArgumentsE + 1414
103 rbx 0x000000010437f7f7 _ZN8rubinius15MonoInlineCache11check_cacheEPNS_5StateEPNS_8CallSiteEPNS_9CallFrameERNS_9ArgumentsE + 167
104 rbx 0x0000000104155da7 _ZN8rubinius8CallSite7executeEPNS_5StateEPNS_9CallFrameERNS_9ArgumentsE + 71
105 rbx 0x000000010411b474 _ZN8rubinius11MachineCode11interpreterEPNS_5StateEPS0_PNS_20InterpreterCallFrameE + 16980
106 rbx 0x00000001041d1e56 _ZN8rubinius11MachineCode19execute_specializedINS_11NoArgumentsEEEPNS_6ObjectEPNS_5StateEPNS_9CallFrameEPNS_10ExecutableEPNS_6ModuleERNS_9ArgumentsE + 1414
107 rbx 0x000000010437f7f7 _ZN8rubinius15MonoInlineCache11check_cacheEPNS_5StateEPNS_8CallSiteEPNS_9CallFrameERNS_9ArgumentsE + 167
108 rbx 0x0000000104155da7 _ZN8rubinius8CallSite7executeEPNS_5StateEPNS_9CallFrameERNS_9ArgumentsE + 71
109 rbx 0x000000010411b474 _ZN8rubinius11MachineCode11interpreterEPNS_5StateEPS0_PNS_20InterpreterCallFrameE + 16980
110 rbx 0x00000001041d2ff6 _ZN8rubinius11MachineCode19execute_specializedINS_12TwoArgumentsEEEPNS_6ObjectEPNS_5StateEPNS_9CallFrameEPNS_10ExecutableEPNS_6ModuleERNS_9ArgumentsE + 1414
111 rbx 0x000000010437f7f7 _ZN8rubinius15MonoInlineCache11check_cacheEPNS_5StateEPNS_8CallSiteEPNS_9CallFrameERNS_9ArgumentsE + 167
112 rbx 0x0000000104155da7 _ZN8rubinius8CallSite7executeEPNS_5StateEPNS_9CallFrameERNS_9ArgumentsE + 71
113 rbx 0x000000010411b218 _ZN8rubinius11MachineCode11interpreterEPNS_5StateEPS0_PNS_20InterpreterCallFrameE + 16376
114 rbx 0x000000010432f583 _ZN8rubinius16BlockEnvironment19execute_interpreterEPNS_5StateEPNS_9CallFrameEPS0_RNS_9ArgumentsERNS_15BlockInvocationE + 1779
115 rbx 0x000000010432ee70 _ZN8rubinius16BlockEnvironment6invokeEPNS_5StateEPNS_9CallFrameEPS0_RNS_9ArgumentsERNS_15BlockInvocationE + 720
116 rbx 0x000000010432f69d _ZN8rubinius16BlockEnvironment4callEPNS_5StateEPNS_9CallFrameERNS_9ArgumentsEi + 93
117 rbx 0x000000010411d10a _ZN8rubinius11MachineCode11interpreterEPNS_5StateEPS0_PNS_20InterpreterCallFrameE + 24298
118 rbx 0x00000001041d1e56 _ZN8rubinius11MachineCode19execute_specializedINS_11NoArgumentsEEEPNS_6ObjectEPNS_5StateEPNS_9CallFrameEPNS_10ExecutableEPNS_6ModuleERNS_9ArgumentsE + 1414
119 rbx 0x000000010433c558 _ZN8rubinius12CompiledCode20specialized_executorEPNS_5StateEPNS_9CallFrameEPNS_10ExecutableEPNS_6ModuleERNS_9ArgumentsE + 312
120 rbx 0x000000010437f7f7 _ZN8rubinius15MonoInlineCache11check_cacheEPNS_5StateEPNS_8CallSiteEPNS_9CallFrameERNS_9ArgumentsE + 167
121 rbx 0x0000000104155da7 _ZN8rubinius8CallSite7executeEPNS_5StateEPNS_9CallFrameERNS_9ArgumentsE + 71
122 rbx 0x000000010411b474 _ZN8rubinius11MachineCode11interpreterEPNS_5StateEPS0_PNS_20InterpreterCallFrameE + 16980
123 rbx 0x00000001041d2a16 _ZN8rubinius11MachineCode19execute_specializedINS_11OneArgumentEEEPNS_6ObjectEPNS_5StateEPNS_9CallFrameEPNS_10ExecutableEPNS_6ModuleERNS_9ArgumentsE + 1414
124 rbx 0x000000010433407f _ZN8rubinius8CallSite19empty_cache_privateEPNS_5StateEPS0_PNS_9CallFrameERNS_9ArgumentsE + 575
125 rbx 0x000000010437fb87 _ZN8rubinius8CallSite8fallbackEPNS_5StateEPNS_9CallFrameERNS_9ArgumentsE + 71
126 rbx 0x00000001043a086c _ZN8rubinius15PolyInlineCache11check_cacheEPNS_5StateEPNS_8CallSiteEPNS_9CallFrameERNS_9ArgumentsE + 188
127 rbx 0x0000000104155da7 _ZN8rubinius8CallSite7executeEPNS_5StateEPNS_9CallFrameERNS_9ArgumentsE + 71
--- end system backtrace ---
--- begin Ruby backtraces ---
--- Thread 1 backtrace ---
Rubinius::CompiledCode#create_script in kernel/common/compiled_code.rb:185 (+0)
Rubinius::CodeLoader#load_file in kernel/delta/code_loader.rb:201 (+266)
Rubinius::CodeLoader#require in kernel/common/code_loader.rb:128 (+64)
Rubinius::CodeLoader#require_compiled in kernel/delta/code_loader.rb:35 (+71)
Rubinius::CodeLoader.require_compiled in kernel/delta/code_loader.rb:148 (+40)
Encoding::Converter::TranscodingPath.paths in kernel/common/encoding.rb:373 (+46)
Encoding::Converter::TranscodingPath.[] in kernel/common/encoding.rb:426 (+235)
__block__ in kernel/common/encoding.rb:158 (+37)
Array#each in kernel/bootstrap/array.rb:76 (+53 jit)
Encoding::Converter#initialize in kernel/common/encoding.rb:154 (+685)
String#encode! in kernel/common/string.rb:932 (+435)
String#encode in kernel/common/string.rb:963 (+36)
__block__ in /Users/tamird/src/mysql2/spec/mysql2/statement_spec.rb:137 (+40)
BasicObject#instance_exec in kernel/common/eval.rb:101 (+267)
__block__ in /Users/tamird/.gem/rbx/2.1.0/gems/rspec-core-3.3.1/lib/rspec/core/example.rb:206 (+37)
__block__ in /Users/tamird/.gem/rbx/2.1.0/gems/rspec-core-3.3.1/lib/rspec/core/example.rb:430 (+2)
__block__ in /Users/tamird/.gem/rbx/2.1.0/gems/rspec-core-3.3.1/lib/rspec/core/example.rb:388 (+2)
__block__ in /Users/tamird/.gem/rbx/2.1.0/gems/rspec-core-3.3.1/lib/rspec/core/hooks.rb:478 (+2)
RSpec::Core::Hooks::HookCollections#run_around_example_hooks_for in /Users/tamird/.gem/rbx/2.1.0/gems/rspec-core-3.3.1/lib/rspec/core/hooks.rb:616 (+22)
RSpec::Core::Hooks::HookCollections#run in /Users/tamird/.gem/rbx/2.1.0/gems/rspec-core-3.3.1/lib/rspec/core/hooks.rb:478 (+105)
RSpec::Core::Example#with_around_example_hooks in /Users/tamird/.gem/rbx/2.1.0/gems/rspec-core-3.3.1/lib/rspec/core/example.rb:388 (+20)
RSpec::Core::Example#with_around_and_singleton_context_hooks in /Users/tamird/.gem/rbx/2.1.0/gems/rspec-core-3.3.1/lib/rspec/core/example.rb:430 (+32)
RSpec::Core::Example#run in /Users/tamird/.gem/rbx/2.1.0/gems/rspec-core-3.3.1/lib/rspec/core/example.rb:203 (+134)
__block__ in /Users/tamird/.gem/rbx/2.1.0/gems/rspec-core-3.3.1/lib/rspec/core/example_group.rb:559 (+73)
Array#map in kernel/bootstrap/array.rb:97 (+107)
RSpec::Core::ExampleGroup.run_examples in /Users/tamird/.gem/rbx/2.1.0/gems/rspec-core-3.3.1/lib/rspec/core/example_group.rb:555 (+14)
RSpec::Core::ExampleGroup.run in /Users/tamird/.gem/rbx/2.1.0/gems/rspec-core-3.3.1/lib/rspec/core/example_group.rb:521 (+108)
__block__ in /Users/tamird/.gem/rbx/2.1.0/gems/rspec-core-3.3.1/lib/rspec/core/example_group.rb:522 (+8)
Array#map in kernel/bootstrap/array.rb:97 (+107)
RSpec::Core::ExampleGroup.run in /Users/tamird/.gem/rbx/2.1.0/gems/rspec-core-3.3.1/lib/rspec/core/example_group.rb:522 (+125)
__block__ in /Users/tamird/.gem/rbx/2.1.0/gems/rspec-core-3.3.1/lib/rspec/core/runner.rb:115 (+8)
Array#map in kernel/bootstrap/array.rb:97 (+107)
__block__ in /Users/tamird/.gem/rbx/2.1.0/gems/rspec-core-3.3.1/lib/rspec/core/runner.rb:115 (+8)
RSpec::Core::Configuration#with_suite_hooks in /Users/tamird/.gem/rbx/2.1.0/gems/rspec-core-3.3.1/lib/rspec/core/configuration.rb:1627 (+59)
__block__ in /Users/tamird/.gem/rbx/2.1.0/gems/rspec-core-3.3.1/lib/rspec/core/runner.rb:114 (+7)
RSpec::Core::Reporter#report in /Users/tamird/.gem/rbx/2.1.0/gems/rspec-core-3.3.1/lib/rspec/core/reporter.rb:77 (+18)
RSpec::Core::Runner#run_specs in /Users/tamird/.gem/rbx/2.1.0/gems/rspec-core-3.3.1/lib/rspec/core/runner.rb:113 (+17)
RSpec::Core::Runner#run in /Users/tamird/.gem/rbx/2.1.0/gems/rspec-core-3.3.1/lib/rspec/core/runner.rb:89 (+20)
RSpec::Core::Runner.run in /Users/tamird/.gem/rbx/2.1.0/gems/rspec-core-3.3.1/lib/rspec/core/runner.rb:0 (+238)
RSpec::Core::Runner.invoke in /Users/tamird/.gem/rbx/2.1.0/gems/rspec-core-3.3.1/lib/rspec/core/runner.rb:41 (+29)
Object#__script__ in /Users/tamird/.gem/rbx/2.1.0/gems/rspec-core-3.3.1/exe/rspec:4 (+18)
Rubinius::CodeLoader#load_script in kernel/delta/code_loader.rb:66 (+52)
Rubinius::CodeLoader.load_script in kernel/delta/code_loader.rb:152 (+40)
Rubinius::Loader#script in kernel/loader.rb:656 (+214)
Rubinius::Loader#main in kernel/loader.rb:842 (+77)
--- Thread 8 backtrace ---
Timeout.watch_channel in /Users/tamird/.rubies/rbx-2.5.7-debug/gems/gems/rubysl-timeout-2.0.0/lib/rubysl/timeout/timeout.rb:90 (+27)
__block__ in /Users/tamird/.rubies/rbx-2.5.7-debug/gems/gems/rubysl-timeout-2.0.0/lib/rubysl/timeout/timeout.rb:125 (+3)
Proc#call in kernel/bootstrap/proc.rb:0 (+204)
Thread#__run__ in kernel/bootstrap/thread.rb:352 (+117)
--- end Ruby backtraces ---
/Users/tamird/.rubies/rbx-2.5.7-debug/bin/rbx -I/Users/tamird/.gem/rbx/2.1.0/gems/rspec-core-3.3.1/lib:/Users/tamird/.gem/rbx/2.1.0/gems/rspec-support-3.3.0/lib /Users/tamird/.gem/rbx/2.1.0/gems/rspec-core-3.3.1/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb failed
rake aborted!
TypeError: Coercion error: nil.to_int => Integer failed
kernel/common/type.rb:36:in `coerce_to_failed'
kernel/common/type.rb:26:in `execute_coerce_to'
kernel/common/type.rb:19:in `coerce_to'
kernel/alpha.rb:428:in `exit'
kernel/common/kernel.rb:311:in `exit'
/Users/tamird/.gem/rbx/2.1.0/gems/rspec-core-3.3.1/lib/rspec/core/rake_task.rb:75:in `run_task'
/Users/tamird/.gem/rbx/2.1.0/gems/rspec-core-3.3.1/lib/rspec/core/rake_task.rb:87:in `define'
/Users/tamird/.gem/rbx/2.1.0/gems/rspec-core-3.3.1/lib/rspec/core/rake_task.rb:85:in `define'
kernel/bootstrap/proc.rb:20:in `call'
kernel/bootstrap/array.rb:76:in `each'
/Users/tamird/.rubies/rbx-2.5.7-debug/gems/gems/rubysl-monitor-2.0.0/lib/rubysl/monitor/monitor.rb:211:in `synchronize (mon_synchronize)'
kernel/bootstrap/array.rb:76:in `each'
/Users/tamird/.rubies/rbx-2.5.7-debug/gems/gems/rubysl-monitor-2.0.0/lib/rubysl/monitor/monitor.rb:211:in `synchronize (mon_synchronize)'
kernel/bootstrap/array.rb:76:in `each'
kernel/common/kernel.rb:498:in `load'
kernel/delta/code_loader.rb:66:in `load_script'
kernel/delta/code_loader.rb:152:in `load_script'
kernel/loader.rb:656:in `script'
kernel/loader.rb:842:in `main'
Tasks: TOP => default => spec
(See full trace by running task with --trace)
$ ruby --version
rubinius 2.5.7 (2.1.0 d4fdeaad 2015-07-14 3.5.1 JID) [x86_64-darwin14.4.0]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment