|
| View previous topic :: View next topic |
| Author |
Message |
donb
Joined: 20 Jul 2004 Posts: 82 Location: The Portland Group, Inc.
|
Posted: Wed Feb 10, 2010 2:39 pm Post subject: |
|
|
Aime,
Yes, the executable file "pgserv" should not have the set-group-id bit set, nor should it be in group "kmem". That is overriding the "procmod" group privileges that pgserv inherits from pgdebug when pgdebug executes it.
I recommend the following commands (it will require a privileged user to make these changes successfully):
| Code: | $cd /usr/local/pgi/bin
$ chgrp admin pgdbg1 pgserv
$ chmod 775 pgdbg1 pgserv |
Let me know how it goes.
--Don |
|
| Back to top |
|
 |
Aimé
Joined: 08 Feb 2010 Posts: 7
|
Posted: Thu Feb 11, 2010 9:49 am Post subject: |
|
|
Don,
That did the trick. Thanks!
Aimé |
|
| Back to top |
|
 |
khea_actua1
Joined: 06 Nov 2008 Posts: 42 Location: Carleton University
|
Posted: Fri Feb 10, 2012 3:24 pm Post subject: Cannot debug programs |
|
|
I have a similar issue as the person in this posting, except the solution didn't work for me.
Error:
| Code: |
matt@pontus:run.14.all_tlm-nox_emi$ pgdebug ctm_mod.Abs
PGDBG 10.9-0 x86-64 (Workstation, 8 Process)
Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved.
Copyright 2000-2010, STMicroelectronics, Inc. All Rights Reserved.
Loaded: /Users/matt/aurams/trunk/versions/beta/runs/run.14.all_tlm-nox_emi/ctm_mod.Abs
pgdbg> run
pserv_init: task_for_pid failed: (os/kern) failure
- recv: message receive: Undefined error: 0
fetch_request : broken pipe or eof: Undefined error: 0
- recv: message receive: Undefined error: 0
fetch_request : broken pipe or eof: Undefined error: 0
- recv: message receive: Undefined error: 0
fetch_request : broken pipe or eof: Undefined error: 0
- recv: message receive: Undefined error: 0
fetch_request : broken pipe or eof: Undefined error: 0
ERROR: CANNOT LOAD /Users/matt/aurams/trunk/versions/beta/runs/run.14.all_tlm-nox_emi/ctm_mod.Abs.
|
PGI directory:
| Code: |
cd /opt/pgi/osx86-64/10.9/bin
ls
...
-rwxrwxr-x 1 root admin 91K 9 Sep 2010 pgserv
-rwxrwxr-x 1 root admin 14M 9 Sep 2010 pgdebug
-rwxrwxr-x 1 root admin 252K 9 Sep 2010 pgdbg
...
|
I also tried adding my self to the procmod group, I had those files above in the procmod group, I tried them with the set GID bit, etc.. No luck so far.
I'm using OS X Lion (1.7.3), 86x64 architecture, PGI 10.9
Help? |
|
| Back to top |
|
 |
donb
Joined: 20 Jul 2004 Posts: 82 Location: The Portland Group, Inc.
|
Posted: Mon Feb 13, 2012 12:15 pm Post subject: |
|
|
The task_for_pid error is always a result of the procmod permission issue. So I'm guessing that after fixing the permissions, you started seeing some other errors.
It looks like you are using PGI 10.9.
Lion has some new security features that affect debugging. To use PGDBG on Lion, you will need release 12.1. Also, in 12.1 on Lion, dynamic library debugging (e.g. .dylib files) is disabled. We are working with Apple to resolve that issue.
--Don |
|
| Back to top |
|
 |
khea_actua1
Joined: 06 Nov 2008 Posts: 42 Location: Carleton University
|
Posted: Tue Feb 14, 2012 9:08 am Post subject: |
|
|
Oh... Though I do have a current PGI subscription on one of our Linux boxes, the subscription on this OS X machine is expired.
So.... Basically I won't be able to debug my code with the PGI debugger we bought on OS X Lion without re-buying a license to upgrade it?
Can PGI code be debugged with gdb? (I know this is a general question, but I've never actually known the answer.) |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2002 phpBB Group
|