mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
Added test case that crashed Innobase
BUILD/compile-solaris-sparc-purify: Changed to old (easy-to-edit) format extra/resolve_stack_dump.c: Don't require -s and -n options innobase/include/Makefile.i: Applied Heikki's changes innobase/include/univ.i: Applied Heikki's changes innobase/os/os0file.c: Fix problem with Signal 14 on Solaris mysys/mf_qsort.c: Fix for purify sql-bench/Results/ATIS-mysql-Linux_2.2.16_SMP_alpha: New test results sql-bench/Results/RUN-mysql-Linux_2.2.16_SMP_alpha: New test results sql-bench/Results/alter-table-mysql-Linux_2.2.16_SMP_alpha: New test results sql-bench/Results/big-tables-mysql-Linux_2.2.16_SMP_alpha: New test results sql-bench/Results/connect-mysql-Linux_2.2.16_SMP_alpha: New test results sql-bench/Results/create-mysql-Linux_2.2.16_SMP_alpha: New test results sql-bench/Results/insert-mysql-Linux_2.2.16_SMP_alpha: New test results sql-bench/Results/select-mysql-Linux_2.2.16_SMP_alpha: New test results sql-bench/Results/wisconsin-mysql-Linux_2.2.16_SMP_alpha: New test results sql/ha_gemini.h: Fixed that SHOW VARIABLES shows table type as disabled if it can't be initialized. sql/ha_innobase.cc: Merged Heikkis changes sql/ha_innobase.h: Fixed that SHOW VARIABLES shows table type as disabled if it can't be initialized. sql/handler.cc: Fixed that SHOW VARIABLES shows table type as disabled if it can't be initialized. sql/mysqld.cc: Cleaned up error warning message.
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
#define INIT_SYM_TABLE 4096
|
||||
#define INC_SYM_TABLE 4096
|
||||
#define MAX_SYM_SIZE 128
|
||||
#define DUMP_VERSION "1.1"
|
||||
#define DUMP_VERSION "1.2"
|
||||
#define HEX_INVALID (uchar)255
|
||||
|
||||
typedef ulong my_long_addr_t ; /* at some point, we need to fix configure
|
||||
@@ -72,14 +72,15 @@ static void usage()
|
||||
printf("MySQL AB, by Sasha Pachev\n");
|
||||
printf("This software comes with ABSOLUTELY NO WARRANTY\n\n");
|
||||
printf("Resolve numeric stack strace dump into symbols.\n\n");
|
||||
printf("Usage: %s [OPTIONS]\n", my_progname);
|
||||
printf("Usage: %s [OPTIONS] symbols-file [numeric-dump-file]\n", my_progname);
|
||||
printf("\n\
|
||||
-?, --help Display this help and exit.\n\
|
||||
-h, --host=... Connect to host.\n\
|
||||
-V, --version Output version information and exit.\n\
|
||||
-n, --numeric-dump-file File containing the numeric stack dump.\n\
|
||||
-s, --symbols-file=... File containting the output of\
|
||||
nm --numeric-sort mysqld .\n\n");
|
||||
-V, --version Output version information and exit.\n");
|
||||
printf("\n\
|
||||
The symbols-file should include the output from: 'nm --numeric-sort mysqld'.\n\
|
||||
The numeric-dump-file should contain a numeric stack trace from mysqld.\n\
|
||||
If the numeric-dump-file is not given, the stack trace is read from stdin.\n");
|
||||
}
|
||||
|
||||
|
||||
@@ -125,15 +126,38 @@ static int parse_args(int argc, char **argv)
|
||||
|
||||
argc-=optind;
|
||||
argv+=optind;
|
||||
if (argc > 0)
|
||||
|
||||
/*
|
||||
The following code is to make the command compatible with the old
|
||||
version that required one to use the -n and -s options
|
||||
*/
|
||||
|
||||
if (argc == 2)
|
||||
{
|
||||
sym_fname= argv[0];
|
||||
dump_fname= argv[1];
|
||||
}
|
||||
else if (argc == 1)
|
||||
{
|
||||
if (!sym_fname)
|
||||
sym_fname = argv[0];
|
||||
else if (!dump_fname)
|
||||
dump_fname = argv[0];
|
||||
else
|
||||
{
|
||||
usage();
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
else if (argc != 0 || !sym_fname)
|
||||
{
|
||||
usage();
|
||||
exit(1);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
static void open_files()
|
||||
{
|
||||
fp_out = stdout;
|
||||
|
Reference in New Issue
Block a user