Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ptp-dev] Debugger problem in CVS HEAD ?

Hi,

I got this error on head too. I think the problem occurred on proxy_msg.c. You can try to get the 1.9 version of proxy_msg.c in org.eclipse.ptp.proxy package.

Clement

Ricardo Marin Matinata wrote:
On Tue, 2007-08-21 at 09:34 +1000, Clement Kam Man Chu wrote:
Hi,

The timeout value is depending on the setting of preference windows. I haven't got this problem before, but an user reported the same problem. I have committed a change to cvs to avoid this happen. Please updates from cvs and try again. Thanks.

Clement


Clement: Thanks, the timeout problem has gone.

Greg: Unfortunately, now i'm getting a segmentation fault in sdm. Here
is the Eclipse console output and, further below, the stack trace of sdm
from the core dump:

---------------
ECLIPSE CONSOLE
---------------
sessionCreate(0,60000)
bind(0.0.0.0/0.0.0.0:0)
port=55896
accept thread starting...
-> ProxyRuntimeSubmitJobCommand tid=5 debugArgs=--host=localhost
debugArgs=--debugger=gdb-mi debugArgs=--debugger_path=/usr/bin/gdb
debugArgs=--debug=8 debugArgs=--port=55896 jobNumProcs=1 debug=true
jobSubId=JOB_11877026776340 debugExecName=sdm
workingDir=/opt/home/ptp/runtime-ptp-europa/hello execName=hello
execPath=/opt/home/ptp/runtime-ptp-europa/hello/Debug queueId=16777219
debugExecPath=/opt/home/ptp/workspace-ptp-3.3/org.eclipse.ptp.linux.x86/bin
ORTE@Local:   ORTE_SubmitJob (5): debugArgs=--host=localhost
ORTE@Local: Debugging 1 processes of job
'/opt/home/ptp/runtime-ptp-europa/hello/Debug/hello'
ORTE@Local: 	program name
'/opt/home/ptp/runtime-ptp-europa/hello/Debug/hello'
ORTE@Local: About to launch
debugger: /opt/home/ptp/workspace-ptp-3.3/org.eclipse.ptp.linux.x86/bin/sdm on 2 procs
ORTE@Local: SPAWNED [error code 0 = 'Success'], now unlocking
ORTE@Local: NEW JOB (JOB_11877026776340,16777220,2)
ORTE@Local: registering IO forwarding - name = ''
ORTE@LocalProxyRuntimeClient recieved event 0 transid=5
ORTE@LocalProxyRuntimeClient recieved event 220 transid=4
(16777219,1,16777220,3,jobSubId=JOB_11877026776340,name=job02,jobState=STARTED)
ORTE@LocalProxyRuntimeClient recieved event 223 transid=4
(16777220,1,16777221,5,name=0,processState=STARTING,processNodeId=16777218,processIndex=0,processPID=0)
debug: received connected event
accept thread exiting...
ORTE@LocalProxyRuntimeClient recieved event 230 transid=4
(1,16777220,1,jobState=RUNNING)
debug: waiting for connect
event thread starting...
*** SEND COMMAND: Start debugger, tasks: 0
-> ProxyDebugStartSessionCommand tid=2
hello /opt/home/ptp/runtime-ptp-europa/hello/Debug /opt/home/ptp/runtime-ptp-europa/hello
ORTE@Local: MI: SEND -gdb-set environment OMPI_MCA_ns_nds_jobid=2
ORTE@Local: MI: RECV ~"Using host libthread_db library
\"/lib/libthread_db.so.1\".\n"
ORTE@Local: MI: RECV (gdb) ORTE@Local: MI: RECV ^done ORTE@Local: (gdb) *** SET COMMAND RETURN: Start debugger, result: OK, tasks: 0
ORTE@Local: MI: SEND -gdb-set environment OMPI_MCA_ns_nds_vpid=0
ORTE@Local: MI: RECV ^done
ORTE@Local: (gdb) ORTE@Local: MI: SEND -gdb-set environment OMPI_MCA_ns_nds_num_procs=1
ORTE@Local: MI: RECV ^done
ORTE@Local: (gdb) ORTE@Local: MI: SEND -gdb-set confirm off
*** SEND COMMAND: Set line breakpoint, tasks: 0
-> ProxyDebugSetLineBreakpointCommand tid=3 1:01 0 0 0 hello.c 15 "" 0 0
ORTE@Local: MI: RECV ^done
ORTE@Local: (gdb) ORTE@Local: MI: SEND -gdb-version
*** SET COMMAND RETURN: Set line breakpoint, result:
org.eclipse.ptp.debug.external.core.cdi.breakpoints.LineBreakpoint@1f161ac, tasks: 0
*** SEND COMMAND: Go, tasks: 0
***** Debugger event:
org.eclipse.ptp.debug.external.core.cdi.event.InferiorResumedEvent@136d8e4
ORTE@Local: MI: RECV ~"GNU gdb Red Hat Linux (6.5-15.fc6rh)\n"
-> ProxyDebugGoCommand tid=4 1:01
ORTE@Local: MI: RECV ~"Copyright (C) 2006 Free Software Foundation,
Inc.\n"
ORTE@Local: MI: RECV ~"GDB is free software, covered by the GNU General
Public License, and you are\n"
event thread IOException . . . EOF from proxy
debug: received disconnected event
event thread exited
ORTE@Local: MI: RECV ~"welcome to change it and/or distribute copies of
it under certain conditions.\n"
ORTE@Local: MI: RECV ~"Type \"show copying\" to see the conditions.\n"
ORTE@Local: MI: RECV ~"There is absolutely no warranty for GDB.  Type
\"show warranty\" for details.\n"
ORTE@Local: MI: RECV ~"This GDB was configured as
\"i386-redhat-linux-gnu\".\n"
ORTE@Local: MI: RECV ^done
ORTE@Local: (gdb) ORTE@Local: SDM[8,0]: ------------------- gdb version: 6.500000
ORTE@Local: MI: SEND -break-insert hello.c:15
ORTE@Local: MI: RECV
^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x08048395",func="main",file="../src/hello.c",fullname="/opt/home/ptp/runtime-ptp-europa/hello/src/hello.c",line="15",times="0"}
ORTE@Local: (gdb) ORTE@Local: [rmm-tp:15830] *** Process received signal ***
ORTE@Local: [rmm-tp:15830] Signal: Segmentation fault (11)
ORTE@Local: [rmm-tp:15830] Signal code: Address not mapped (1)
ORTE@Local: [rmm-tp:15830] Failing at address: 0x31303a39
ORTE@Local: [rmm-tp:15830] [ 0] [0xb7f9d440]
ORTE@Local: [rmm-tp:15830]
[ 1] /opt/devel/mpi/lib/libopen-pal.so.0(malloc+0x88) [0xb7e84218]
ORTE@Local: [rmm-tp:15830]
[ 2] /opt/home/ptp/workspace-ptp-3.3/org.eclipse.ptp.linux.x86/bin/sdm(bitset_new+0x44) [0x80781a4]
ORTE@Local: [rmm-tp:15830]
[ 3] /opt/home/ptp/workspace-ptp-3.3/org.eclipse.ptp.linux.x86/bin/sdm(str_to_bitset+0xc6) [0x8078acc]
ORTE@Local: [rmm-tp:15830]
[ 4] /opt/home/ptp/workspace-ptp-3.3/org.eclipse.ptp.linux.x86/bin/sdm(DbgClntGo+0x13) [0x8050836]
ORTE@Local: [rmm-tp:15830]
[ 5] /opt/home/ptp/workspace-ptp-3.3/org.eclipse.ptp.linux.x86/bin/sdm
[0x80769cb]
ORTE@Local: [rmm-tp:15830]
[ 6] /opt/home/ptp/workspace-ptp-3.3/org.eclipse.ptp.linux.x86/bin/sdm
[0x8076117]
ORTE@Local: [rmm-tp:15830]
[ 7] /opt/home/ptp/workspace-ptp-3.3/org.eclipse.ptp.linux.x86/bin/sdm(CallEventHandlers+0x3a) [0x8079c0c]
ORTE@Local: [rmm-tp:15830]
[ 8] /opt/home/ptp/workspace-ptp-3.3/org.eclipse.ptp.linux.x86/bin/sdm
[0x80766f3]
ORTE@Local: [rmm-tp:15830]
[ 9] /opt/home/ptp/workspace-ptp-3.3/org.eclipse.ptp.linux.x86/bin/sdm
[0x8076852]
ORTE@Local: [rmm-tp:15830]
[10] /opt/home/ptp/workspace-ptp-3.3/org.eclipse.ptp.linux.x86/bin/sdm(proxy_svr_progress+0x1f) [0x80759d9]
ORTE@Local: [rmm-tp:15830]
[11] /opt/home/ptp/workspace-ptp-3.3/org.eclipse.ptp.linux.x86/bin/sdm(DbgClntProgress+0x18) [0x8051826]
ORTE@Local: [rmm-tp:15830]
[12] /opt/home/ptp/workspace-ptp-3.3/org.eclipse.ptp.linux.x86/bin/sdm(client+0xac) [0x804fea4]
ORTE@Local: [rmm-tp:15830]
[13] /opt/home/ptp/workspace-ptp-3.3/org.eclipse.ptp.linux.x86/bin/sdm(main+0x307) [0x804fd72]
ORTE@Local: [rmm-tp:15830] [14] /lib/libc.so.6(__libc_start_main+0xdc)
[0xc02dec]
ORTE@Local: [rmm-tp:15830]
[15] /opt/home/ptp/workspace-ptp-3.3/org.eclipse.ptp.linux.x86/bin/sdm(free+0x99) [0x804f951]
ORTE@Local: [rmm-tp:15830] *** End of error message ***
ORTE@LocalProxyRuntimeClient recieved event 230 transid=4
(1,16777220,1,jobState=TERMINATED)

-------------------------
SDM core dump stack trace
-------------------------
Core was generated by
`/opt/home/ptp/workspace-ptp-3.3/org.eclipse.ptp.linux.x86/bin/sdm
--host=l'.
Program terminated with signal 11, Segmentation fault.
#0  0xb7e822bc in _int_malloc ()
from /opt/devel/mpi/lib/libopen-pal.so.0
(gdb) info stack #0 0xb7e822bc in _int_malloc ()
from /opt/devel/mpi/lib/libopen-pal.so.0
#1  0xb7e84218 in malloc () from /opt/devel/mpi/lib/libopen-pal.so.0
#2  0x080781a4 in bitset_new (nbits=1) at src/bitset.c:38
#3  0x08078acc in str_to_bitset (str=0x87ad759 "") at src/bitset.c:386
#4  0x08050836 in DbgClntGo (tid=4, nargs=1, args=0x87b1c98)
    at src/client/client_cmds.c:408
#5 0x080769cb in proxy_tcp_svr_dispatch (svr=0x87ae418, msg=0x87ad880 " 000a", len=37) at src/proxy_tcp_svr.c:398
#6  0x08076117 in proxy_tcp_svr_cmd_callback (cmd_data=0x87ae418,
data=0x0)
    at src/proxy_tcp_svr.c:104
#7  0x08079c0c in CallEventHandlers (type=2, data=0x0) at
src/handler.c:134
#8  0x080766f3 in proxy_tcp_svr_process_cmds () at
src/proxy_tcp_svr.c:299
#9  0x08076852 in proxy_tcp_svr_progress (svr=0x87ae418)
    at src/proxy_tcp_svr.c:357
#10 0x080759d9 in proxy_svr_progress (ps=0x87ae418) at
src/proxy_svr.c:98
#11 0x08051826 in DbgClntProgress () at src/client/client_cmds.c:948
#12 0x0804fea4 in client (svr_num=2, task_id=1, proxy=0x807a3cc "tcp", host=0xbfcf734a "localhost", port=55896) at src/client/client.c:123
#13 0x0804fd72 in main (argc=0, argv=0xbfcf6610) at
src/client/startup.c:197
(gdb)

Ricardo Marin Matinata wrote:
Hi,

Is there any problem with the debugger on the latest code in CVS ?
I'm trying to debug a simple *Hello World* application, Linux x86, and
i'm getting the following error:

	Error on taks: 0 - Time out - Command start debugger




--
Clement Kam Man Chu
Research Assistant
Faculty of Information Technology
Monash University, Caulfield Campus
Ph: 61 3 9903 2355



Back to the top