diff options
author | unknown <monty@donna.mysql.fi> | 2001-03-26 13:27:36 +0300 |
---|---|---|
committer | unknown <monty@donna.mysql.fi> | 2001-03-26 13:27:36 +0300 |
commit | 4bf00b00b74e11b801d6ad4ade5de9a07b88e1cf (patch) | |
tree | e9c9fdeab5d0a635045172c211af567c8b6a81b9 /extra | |
parent | 653f620e6f3f416ef327ec85daf1ba4f0654442c (diff) | |
download | mariadb-git-4bf00b00b74e11b801d6ad4ade5de9a07b88e1cf.tar.gz |
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.
Diffstat (limited to 'extra')
-rw-r--r-- | extra/resolve_stack_dump.c | 40 |
1 files changed, 32 insertions, 8 deletions
diff --git a/extra/resolve_stack_dump.c b/extra/resolve_stack_dump.c index a91c9588fbb..8976a7698b8 100644 --- a/extra/resolve_stack_dump.c +++ b/extra/resolve_stack_dump.c @@ -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; |