Running RQG optimizer_no_subquery crashes MariaDB
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MariaDB |
Fix Released
|
High
|
Sergey Petrunia |
Bug Description
Running RQG optimizer_
How to repeat
* Get latest Random Query Generator from lp:randgen
* Get latest MariaDB from lp:maria
I tested with revno: 2818, timestamp: Wed 2010-02-17 21:10:02 +0100
* Compile MariaDB with BUILD/compile-
* Run the RQG test like
perl runall.pl \
--basedir=
--engine=InnoDB \
--grammar=
--queries=
--threads=1 \
--duration=86400
Stack trace on Linux:
thd: 0x7fd9489089f0
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
stack_bottom = 0x7fd937a22100 thread_stack 0x48000
/home/hakan/
/home/hakan/
/lib64/
/home/hakan/
/home/hakan/
/home/hakan/
/home/hakan/
/home/hakan/
/home/hakan/
/home/hakan/
/home/hakan/
/home/hakan/
/home/hakan/
/home/hakan/
/home/hakan/
/home/hakan/
/lib64/
/lib64/
Stack trace on Mac OS X:
0 mysqld 0x00000001004f7829 my_print_stacktrace + 57
1 mysqld 0x00000001000f24c2 handle_segfault + 802
2 libSystem.B.dylib 0x00007fff86eaaeaa _sigtramp + 26
3 ??? 0x0000000000000001 0x0 + 1
4 mysqld 0x0000000100288b1a _ZL21check_
5 mysqld 0x00000001002894b4 _ZL25eliminate_
6 mysqld 0x0000000100171fd1 _ZL20make_
7 mysqld 0x0000000100173e3e _ZN4JOIN8optimizeEv + 1374
8 mysqld 0x000000010017da54 _Z12mysql_
9 mysqld 0x000000010017e572 _Z13handle_
10 mysqld 0x0000000100100383 _ZL21execute_
11 mysqld 0x00000001001062d5 _Z21mysql_
12 mysqld 0x000000010010b048 _Z11mysql_
13 mysqld 0x000000010010bbe1 _Z16dispatch_
14 mysqld 0x000000010010c813 _Z10do_commandP3THD + 243
15 mysqld 0x00000001000fcdae handle_
16 libSystem.B.dylib 0x00007fff86e83f8e _pthread_start + 331
17 libSystem.B.dylib 0x00007fff86e83e41 thread_start + 13
Changed in maria: | |
importance: | Undecided → High |
Changed in maria: | |
status: | In Progress → Fix Committed |
Hakan,
IMHO, it does not make sense to report such bugs for the following reasons:
1. there are zillions of edge cases where the server crashes.
2. we, in MariaDB development, cannot afford ourselves spending time to
extract test cases for these crashes.
3. reporting a bag as a MariaDB bug when it's actually a bug of the
mainline MySQL code does not look right.
Regards,
Hakan Küçükyılmaz wrote: no_subquery crashes MariaDB. The crash happens on amd64-max ${HOME} /work/monty_ program/ maria \ conf/optimizer_ no_subquery. yy \ work/monty_ program/ maria/sql/ mysqld( my_print_ stacktrace+ 0x35)[0x9e9cb5] work/monty_ program/ maria/sql/ mysqld( handle_ segfault+ 0x331)[ 0x618981] libpthread. so.0[0x7fd95b63 0a90] work/monty_ program/ maria/sql/ mysqld[ 0x79a5d2] work/monty_ program/ maria/sql/ mysqld[ 0x79ad69] work/monty_ program/ maria/sql/ mysqld[ 0x79b07b] work/monty_ program/ maria/sql/ mysqld[ 0x68a79a] work/monty_ program/ maria/sql/ mysqld( _ZN4JOIN8optimi zeEv+0x56b) [0x68c95b] work/monty_ program/ maria/sql/ mysqld( _Z12mysql_ selectP3THDPPP4 ItemP10TABLE_ LISTjR4ListIS1_ ES2_jP8st_ orderSB_ S2_SB_yP13selec t_resultP18st_ select_ lex_unitP13st_ select_ lex+0x94) [0x6950f4] work/monty_ program/ maria/sql/ mysqld( _Z13handle_ selectP3THDP6st _lexP13select_ resultm+ 0x171)[ 0x695c01] work/monty_ program/ maria/sql/ mysqld[ 0x626559] work/monty_ program/ maria/sql/ mysqld( _Z21mysql_ execute_ commandP3THD+ 0x1da0) [0x62b000] work/monty_ program/ maria/sql/ mysqld( _Z11mysql_ parseP3THDPKcjP S2_+0x3b1) [0x62ee91] work/monty_ program/ maria/sql/ mysqld( _Z16dispatch_ command19enum_ server_ commandP3THDPcj +0xe59) [0x62fcf9] work/monty_ program/ maria/sql/ mysqld( _Z10do_ commandP3THD+ 0xee)[0x63056e] work/monty_ program/ maria/sql/ mysqld( handle_ one_connection+ 0x1b9)[ 0x6221c9] libpthread. so.0[0x7fd95b62 9070] libc.so. 6(clone+ 0x6d)[0x7fd95a6 cf11d]
> Public bug reported:
>
> Running RQG optimizer_
> Linux 64-bit and Mac OS X Intel 64-bit. However, the crash does not
> happen with MySQL sources on the same machines with the same compile
> script. I attached the full stack trace from a Linux run.
>
> How to repeat
>
> * Get latest Random Query Generator from lp:randgen
> * Get latest MariaDB from lp:maria
> I tested with revno: 2818, timestamp: Wed 2010-02-17 21:10:02 +0100
> * Compile MariaDB with BUILD/compile-
> * Run the RQG test like
>
> perl runall.pl \
> --basedir=
> --engine=InnoDB \
> --grammar=
> --queries=100000000 \
> --threads=1 \
> --duration=86400
>
> Stack trace on Linux:
> thd: 0x7fd9489089f0
> Attempting backtrace. You can use the following information to find out
> where mysqld died. If you see no messages after this, something went
> terribly wrong...
> stack_bottom = 0x7fd937a22100 thread_stack 0x48000
> /home/hakan/
> /home/hakan/
> /lib64/
> /home/hakan/
> /home/hakan/
> /home/hakan/
> /home/hakan/
> /home/hakan/
> /home/hakan/
> /home/hakan/
> /home/hakan/
> /home/hakan/
> /home/hakan/
> /home/hakan/
> /home/hakan/
> /home/hakan/
> /lib64/
> /lib64/
>
> Stack trace on Mac OS X:
> 0 mysqld 0x00000001004f7829 my_print_stacktrace + 57
> 1 mysqld 0x00000001000f24c2 handle_segfault + 802
> 2 libSystem.B.dylib 0x00007fff86eaaeaa _sigtramp + 26
> 3 ??...