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
b3dac63f
Commit
b3dac63f
authored
Feb 01, 2017
by
Elena Stepanova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Produce better diagnostics when backtrace attempt fails
parent
923d7d0a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
mysql-test/lib/My/CoreDump.pm
mysql-test/lib/My/CoreDump.pm
+12
-2
No files found.
mysql-test/lib/My/CoreDump.pm
View file @
b3dac63f
...
...
@@ -53,9 +53,19 @@ sub _verify_binpath {
sub
_gdb
{
my
(
$core_name
)
=
@_
;
print
"
\n
Trying 'gdb' to get a backtrace
\n
";
# Check that gdb exists
`
gdb --version
`;
if
(
$?
)
{
print
"
gdb not found, cannot get the stack trace
\n
";
return
;
}
return
unless
-
f
$core_name
;
if
(
-
f
$core_name
)
{
print
"
\n
Trying 'gdb' to get a backtrace from coredump
$core_name
\n
";
}
else
{
print
"
\n
Coredump
$core_name
does not exist, cannot run 'gdb'
\n
";
return
;
}
# Find out name of binary that generated core
`
gdb -c '
$core_name
' --batch 2>&1
`
=~
...
...
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