Bug 4753 - "echo 0 > /proc/stap_test_cmd" fails with Invalid argument message.
Summary: "echo 0 > /proc/stap_test_cmd" fails with Invalid argument message.
Status: RESOLVED DUPLICATE of bug 4754
Alias: None
Product: systemtap
Classification: Unclassified
Component: testsuite (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-09 12:33 UTC by Srinivasa DS
Modified: 2007-07-09 12:39 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Srinivasa DS 2007-07-09 12:33:10 UTC
My environment is 2.6.22-rc7 kernel, systemtap-20070707 snapshot and elfutils-0.128.

context.exp testcase of systemtap-20070707 snapshot fails with below message.
==============================
Running
/home/systemtap/tmp/stap_testing_200707091005/src/testsuite/systemtap.context/context.exp
...
ERROR: tcl error sourcing
/home/systemtap/tmp/stap_testing_200707091005/src/testsuite/systemtap.context/context.exp.
ERROR: echo: write error: Invalid argument
    while executing
"exec echo 0 > /proc/stap_test_cmd"
    invoked from within
"expect -nobrace -timeout 240 {Systemtap probe: begin
} {
        pass "backtrace of begin probe"
        exec echo 0 > /proc/stap_test_cmd
        exp_continue
    } -re ..."
    invoked from within
"expect {
    -timeout 240
    "Systemtap probe: begin\r\n" {
        pass "backtrace of begin probe"
        exec echo 0 > /proc/stap_test_cmd
        exp_continue
    }
 ..."
    (file "backtrace.tcl" line 6)
    invoked from within
"source $test.tcl"
    ("foreach" body line 2)
    invoked from within
"foreach test $testlist {
    source $test.tcl
}"
    (file
"/home/systemtap/tmp/stap_testing_200707091005/src/testsuite/systemtap.context/context.exp"
line 74)
    invoked from within
"source
/home/systemtap/tmp/stap_testing_200707091005/src/testsuite/systemtap.context/context.exp"
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 source
/home/systemtap/tmp/stap_testing_200707091005/src/testsuite/systemtap.context/context.exp"
    invoked from within
"catch "uplevel #0 source $test_file_name""
===================================================

===========================
Comment 1 Srinivasa DS 2007-07-09 12:39:19 UTC
I am really sorry  for this, I might pressed commit button twice.

*** This bug has been marked as a duplicate of 4754 ***