Bug #5411 | SQL Error 1030 / Error 124 during execution of sql statement | ||
---|---|---|---|
Submitted: | 4 Sep 2004 18:01 | Modified: | 26 Nov 2004 7:25 |
Reporter: | Helmut Leininger | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: MyISAM storage engine | Severity: | S3 (Non-critical) |
Version: | 5.0.1-alpha snapshot | OS: | Windows (Windows XP) |
Assigned to: | Ramil Kalimullin | CPU Architecture: | Any |
[4 Sep 2004 18:01]
Helmut Leininger
[6 Sep 2004 13:15]
MySQL Verification Team
Verified on the latest BK 5.0 tree. MySQL server crashes with the above SELECT. /var/MYSQL/vita-mysql-5.0/libexec/mysqld: ready for connections. Version: '5.0.2-alpha-debug-log' socket: '/var/MYSQL/vita-mysql-5.0/var/mysql.sock' port: 3503 [New Thread 163851 (LWP 7343)] mysqld: ha_myisam.cc:1113: int ha_myisam::index_first(byte *): Assertion `inited==INDEX' failed. Program received signal SIGABRT, Aborted. [Switching to Thread 163851 (LWP 7343)] 0x40254a21 in kill () from /lib/libc.so.6 (gdb) Quit (gdb) bt #0 0x40254a21 in kill () from /lib/libc.so.6 #1 0x40166051 in pthread_kill () from /lib/libpthread.so.0 #2 0x4016642b in raise () from /lib/libpthread.so.0 #3 0x402547b4 in raise () from /lib/libc.so.6 #4 0x40255c7d in abort () from /lib/libc.so.6 #5 0x4024ddef in __assert_fail () from /lib/libc.so.6 #6 0x081ee2f0 in ha_myisam::index_first (this=0x87a18d8, buf=0x87a1998 "?\202?\017?\005") at ha_myisam.cc:1113 #7 0x081ea47a in handler::read_range_first (this=0x87a18d8, start_key=0x0, end_key=0xbe5feff4, eq_range_arg=false, sorted=108) at handler.cc:1408 #8 0x081e0d66 in QUICK_RANGE_SELECT::get_next (this=0x879fb90) at opt_range.cc:5653 #9 0x081e4c9d in rr_quick (info=0x87a3f64) at records.cc:156 #10 0x081a4687 in join_init_read_record (tab=0x87a3f2c) at sql_select.cc:8231 #11 0x081a45a0 in join_init_quick_read_record (tab=0x87a3f2c) at sql_select.cc:8210 #12 0x081a368c in sub_select (join=0x87a2ad8, join_tab=0x87a3f2c, end_of_records=false) at sql_select.cc:7689 #13 0x081a37b2 in sub_select (join=0x87a2ad8, join_tab=0x87a3dd8, end_of_records=false) at sql_select.cc:7771 #14 0x081a3230 in do_select (join=0x87a2ad8, fields=0x0, table=0x879e6e8, procedure=0x0) at sql_select.cc:7469 #15 0x08195875 in JOIN::exec (this=0x87a2ad8) at sql_select.cc:1182 #16 0x08197604 in mysql_select (thd=0x878b4f8, rref_pointer_array=0x878b7e8, tables=0x879b6e0, wild_num=0, fields=@0x878b734, conds=0x879ba58, og_num=3, order=0x879bc08, group=0x879bb58, having=0x0, proc_param=0x0, select_options=8669696, result=0x879bcf0, unit=0x878b534, select_lex=0x878b6c8) at sql_select.cc:1968 #17 0x081932f4 in handle_select (thd=0x878b4f8, lex=0x878b528, result=0x879bcf0) at sql_select.cc:220 #18 0x0816b5aa in mysql_execute_command (thd=0x878b4f8) at sql_parse.cc:2040 #19 0x08171149 in mysql_parse (thd=0x878b4f8, inBuf=0x879a3b8 "select t.Datum, t.kmStand, t.kmStand - max(h.kmStand) as km, t.Betrag,\nround(t.Menge,1) as Liter,\nround(t.Menge * 100 / (t.kmStand - max(h.kmStand)), 1) as Verbrauch,\nround(t.Betrag * 100 / (t.kmStan"..., length=396) at sql_parse.cc:4475 #20 0x0816a362 in dispatch_command (command=COM_QUERY, thd=0x878b4f8, packet=0x8796359 "select t.Datum, t.kmStand, t.kmStand - max(h.kmStand) as km, t.Betrag,\nround(t.Menge,1) as Liter,\nround(t.Menge * 100 / (t.kmStand - max(h.kmStand)), 1) as Verbrauch,\nround(t.Betrag * 100 / (t.kmStan"..., packet_length=397) at sql_parse.cc:1515 #21 0x08169c6c in do_command (thd=0x878b4f8) at sql_parse.cc:1297 #22 0x081691dc in handle_one_connection (arg=0x878b4f8) at sql_parse.cc:1033 #23 0x4016314b in pthread_start_thread () from /lib/libpthread.so.0 #24 0x401631df in pthread_start_thread_event () from /lib/libpthread.so.0 #25 0x402df50a in clone () from /lib/libc.so.6
[26 Nov 2004 7:25]
Ramil Kalimullin
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: Hi Helmut! Just tried to reproduce the bug using the latest 5.0 tree. No luck. Probably it was fixed somehow. Thanks for the bug report.