Bug #25522 | Update with IN syntax Cluster table + Trigger leads to mysqld segfault | ||
---|---|---|---|
Submitted: | 10 Jan 2007 14:04 | Modified: | 8 Feb 2007 6:26 |
Reporter: | Stefan Pasel | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Cluster: Cluster (NDB) storage engine | Severity: | S2 (Serious) |
Version: | 5.0.30-max | OS: | 2.6.18-1.2257.fc5 x86_64 |
Assigned to: | Martin Skold | CPU Architecture: | Any |
Tags: | cluster, crash, segfault, trigger |
[10 Jan 2007 14:04]
Stefan Pasel
[10 Jan 2007 15:22]
Axel Schwenke
Verified as described with 5.0.34bk on Linux/x86_64 (Debian Sarge). Here is the stack trace from the crashed mysqld: #0 0x00002aaaaaee9139 in pthread_kill () from /lib/libpthread.so.0 #1 0x00000000007672aa in write_core (sig=6) at stacktrace.c:244 #2 0x00000000005fc3a8 in handle_segfault (sig=6) at mysqld.cc:2135 #3 <signal handler called> #4 0x00002aaaab3f4545 in raise () from /lib/libc.so.6 #5 0x00002aaaab3f5cce in abort () from /lib/libc.so.6 #6 0x00002aaaab3ee362 in __assert_fail () from /lib/libc.so.6 #7 0x0000000000710611 in ha_ndbcluster::setup_recattr (this=0x15fc108, curr=0x0) at ha_ndbcluster.cc:6562 #8 0x00000000007104bd in ha_ndbcluster::read_multi_range_next ( this=0x15fc108, multi_range_found_p=0x4390def8) at ha_ndbcluster.cc:6538 #9 0x00000000006d6087 in QUICK_RANGE_SELECT::get_next (this=0x15e06e0) at opt_range.cc:6686 #10 0x00000000006e07c8 in rr_quick (info=0x4390e160) at records.cc:224 #11 0x000000000068e02d in mysql_update (thd=0x15990b8, table_list=0x15d86b8, fields=@0x1599670, values=@0x1599a18, conds=0x15d8f30, order_num=0, order=0x0, limit=18446744073709551614, handle_duplicates=DUP_ERROR, ignore=false) at sql_update.cc:445 #12 0x00000000006183a4 in mysql_execute_command (thd=0x15990b8) at sql_parse.cc:3312 #13 0x000000000061e977 in mysql_parse (thd=0x15990b8, inBuf=0x15d85f8 "UPDATE t1 SET var2 = 9 WHERE var1 IN(1,2,3)", length=43) at sql_parse.cc:5832
[31 Jan 2007 21:38]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/19135 ChangeSet@1.2295, 2007-01-31 22:38:06+01:00, mskold@mysql.com +3 -0 Bug #25522 Update with IN syntax Clustertable + Trigger leads to mysqld segfault: in start_stmt, only change query_state if starting a new transactions, in read_multi_range_next, change query state when end is reached
[1 Feb 2007 8:49]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/19162 ChangeSet@1.2296, 2007-02-01 09:48:45+01:00, mskold@mysql.com +1 -0 Bug #25522 Update with IN syntax Clustertable + Trigger leads to mysqld segfault: moved back assignment
[7 Feb 2007 16:54]
Tomas Ulin
pushed to 5.1.16
[7 Feb 2007 23:53]
Tomas Ulin
pushed to 5.0.36
[8 Feb 2007 6:26]
Jon Stephens
Thank you for your bug report. This issue has been committed to our source repository of that product and will be incorporated into the next release. If necessary, you can access the source repository and build the latest available version, including the bug fix. More information about accessing the source trees is available at http://dev.mysql.com/doc/en/installing-source.html Documented bugfix in 5.0.36 and 5.1.16 changelogs.