Skip to content

Commit 66546ec

Browse files
committed
Bug#32007149 AUTOTEST FAILS TO PRODUCE BACKTRACE WITH LONG PATHS
Modifies atrt-backtrace.sh to use file(1) utility to fetch the path of the binary from the core file instead of gdb since it fails to fetch the complete path of the binary if the path exceeds 80 characters and fetches only a part of it leading to the failure of generation of symbolic backtrace. Change-Id: Ib479f7dc10ec1aa72b2be447aea408e1019c45ea
1 parent 9771dfc commit 66546ec

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

Diff for: storage/ndb/test/run-test/atrt-backtrace.sh

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22

3-
# Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
3+
# Copyright (c) 2008, 2020, Oracle and/or its affiliates.
44
#
55
# This program is free software; you can redistribute it and/or modify
66
# it under the terms of the GNU General Public License, version 2.0,
@@ -64,10 +64,7 @@ fi
6464
#
6565
# get binary
6666
#
67-
tmp=`echo ${core}.tmp`
68-
gdb -c $core -x $bt -q 2>&1 | grep "Core was generated" | awk '{ print $5;}' | sed 's!`!!' | sed `echo "s/'\.//"` > $tmp
69-
exe=`cat $tmp`
70-
rm -f $tmp
67+
exe=`file $core | sed 's/.*execfn//' | cut -d"'" -f 2`
7168

7269
if [ -x "$exe" ]
7370
then

0 commit comments

Comments
 (0)