Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
5.3.12, 5.5.39, 10.0.14
-
Debian Linux with kernel 3.14-1-amd64
Description
Hey,
since i added two virtual columns to a table querying that table cause some random segfaults.
The table looks like that:
CREATE TABLE |
CREATE TABLE `tl_astars_reservation_group` (
|
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
`tstamp` int(10) unsigned NOT NULL DEFAULT '0',
|
`pid` int(10) unsigned NOT NULL DEFAULT '0',
|
`resid` int(10) unsigned NOT NULL DEFAULT '0',
|
`time` int(10) unsigned NOT NULL DEFAULT '0',
|
`time_hr` int(10) unsigned AS (`time`/3600) VIRTUAL,
|
`repeatEach` varchar(64) NOT NULL DEFAULT '',
|
`recurrDayWise` varchar(64) NOT NULL DEFAULT '',
|
`duration` int(10) unsigned NOT NULL DEFAULT '0',
|
`seriesBegin` int(10) unsigned NOT NULL DEFAULT '0',
|
`seriesBeginWeekdayHr` varchar(50) AS (DATE_FORMAT(FROM_UNIXTIME(`seriesBegin`), '%W')) VIRTUAL,
|
`seriesEnd` int(10) unsigned NOT NULL DEFAULT '0',
|
`onhold` char(1) NOT NULL DEFAULT '',
|
`locked` char(1) NOT NULL DEFAULT '',
|
`season` varchar(64) NOT NULL DEFAULT '',
|
`specialprice` decimal(20,4) DEFAULT NULL,
|
`paid` char(1) NOT NULL DEFAULT '',
|
`weeks` varchar(64) NOT NULL DEFAULT '',
|
`day` varchar(7) NOT NULL DEFAULT '0',
|
`downpayment` decimal(20,4) DEFAULT NULL,
|
PRIMARY KEY (`id`),
|
KEY `pid` (`pid`),
|
KEY `resid` (`resid`),
|
KEY `locked` (`locked`)
|
) ENGINE=MyISAM AUTO_INCREMENT=9885 DEFAULT CHARSET=utf8
|
The new colums are the following ones:
`time_hr` int(10) unsigned AS (`time`/3600) VIRTUAL,
|
`seriesBeginWeekdayHr` varchar(50) AS (DATE_FORMAT(FROM_UNIXTIME(`seriesBegin`), '%W')) VIRTUAL,
|
You can find the entire stacktrace as an attachment. The IRC user `tanj` recommended to try the following command to fix the issue:
mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root mysql
|
But this did not solve the problem at all.
If you need more data, please contact me. I am happy to provide them.
Greetings
Leo
Attachments
Issue Links
- relates to
-
MDEV-7113 difference between check_vcol_func_processor and check_partition_func_processor
-
- Stalled
-
Activity
Field | Original Value | New Value |
---|---|---|
Assignee | Elena Stepanova [ elenst ] |
Fix Version/s | 10.0 [ 16000 ] | |
Fix Version/s | 5.5 [ 15800 ] | |
Affects Version/s | 5.5.39 [ 16301 ] | |
Affects Version/s | 5.3.12 [ 12000 ] | |
Affects Version/s | 10.0.14 [ 17101 ] | |
Affects Version/s | 10.0.13 [ 16300 ] | |
Assignee | Elena Stepanova [ elenst ] | Igor Babaev [ igor ] |
Labels | virtual_columns | |
Summary | segfault in in libgcc_s.so.1 | segfault in Item_func_from_unixtime::get_date on updating table with virtual columns |
Assignee | Igor Babaev [ igor ] | Sergei Petrunia [ psergey ] |
Assignee | Sergei Petrunia [ psergey ] | Sergei Golubchik [ serg ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Component/s | Virtual Columns [ 10803 ] | |
Fix Version/s | 10.0.15 [ 17300 ] | |
Fix Version/s | 5.5.41 [ 17600 ] | |
Fix Version/s | 5.5 [ 15800 ] | |
Fix Version/s | 10.0 [ 16000 ] | |
Resolution | Fixed [ 1 ] | |
Status | In Progress [ 3 ] | Closed [ 6 ] |
Workflow | MariaDB v2 [ 55030 ] | MariaDB v3 [ 65332 ] |
Workflow | MariaDB v3 [ 65332 ] | MariaDB v4 [ 148259 ] |
Test Case
--connect (con1,localhost,root,,test)
) ENGINE=MyISAM;
--disconnect con1
--connection default
Causes a crash or valgrind warnings (if it doesn't crash for you, try valgrind).
Crash on 10.0 (stack trace from revno 4418):
#3 <signal handler called>
#4 0x0000000000927c43 in Item_func_from_unixtime::get_date (this=0x7f865685e288, ltime=0x7f8660995290, fuzzy_date=0) at 10.0/sql/item_timefunc.cc:2000
#5 0x000000000087993a in Item::get_date_with_conversion (this=0x7f865685e288, ltime=0x7f8660995290, fuzzydate=0) at 10.0/sql/item.cc:252
#6 0x000000000092bbff in Item_func::get_arg0_date (this=0x7f865685e3e8, ltime=0x7f8660995290, fuzzy_date=0) at 10.0/sql/item_func.h:162
#7 0x00000000009279dc in Item_func_date_format::val_str (this=0x7f865685e3e8, str=0x7f865685e400) at 10.0/sql/item_timefunc.cc:1939
#8 0x0000000000888726 in Item::save_in_field (this=0x7f865685e3e8, field=0x7f865685e7e0, no_conversions=false) at 10.0/sql/item.cc:5985
#9 0x000000000075f323 in update_virtual_fields (thd=0x7f865972f070, table=0x7f86568a7c70, vcol_update_mode=VCOL_UPDATE_FOR_READ) at 10.0/sql/table.cc:6692
#10 0x000000000099b89f in rr_sequential (info=0x7f86609957b0) at 10.0/sql/records.cc:478
#11 0x0000000000743d8f in mysql_update (thd=0x7f865972f070, table_list=0x7f8656c14170, fields=..., values=..., conds=0x0, order_num=0, order=0x0, limit=18446744073709551615, handle_duplicates=DUP_ERROR, ignore=false, found_return=0x7f8660996288, updated_return=0x7f8660996280) at 10.0/sql/sql_update.cc:727
#12 0x000000000067d119 in mysql_execute_command (thd=0x7f865972f070) at 10.0/sql/sql_parse.cc:3303
#13 0x0000000000685837 in mysql_parse (thd=0x7f865972f070, rawbuf=0x7f8656c14088 "UPDATE t1 SET vcol = 1730019328", length=31, parser_state=0x7f8660996630) at 10.0/sql/sql_parse.cc:6415
#14 0x000000000067864c in dispatch_command (command=COM_QUERY, thd=0x7f865972f070, packet=0x7f865a7f6071 "UPDATE t1 SET vcol = 1730019328", packet_length=31) at 10.0/sql/sql_parse.cc:1307
#15 0x00000000006779f1 in do_command (thd=0x7f865972f070) at 10.0/sql/sql_parse.cc:1004
#16 0x0000000000794226 in do_handle_one_connection (thd_arg=0x7f865972f070) at 10.0/sql/sql_connect.cc:1379
#17 0x0000000000793f79 in handle_one_connection (arg=0x7f865972f070) at 10.0/sql/sql_connect.cc:1293
#18 0x0000000000cc9ece in pfs_spawn_thread (arg=0x7f8658b67bf0) at 10.0/storage/perfschema/pfs.cc:1860
#19 0x00007f8660582b50 in start_thread (arg=<optimized out>) at pthread_create.c:304
#20 0x00007f865ea7a20d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112