Bug #10337
closedsqlite3/statement.rb:37: [BUG] Segmentation fault
Description
C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/sqlite3-1.3.9-x64-mingw32/lib/sqlite3/statement.rb:37: [BUG] Segmentation fault
ruby 2.0.0p481 (2014-05-08) [x64-mingw32]
-- Control frame information -----------------------------------------------
c:0036 p:---- s:0145 e:000144 CFUNC :flatten
c:0035 p:0013 s:0142 e:000141 METHOD C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/sqlite3-1.3.9-x64-mingw32/lib/sqlite3/statement.rb:37
c:0034 p:0010 s:0137 e:000136 BLOCK C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/sqlite3-1.3.9-x64-mingw32/lib/sqlite3/database.rb:135
c:0033 p:0042 s:0133 e:000132 METHOD C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/sqlite3-1.3.9-x64-mingw32/lib/sqlite3/database.rb:95
c:0032 p:0102 s:0128 e:000127 METHOD C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/sqlite3-1.3.9-x64-mingw32/lib/sqlite3/database.rb:134
c:0031 p:0011 s:0120 e:000119 METHOD C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/sqlite3-1.3.9-x64-mingw32/lib/sqlite3/database.rb:283
......
c:0013 p:0043 s:0044 e:000043 METHOD C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/sqlite3-1.3.9-x64-mingw32/lib/sqlite3/database.rb:500
......
c:0001 p:0000 s:0002 E:000318 TOP [FINISH]
......
C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/sqlite3-1.3.9-x64-mingw32/lib/sqlite3/database.rb:500:in transaction' ...... C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/sqlite3-1.3.9-x64-mingw32/lib/sqlite3/database.rb:283:in
get_first_row'
C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/sqlite3-1.3.9-x64-mingw32/lib/sqlite3/database.rb:134:in execute' C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/sqlite3-1.3.9-x64-mingw32/lib/sqlite3/database.rb:95:in
prepare'
C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/sqlite3-1.3.9-x64-mingw32/lib/sqlite3/database.rb:135:in block in execute' C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/sqlite3-1.3.9-x64-mingw32/lib/sqlite3/statement.rb:37:in
bind_params'
C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/sqlite3-1.3.9-x64-mingw32/lib/sqlite3/statement.rb:37:in `flatten'
-- C level backtrace information -------------------------------------------
C:\Windows\SYSTEM32\ntdll.dll(NtWaitForSingleObject+0xa) [0x00000000776912FA]
C:\Windows\system32\KERNELBASE.dll(WaitForSingleObjectEx+0x9c) [0x000007FEFD7A10DC]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(rb_vm_bugreport+0x9d) [0x000000006F28669D]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(rb_name_err_mesg_new+0x838) [0x000000006F141EE8]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(rb_bug+0x45) [0x000000006F142C95]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(rb_check_safe_str+0x18c) [0x000000006F20B12C] [0x0000000000401A85]
C:\Windows\SYSTEM32\ntdll.dll(_C_specific_handler+0x9c) [0x00000000776585C8]
C:\Windows\SYSTEM32\ntdll.dll(RtlDecodePointer+0xad) [0x0000000077669D2D]
C:\Windows\SYSTEM32\ntdll.dll(RtlUnwindEx+0xbbf) [0x00000000776591CF]
C:\Windows\SYSTEM32\ntdll.dll(KiUserExceptionDispatcher+0x2e) [0x0000000077691248]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(rb_obj_id+0xa96) [0x000000006F15D316]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(rb_gc_call_finalizer_at_exit+0x9cc) [0x000000006F161CAC]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(rb_gc_disable+0x2da) [0x000000006F162F2A]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(st_init_numtable+0x18) [0x000000006F212CC8]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(rb_ary_pop+0x39e) [0x000000006F110AFE]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(rb_ary_pop+0x8c1) [0x000000006F111021]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(rb_error_arity+0x125) [0x000000006F2715C5]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(rb_vm_localjump_error+0x1cf8) [0x000000006F275948]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(rb_vm_localjump_error+0x5be9) [0x000000006F279839]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(rb_yield+0x178) [0x000000006F2831B8]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(rb_ary_each+0x51) [0x000000006F106871]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(rb_error_arity+0x125) [0x000000006F2715C5]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(rb_vm_localjump_error+0x1c91) [0x000000006F2758E1]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(rb_vm_localjump_error+0x5be9) [0x000000006F279839]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(rb_obj_instance_exec+0x1d0) [0x000000006F281FA0]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(rb_yield_values+0xc7) [0x000000006F282297]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(rb_vm_make_proc+0x24c) [0x000000006F2733EC]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(rb_yield+0x226) [0x000000006F283266]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(rb_ary_each+0x51) [0x000000006F106871]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(rb_vm_localjump_error+0x6147) [0x000000006F279D97]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(rb_remove_method_id+0x208) [0x000000006F280978]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(rb_iterate+0xe3) [0x000000006F2729C3]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(rb_block_call+0x30) [0x000000006F272C00]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(dln_find_file+0x17c7) [0x000000006F139277]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(rb_error_arity+0x125) [0x000000006F2715C5]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(rb_vm_localjump_error+0x1c91) [0x000000006F2758E1]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(rb_vm_localjump_error+0x5be9) [0x000000006F279839]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(rb_yield+0x178) [0x000000006F2831B8]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(rb_reset_random_seed+0x1b80) [0x000000006F1D1620]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(rb_error_arity+0x125) [0x000000006F2715C5]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(rb_vm_localjump_error+0x1c91) [0x000000006F2758E1]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(rb_vm_localjump_error+0x5be9) [0x000000006F279839]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(rb_yield+0x178) [0x000000006F2831B8]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(rb_reset_random_seed+0x1b80) [0x000000006F1D1620]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(rb_error_arity+0x125) [0x000000006F2715C5]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(rb_f_send+0x5a1) [0x000000006F27F9C1]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(rb_vm_localjump_error+0x1c91) [0x000000006F2758E1]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(rb_vm_localjump_error+0x5be9) [0x000000006F279839]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(rb_yield+0x178) [0x000000006F2831B8]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(rb_ensure+0xda) [0x000000006F14AD2A]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(rb_error_arity+0x125) [0x000000006F2715C5]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(rb_f_send+0x5a1) [0x000000006F27F9C1]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(rb_vm_localjump_error+0x1c91) [0x000000006F2758E1]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(rb_vm_localjump_error+0x5be9) [0x000000006F279839]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(rb_yield+0x178) [0x000000006F2831B8] [0x000000006C002FE8]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(rb_vm_localjump_error+0x6147) [0x000000006F279D97]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(rb_funcall2+0x8f) [0x000000006F280A9F]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(rb_class_new_instance+0x2d) [0x000000006F19FC6D]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(rb_error_arity+0x125) [0x000000006F2715C5]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(rb_f_send+0x5a1) [0x000000006F27F9C1]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(rb_vm_localjump_error+0x1c91) [0x000000006F2758E1]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(rb_vm_localjump_error+0x5be9) [0x000000006F279839]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(rb_vm_localjump_error+0x6240) [0x000000006F279E90]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(rb_funcall2+0x8f) [0x000000006F280A9F]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(rb_class_new_instance+0x2d) [0x000000006F19FC6D]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(rb_error_arity+0x125) [0x000000006F2715C5]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(rb_f_send+0x5a1) [0x000000006F27F9C1]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(rb_vm_localjump_error+0x1c91) [0x000000006F2758E1]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(rb_vm_localjump_error+0x5be9) [0x000000006F279839]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(rb_yield+0x178) [0x000000006F2831B8]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(rb_ensure+0xda) [0x000000006F14AD2A]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(rb_Complex+0x303a) [0x000000006F13531A]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(rb_error_arity+0x125) [0x000000006F2715C5]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(rb_f_send+0x5a1) [0x000000006F27F9C1]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(rb_vm_localjump_error+0x1c91) [0x000000006F2758E1]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(rb_vm_localjump_error+0x5be9) [0x000000006F279839]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(rb_iseq_eval_main+0x1e0) [0x000000006F283820]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(rb_check_copyable+0x3266) [0x000000006F147C36]
C:\Ruby200-x64\bin\x64-msvcrt-ruby200.dll(ruby_run_node+0x51) [0x000000006F14A421] [0x0000000000402D14] [0x00000000004013D7] [0x00000000004014F8]
C:\Windows\system32\kernel32.dll(BaseThreadInitThunk+0xd) [0x00000000774359ED]
-- Other runtime information -----------------------------------------------
-
Loaded script: ......
-
Loaded features:
0 enumerator.so
1 C:/Ruby200-x64/lib/ruby/2.0.0/x64-mingw32/enc/encdb.so
2 C:/Ruby200-x64/lib/ruby/2.0.0/x64-mingw32/enc/gbk.so
3 C:/Ruby200-x64/lib/ruby/2.0.0/x64-mingw32/enc/trans/transdb.so
4 C:/Ruby200-x64/lib/ruby/2.0.0/x64-mingw32/rbconfig.rb
5 C:/Ruby200-x64/lib/ruby/2.0.0/rubygems/compatibility.rb
6 C:/Ruby200-x64/lib/ruby/2.0.0/rubygems/defaults.rb
7 C:/Ruby200-x64/lib/ruby/2.0.0/rubygems/deprecate.rb
8 C:/Ruby200-x64/lib/ruby/2.0.0/rubygems/errors.rb
9 C:/Ruby200-x64/lib/ruby/2.0.0/rubygems/version.rb
10 C:/Ruby200-x64/lib/ruby/2.0.0/rubygems/requirement.rb
11 C:/Ruby200-x64/lib/ruby/2.0.0/rubygems/platform.rb
12 C:/Ruby200-x64/lib/ruby/2.0.0/rubygems/specification.rb
13 C:/Ruby200-x64/lib/ruby/2.0.0/rubygems/exceptions.rb
14 C:/Ruby200-x64/lib/ruby/2.0.0/rubygems/defaults/operating_system.rb
15 C:/Ruby200-x64/lib/ruby/2.0.0/x64-mingw32/enc/utf_16le.so
16 C:/Ruby200-x64/lib/ruby/2.0.0/x64-mingw32/enc/trans/utf_16_32.so
17 C:/Ruby200-x64/lib/ruby/2.0.0/rubygems/core_ext/kernel_gem.rb
18 C:/Ruby200-x64/lib/ruby/2.0.0/thread.rb
19 C:/Ruby200-x64/lib/ruby/2.0.0/monitor.rb
20 C:/Ruby200-x64/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb
21 C:/Ruby200-x64/lib/ruby/2.0.0/rubygems.rb
22 C:/Ruby200-x64/lib/ruby/2.0.0/forwardable.rb
23 C:/Ruby200-x64/lib/ruby/2.0.0/English.rb
24 C:/Ruby200-x64/lib/ruby/2.0.0/x64-mingw32/date_core.so
25 C:/Ruby200-x64/lib/ruby/2.0.0/date/format.rb
26 C:/Ruby200-x64/lib/ruby/2.0.0/date.rb
27 C:/Ruby200-x64/lib/ruby/2.0.0/x64-mingw32/stringio.so
28 C:/Ruby200-x64/lib/ruby/2.0.0/csv.rb
29 C:/Ruby200-x64/lib/ruby/2.0.0/x64-mingw32/etc.so
30 C:/Ruby200-x64/lib/ruby/2.0.0/fileutils.rb
31 C:/Ruby200-x64/lib/ruby/2.0.0/x64-mingw32/socket.so
32 C:/Ruby200-x64/lib/ruby/2.0.0/socket.rb
33 C:/Ruby200-x64/lib/ruby/2.0.0/timeout.rb
34 C:/Ruby200-x64/lib/ruby/2.0.0/net/protocol.rb
35 C:/Ruby200-x64/lib/ruby/2.0.0/net/ftp.rb
36 C:/Ruby200-x64/lib/ruby/2.0.0/set.rb
37 C:/Ruby200-x64/lib/ruby/2.0.0/time.rb
38 C:/Ruby200-x64/lib/ruby/2.0.0/rubygems/dependency.rb
39 C:/Ruby200-x64/lib/ruby/2.0.0/rubygems/path_support.rb
40 C:/Ruby200-x64/lib/ruby/2.0.0/psych/syntax_error.rb
41 C:/Ruby200-x64/lib/ruby/2.0.0/x64-mingw32/psych.so
42 C:/Ruby200-x64/lib/ruby/2.0.0/psych/nodes/node.rb
43 C:/Ruby200-x64/lib/ruby/2.0.0/psych/nodes/stream.rb
44 C:/Ruby200-x64/lib/ruby/2.0.0/psych/nodes/document.rb
45 C:/Ruby200-x64/lib/ruby/2.0.0/psych/nodes/sequence.rb
46 C:/Ruby200-x64/lib/ruby/2.0.0/psych/nodes/scalar.rb
47 C:/Ruby200-x64/lib/ruby/2.0.0/psych/nodes/mapping.rb
48 C:/Ruby200-x64/lib/ruby/2.0.0/psych/nodes/alias.rb
49 C:/Ruby200-x64/lib/ruby/2.0.0/psych/nodes.rb
50 C:/Ruby200-x64/lib/ruby/2.0.0/psych/streaming.rb
51 C:/Ruby200-x64/lib/ruby/2.0.0/psych/visitors/visitor.rb
52 C:/Ruby200-x64/lib/ruby/2.0.0/x64-mingw32/strscan.so
53 C:/Ruby200-x64/lib/ruby/2.0.0/psych/scalar_scanner.rb
54 C:/Ruby200-x64/lib/ruby/2.0.0/psych/visitors/to_ruby.rb
55 C:/Ruby200-x64/lib/ruby/2.0.0/psych/visitors/emitter.rb
56 C:/Ruby200-x64/lib/ruby/2.0.0/psych/visitors/yaml_tree.rb
57 C:/Ruby200-x64/lib/ruby/2.0.0/psych/json/ruby_events.rb
58 C:/Ruby200-x64/lib/ruby/2.0.0/psych/visitors/json_tree.rb
59 C:/Ruby200-x64/lib/ruby/2.0.0/psych/visitors/depth_first.rb
60 C:/Ruby200-x64/lib/ruby/2.0.0/psych/visitors.rb
61 C:/Ruby200-x64/lib/ruby/2.0.0/psych/handler.rb
62 C:/Ruby200-x64/lib/ruby/2.0.0/psych/tree_builder.rb
63 C:/Ruby200-x64/lib/ruby/2.0.0/psych/parser.rb
64 C:/Ruby200-x64/lib/ruby/2.0.0/psych/omap.rb
65 C:/Ruby200-x64/lib/ruby/2.0.0/psych/set.rb
66 C:/Ruby200-x64/lib/ruby/2.0.0/psych/coder.rb
67 C:/Ruby200-x64/lib/ruby/2.0.0/psych/core_ext.rb
68 C:/Ruby200-x64/lib/ruby/2.0.0/psych/deprecated.rb
69 C:/Ruby200-x64/lib/ruby/2.0.0/psych/stream.rb
70 C:/Ruby200-x64/lib/ruby/2.0.0/psych/json/yaml_events.rb
71 C:/Ruby200-x64/lib/ruby/2.0.0/psych/json/tree_builder.rb
72 C:/Ruby200-x64/lib/ruby/2.0.0/psych/json/stream.rb
73 C:/Ruby200-x64/lib/ruby/2.0.0/psych/handlers/document_stream.rb
74 C:/Ruby200-x64/lib/ruby/2.0.0/psych.rb
75 C:/Ruby200-x64/lib/ruby/2.0.0/yaml.rb
76 C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/sqlite3-1.3.9-x64-mingw32/lib/sqlite3/2.0/sqlite3_native.so
77 C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/sqlite3-1.3.9-x64-mingw32/lib/sqlite3/constants.rb
78 C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/sqlite3-1.3.9-x64-mingw32/lib/sqlite3/errors.rb
79 C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/sqlite3-1.3.9-x64-mingw32/lib/sqlite3/pragmas.rb
80 C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/sqlite3-1.3.9-x64-mingw32/lib/sqlite3/resultset.rb
81 C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/sqlite3-1.3.9-x64-mingw32/lib/sqlite3/statement.rb
82 C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/sqlite3-1.3.9-x64-mingw32/lib/sqlite3/translator.rb
83 C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/sqlite3-1.3.9-x64-mingw32/lib/sqlite3/value.rb
84 C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/sqlite3-1.3.9-x64-mingw32/lib/sqlite3/database.rb
85 C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/sqlite3-1.3.9-x64-mingw32/lib/sqlite3/version.rb
86 C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/sqlite3-1.3.9-x64-mingw32/lib/sqlite3.rb
87 ......
88 C:/Ruby200-x64/lib/ruby/2.0.0/x64-mingw32/enc/utf_16be.so
89 C:/Ruby200-x64/lib/ruby/2.0.0/x64-mingw32/enc/trans/single_byte.so
[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
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
Updated by NullVoxPopuli (Preston Sego) over 9 years ago
I'm having the exact same issue with postgresql. I used to think it was sqlite3. but it seems to be something with database_statements: http://pastebin.com/d6Tm13ww
$ ruby -v
ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-linux]
$ pg -V
pg from util-linux 2.25.2
$ bundle exec gem list | grep pg
pg (0.18.2)
Updated by jeremyevans0 (Jeremy Evans) over 5 years ago
- Status changed from Open to Third Party's Issue