mysqld got signal 11; (CRASH max-3.23.51) What do I need to do to clean up?

2003-03-21 Thread Joe Smith
Had my first mysqld crash today after a solid 4 month uptime.The details
are below.

The DB restarted, and I haven't been able to detect any corruption.  Is
there anything I should be running to ensure the integrity of the Innodb
databases?

Running:  mysql-max-3.23.51, Innodb databases, Dual Intel 933s  2 Gigs ram 2
gigs swap

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=402649088
record_buffer=2093056
sort_buffer=2097144
max_used_connections=263
max_connections=500
threads_connected=31
It is possible that mysqld could use up to
key_buffer_size + (record_buffer + sort_buffer)*max_connections = 2439208 K
bytes of memory
Hope that's ok, if not, decrease some variables in the equation

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 range sanity check OK, backtrace follows:
0x806bb15
0x82c1328
0x82c28c3
0x82bfb44
0x80cbb40
0x8073a4d
0x80753c8
0x8071324
0x80707f7
Stack trace seems successful - bottom reached
Please read http://www.mysql.com/doc/U/s/Using_stack_trace.html and follow
instr
uctions 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 0x6a856288  is invalid pointer
thd-thread_id=42019698

Successfully dumped variables, if you ran with --log, take a look at the
details of what thread 42019698 did to cause the crash.  In some cases of
really
bad corruption, the values shown above may be invalid

The manual page at http://www.mysql.com/doc/C/r/Crashing.html contains
information that should help you find out what is causing the crash

Number of processes running now: 0



 /prod/mysql-max-3.23.51-log/bin/resolve_stack_dump -s mysqld.sym  -n
stack.trace
 0x806bb15 handle_segfault__Fi + 425
 0x82c1328 pthread_sighandler + 184
 0x82c28c3 __pthread_unlock + 147
 0x82bfb44 pthread_mutex_unlock + 164
 0x80cbb40 mysqld_list_processes__FP3THDPCcb + 1780
 0x8073a4d mysql_execute_command__Fv + 7161
 0x80753c8 mysql_parse__FP3THDPcUi + 72
 0x8071324 do_command__FP3THD + 1316
 0x80707f7 handle_one_connection__FPv + 659


Is this a known issue?  I'm guessing I should upgrade to mysql-4.12 now...

Thanks!

Joe

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php



Innodb querry optimizer suddenly making TERRIBLE choices? Urgent, Please help!

2002-12-22 Thread Joe Smith
I'm in a bit of a tough spot --   My innodb table of WebActionLogs (which
has 1 million rows spread out over the last year and a half) has suddenly
stopped using 'TimeInitiated' to select only the last 24 hours of data
(usually less than 7,500 rows), and now wants to copy all 1 million rows to
a temporary table no matter what I do!I tried adding a 'USE INDEX
(TimeInitiated_ind)',  it STILL does the longest possible query by copying
everything to a temporary table first.

Suddenly hundreds of queries that were working fine yesterday and ran under
0.1 seconds are taking 40 to 50 seconds and ending up in the slow query log.
This has been working fine for months.

Is there a way to FORCE innodb to use the index whethere it thinks it's
faster or not?  I know it will be 400x faster if it does but USE INDEX
apparently has no effect.

I ran a 'check table WebActionLogs' which sait it was OK.   I had a similar
problem when this table was Myisam that was fixed by 'Analyze'ing it but
that's not an available option for Innodb.

mysql explain SELECT DISTINCT UserName FROM WebActionLogs
USE INDEX (TimeInitiated_ind)
WHERE TimeInitiated  NOW() - INTERVAL 24 HOUR
AND TimeInitiated  NOW() + INTERVAL 300 SECOND
AND Id = 'xx.xx.44.17_3338_1039529682539_1248';
+--+---+---+--+-+--+
-++
| table| type  | possible_keys | key  | key_len | ref  |
rows| Extra  |
+--+---+---+--+-+--+
-++
| WebActionLogs| index | TimeInitiated_ind | UserName_idx |  31 | NULL |
1026114 | where used |

If I remove the DISTINCT, no index is used!!!

mysql explain SELECT UserTelephoneNumber FROM CallMeBackLogs
- USE INDEX (TimeInitiated_ind)
- WHERE TimeInitiated  NOW() - INTERVAL 24 HOUR
- AND TimeInitiated  NOW() + INTERVAL 300 SECOND
- AND Guid = 'xx.xx.44.17_3338_1039529682539_1248';
+--+--+---+--+-+--+-
++
| table| type | possible_keys | key  | key_len | ref  | rows
| Extra  |
+--+--+---+--+-+--+-
++
| WebActionLogs| ALL  | TimeInitiated_ind | NULL |NULL | NULL | 1081857
| where used |

+-+
| VERSION()   |
+-+
| 3.23.51-log |
+-+

Thanks in advance for any clues!

Joe

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php