[LLVMbugs] [Bug 14553] New: de-flake gdb.server/file-transfer.exp
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sun Dec 9 09:52:06 PST 2012
http://llvm.org/bugs/show_bug.cgi?id=14553
Bug #: 14553
Summary: de-flake gdb.server/file-transfer.exp
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Keywords: googler
Severity: enhancement
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: dblaikie at gmail.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Blocks: 14395
Classification: Unclassified
This test pretty regularly flakes out with logs like this:
Running ../../../src/gdb/testsuite/gdb.server/file-transfer.exp ...
Executing on host:
/home/buildslave/osuosl_slave/clang-x86_64-ubuntu-gdb-75/llvm.install.1/bin/clang
-w -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -c -g -o
/home/buildslave/osuosl_slave/clang-x86_64-ubuntu-gdb-75/clang-tests/build/gdb/testsuite/gdb.server/file-transfer0.o
../../../src/gdb/testsuite/gdb.server/server.c (timeout = 300)
spawn
/home/buildslave/osuosl_slave/clang-x86_64-ubuntu-gdb-75/llvm.install.1/bin/clang
-w -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -c -g -o
/home/buildslave/osuosl_slave/clang-x86_64-ubuntu-gdb-75/clang-tests/build/gdb/testsuite/gdb.server/file-transfer0.o
../../../src/gdb/testsuite/gdb.server/server.c
Executing on host:
/home/buildslave/osuosl_slave/clang-x86_64-ubuntu-gdb-75/llvm.install.1/bin/clang
/home/buildslave/osuosl_slave/clang-x86_64-ubuntu-gdb-75/clang-tests/build/gdb/testsuite/gdb.server/file-transfer0.o
-w -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -lm -o
/home/buildslave/osuosl_slave/clang-x86_64-ubuntu-gdb-75/clang-tests/build/gdb/testsuite/gdb.server/file-transfer
(timeout = 300)
spawn
/home/buildslave/osuosl_slave/clang-x86_64-ubuntu-gdb-75/llvm.install.1/bin/clang
/home/buildslave/osuosl_slave/clang-x86_64-ubuntu-gdb-75/clang-tests/build/gdb/testsuite/gdb.server/file-transfer0.o
-w -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -lm -o
/home/buildslave/osuosl_slave/clang-x86_64-ubuntu-gdb-75/clang-tests/build/gdb/testsuite/gdb.server/file-transfer
get_compiler_info: clang-3-3-0
spawn
/home/buildslave/osuosl_slave/clang-x86_64-ubuntu-gdb-75/clang-tests/build/gdb/testsuite/../../gdb/gdb
-nw -nx -data-directory
/home/buildslave/osuosl_slave/clang-x86_64-ubuntu-gdb-75/clang-tests/build/gdb/testsuite/../data-directory
GNU gdb (GDB) 7.5
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
(gdb) set height 0
(gdb) set width 0
(gdb) dir
Reinitialize source path to empty? (y or n) y
Source directories searched: $cdir:$cwd
(gdb) dir ../../../src/gdb/testsuite/gdb.server
Source directories searched:
/home/buildslave/osuosl_slave/clang-x86_64-ubuntu-gdb-75/clang-tests/build/gdb/testsuite/../../../src/gdb/testsuite/gdb.server:$cdir:$cwd
(gdb) kill
The program is not being run.
(gdb) file
/home/buildslave/osuosl_slave/clang-x86_64-ubuntu-gdb-75/clang-tests/build/gdb/testsuite/gdb.server/file-transfer
Reading symbols from
/home/buildslave/osuosl_slave/clang-x86_64-ubuntu-gdb-75/clang-tests/build/gdb/testsuite/gdb.server/file-transfer...done.
(gdb) disconnect
You can't do that when your target is `exec'
(gdb) PASS: gdb.server/file-transfer.exp: disconnect
kill
The program is not being run.
(gdb) spawn
/home/buildslave/osuosl_slave/clang-x86_64-ubuntu-gdb-75/clang-tests/build/gdb/testsuite/../../gdb/gdbserver/gdbserver
--once :2348
/home/buildslave/osuosl_slave/clang-x86_64-ubuntu-gdb-75/clang-tests/build/gdb/testsuite/gdb.server/file-transfer
Process
/home/buildslave/osuosl_slave/clang-x86_64-ubuntu-gdb-75/clang-tests/build/gdb/testsuite/gdb.server/file-transfer
created; pid = 8387
Listening on port 2348
target remote localhost:2348
Remote debugging using localhost:2348
Remote debugging from host 127.0.0.1
Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging symbols
found)...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
0x00002aaaaaaac6b0 in ?? () from /lib64/ld-linux-x86-64.so.2
(gdb) remote put
"/home/buildslave/osuosl_slave/clang-x86_64-ubuntu-gdb-75/clang-tests/build/gdb/testsuite/gdb.server/file-transfer"
down-server
Ignoring packet error, continuing...
Remote I/O error: Invalid argument
(gdb) FAIL: gdb.server/file-transfer.exp: put binary file
remote get down-server up-server
Remote I/O error: Invalid argument
(gdb) FAIL: gdb.server/file-transfer.exp: get binary file
Executing on host: cmp -s
/home/buildslave/osuosl_slave/clang-x86_64-ubuntu-gdb-75/clang-tests/build/gdb/testsuite/gdb.server/file-transfer
down-server (timeout = 300)
spawn cmp -s
/home/buildslave/osuosl_slave/clang-x86_64-ubuntu-gdb-75/clang-tests/build/gdb/testsuite/gdb.server/file-transfer
down-server
FAIL: gdb.server/file-transfer.exp: compare intermediate binary file
Executing on host: cmp -s
/home/buildslave/osuosl_slave/clang-x86_64-ubuntu-gdb-75/clang-tests/build/gdb/testsuite/gdb.server/file-transfer
up-server (timeout = 300)
spawn cmp -s
/home/buildslave/osuosl_slave/clang-x86_64-ubuntu-gdb-75/clang-tests/build/gdb/testsuite/gdb.server/file-transfer
up-server
FAIL: gdb.server/file-transfer.exp: compare binary file
remote delete down-server
Successfully deleted file "down-server".
(gdb) PASS: gdb.server/file-transfer.exp: deleted binary file
PASS: gdb.server/file-transfer.exp: verified deleted binary file
remote put "../../../src/gdb/testsuite/gdb.server/transfer.txt" down-server
Remote I/O error: Invalid argument
(gdb) FAIL: gdb.server/file-transfer.exp: put text file
remote get down-server up-server
Remote I/O error: Invalid argument
(gdb) FAIL: gdb.server/file-transfer.exp: get text file
Executing on host: cmp -s ../../../src/gdb/testsuite/gdb.server/transfer.txt
down-server (timeout = 300)
spawn cmp -s ../../../src/gdb/testsuite/gdb.server/transfer.txt down-server
FAIL: gdb.server/file-transfer.exp: compare intermediate text file
Executing on host: cmp -s ../../../src/gdb/testsuite/gdb.server/transfer.txt
up-server (timeout = 300)
spawn cmp -s ../../../src/gdb/testsuite/gdb.server/transfer.txt up-server
FAIL: gdb.server/file-transfer.exp: compare text file
remote delete down-server
Successfully deleted file "down-server".
(gdb) PASS: gdb.server/file-transfer.exp: deleted text file
PASS: gdb.server/file-transfer.exp: verified deleted text file
testcase ../../../src/gdb/testsuite/gdb.server/file-transfer.exp completed in
18 seconds
but can pass on the same machine without changes:
Running ../../../src/gdb/testsuite/gdb.server/file-transfer.exp ...
Executing on host:
/home/buildslave/osuosl_slave/clang-x86_64-ubuntu-gdb-75/llvm.install.1/bin/clang
-w -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -c -g -o
/home/buildslave/osuosl_slave/clang-x86_64-ubuntu-gdb-75/clang-tests/build/gdb/testsuite/gdb.server/file-transfer0.o
../../../src/gdb/testsuite/gdb.server/server.c (timeout = 300)
spawn
/home/buildslave/osuosl_slave/clang-x86_64-ubuntu-gdb-75/llvm.install.1/bin/clang
-w -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -c -g -o
/home/buildslave/osuosl_slave/clang-x86_64-ubuntu-gdb-75/clang-tests/build/gdb/testsuite/gdb.server/file-transfer0.o
../../../src/gdb/testsuite/gdb.server/server.c
Executing on host:
/home/buildslave/osuosl_slave/clang-x86_64-ubuntu-gdb-75/llvm.install.1/bin/clang
/home/buildslave/osuosl_slave/clang-x86_64-ubuntu-gdb-75/clang-tests/build/gdb/testsuite/gdb.server/file-transfer0.o
-w -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -lm -o
/home/buildslave/osuosl_slave/clang-x86_64-ubuntu-gdb-75/clang-tests/build/gdb/testsuite/gdb.server/file-transfer
(timeout = 300)
spawn
/home/buildslave/osuosl_slave/clang-x86_64-ubuntu-gdb-75/llvm.install.1/bin/clang
/home/buildslave/osuosl_slave/clang-x86_64-ubuntu-gdb-75/clang-tests/build/gdb/testsuite/gdb.server/file-transfer0.o
-w -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -lm -o
/home/buildslave/osuosl_slave/clang-x86_64-ubuntu-gdb-75/clang-tests/build/gdb/testsuite/gdb.server/file-transfer
get_compiler_info: clang-3-3-0
spawn
/home/buildslave/osuosl_slave/clang-x86_64-ubuntu-gdb-75/clang-tests/build/gdb/testsuite/../../gdb/gdb
-nw -nx -data-directory
/home/buildslave/osuosl_slave/clang-x86_64-ubuntu-gdb-75/clang-tests/build/gdb/testsuite/../data-directory
GNU gdb (GDB) 7.5
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
(gdb) set height 0
(gdb) set width 0
(gdb) dir
Reinitialize source path to empty? (y or n) y
Source directories searched: $cdir:$cwd
(gdb) dir ../../../src/gdb/testsuite/gdb.server
Source directories searched:
/home/buildslave/osuosl_slave/clang-x86_64-ubuntu-gdb-75/clang-tests/build/gdb/testsuite/../../../src/gdb/testsuite/gdb.server:$cdir:$cwd
(gdb) kill
The program is not being run.
(gdb) file
/home/buildslave/osuosl_slave/clang-x86_64-ubuntu-gdb-75/clang-tests/build/gdb/testsuite/gdb.server/file-transfer
Reading symbols from
/home/buildslave/osuosl_slave/clang-x86_64-ubuntu-gdb-75/clang-tests/build/gdb/testsuite/gdb.server/file-transfer...done.
(gdb) disconnect
You can't do that when your target is `exec'
(gdb) PASS: gdb.server/file-transfer.exp: disconnect
kill
The program is not being run.
(gdb) spawn
/home/buildslave/osuosl_slave/clang-x86_64-ubuntu-gdb-75/clang-tests/build/gdb/testsuite/../../gdb/gdbserver/gdbserver
--once :2348
/home/buildslave/osuosl_slave/clang-x86_64-ubuntu-gdb-75/clang-tests/build/gdb/testsuite/gdb.server/file-transfer
Process
/home/buildslave/osuosl_slave/clang-x86_64-ubuntu-gdb-75/clang-tests/build/gdb/testsuite/gdb.server/file-transfer
created; pid = 30650
Listening on port 2348
target remote localhost:2348
Remote debugging using localhost:2348
Remote debugging from host 127.0.0.1
Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging symbols
found)...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
0x00002aaaaaaac6b0 in ?? () from /lib64/ld-linux-x86-64.so.2
(gdb) remote put
"/home/buildslave/osuosl_slave/clang-x86_64-ubuntu-gdb-75/clang-tests/build/gdb/testsuite/gdb.server/file-transfer"
down-server
Successfully sent file
"/home/buildslave/osuosl_slave/clang-x86_64-ubuntu-gdb-75/clang-tests/build/gdb/testsuite/gdb.server/file-transfer".
(gdb) PASS: gdb.server/file-transfer.exp: put binary file
remote get down-server up-server
Successfully fetched file "down-server".
(gdb) PASS: gdb.server/file-transfer.exp: get binary file
Executing on host: cmp -s
/home/buildslave/osuosl_slave/clang-x86_64-ubuntu-gdb-75/clang-tests/build/gdb/testsuite/gdb.server/file-transfer
down-server (timeout = 300)
spawn cmp -s
/home/buildslave/osuosl_slave/clang-x86_64-ubuntu-gdb-75/clang-tests/build/gdb/testsuite/gdb.server/file-transfer
down-server
PASS: gdb.server/file-transfer.exp: compare intermediate binary file
Executing on host: cmp -s
/home/buildslave/osuosl_slave/clang-x86_64-ubuntu-gdb-75/clang-tests/build/gdb/testsuite/gdb.server/file-transfer
up-server (timeout = 300)
spawn cmp -s
/home/buildslave/osuosl_slave/clang-x86_64-ubuntu-gdb-75/clang-tests/build/gdb/testsuite/gdb.server/file-transfer
up-server
PASS: gdb.server/file-transfer.exp: compare binary file
remote delete down-server
Successfully deleted file "down-server".
(gdb) PASS: gdb.server/file-transfer.exp: deleted binary file
PASS: gdb.server/file-transfer.exp: verified deleted binary file
remote put "../../../src/gdb/testsuite/gdb.server/transfer.txt" down-server
Successfully sent file "../../../src/gdb/testsuite/gdb.server/transfer.txt".
(gdb) PASS: gdb.server/file-transfer.exp: put text file
remote get down-server up-server
Successfully fetched file "down-server".
(gdb) PASS: gdb.server/file-transfer.exp: get text file
Executing on host: cmp -s ../../../src/gdb/testsuite/gdb.server/transfer.txt
down-server (timeout = 300)
spawn cmp -s ../../../src/gdb/testsuite/gdb.server/transfer.txt down-server
PASS: gdb.server/file-transfer.exp: compare intermediate text file
Executing on host: cmp -s ../../../src/gdb/testsuite/gdb.server/transfer.txt
up-server (timeout = 300)
spawn cmp -s ../../../src/gdb/testsuite/gdb.server/transfer.txt up-server
PASS: gdb.server/file-transfer.exp: compare text file
remote delete down-server
Successfully deleted file "down-server".
(gdb) PASS: gdb.server/file-transfer.exp: deleted text file
PASS: gdb.server/file-transfer.exp: verified deleted text file
testcase ../../../src/gdb/testsuite/gdb.server/file-transfer.exp completed in 9
seconds
This test doesn't test anything related to compiler debug info so far as I can
tell, so this fix is low priority. But it'd be nice to get these things fixed
so we could potentially have a GDB upstream buildbot with some reliability to
verify Clang's debug info.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list