This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 270821

Summary: Unable to attach debugger to running process executable having relative path
Product: cnd Reporter: ranjan.khanna
Component: DebuggerAssignee: Maria Tishkova <mromashova>
Status: STARTED ---    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description ranjan.khanna 2017-06-06 21:12:47 UTC
I am trying to attach a debugger to following  process(output from ps -ef) 

ranjan  63978      1  0 Jun02 ?        00:00:17 /home/Middleware/wlserver/../ohs/bin/httpd -DOHS_MPM_EVENT -d /home/Middleware/user_projects/domains/base_domain/config/fmwconfig/components/OHS/instances/ohs1 -k start -f /home/Middleware/user_projects/domains/base_domain/config/fmwconfig/components/OHS/instances/ohs1/httpd.conf

Since the process executable has ".." in the path, the debugger throw error "Does not exist or is not an executable".

I have reproduced the issue with a simple test application and run it using  "/home/../home/test"  and debugger throws the error.
Comment 1 Maria Tishkova 2017-06-26 17:23:07 UTC
relative path works just fine for attach.

Can you run in command line the following commands:


test -x /home/Middleware/wlserver/../ohs/bin/httpd -a -f /home/Middleware/wlserver/../ohs/bin/httpd

echo $?



and send the result 


P.S. test utilities will be searched in     {"/usr/bin", "/usr/sbin", "/bin" }
Comment 2 ranjan.khanna 2017-06-26 19:08:59 UTC
output after running the test on the executable is: 0
Comment 3 Maria Tishkova 2017-06-27 14:03:09 UTC
can you please attach GDb log (http://wiki.netbeans.org/GdbLog) and messages.log