ddb@db-51:~/wy/mysql-dbg$ bin/mysql_install_db --defaults-file=my.cnf Installing MySQL system tables... 100612 11:39:39 [Warning] '--default-character-set' is deprecated and will be removed in a future release. Please use '--character-set-server' instead. Warning: Not freed memory segments: 1 Warning: Memory that was not free'ed (512 bytes): 512 bytes at 0x11bb4a8, allocated at line 42 in 'rpl_tblmap.cc' Maximum memory usage: 9932036 bytes (9700k) *** glibc detected *** /home/ddb/wy/mysql-dbg//libexec/mysqld: corrupted double-linked list: 0x00000000011906b0 *** ======= Backtrace: ========= /lib/libc.so.6[0x2b22d2353928] /lib/libc.so.6[0x2b22d2355868] /lib/libc.so.6(cfree+0x76)[0x2b22d2355a36] /lib/libc.so.6(fclose+0x151)[0x2b22d2343d81] /home/ddb/wy/mysql-dbg//libexec/mysqld[0xb31293] /home/ddb/wy/mysql-dbg//libexec/mysqld[0xb30abb] /home/ddb/wy/mysql-dbg//libexec/mysqld(_db_end_+0x15a)[0xb30c55] /home/ddb/wy/mysql-dbg//libexec/mysqld(my_end+0x34f)[0xafb12c] /home/ddb/wy/mysql-dbg//libexec/mysqld(unireg_abort+0xe4)[0x6beac0] /home/ddb/wy/mysql-dbg//libexec/mysqld(main+0x460)[0x6c11d5] /lib/libc.so.6(__libc_start_main+0xe6)[0x2b22d22fe1a6] /home/ddb/wy/mysql-dbg//libexec/mysqld[0x5c4d99] ======= Memory map: ======== 00400000-00e28000 r-xp 00000000 08:11 726974630 /mnt/ddb/1/wy/mysql-dbg/libexec/mysqld 01027000-0116a000 rw-p 00a27000 08:11 726974630 /mnt/ddb/1/wy/mysql-dbg/libexec/mysqld 0116a000-01210000 rw-p 0116a000 00:00 0 [heap] 40000000-40001000 ---p 40000000 00:00 0 40001000-40801000 rw-p 40001000 00:00 0 40801000-40802000 ---p 40801000 00:00 0 40802000-40842000 rw-p 40802000 00:00 0 40842000-40843000 ---p 40842000 00:00 0 40843000-40883000 rw-p 40843000 00:00 0 2aaaaaaab000-2aaaaaaac000 rw-p 2aaaaaaab000 00:00 0 2aaaaaaba000-2aaaaaad0000 r-xp 00000000 08:01 223114 /lib/libgcc_s.so.1 2aaaaaad0000-2aaaaacd0000 ---p 00016000 08:01 223114 /lib/libgcc_s.so.1 2aaaaacd0000-2aaaaacd1000 rw-p 00016000 08:01 223114 /lib/libgcc_s.so.1 2b22d13b8000-2b22d13d4000 r-xp 00000000 08:01 223361 /lib/ld-2.7.so 2b22d13d4000-2b22d13d7000 rw-p 2b22d13d4000 00:00 0 2b22d15d3000-2b22d15d5000 rw-p 0001b000 08:01 223361 /lib/ld-2.7.so 2b22d15d5000-2b22d15eb000 r-xp 00000000 08:01 223370 /lib/libpthread-2.7.so 2b22d15eb000-2b22d17eb000 ---p 00016000 08:01 223370 /lib/libpthread-2.7.so 2b22d17eb000-2b22d17ed000 rw-p 00016000 08:01 223370 /lib/libpthread-2.7.so 2b22d17ed000-2b22d17f1000 rw-p 2b22d17ed000 00:00 0 2b22d17f1000-2b22d1807000 r-xp 00000000 08:01 177601 /usr/lib/libz.so.1.2.3.3 2b22d1807000-2b22d1a07000 ---p 00016000 08:01 177601 /usr/lib/libz.so.1.2.3.3 2b22d1a07000-2b22d1a08000 rw-p 00016000 08:01 177601 /usr/lib/libz.so.1.2.3.3 2b22d1a08000-2b22d1a0a000 r-xp 00000000 08:01 223359 /lib/libdl-2.7.so 2b22d1a0a000-2b22d1c0a000 ---p 00002000 08:01 223359 /lib/libdl-2.7.so 2b22d1c0a000-2b22d1c0c000 rw-p 00002000 08:01 223359 /lib/libdl-2.7.so 2b22d1c0c000-2b22d1c14000 r-xp 00000000 08:01 223365 /lib/libcrypt-2.7.so 2b22d1c14000-2b22d1e14000 ---p 00008000 08:01 223365 /lib/libcrypt-2.7.so 2b22d1e14000-2b22d1e16000 rw-p 00008000 08:01 223365 /lib/libcrypt-2.7.so 2b22d1e16000-2b22d1e45000 rw-p 2b22d1e16000 00:00 0 2b22d1e45000-2b22d1e5a000 r-xp 00000000 08:01 223366 /lib/libnsl-2.7.so 2b22d1e5a000-2b22d2059000 ---p 00015000 08:01 223366 /lib/libnsl-2.7.so 2b22d2059000-2b22d205b000 rw-p 00014000 08:01 223366 /lib/libnsl-2.7.so 2b22d205b000-2b22d205d000 rw-p 2b22d205b000 00:00 0 2b22d205d000-2b22d20df000 r-xp 00000000 08:01 223372 /lib/libm-2.7.so 2b22d20df000-2b22d22de000 ---p 00082000 08:01 223372 /lib/libm-2.7.so 2b22d22de000-2b22d22e0000 rw-p 00081000 08:01 223372 /lib/libm-2.7.so 2b22d22e0000-2b22d242a000 r-xp 00000000 08:01 223367 /lib/libc-2.7.so 2b22d242a000-2b22d2629000 ---p 0014a000 08:01 223367 /lib/libc-2.7.so 2b22d2629000-2b22d262c000 r--p 00149000 08:01 223367 /lib/libc-2.7.so 2b22d262c000-2b22d262e000 rw-p 0014c000 08:01 223367 /lib/libc-2.7.so 2b22d262e000-2b22d2635000 rw-p 2b22d262e000 00:00 0 7fff5f83c000-7fff5f852000 rw-p 7fff5f83c000 00:00 0 [stack] ffffffffff600000-ffffffffffe00000 ---p 00000000 00:00 0 [vdso] 100612 11:39:40 - mysqld got signal 6 ; 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=10344644715844964239 read_buffer_size=131072 max_used_connections=0 max_threads=151 threads_connected=0 It is possible that mysqld could use up to key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 10102192105647488 K bytes of memory Hope that's ok; if not, decrease some variables in the equation. thd: 0x0 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 = (nil) thread_stack 0x40000 /home/ddb/wy/mysql-dbg//libexec/mysqld(my_print_stacktrace+0x32)[0xb20aaa] /home/ddb/wy/mysql-dbg//libexec/mysqld(handle_segfault+0x28a)[0x6bce40] /lib/libpthread.so.0[0x2b22d15e3a80] /lib/libc.so.6(gsignal+0x35)[0x2b22d2311ed5] /lib/libc.so.6(abort+0x183)[0x2b22d23133f3] /lib/libc.so.6[0x2b22d234e388] /lib/libc.so.6[0x2b22d2353928] /lib/libc.so.6[0x2b22d2355868] /lib/libc.so.6(cfree+0x76)[0x2b22d2355a36] /lib/libc.so.6(fclose+0x151)[0x2b22d2343d81] /home/ddb/wy/mysql-dbg//libexec/mysqld[0xb31293] /home/ddb/wy/mysql-dbg//libexec/mysqld[0xb30abb] /home/ddb/wy/mysql-dbg//libexec/mysqld(_db_end_+0x15a)[0xb30c55] /home/ddb/wy/mysql-dbg//libexec/mysqld(my_end+0x34f)[0xafb12c] /home/ddb/wy/mysql-dbg//libexec/mysqld(unireg_abort+0xe4)[0x6beac0] /home/ddb/wy/mysql-dbg//libexec/mysqld(main+0x460)[0x6c11d5] /lib/libc.so.6(__libc_start_main+0xe6)[0x2b22d22fe1a6] /home/ddb/wy/mysql-dbg//libexec/mysqld[0x5c4d99] The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains information that should help you find out what is causing the crash. Writing a core file bin/mysql_install_db: line 422: 19071 Done { echo "use mysql;"; cat $create_system_tables $fill_system_tables; } 19073 | eval "$filter_cmd_line" 19075 已放弃 (core dumped) | $mysqld_install_cmd_line > /dev/null Installation of system tables failed! Examine the logs in /home/ddb/wy/mysql-dbg/var for more information. You can try to start the mysqld daemon with: shell> /home/ddb/wy/mysql-dbg//libexec/mysqld --skip-grant & and use the command line tool /home/ddb/wy/mysql-dbg//bin/mysql to connect to the mysql database and look at the grant tables: shell> /home/ddb/wy/mysql-dbg//bin/mysql -u root mysql mysql> show tables Try 'mysqld --help' if you have problems with paths. Using --log gives you a log in /home/ddb/wy/mysql-dbg/var that may be helpful. Please consult the MySQL manual section 'Problems running mysql_install_db', and the manual section that describes problems on your OS. Another information source are the MySQL email archives available at http://lists.mysql.com/. Please check all of the above before mailing us! And remember, if you do mail us, you MUST use the /home/ddb/wy/mysql-dbg//scripts/mysqlbug script!