script for resolving stacktrace

script for resolving stacktrace

am 16.01.2003 19:02:25 von mmokrejs

Hi,
how about simplyfying users the stack resolution and installing this
script in distributions bin/ or scripts/ directory?

How-To-Repeat:

#!/bin/sh
echo "This scripts expects stack trace from your mysql error log file"
echo "placed in the current directory as ./stack"
echo "Put into the file just the part like:"
echo "0x806f3bb"
echo "0x8269928"
echo "0x807724c"
echo "0x8077665"
echo "0x82670dc"
echo "0x829c67a"


if [ ! -r ./stack ]; then
echo "./stack file not present or readable"
exit 255
fi

if [ -r /usr/local/mysql/bin/mysqld.sym.gz ]; then
gzip -dc /usr/local/mysql/bin/mysqld.sym.gz > ./symbols
else
echo "nm -n /usr/local/mysql/bin/mysqld > ./symbols"
nm -n /usr/local/mysql/bin/mysqld > ./symbols
fi

echo "/usr/local/mysql/bin/resolve_stack_dump -s ./symbols -n ./stack"
/usr/local/mysql/bin/resolve_stack_dump -s ./symbols -n ./stack


--
Martin Mokrejs ,
PGP5.0i key is at http://www.natur.cuni.cz/~mmokrejs
MIPS / Institute for Bioinformatics
GSF - National Research Center for Environment and Health
Ingolstaedter Landstrasse 1, D-85764 Neuherberg, Germany
tel.: +49-89-3187 3683 , fax: +49-89-3187 3585

------------------------------------------------------------ ---------
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 bugs-thread13494@lists.mysql.com
To unsubscribe, e-mail

Re: script for resolving stacktrace

am 16.01.2003 21:09:34 von Sinisa Milivojevic

=3D?iso-8859-2?Q?Martin_MOKREJ=3DA9?=3D writes:
> Hi,
> how about simplyfying users the stack resolution and installing thi=
s
> script in distributions bin/ or scripts/ directory?
>=20
> How-To-Repeat:
>=20
> #!/bin/sh
> echo "This scripts expects stack trace from your mysql error log file=
"
> echo "placed in the current directory as ./stack"
> echo "Put into the file just the part like:"
> echo "0x806f3bb"
> echo "0x8269928"
> echo "0x807724c"
> echo "0x8077665"
> echo "0x82670dc"
> echo "0x829c67a"
>=20
>=20
> if [ ! -r ./stack ]; then
> echo "./stack file not present or readable"
> exit 255
> fi
>=20
> if [ -r /usr/local/mysql/bin/mysqld.sym.gz ]; then
> gzip -dc /usr/local/mysql/bin/mysqld.sym.gz > ./symbols
> else
> echo "nm -n /usr/local/mysql/bin/mysqld > ./symbols"
> nm -n /usr/local/mysql/bin/mysqld > ./symbols
> fi
>=20
> echo "/usr/local/mysql/bin/resolve_stack_dump -s ./symbols -n ./stack=
"
> /usr/local/mysql/bin/resolve_stack_dump -s ./symbols -n ./stack
>=20
>=20
> --=20
> Martin Mokrejs ,
> PGP5.0i key is at http://www.natur.cuni.cz/~mmokrejs
> MIPS / Institute for Bioinformatics
> GSF - National Research Center for Environment and Health
> Ingolstaedter Landstrasse 1, D-85764 Neuherberg, Germany
> tel.: +49-89-3187 3683 , fax:=A0+49-89-3187 3585
>=20

It is a good idea to have something like that. Only a check for Linux
is missing ...

--=20
__ ___ ___ ____ __
/ |/ /_ __/ __/ __ \/ / Mr. Sinisa Milivojevic >
/ /|_/ / // /\ \/ /_/ / /__ MySQL AB, Fulltime Developer
/_/ /_/\_, /___/\___\_\___/ Larnaca, Cyprus
<___/ www.mysql.com

Join MySQL Users Conference and Expo:
http://www.mysql.com/events/uc2003/


------------------------------------------------------------ ---------
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 bugs-thread13500@lists.mysql.com
To unsubscribe, e-mail

Re: script for resolving stacktrace

am 16.01.2003 22:45:45 von Jocelyn Fournier

Hi,

It would also be great, if c++filter is available on the system, to inject
the result to c++filter in order to demangle the result
(i.e. :
/usr/local/mysql/bin/resolve_stack_dump -s ./symbols -n ./stack | c++filter
)

Regards,
Jocelyn

----- Original Message -----
From: "Sinisa Milivojevic"
To:
Cc:
Sent: Thursday, January 16, 2003 8:09 PM
Subject: Re: script for resolving stacktrace


=?iso-8859-2?Q?Martin_MOKREJ=A9?= writes:
> Hi,
> how about simplyfying users the stack resolution and installing this
> script in distributions bin/ or scripts/ directory?
>
> How-To-Repeat:
>
> #!/bin/sh
> echo "This scripts expects stack trace from your mysql error log file"
> echo "placed in the current directory as ./stack"
> echo "Put into the file just the part like:"
> echo "0x806f3bb"
> echo "0x8269928"
> echo "0x807724c"
> echo "0x8077665"
> echo "0x82670dc"
> echo "0x829c67a"
>
>
> if [ ! -r ./stack ]; then
> echo "./stack file not present or readable"
> exit 255
> fi
>
> if [ -r /usr/local/mysql/bin/mysqld.sym.gz ]; then
> gzip -dc /usr/local/mysql/bin/mysqld.sym.gz > ./symbols
> else
> echo "nm -n /usr/local/mysql/bin/mysqld > ./symbols"
> nm -n /usr/local/mysql/bin/mysqld > ./symbols
> fi
>
> echo "/usr/local/mysql/bin/resolve_stack_dump -s ./symbols -n ./stack"
> /usr/local/mysql/bin/resolve_stack_dump -s ./symbols -n ./stack
>
>
> --
> Martin Mokrejs ,
> PGP5.0i key is at http://www.natur.cuni.cz/~mmokrejs
> MIPS / Institute for Bioinformatics
> GSF - National Research Center for Environment and Health
> Ingolstaedter Landstrasse 1, D-85764 Neuherberg, Germany
> tel.: +49-89-3187 3683 , fax: +49-89-3187 3585
>

It is a good idea to have something like that. Only a check for Linux
is missing ...

--
__ ___ ___ ____ __
/ |/ /_ __/ __/ __ \/ / Mr. Sinisa Milivojevic
/ /|_/ / // /\ \/ /_/ / /__ MySQL AB, Fulltime Developer
/_/ /_/\_, /___/\___\_\___/ Larnaca, Cyprus
<___/ www.mysql.com

Join MySQL Users Conference and Expo:
http://www.mysql.com/events/uc2003/


------------------------------------------------------------ ---------
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 bugs-thread13500@lists.mysql.com
To unsubscribe, e-mail



------------------------------------------------------------ ---------
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 bugs-thread13502@lists.mysql.com
To unsubscribe, e-mail

Re: script for resolving stacktrace

am 17.01.2003 10:52:28 von mmokrejs

On Thu, 16 Jan 2003, Sinisa Milivojevic wrote:

> =?iso-8859-2?Q?Martin_MOKREJ=A9?= writes:
> > Hi,
> > how about simplyfying users the stack resolution and installing this
> > script in distributions bin/ or scripts/ directory?

> It is a good idea to have something like that. Only a check for Linux
> is missing ...
>

OK, your job then. ;)

--
Martin Mokrejs ,
PGP5.0i key is at http://www.natur.cuni.cz/~mmokrejs
MIPS / Institute for Bioinformatics
GSF - National Research Center for Environment and Health
Ingolstaedter Landstrasse 1, D-85764 Neuherberg, Germany
tel.: +49-89-3187 3683 , fax: +49-89-3187 3585

------------------------------------------------------------ ---------
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 bugs-thread13505@lists.mysql.com
To unsubscribe, e-mail