LTP-20100630:tcore.sh test fails
Hi,tcore.sh test fails , this looks more like testcase issue rather than os issue.
Running tests.......
@ <<<test_start>>>
@ tag=tcore stime=1280375961
@ cmdline="tcore.sh"
@ contacts=""
@ analysis=exit
@ <<<test_output>>>
@ incrementing stop
@ Test Tcore patch
@ /tmp/ltp-IdAZW16626/tmp.JZuvu16728
@ Test whether we can generate the needed core file
@ PASS
@ /tmp/ltp-IdAZW16626/tmp.JZuvu16728
@ Test whether the core support bt,fpu and threads commands
@ spawn gdb ./tcore ./corefile
@ .
@ info register
@ .
@ GNU gdb (GDB) Red Hat Enterprise Linux (7.0.1-23.el5)
@ Copyright (C) 2009 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-redhat-linux-gnu".
@ For bug reporting instructions, please see:
@ <http://www.gnu.org/software/gdb/bugs/>...
@ ./tcore: No such file or directory.
@ [New Thread 16736]
@ [New Thread 16732]
@ Core was generated by `/opt/ltp/testcases/bin//tcore'.
@ Program terminated with signal 11, Segmentation fault.
@ #0 0x000000000040129d in ?? ()
@ (gdb)
@ (gdb) info register
@ rax 0xc 12 @ rbx 0x1e08 7688 @ rcx 0x41ae8ee0 1101958880 @ rdx 0xc 12 @ rsi 0x402b39 4205369 @ rdi 0x41ae8ee0 1101958880 @ rbp 0x415c 0x415c @ rsp 0x41ae90e0 0x41ae90e0 @ r8 0x0 0 @ r9 0x41ae8658 1101956696 @ r10 0x0 0 @ r11 0x0 0 @ r12 0x41ae9100 1101959424 @ r13 0x41ae90f0 1101959408 @ r14 0x41aea000 1101963264 @ r15 0x1000 4096 @ rip 0x40129d 0x40129d @ eflags 0x10206 [ PF IF RF ] @ cs 0x33 51 @ ss 0x2b 43 @ ds 0x0 0 @ es 0x0 0 @ fs 0x63 99 @ gs 0x0 0 @ fctrl 0x37f 895 @ fstat 0x20 32 @ ftag 0xffff 65535 @ fiseg 0x0 0 @ fioff 0x40128b 4199051 @ foseg 0x0 0 @ fooff 0x41ae90e0 1101959392 @ fop 0x33c 828 @ mxcsr 0x1f80 [ IM DM ZM OM UM PM ] @ (gdb) @ rax 0xc 12 @ rbx 0x1e08 7688 @ rcx 0x41ae8ee0 1101958880 @ rdx 0xc 12 @ rsi 0x402b39 4205369 @ rdi 0x41ae8ee0 1101958880 @ rbp 0x415c 0x415c @ rsp 0x41ae90e0 0x41ae90e0 @ r8 0x0 0 @ r9 0x41ae8658 1101956696 @ r10 0x0 0 @ r11 0x0 0 @ r12 0x41ae9100 1101959424 @ r13 0x41ae90f0 1101959408 @ r14 0x41aea000 1101963264 @ r15 0x1000 4096 @ rip 0x40129d 0x40129d @ eflags 0x10206 [ PF IF RF ] @ cs 0x33 51 @ ss 0x2b 43 @ ds 0x0 0 @ es 0x0 0 @ fs 0x63 99 @ gs 0x0 0 @ fctrl 0x37f 895 @ fstat 0x20 32 @ ftag 0xffff 65535 @ fiseg 0x0 0 @ fioff 0x40128b 4199051 @ foseg 0x0 0 @ fooff 0x41ae90e0 1101959392 @ fop 0x33c 828 @ mxcsr 0x1f80 [ IM DM ZM OM UM PM ]
@ (gdb) invalid command name "fail"
@ while executing
@ "fail "fail to check the xmm value(timeout)""
@ invoked from within
@ "expect -nobrace -re {xmm5[ ]+{f = .*}+[ ]+{f = .*}} {
@ set buf $expect_out(0,string)
@ } timeout {
@ fail "fail to check the xmm value(..."
@ invoked from within
@ "expect {
@ -re "xmm$num\[\t \]+\{f \= .*\}+\[\t \]+\{f \= .*\}" {
@ set buf $expect_out(0,string)
@ }
@ timeout {
@ fail "fail to check t..."
@ (procedure "check_fpu" line 7)
@ invoked from within
@ "check_fpu 5"
@ (file "/opt/ltp/testcases/bin//tcore.exp" line 137)
@ <<<execution_status>>>
@ initiation_status="ok"
@ duration=18 termination_type=exited termination_id=3 corefile=no @ cutime=8 cstime=634
@ <<<test_end>>>
@ INFO: ltp-pan reported some tests FAIL
@ LTP Version: LTP-20100630
dmesg:
tcore[16737]: segfault at 0 ip 000000000040129d sp 0000000041ae90e0
error 6
Thanks,
-Guru
------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
Quoted 137 lines · Gurudas Pai
Hi,
tcore.shtest fails , this looks more like testcase issue rather than os issue.Running tests.......
@ <<<test_start>>>
@ tag=tcore stime=1280375961
@ cmdline="tcore.sh"
@ contacts=""
@ analysis=exit
@ <<<test_output>>>
@ incrementing stop
@ Test Tcore patch
@/tmp/ltp-IdAZW16626/tmp.JZuvu16728
@ Test whether we can generate the needed core file
@ PASS
@/tmp/ltp-IdAZW16626/tmp.JZuvu16728
@ Test whether the core support bt,fpu and threads commands
@ spawn gdb ./tcore ./corefile
@ .
@ info register
@ .
@ GNU gdb (GDB) Red Hat Enterprise Linux (7.0.1-23.el5)
@ Copyright (C) 2009 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-redhat-linux-gnu".
@ For bug reporting instructions, please see:
@ <http://www.gnu.org/software/gdb/bugs/>...
@ ./tcore: No such file or directory.
@ [New Thread 16736]
@ [New Thread 16732]
@ Core was generated by `/opt/ltp/testcases/bin//tcore'.
@ Program terminated with signal 11, Segmentation fault.
@ #0 0x000000000040129d in ?? ()
@ (gdb)
@ (gdb) info register
@ rax 0xc 12
@ rbx 0x1e08 7688
@ rcx 0x41ae8ee0 1101958880
@ rdx 0xc 12
@ rsi 0x402b39 4205369
@ rdi 0x41ae8ee0 1101958880
@ rbp 0x415c0x415c
@ rsp 0x41ae90e00x41ae90e0
@ r80x00
@ r90x41ae86581101956696
@ r10 0x0 0
@ r11 0x0 0
@ r12 0x41ae9100 1101959424
@ r13 0x41ae90f0 1101959408
@ r14 0x41aea000 1101963264
@ r15 0x1000 4096
@ rip 0x40129d0x40129d
@ eflags0x10206[ PF IF RF ]
@ cs0x3351
@ ss0x2b43
@ ds0x00
@ es0x00
@ fs0x6399
@ gs0x00
@ fctrl 0x37f 895
@ fstat 0x20 32
@ ftag0xffff65535
@ fiseg 0x0 0
@ fioff 0x40128b 4199051
@ foseg 0x0 0
@ fooff 0x41ae90e0 1101959392
@ fop 0x33c 828
@ mxcsr 0x1f80 [ IM DM ZM OM UM PM ]
@ (gdb)
@ rax 0xc 12
@ rbx 0x1e08 7688
@ rcx 0x41ae8ee0 1101958880
@ rdx 0xc 12
@ rsi 0x402b39 4205369
@ rdi 0x41ae8ee0 1101958880
@ rbp 0x415c0x415c
@ rsp 0x41ae90e00x41ae90e0
@ r80x00
@ r90x41ae86581101956696
@ r10 0x0 0
@ r11 0x0 0
@ r12 0x41ae9100 1101959424
@ r13 0x41ae90f0 1101959408
@ r14 0x41aea000 1101963264
@ r15 0x1000 4096
@ rip 0x40129d0x40129d
@ eflags0x10206[ PF IF RF ]
@ cs0x3351
@ ss0x2b43
@ ds0x00
@ es0x00
@ fs0x6399
@ gs0x00
@ fctrl 0x37f 895
@ fstat 0x20 32
@ ftag0xffff65535
@ fiseg 0x0 0
@ fioff 0x40128b 4199051
@ foseg 0x0 0
@ fooff 0x41ae90e0 1101959392
@ fop 0x33c 828
@ mxcsr 0x1f80 [ IM DM ZM OM UM PM ]
@ (gdb) invalid command name "fail"
@ while executing
@ "fail "fail to check the xmm value(timeout)""
@ invoked from within
@ "expect -nobrace -re {xmm5[ ]+{f = .*}+[ ]+{f = .*}} { @ set buf $expect_out(0,string)
@ } timeout {
@ fail "fail to check the xmm value(..."
@ invoked from within
@ "expect {
@ -re "xmm$num\[\t \]+\{f \= .*\}+\[\t \]+\{f \= .*\}" { @ set buf $expect_out(0,string)
@ }
@ timeout {
@ fail "fail to check t..."
@ (procedure "check_fpu" line 7)
@ invoked from within
@ "check_fpu5"
@ (file "/opt/ltp/testcases/bin//tcore.exp" line 137)
@ <<<execution_status>>>
@ initiation_status="ok"
@ duration=18 termination_type=exited termination_id=3 corefile=no @ cutime=8 cstime=634
@ <<<test_end>>>
@ INFO: ltp-pan reported some tests FAIL
@ LTP Version: LTP-20100630
Quoted 3 lines
dmesg:
tcore[16737]: segfault at 0 ip000000000040129dsp0000000041ae90e0error 6
Try this:
index 1b68291..7f1dc9f 100644
testcases/misc/tcore_patch_test_suites/tcore.exp +2 -2
@@ -43,7 +43,7 @@ proc check_threads {} { set buf $expect_out(0,string) } timeout { - fail "timeout while run info threads" + puts stderr "timeout while run info threads" return 1 } }
@@ -111,7 +111,7 @@ proc check_fpu {num} { set buf $expect_out(0,string) } timeout { - fail "fail to check the xmm value(timeout)" + puts stderr "fail to check the xmm value(timeout)" return 1 } }
------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
Quoted 15 lines
Try this:
index 1b68291..7f1dc9f 100644
testcases/misc/tcore_patch_test_suites/tcore.exp +1
-1@@ -43,7 +43,7 @@ proc check_threads {} { set buf $expect_out(0,string) } timeout { - fail "timeout while run info threads" + puts stderr "timeout while run info threads" return 1 } }
testcases/misc/tcore_patch_test_suites/tcore.exp proc check_fpu {num} { · line 117
Quoted 8 lines
testcases/misc/tcore_patch_test_suites/tcore.exp +1
-1@@ -111,7 +111,7 @@ proc check_fpu {num} { set buf $expect_out(0,string) } timeout { - fail "fail to check the xmm value(timeout)" + puts stderr "fail to check the xmm value(timeout)" return 1 } }
Hi Garrett,
Thanks for the patch !
Running tests.......
<<<test_start>>>
tag=tcore stime=1280710300
cmdline="tcore.sh"
contacts=""
analysis=exit
<<<test_output>>>
incrementing stop
Test Tcore patch /tmp/ltp-bNMTB13033/tmp.elSZn13135
Test whether we can generate the needed core file PASS/tmp/ltp-bNMTB13033/tmp.elSZn13135
Test whether the core support bt,fpu and threads commands spawn gdb ./tcore ./corefile
info register
GNU gdb (GDB) Red Hat Enterprise Linux (7.0.1-23.el5) Copyright (C) 2009 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-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
./tcore: No such file or directory.
[New Thread 13143]
[New Thread 13139]
Core was generated by `/opt/ltp/testcases/bin//tcore'.
Program terminated with signal 11, Segmentation fault.
#0 0x000000000040129d in ?? ()
(gdb)
(gdb) info register
rax 0xc 12 rbx 0x1e08 7688 rcx 0x41776ee0 1098346208 rdx 0xc 12 rsi 0x402b39 4205369 rdi 0x41776ee0 1098346208 rbp 0x3353 0x3353 rsp 0x417770e0 0x417770e0 r8 0x0 0 r9 0x41776658 1098344024 r10 0x0 0 r11 0x0 0 r12 0x41777100 1098346752 r13 0x417770f0 1098346736 r14 0x41778000 1098350592 r15 0x1000 4096 rip 0x40129d 0x40129d eflags 0x10206 [ PF IF RF ] cs 0x33 51 ss 0x2b 43 ds 0x0 0 es 0x0 0 fs 0x63 99 gs 0x0 0 fctrl 0x37f 895 fstat 0x20 32 ftag 0xffff 65535 fiseg 0x0 0 fioff 0x40128b 4199051 foseg 0x0 0 fooff 0x417770e0 1098346720 fop 0x33c 828 mxcsr 0x1f80 [ IM DM ZM OM UM PM ] (gdb) rax 0xc 12 rbx 0x1e08 7688 rcx 0x41776ee0 1098346208 rdx 0xc 12 rsi 0x402b39 4205369 rdi 0x41776ee0 1098346208 rbp 0x3353 0x3353 rsp 0x417770e0 0x417770e0 r8 0x0 0 r9 0x41776658 1098344024 r10 0x0 0 r11 0x0 0 r12 0x41777100 1098346752 r13 0x417770f0 1098346736 r14 0x41778000 1098350592 r15 0x1000 4096 rip 0x40129d 0x40129d eflags 0x10206 [ PF IF RF ] cs 0x33 51 ss 0x2b 43 ds 0x0 0 es 0x0 0 fs 0x63 99 gs 0x0 0 fctrl 0x37f 895 fstat 0x20 32 ftag 0xffff 65535 fiseg 0x0 0 fioff 0x40128b 4199051 foseg 0x0 0 fooff 0x417770e0 1098346720 fop 0x33c 828 mxcsr 0x1f80 [ IM DM ZM OM UM PM ]
(gdb) fail to check the xmm value(timeout)
spawn gdb ./tcore ./corefile
info threads
GNU gdb (GDB) Red Hat Enterprise Linux (7.0.1-23.el5) Copyright (C) 2009 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-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
./tcore: No such file or directory.
[New Thread 13143]
[New Thread 13139]
Core was generated by `/opt/ltp/testcases/bin//tcore'.
Program terminated with signal 11, Segmentation fault.
#0 0x000000000040129d in ?? ()
(gdb) info threads
3 Thread 13139 0x0000003fc2807b35 in ?? ()
2 Thread 13143 0x0000003fc280aee9 in ?? ()
* 1 Thread 13144 0x000000000040129d in ?? ()
(gdb) timeout while run info threads
spawn gdb ./tcore ./corefile
check bt in coredump successfully<<<execution_status>>> initiation_status="ok"
duration=23 termination_type=exited termination_id=3 corefile=no cutime=6 cstime=12
<<<test_end>>>
INFO: ltp-pan reported some tests FAIL
LTP Version: LTP-20100630
Test is still failing , do you think this is an os issue ?
Thanks,
-Guru
------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
Quoted 167 lines · Gurudas Pai
Quoted 20 lines
Try this:
index 1b68291..7f1dc9f 100644
testcases/misc/tcore_patch_test_suites/tcore.exp +1
-1@@ -43,7 +43,7 @@ proc check_threads {} { set buf $expect_out(0,string) } timeout { - fail "timeout while run info threads" + puts stderr "timeout while run info threads"return 1
}
}testcases/misc/tcore_patch_test_suites/tcore.exp +1
-1@@ -111,7 +111,7 @@ proc check_fpu {num} { set buf $expect_out(0,string) } timeout { - fail "fail to check the xmm value(timeout)" + puts stderr "fail to check the xmm value(timeout)"Quoted 3 lines
return 1
}
}Hi Garrett,
Thanks for the patch !
Running tests.......
<<<test_start>>>
tag=tcore stime=1280710300
cmdline="tcore.sh"
contacts=""
analysis=exit
<<<test_output>>>
incrementing stop
Test Tcore patch/tmp/ltp-bNMTB13033/tmp.elSZn13135
Test whether we can generate the needed core file PASS/tmp/ltp-bNMTB13033/tmp.elSZn13135
Test whether the core support bt,fpu and threads commands spawn gdb ./tcore ./corefileinfo register
GNU gdb (GDB) Red Hat Enterprise Linux (7.0.1-23.el5) Copyright (C) 2009 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-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
./tcore: No such file or directory.
[New Thread 13143]
[New Thread 13139]
Core was generated by `/opt/ltp/testcases/bin//tcore'.
Program terminated with signal 11, Segmentation fault.
#0 0x000000000040129d in ?? ()
(gdb)
(gdb) info register
rax 0xc 12
rbx 0x1e08 7688
rcx 0x41776ee0 1098346208
rdx 0xc 12
rsi 0x402b39 4205369
rdi 0x41776ee0 1098346208
rbp 0x33530x3353
rsp 0x417770e00x417770e0
r80x00
r90x417766581098344024
r10 0x0 0
r11 0x0 0
r12 0x41777100 1098346752
r13 0x417770f0 1098346736
r14 0x41778000 1098350592
r15 0x1000 4096
rip 0x40129d0x40129d
eflags0x10206[ PF IF RF ]
cs0x3351
ss0x2b43
ds0x00
es0x00
fs0x6399
gs0x00
fctrl 0x37f 895
fstat 0x20 32
ftag0xffff65535
fiseg 0x0 0
fioff 0x40128b 4199051
foseg 0x0 0
fooff 0x417770e0 1098346720
fop 0x33c 828
mxcsr 0x1f80 [ IM DM ZM OM UM PM ]
(gdb)
rax 0xc 12
rbx 0x1e08 7688
rcx 0x41776ee0 1098346208
rdx 0xc 12
rsi 0x402b39 4205369
rdi 0x41776ee0 1098346208
rbp 0x33530x3353
rsp 0x417770e00x417770e0
r80x00
r90x417766581098344024
r10 0x0 0
r11 0x0 0
r12 0x41777100 1098346752
r13 0x417770f0 1098346736
r14 0x41778000 1098350592
r15 0x1000 4096
rip 0x40129d0x40129d
eflags0x10206[ PF IF RF ]
cs0x3351
ss0x2b43
ds0x00
es0x00
fs0x6399
gs0x00
fctrl 0x37f 895
fstat 0x20 32
ftag0xffff65535
fiseg 0x0 0
fioff 0x40128b 4199051
foseg 0x0 0
fooff 0x417770e0 1098346720
fop 0x33c 828
mxcsr 0x1f80 [ IM DM ZM OM UM PM ]
(gdb) fail to check the xmm value(timeout)
spawn gdb ./tcore ./corefile
info threads
GNU gdb (GDB) Red Hat Enterprise Linux (7.0.1-23.el5) Copyright (C) 2009 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-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
./tcore: No such file or directory.
[New Thread 13143]
[New Thread 13139]
Core was generated by `/opt/ltp/testcases/bin//tcore'.
Program terminated with signal 11, Segmentation fault.
#0 0x000000000040129d in ?? ()
(gdb) info threads
3 Thread 13139 0x0000003fc2807b35 in ?? ()
2 Thread 13143 0x0000003fc280aee9 in ?? ()
* 1 Thread 13144 0x000000000040129d in ?? ()
(gdb) timeout while run info threads
spawn gdb ./tcore ./corefile
check bt in coredump successfully<<<execution_status>>> initiation_status="ok"
duration=23 termination_type=exited termination_id=3 corefile=no cutime=6 cstime=12
<<<test_end>>>
INFO: ltp-pan reported some tests FAIL
LTP Version: LTP-20100630
Quoted 1 line
Test is still failing , do you think this is an os issue ?
Don't know. Some more digging would need to be done in terms of whether or not the binary is properly SSE compiled (because XMM appears to be an SSE register according to a quick google search), and you should probably check with the binutils/gdb/redhat folks for more details about changes to the binutils, gdb, and/or libelf packages.
HTH,
-Garrett
------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
Quoted 9 lines
Quoted 2 lines
Test is still failing , do you think this is an os issue ?
Don't know. Some more digging would need to be done in terms of whether or not the binary is properly SSE compiled (because XMM appears to be an SSE register according to a quick google search), and you should probably check with the binutils/gdb/redhat folks for more details about changes to the binutils, gdb, and/or libelf packages.
Thanks, will look into this and update.
Thanks a lot for your time and effort :)
-Guru
------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list