Tarantool development patches archive
 help / color / mirror / Atom feed
From: "n.pettik" <korablev@tarantool.org>
To: tarantool-patches@freelists.org
Cc: Kirill Shcherbatov <kshcherbatov@tarantool.org>
Subject: [tarantool-patches] Re: [PATCH v2 1/3] sql: introduce pragma sql_default_engine
Date: Fri, 29 Jun 2018 17:00:02 +0300	[thread overview]
Message-ID: <3AA22731-F304-4173-BE6D-B5AAF7AF6BC9@tarantool.org> (raw)
In-Reply-To: <6271c2d9b369110fac3586e662b8838bec242d72.1530202680.git.kshcherbatov@tarantool.org>

These inputs leads to segfault:

box.cfg{}
\set language sql
pragma  sql_default_engine

Segmentation fault
  code: SEGV_MAPERR
  addr: 0x0
  context: 0x10701ee08
  siginfo: 0x10701eda0
Current time: 1530280267
Please file a bug at http://github.com/tarantool/tarantool/issues
Attempting backtrace... Note: since the server has already crashed, 
this may fail as well
#0  0x1046152cd in print_backtrace+d
#1  0x1044cdbb3 in _ZL12sig_fatal_cbiP9__siginfoPv+1f3
#2  0x7fffea9eab3a in _sigtramp+1a
#3  0x7fffea86c43c in strcasecmp_l+5a
#4  0x104630509 in strindex+69
#5  0x10487b214 in sql_default_engine_set+24
#6  0x10487a979 in sqlite3Pragma+1b69
#7  0x1048333f2 in yy_reduce+3072
#8  0x10482fdfa in sqlite3Parser+11a
#9  0x10489701d in sqlite3RunParser+43d
#10 0x10487cc10 in sqlite3Prepare+170
#11 0x10487c643 in sqlite3LockAndPrepare+83
#12 0x10487c73f in sqlite3_prepare_v2+4f
#13 0x1045e8fe2 in lua_sql_execute+92
#14 0x104642eed in lj_BC_FUNCC+44
#15 0x104671540 in lua_pcall+210
#16 0x1045f9bd3 in luaT_call+23
#17 0x1045f0b11 in lua_main+d1
#18 0x1045f08f8 in run_script_f+8e8
#19 0x1044cd4aa in _ZL16fiber_cxx_invokePFiP13__va_list_tagES0_+1a
#20 0x104610dbb in fiber_loop+bb
#21 0x10482f827 in coro_init+57

Also, it reproduces with:

pragma sql_default_engine 1

pragma sql_default_engine ‘memtx’ 

Some pragmas support such syntax, so lets handle this situation
in a polite way.

Moreover, simple ‘pragma’ command displays list of available pragmas and
their statuses. Lets add ’sql_default_engine’ to that list.

  reply	other threads:[~2018-06-29 14:00 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-28 16:19 [tarantool-patches] [PATCH v2 0/3] sql: default engine pragma Kirill Shcherbatov
2018-06-28 16:19 ` [tarantool-patches] [PATCH v2 1/3] sql: introduce pragma sql_default_engine Kirill Shcherbatov
2018-06-29 14:00   ` n.pettik [this message]
2018-07-02  8:46     ` [tarantool-patches] " Kirill Shcherbatov
2018-07-02 10:23       ` n.pettik
2018-06-28 16:19 ` [tarantool-patches] [PATCH v2 2/3] sql: fix SQL Count for vinyl engine Kirill Shcherbatov
2018-06-28 16:19 ` [tarantool-patches] [PATCH v2 3/3] sql: enable multi-engine tests for SQL Kirill Shcherbatov
2018-06-29 14:14   ` [tarantool-patches] " n.pettik
2018-07-02  8:46     ` Kirill Shcherbatov
2018-07-03  8:04 ` [tarantool-patches] Re: [PATCH v2 0/3] sql: default engine pragma Kirill Yukhin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3AA22731-F304-4173-BE6D-B5AAF7AF6BC9@tarantool.org \
    --to=korablev@tarantool.org \
    --cc=kshcherbatov@tarantool.org \
    --cc=tarantool-patches@freelists.org \
    --subject='[tarantool-patches] Re: [PATCH v2 1/3] sql: introduce pragma sql_default_engine' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox