Bug #37093 | mysqld got signal 11 when slave sql_thread reads certain relay log entries | ||
---|---|---|---|
Submitted: | 30 May 2008 8:11 | Modified: | 11 Jun 2008 12:08 |
Reporter: | Rickard Gunnarsson | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | MySQL Server: Replication | Severity: | S1 (Critical) |
Version: | 5.1.24 | OS: | Linux (Ubuntu Server 6.06) |
Assigned to: | CPU Architecture: | Any |
[30 May 2008 8:11]
Rickard Gunnarsson
[31 May 2008 17:32]
Sveta Smirnova
Thank you for the report. Please provide us your relay and/or binary log file[s].
[2 Jun 2008 7:33]
Rickard Gunnarsson
I found out that what's causing this behavior is when there's a trigger on the table being updated. Removing the trigger completely will make this problem disappear. Trying drop trigger and re-create the trigger doesn't solve the problem.
[2 Jun 2008 13:02]
Sveta Smirnova
Thank you for the report. Could you please provide definition of trigger?
[2 Jun 2008 14:10]
Rickard Gunnarsson
CREATE TRIGGER timediff AFTER INSERT ON tbl_week_ticks FOR EACH ROW BEGIN IF ABS((unix_timestamp(now())-unix_timestamp(NEW.dt_timestamp))) > 20 THEN INSERT INTO tbl_delayed_ticks SET i_id=NEW.i_id, i_timediff=(unix_timestamp(now())-unix_timestamp(NEW.dt_timestamp)); END IF; END;
[2 Jun 2008 16:48]
Sveta Smirnova
Thank you for the feedback. Please provide output of SHOW CREATE TABLE tbl_delayed_ticks also.
[2 Jun 2008 18:35]
Rickard Gunnarsson
mysql> show create table tbl_delayed_ticks\G *************************** 1. row *************************** Table: tbl_delayed_ticks Create Table: CREATE TABLE `tbl_delayed_ticks` ( `i_id` int(10) unsigned NOT NULL DEFAULT '0', `i_timediff` int(11) DEFAULT '0', PRIMARY KEY (`i_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 1 row in set (0.00 sec)
[3 Jun 2008 19:09]
Sveta Smirnova
Thank you for the feedback. I can not repeat the problem in test environment. Please provide configuration file also and describe your hardware (CPU, RAM).
[5 Jun 2008 12:46]
Rickard Gunnarsson
This is the my.cnf file, and the output of uname -a, cat /proc/cpuinfo and cat /proc/meminfo. Please let me know if there's anything else you need. [client] port = 3306 socket = /var/run/mysqld/mysqld.sock [mysqld_safe] socket = /var/run/mysqld/mysqld.sock nice = 0 user = mysql pid-file = /var/run/mysqld/mysqld.pid socket = /var/run/mysqld/mysqld.sock port = 3306 basedir = /usr/local/mysql datadir = /var/lib/mysql tmpdir = /tmp language = /usr/share/mysql/english skip-external-locking old_passwords = 1 key_buffer = 16M max_allowed_packet = 16M thread_stack = 128K max_connections = 200 query_cache_limit = 1048576 query_cache_size = 16777216 query_cache_type = 1 server-id = 1 log-bin = mysql-bin expire-logs-days = 7 binlog-do-db = db_admin binlog-do-db = db_ticks auto_increment_increment = 2 auto_increment_offset = 1 report-host=x.y.z.w innodb_buffer_pool_size=500M [mysqldump] quick quote-names max_allowed_packet = 16M [mysql] [isamchk] key_buffer = 16M root@xxxxxxxx:~# cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 15 model name : Intel(R) Core(TM)2 CPU 6320 @ 1.86GHz stepping : 6 cpu MHz : 1862.063 cache size : 4096 KB physical id : 0 siblings : 1 core id : 255 cpu cores : 1 fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 10 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm pni monitor ds_cpl vmx est tm2 cx16 xtpr lahf_lm bogomips : 3727.73 processor : 1 vendor_id : GenuineIntel cpu family : 6 model : 15 model name : Intel(R) Core(TM)2 CPU 6320 @ 1.86GHz stepping : 6 cpu MHz : 1862.063 cache size : 4096 KB physical id : 1 siblings : 1 core id : 255 cpu cores : 1 fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 10 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm pni monitor ds_cpl vmx est tm2 cx16 xtpr lahf_lm bogomips : 3724.07 root@xxxxxxx:~# uname -a Linux xxxxxx 2.6.15-26-server #1 SMP Fri Sep 8 21:00:37 UTC 2006 i686 GNU/Linux root@xxxxxxxx:~# cat /proc/meminfo MemTotal: 2074944 kB MemFree: 101020 kB Buffers: 74848 kB Cached: 1209832 kB SwapCached: 1200 kB Active: 877900 kB Inactive: 1039192 kB HighTotal: 1178496 kB HighFree: 18952 kB LowTotal: 896448 kB LowFree: 82068 kB SwapTotal: 5960072 kB SwapFree: 5950148 kB Dirty: 1836 kB Writeback: 4 kB Mapped: 641364 kB Slab: 42864 kB CommitLimit: 6997544 kB Committed_AS: 791364 kB PageTables: 2184 kB VmallocTotal: 118776 kB VmallocUsed: 5392 kB VmallocChunk: 112796 kB
[10 Jun 2008 14:34]
MySQL Verification Team
i tried to repeat a crash, and also failed to do so. now, suspect this bug may be caused by the fix for bug #33029 just guess it's this code crashing: function THD::reset_sub_statement_state if (rpl_master_erroneous_autoinc(this)) { backup->auto_inc_intervals_forced= auto_inc_intervals_forced; auto_inc_intervals_forced.empty(); <---- this }
[10 Jun 2008 14:50]
MySQL Verification Team
btw, i just opened bug #37311 while i was trying to reproduce this crash.
[11 Jun 2008 5:18]
MySQL Verification Team
looks like bug #36443
[11 Jun 2008 12:08]
MySQL Verification Team
marking as a duplicate of bug #36443