Bug #32004 IN list select using DISTINCT
Submitted: 31 Oct 2007 20:09 Modified: 1 Dec 2007 10:17
Reporter: Bill McCaffrey Email Updates:
Status: No Feedback Impact on me:
None 
Category:MySQL Server: Parser Severity:S1 (Critical)
Version:5.0.45-log OS:Linux
Assigned to: CPU Architecture:Any

[31 Oct 2007 20:09] Bill McCaffrey
Description:
071031 12:54:38 - mysqld got signal 11;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
We will try our best to scrape up some info that will hopefully help diagnose
the problem, but since we have already crashed, something is definitely wrong
and this may fail.

key_buffer_size=268435456
read_buffer_size=1044480
max_used_connections=22
max_connections=1000
threads_connected=21
It is possible that mysqld could use up to 
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_connections = 2306136 K
bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

thd=0x439ac30
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...
Cannot determine thread, fp=0x45395128, backtrace may not be correct.
Stack range sanity check OK, backtrace follows:
(nil)
New value of fp=0x439ac30 failed sanity check, terminating stack trace!
Please read http://dev.mysql.com/doc/mysql/en/using-stack-trace.html and follow instructions on how to resolve the stack trace. Resolved
stack trace is much more helpful in diagnosing the problem, so please do 
resolve it
Trying to get some variables.
Some pointers may be invalid and cause the dump to abort...
thd->query at 0x43a53f0 = select * from tracking where uid in (select uid from tracking where pid=001040 group by uid having count(distinct returnstatus) > 1)
thd->thread_id=20
The manual page at http://www.mysql.com/doc/en/Crashing.html contains
information that should help you find out what is causing the crash.

How to repeat:
run query: "select * from tracking where uid in (select uid from tracking where pid=001040 group by uid having count(distinct returnstatus) > 1)"

no crash if "distinct" is removed, i.e. "select * from tracking where uid in (select uid from tracking where pid=001040 group by uid having count(returnstatus) > 1)"
[1 Nov 2007 10:17] Hartmut Holzgraefe
Could you add the SHOW CREATE TABLE statement
for the "tracking" table, too?
[2 Dec 2007 0:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".