Hi!

At run of a script there is an error and the server falls. The script, 
the log file and my configuration follow.



Client output:
#mysql -p USTAT < test.sql
Password:
ERROR 2013 at line 22: Lost connection to MySQL server during query

-------------------------- begin script --------------------------
drop table if exists CARDS;
create table CARDS (
     NUM       SMALLINT     unsigned not null,
     FIRM      VARCHAR(132)          not null default '',
     NAME      VARCHAR(80)           not null default '',
     CEMAIL    VARCHAR(80)           not null default '',
     NOTES     VARCHAR(255)          not null default '',
     primary key (NUM)
) TYPE = InnoDB;

drop table if exists DOMAINS;
create table DOMAINS
(
     ID        MEDIUMINT    unsigned not null,
     NUM       SMALLINT     unsigned not null, index DOMAINS_NUM (NUM),
     DOMAIN    VARCHAR(80)           not null,
     foreign key (NUM) references CARDS(NUM),
     primary key (ID)
) TYPE = InnoDB;

drop table if exists LOGINS;
create table LOGINS
(
     ID        MEDIUMINT    unsigned not null,
     NUM       SMALLINT     unsigned not null, index LOGINS_NUM(NUM),
     LOGIN     CHAR(33)              not null, index LOGINS_LOGIN(LOGIN),
     MAXSES    TINYINT      unsigned not null default 0,
     MAXDAY    MEDIUMINT    unsigned not null default 0,
     MAXWEEK   MEDIUMINT    unsigned not null default 0,
     MAXMON    MEDIUMINT    unsigned not null default 0,
     MAXTOTAL  INT          unsigned not null default 0,
     foreign key (NUM) references CARDS(NUM),
     primary key (ID)
) TYPE = InnoDB;
-------------------------- end script --------------------------

-------------------------- begin error log --------------------------
011214 14:28:38  mysqld restarted
011214 14:28:39  InnoDB: Started
/usr/libexec/mysqld: ready for connections
InnoDB: Assertion failure in thread 12299 in file dict0crea.c line 1237
InnoDB: We intentionally generate a memory trap.
InnoDB: Send a detailed bug report to [EMAIL PROTECTED]
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 agaist 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=16773120
record_buffer=131072
sort_buffer=524280
max_used_connections=1
max_connections=100
threads_connected=2
It is possible that mysqld could use up to
key_buffer_size + (record_buffer + sort_buffer)*max_connections = 80379 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:
0x80b5694
0x40039eb4
0x8125c77
0x8128c8e
0x8139ffb
0x80ff8a2
0x80fa33d
0x80efb02
0x81043a0
0x80bc7dc
0x80bffd0
0x80bb3d1
0x80ba7d7
Stack trace seems successful - bottom reached
Please read http://www.mysql.com/doc/U/s/Using_stack_trace.html and 
follow instrstack 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 0x835c168 = create table LOGINS
(
     ID        MEDIUMINT    unsigned not null,
     NUM       SMALLINT     unsigned not null, index LOGINS_NUM (NUM),
     LOGIN     CHAR(33)              not null, index LOGINS_LOGIN (LOGIN),
     MAXSES    TINYINT      unsigned not null default 0,
     MAXDAY    MEDIUMINT    unsigned not null default 0,
     MAXWEEK   MEDIUMINT    unsigned not null default 0,
     MAXMON    MEDIUMINT    unsigned not null default 0,
     MAXTOTAL  INT          unsigned not null default 0,
     foreign key (NUM) references CARDS(NUM),
     primary key (ID)
) TYPE = InnoDB
thd->thread_id=4

Successfully dumped variables, if you ran with --log, take a look at the
details of what thread 4 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
011214 14:45:23  mysqld restarted
InnoDB: Database was not shut down normally.
InnoDB: Starting recovery from log files...
InnoDB: Starting log scan based on checkpoint at
InnoDB: log sequence number 0 193409
InnoDB: Doing recovery: scanned up to log sequence number 0 198497
InnoDB: Starting an apply batch of log records to the database...
InnoDB: Apply batch completed
011214 14:45:23  InnoDB: Started
/usr/libexec/mysqld: ready for connections
-------------------------- end error log --------------------------

-------------------------- begin my.cfn  --------------------------
[mysqld]
port            = 3306
socket          = /var/run/mysql/mysql.sock
skip-locking
set-variable    = key_buffer=16M
set-variable    = max_allowed_packet=1M
set-variable    = table_cache=64
set-variable    = sort_buffer=512K
set-variable    = net_buffer_length=8K
set-variable    = myisam_sort_buffer_size=8M
log-bin
server-id       = 1

innodb_data_file_path = ibdata1:200M
innodb_data_home_dir = /home/mysql/
innodb_log_group_home_dir = /home/mysql/
innodb_log_arch_dir = /home/mysql/
set-variable = innodb_mirrored_log_groups=1
set-variable = innodb_log_files_in_group=3
set-variable = innodb_log_file_size=5M
set-variable = innodb_log_buffer_size=8M
innodb_flush_log_at_trx_commit=1
innodb_log_archive=0
set-variable = innodb_buffer_pool_size=16M
set-variable = innodb_additional_mem_pool_size=2M
set-variable = innodb_file_io_threads=4
set-variable = innodb_lock_wait_timeout=50
-------------------------- end my.cfn --------------------------

My system info:
Computer Pentium III/550 RAM:512
Slackware linux 8.0 (glibc 2.2.3, kernel 2.4.10)
MySQL 3.23.46 compilled from source

./configure --prefix=/usr \
     --with-mysqld-user=mysql \
     --with-unix-socket-path=/var/run/mysql/mysql.sock \
     --localstatedir=/var/lib/mysql \
     --with-pthread \
     --enable-thread-safe-client \
     --enable-assembler \
     --with-libwrap \
     --with-innodb \
     --without-bench \
     --with-charset=koi8_ukr \
     --with-extra-charsets=latin1,koi8_ru \
     i686-slackware-linux

GCC gcc version 2.95.3 20010315 (release)

---
                Good luck.      Dmitry Semenov.




---------------------------------------------------------------------
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

Reply via email to