gdb.gdb/selftest.exp failures
Bug #615999 reported by
Ulrich Weigand
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Linaro GDB |
Fix Released
|
Low
|
Yao Qi |
Bug Description
FAIL: gdb.gdb/
FAIL: gdb.gdb/
Needs further analysis.
Changed in gdb-linaro: | |
assignee: | nobody → Yao Qi (yao-codesourcery) |
status: | Confirmed → In Progress |
Changed in gdb-linaro: | |
importance: | Undecided → Low |
Changed in gdb-linaro: | |
milestone: | none → 7.2-2010.10-0 |
Changed in gdb-linaro: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
The first failure is caused by incorrect regex in selftest.exp on source code line matching.
Here is a patch to fix, gdb.gdb/ selftest. exp ======= ======= ======= ======= ======= ======= ======= ======= ==== src/gdb/ testsuite/ gdb.gdb/ selftest. exp,v gdb.gdb/ selftest. exp 26 Jun 2010 06:44:47 -0000 1.24 gdb.gdb/ selftest. exp 16 Aug 2010 07:12:44 -0000 .;.*$gdb_ prompt $" { *$gdb_prompt $" { *$gdb_prompt $" {
Index: gdb/testsuite/
=======
RCS file: /cvs/src/
retrieving revision 1.24
diff -u -p -r1.24 selftest.exp
--- gdb/testsuite/
+++ gdb/testsuite/
@@ -185,11 +185,15 @@ proc do_steps_and_nexts {} {
set description "step over instream initialization"
set command "step"
}
- -re ".*getcwd .gdb_dirbuf, sizeof .gdb_dirbuf.
+ -re ".*getcwd .gdb_dirbuf, sizeof .gdb_dirbuf.
set description "next over getcwd"
set command "next"
}
- -re ".*quit_flag = 0.*$gdb_prompt $" {
+ -re ".*gdb_program_name = xstrdup.
+ set description "next over xstrdup"
+ set command "next"
+ }
+ -re ".*quit_flag = 0.*$gdb_prompt $" {
set description "step over quit_flag initialization"
set command "step"
}
After patch is applied, original two failures are disappeared, but there is a new failure. However looks like a separate issue.
FAIL: gdb.gdb/ selftest. exp: backtrace through signal handler
=== gdb Summary ===
# of expected passes 38 maverick/ home/yao/ cvs/build/ gdb/testsuite/ ../../gdb/ gdb version 7.2.50.20100811-cvs -nw -nx
# of unexpected failures 1
/home/yao/
(gdb) PASS: gdb.gdb/ selftest. exp: send ^C to child process sysdeps/ unix/sysv/ linux/arm/ eabi/libc- do-syscall. S:41^M sysdeps/ unix/sysv/ linux/arm/ eabi/libc- do-syscall. S^M selftest. exp: send SIGINT signal to child process sysdeps/ unix/sysv/ linux/arm/ eabi/libc- do-syscall. S:41^M unix/sysv/ linux/sigprocma sk.c:66^ M e.so.6^ M e.so.6^ M selftest. exp: backtrace through signal handler
signal SIGINT^M
Continuing with signal SIGINT.^M
^C^M
Program received signal SIGINT, Interrupt.^M
__libc_do_syscall () at ../ports/
41 in ../ports/
(gdb) PASS: gdb.gdb/
backtrace^M
#0 __libc_do_syscall () at ../ports/
#1 0x403b85ee in __sigprocmask (how=2, set=0xbe8a4ee8, oset=0x0) at ../sysdeps/
#2 0x400392c4 in ?? () from /lib/libreadlin
#3 0x400392c4 in ?? () from /lib/libreadlin
Backtrace stopped: previous frame identical to this frame (corrupt stack?)^M
(gdb) FAIL: gdb.gdb/