From: "n.pettik" <korablev@tarantool.org>
To: tarantool-patches@freelists.org
Cc: Kirill Yukhin <kyukhin@tarantool.org>,
Vladislav Shpilevoy <v.shpilevoy@tarantool.org>
Subject: [tarantool-patches] Re: [PATCH] sql: after table rename properly update indexes
Date: Fri, 17 Aug 2018 21:26:51 +0300 [thread overview]
Message-ID: <93430B4D-AD89-4B7C-8097-7D88434E4753@tarantool.org> (raw)
In-Reply-To: <20180817134836.zyj5udil3qeqowpw@tarantool.org>
>> Hi! Thanks for the fixes!
>>
>>> diff --git a/test-run b/test-run
>>> index ed45e1d..0aa25ae 160000
>>> --- a/test-run
>>> +++ b/test-run
>>> @@ -1 +1 @@
>>> -Subproject commit ed45e1dbd36ab9109b84ef7189ef9d7e4b813fb9
>>> +Subproject commit 0aa25ae8a9d4af977b3c3478cba3ccdc4ef81d35
>>
>> Test-run is updated accidentally.
>
> I've discarded the hunk & force-pushed the branch. Don't think
> repost is needed here.
Hello, guys. I found this seagfault on updated branch:
tarantool> box.sql.execute('CREATE TABLE t (s1 INT PRIMARY KEY)')
---
...
tarantool> box.sql.execute('CREATE INDEX i ON t (s1)')
---
...
tarantool> box.sql.execute('ALTER TABLE t RENAME TO j3')
Ctrl+C
tarantool> n:tarantool n.pettik$ ./src/tarantool
Tarantool 2.0.4-838-g9d879b042
type 'help' for interactive help
tarantool> box.cfg{}
2018-08-17 21:26:17.797 [23781] main/101/interactive C> Tarantool 2.0.4-838-g9d879b042
2018-08-17 21:26:17.797 [23781] main/101/interactive C> log level 5
2018-08-17 21:26:17.798 [23781] main/101/interactive I> mapping 268435456 bytes for memtx tuple arena...
2018-08-17 21:26:17.798 [23781] main/101/interactive I> mapping 134217728 bytes for vinyl tuple arena...
2018-08-17 21:26:17.807 [23781] main/101/interactive I> recovery start
2018-08-17 21:26:17.807 [23781] main/101/interactive I> recovering from `./00000000000000000000.snap'
2018-08-17 21:26:17.849 [23781] main/101/interactive I> recover from `./00000000000000000000.xlog'
2018-08-17 21:26:17.849 [23781] main/101/interactive I> done `./00000000000000000000.xlog'
2018-08-17 21:26:17.850 [23781] main/101/interactive I> recover from `./00000000000000000006.xlog'
2018-08-17 21:26:17.850 [23781] main/101/interactive I> done `./00000000000000000006.xlog'
Segmentation fault
code: SEGV_MAPERR
addr: 0x0
context: 0x10881f4c8
siginfo: 0x10881f460
Current time: 1534530377
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 0x105e087ed in print_backtrace+d
#1 0x105cbb613 in _ZL12sig_fatal_cbiP9__siginfoPv+1f3
#2 0x7fffcae1eb3a in _sigtramp+1a
#3 0x1060690b3 in corruptSchema+93
#4 0x106068f5a in sql_init_callback+25a
#5 0x105dbe73a in space_foreach_put_cb+da
#6 0x105d86460 in space_foreach+2b0
#7 0x105dbe646 in tarantoolSqlite3LoadSchema+166
#8 0x10606927a in sqlite3InitDatabase+7a
#9 0x105dba3de in sql_load_schema+de
#10 0x105d99fe7 in _ZL10box_cfg_xcv+7a7
#11 0x105d9973d in box_cfg+d
#12 0x105cb9e81 in load_cfg+861
#13 0x105dca8c1 in _ZL13lbox_cfg_loadP9lua_State+11
#14 0x105e3653d in lj_BC_FUNCC+44
#15 0x105e64b90 in lua_pcall+210
#16 0x105dec823 in luaT_call+23
#17 0x105de3761 in lua_main+d1
#18 0x105de3548 in run_script_f+8e8
#19 0x105cbaf0a in _ZL16fiber_cxx_invokePFiP13__va_list_tagES0_+1a
#20 0x105e042db in fiber_loop+bb
#21 0x106023947 in coro_init+57
Abort trap: 6
next prev parent reply other threads:[~2018-08-17 18:27 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-13 4:54 [tarantool-patches] " Kirill Yukhin
2018-08-14 22:22 ` [tarantool-patches] " Vladislav Shpilevoy
2018-08-15 8:54 ` Kirill Yukhin
2018-08-16 22:24 ` Vladislav Shpilevoy
2018-08-17 5:08 ` Kirill Yukhin
2018-08-17 8:31 ` Vladislav Shpilevoy
2018-08-17 13:48 ` Kirill Yukhin
2018-08-17 18:26 ` n.pettik [this message]
2018-08-20 5:21 ` 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=93430B4D-AD89-4B7C-8097-7D88434E4753@tarantool.org \
--to=korablev@tarantool.org \
--cc=kyukhin@tarantool.org \
--cc=tarantool-patches@freelists.org \
--cc=v.shpilevoy@tarantool.org \
--subject='[tarantool-patches] Re: [PATCH] sql: after table rename properly update indexes' \
/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