Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[ptp-dev] Invoking SDM debugger to debug PE applictaion fails with rc -1

Greg
I'm looking at Ping's problem debugging PE applications using the SDM 
debugger where the master process startup fails with rc -1.

I verified that the code in my PE proxy which attempted to write the 
routing file is ifdef-ed out of the executable, so my proxy is not writing 
anything to the routing_file. However, the routing_file is corrupt, 
consisting only of a '0' followed by newline.

I wrote a wrapper script to invoke my proxy under control of strace so I 
could see the I/O and process-related calls made by it. I have a trace 
that shows all opens, reads and writes, along with exec calls. The only 
open of the routing_file is for read-only, and that is in the SDM process 
itself. So my proxy is not corrupting the routing_file by writing over it.

Can you see any cases where the front end code would generate a 
routing_file where it thinks that there are zero processes in the 
application? I might not be passing across an event in the correct format 
to let the debugger know what the processes are, resulting in a corrupt 
file. I don't know which messages the front end debugger code might be 
looking for to build the routing file, so any guidance you have would be 
helpful.

The other possibility is that if some of the data in the messages is in 
binary format rather than ASCII text, then there might be a byte ordering 
(endian) problem, since this is x86 Linux, while I was able to debug 
successfully all last week with ppc Linux.

I haven't tested my proxy's invocation of the debugger on x86 Linux at 
all, since I didn't have access to a x86 system with PE installed. I will 
try to get access to a system here and see if I can get the failure 
locally.
Dave


Back to the top