qmtest resource related error

Siddharth Ram sram at qualcomm.com
Tue Apr 12 16:54:21 UTC 2005


I have a question/problem related to resources.

I have defined the following resource. It is supposed to spawn a process 
(named Server) on the local machine with which my test interacts

<?xml version="1.0" ?>
<!DOCTYPE extension
  PUBLIC '-//QM/2.2 - or-changes/Extension//EN'
  'http://www.codesourcery.com/qm/dtds/2.2 - or-changes/-//qm/2.2 - 
or-changes/extension//en.dtd'>
<extension class="process_resource.ProcessResource" 
kind="resource"><argument 
name="delay"><integer>0</integer></argument><argument 
name="path"><text>/test/qmtest-db/orbtest.qms/pytest.qms/servant/Server</text></argument><argument 
name="args"><set/></argument><argument 
name="resources"><set/></argument></extension>

When I run the test, the server seems to start up fine, receives 
requests from the client, but threequarters of the way through the test, 
it crashes with a stack trace as below:
Any help would be appreciated.
Also, documentation on resources seems to be pretty thin.. could someone 
point me to where it might be documented ?

thanks
Siddharth
-------------------------------------
Traceback (most recent call last):
  File "/opt/or-buildtools/bin/qmtest", line 190, in ?
    exit_code = main()
  File "/opt/or-buildtools/bin/qmtest", line 168, in main
    exit_code = command.Execute()
  File "/opt/or-buildtools/lib/qm/test/cmdline.py", line 661, in Execute
    return method()
  File "/opt/or-buildtools/lib/qm/test/cmdline.py", line 1374, in 
__ExecuteRun
    if engine.Run():
  File "/opt/or-buildtools/lib/qm/test/execution_engine.py", line 288, 
in Run
    target.Stop()
  File "/opt/or-buildtools/lib/qm/test/classes/process_target.py", line 
179, in Stop
    self.__ReadResults(self.__busy_children[0][1].fileno())
  File "/opt/or-buildtools/lib/qm/test/classes/process_target.py", line 
230, in __ReadResults
    results = cPickle.load(child[1])
cPickle.UnpicklingError: could not find MARK
[root at sram qmtest-db]# (27842|4143949504) ready to 
Compute(27842|4143949504|SCHED_FIFO|2): DONE with Compute Area servant

Traceback (most recent call last):
  File "/opt/or-buildtools/bin/qmtest", line 190, in ?
    exit_code = main()
  File "/opt/or-buildtools/bin/qmtest", line 168, in main
    exit_code = command.Execute()
  File "/opt/or-buildtools/lib/qm/test/cmdline.py", line 661, in Execute
    return method()
  File "/opt/or-buildtools/lib/qm/test/cmdline.py", line 1292, in 
__ExecuteRemote
    sys.stdout.flush()
IOError: [Errno 32] Broken pipe






More information about the qmtest mailing list