Bug #12226 | Insert delayed SQL stmt causes mysqld to crash if record already exists | ||
---|---|---|---|
Submitted: | 27 Jul 2005 20:49 | Modified: | 3 Aug 2005 15:47 |
Reporter: | Fred DeVries | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | 5.0.9/BK Source | OS: | Linux (linux suse 9.2 & Win2k Server) |
Assigned to: | Jim Winstead | CPU Architecture: | Any |
[27 Jul 2005 20:49]
Fred DeVries
[27 Jul 2005 21:22]
MySQL Verification Team
Thank you for the bug report. backtrace on Suse 9.3 50727 18:18:13 [Note] /home/miguel/dbs/5.0/libexec/mysqld: ready for connections. Version: '5.0.11-beta-debug' socket: '/tmp/mysql.sock' port: 3306 Source distribution [New Thread 1129634736 (LWP 10603)] [New Thread 1129835440 (LWP 10606)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1129835440 (LWP 10606)] 0x0823ed1f in write_record (thd=0x8e2f830, table=0x8e0a948, info=0x8e30cb8) at sql_insert.cc:1091 1091 thd->lex->current_select->no_error= 0; // Give error (gdb) backtrace full #0 0x0823ed1f in write_record (thd=0x8e2f830, table=0x8e0a948, info=0x8e30cb8) at sql_insert.cc:1091 error = 121 trg_error = 0 key = 0x0 _db_func_ = 0x4357ebb0 "�C�\b�C\001" _db_file_ = 0x8e30c0c "" _db_level_ = 139908302 _db_framep_ = (char **) 0x4357e288 #1 0x08240b4f in delayed_insert::handle_inserts (this=0x8e2f820) at sql_insert.cc:1909 error = 139907947 max_rows = 100 using_ignore = false using_bin_log = false row = (delayed_row *) 0x8e0b510 ---Type <return> to continue, or q <return> to quit--- _db_func_ = 0x856d38b "\203�020\213E\213]�U\211�203�b\203�fu\b�025�\203�020\213E\b\203x8" _db_file_ = 0x4357e358 "8�C\224\005$\b �b\207`\b�006" _db_level_ = 1075314880 _db_framep_ = (char **) 0x4357e338 #2 0x08240594 in handle_delayed_insert (arg=0x8e2f820) at sql_insert.cc:1772 di = (delayed_insert *) 0x8e2f820 thd = (class THD *) 0x8e2f830 _db_func_ = 0x0 _db_file_ = 0x0 _db_level_ = 0 _db_framep_ = (char **) 0x0 set = {__val = {0 <repeats 32 times>}} #3 0x4017eaa7 in start_thread () from /lib/tls/libpthread.so.0 No symbol table info available. ---Type <return> to continue, or q <return> to quit--- #4 0x402afc2e in clone () from /lib/tls/libc.so.6 No symbol table info available. (gdb)
[28 Jul 2005 21:44]
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/internals/27694
[1 Aug 2005 23:59]
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/internals/27782
[2 Aug 2005 0:08]
Jim Winstead
Fixed in 5.0.11.
[3 Aug 2005 15:47]
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 bugfix, yourself. More information about accessing the source trees is available at http://www.mysql.com/doc/en/Installing_source_tree.html Additional info: Documented fix in 5.0.11 changelog.