Bug #13629 view.test crashes in -max-debug build
Submitted: 30 Sep 2005 3:00 Modified: 30 Sep 2005 18:40
Reporter: Sergey Petrunya Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Views Severity:S3 (Non-critical)
Version:5.0-bk OS:
Assigned to: Dmitry Lenev CPU Architecture:Any

[30 Sep 2005 3:00] Sergey Petrunya
Description:
view.test crashes in 5.0 compiled with BUILD/compile-pentium-debug-max.

Program received signal SIGSEGV, Segmentation fault.
0x08336cca in st_select_lex_unit::cleanup (this=0x8f8f8f8f) at sql_union.cc:589
  
(gdb) p this
  $3 = (class st_select_lex_unit * const) 0x8f8f8f8f
  
(gdb) where
  #0  0x08336cca in st_select_lex_unit::cleanup (this=0x8f8f8f8f) at sql_union.cc:589
  #1  0x08337100 in st_select_lex::cleanup (this=0x8e90c64) at sql_union.cc:718
  #2  0x08336da5 in st_select_lex_unit::cleanup (this=0x8e90a50) at sql_union.cc:605
  #3  0x081ff3de in mysql_parse (thd=0x8e90a00, inBuf=0x8ebf260 "rename table v1 to v2", length=21) at sql_parse.cc:5511
  #4  0x081f47c5 in dispatch_command (command=COM_QUERY, thd=0x8e90a00, packet=0x8eb3419 "", packet_length=22) at sql_parse.cc:1685
  #5  0x081f3fb2 in do_command (thd=0x8e90a00) at sql_parse.cc:1486
  #6  0x081f308f in handle_one_connection (arg=0x8e90a00) at sql_parse.cc:1137
  #7  0xb7e2813d in pthread_start_thread () from /lib/libpthread.so.0
  #8  0xb7e282e2 in pthread_start_thread_event () from /lib/libpthread.so.0
  #9  0xb7d5a07a in clone () from /lib/libc.so.6

I've tested with tip changesets:
ChangeSet@1.2025, 2005-09-30 01:38:04+04:00, sergefp@mysql.com
  Merge spetrunia@bk-internal.mysql.com:/home/bk/mysql-5.0
  into mysql.com:/home/psergey/mysql-5.0-bug13455

ChangeSet@1.2012.1.1, 2005-09-29 13:45:39-07:00, patg@krsna.patg.net
  New flags for new max-no-ndb build script to get a build that has 
  everything except NDB

How to repeat:
Get 5.0, compile with BUILD/compile-pentium-debug-max.
Run ./mysql-test-run t/view.test.
[30 Sep 2005 3:01] Sergey Petrunya
Doesn't crash for me when compiled with compile-pentium-debug, crashes only in -max builds.
[30 Sep 2005 10:33] Dmitry Lenev
I was able to repeat this crash even with ordinary debug builds, but only when using LinuxThreads threading library.
[30 Sep 2005 18:40] Dmitry Lenev
Fixed in version 5.0.14 (fix was pushed into build clone). Since the problem was introduced in the same version no ChangeLog note is needed.