June 17th, 2011, 01:24 AM #1
shell-init problem while debugging a c++ program on os x server via xocde and gdb.
When ever i try to run either a c or a c++ program on mac os x server v10.6.7 using a admin (non root) account i get the following error:
[Switching to process 1387]
shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
arch: /Users/vivektripathi/Documents/Exprms/Research/dna/build/Debug/dna isn't executable
the xcode version is 3.2.6 and gdb version is 6.3.50-20050815 (Apple version gdb-1515)
The point to note is that the same error is not generated when i login as the root user. Also this error is not generated when the same program is run on same version of non server leopard and also the scode and gdb versions being same. I tried few things but was unable to remove the error.
Any help and suggestions are welcome.
thanks in advance.