Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
9692f37d
Commit
9692f37d
authored
May 20, 2018
by
Sergey Vojtovich
Committed by
Vladislav Vaintroub
May 21, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added support for lldb core analysis in mtr
parent
a1d57ca1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
0 deletions
+39
-0
mysql-test/lib/My/CoreDump.pm
mysql-test/lib/My/CoreDump.pm
+39
-0
No files found.
mysql-test/lib/My/CoreDump.pm
View file @
9692f37d
...
...
@@ -264,6 +264,44 @@ EOF
}
sub _lldb
{
my ($core_name)= @_;
print "
\
nTrying
'
lldb
'
to get a backtrace from coredump $core_name
\
n";
# Create tempfile containing lldb commands
my ($tmp, $tmp_name)= tempfile();
print $tmp
"bt
\
n",
"thread backtrace all
\
n",
"quit
\
n";
close $tmp or die "Error closing $tmp_name: $!";
my $lldb_output= `lldb -c
'
$core_name
'
-s
'
$tmp_name
'
2>&1`;
unlink $tmp_name or die "Error removing $tmp_name: $!";
if ($? == 127)
{
print "lldb not found, cannot get the stack trace
\
n";
return;
}
return if $?;
return unless $lldb_output;
resfile_print <<EOF . $lldb_output . "
\
n";
Output from lldb follows. The first stack trace is from the failing thread.
The following stack traces are from all threads (so the failing one is
duplicated).
--------------------------
EOF
return 1;
}
sub show {
my ($class, $core_name, $exe_mysqld, $parallel)= @_;
$hint_mysqld= $exe_mysqld;
...
...
@@ -282,6 +320,7 @@ sub show {
(
\
&_dbx,
\
&_gdb,
\
&_lldb,
# TODO...
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment