PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

pgdbg fails on Mac OS X
Goto page Previous  1, 2, 3, 4, 5  Next
 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Debugging and Profiling
View previous topic :: View next topic  
Author Message
Aimé



Joined: 08 Feb 2010
Posts: 7

PostPosted: Mon Feb 08, 2010 9:26 pm    Post subject: Reply with quote

Don, thanks. I need to watch the baby Tuesday and won't be able to mount the disk again where pgf90 etc. are until Wednesday. In GUI I recall only that error message, but I can also paste my previous text session:
Code:
>pgdbg -text ./a.out
PGDBG 8.0-4 x86 (Workstation, 16 Process)
Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved.
Copyright 2000-2008, STMicroelectronics, Inc. All Rights Reserved.
Loaded: /Volumes/Users/fournier/tests/a.out

pgdbg> run
pserv_init: task_for_pid failed:  (os/kern) failure
init_exception_handling: task_get_exception_ports excpt_port fails (ipc/send) invalid destination port
- 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
- send: message send: Broken pipe
pserv_write_msg : write failed: Broken pipe
- send: message send: Broken pipe
pserv_write_msg : write failed: Broken pipe
ERROR: CANNOT LOAD /Volumes/Users/fournier/tests/a.out.
Back to top
View user's profile
donb



Joined: 20 Jul 2004
Posts: 88
Location: The Portland Group, Inc.

PostPosted: Tue Feb 09, 2010 12:07 pm    Post subject: Reply with quote

Aime,
This message:
Code:
pserv_init: task_for_pid failed:  (os/kern) failure
is a clear indication that the problem is related to insufficient privileges with respect to the procmod group.

From your previous postings, I get the impression that your installation may have been customized a bit. If so, that may be affecting this.

The pgdbg driver runs the version of pgdebug that is in the directory where pgdbg and pgdbg1 are located. So even if you have a version of pgdebug on your path in front of pgdbg, if the version of pgdebug in the same directory as pgdbg doesn't have procmod privileges, you will get an error.

For example:
Code:
/usr/local/pgi/bin/pgdebug rwxrwsr-x root procmod
/opt/pgi/osx86/8.0-4/bin/pgdebug rwxrwxr-x root system
/opt/pgi/osx86/8.0-4/bin/pgdbg
/opt/pgi/osx86/8.0-4/bin/pgdbg1
In this scenario, even if /usr/local/pgi/bin is at the front of your PATH, pgdbg will run the copy of pgdebug in /opt/pgi and it will fail due to the procmod issue.

That said, I haven't been able to reproduce the behavior you are seeing. My copy of the 8.0-4 debugger prints a more informative error in this situation, complaining about the lack of procmod privilege.

At this point I'd suggest the following:
- make sure the copy of pgdebug that is in the directory with the copy of pgdbg that you are running has procmod privileges
- try having your IT folks add your user id to the procmod group, and see if that helps.

--Don
Back to top
View user's profile
Aimé



Joined: 08 Feb 2010
Posts: 7

PostPosted: Tue Feb 09, 2010 12:41 pm    Post subject: Reply with quote

Are some CRs mixed up in the 2nd Code part of your message? Here's what I get:
Code:
>ls -l /usr/local/pgi/bin/pgd*b*
-rwxrwxr-x  1 root  admin       9990 Feb 11  2009 /usr/local/pgi/bin/pgdbg*
-rwxrwsr-x  1 root  kmem       23376 Feb 11  2009 /usr/local/pgi/bin/pgdbg1*
-rwxrwsr-x  1 root  procmod  8827988 Feb 11  2009 /usr/local/pgi/bin/pgdebug*
Does that need fixing?
Back to top
View user's profile
donb



Joined: 20 Jul 2004
Posts: 88
Location: The Portland Group, Inc.

PostPosted: Wed Feb 10, 2010 12:08 pm    Post subject: Reply with quote

Aime,
Apologies for the delay in answering.

I experimented with making my copy of pgdbg1 setgid kmem and it didn't seem to have any negative effect. However, there is no reason for it to run setgid kmem, so if I were you I would change it back to group admin with no setgid.

To cover all our bases, we should look at the permissions you have on another executable named pgserv. This is essentially the back-end of the parallel debugger. If its permissions have been modified that could create this problem. It is in the same bin directory with the rest of them.

Ideally, in 8.0-4 all the executables in the bin directory should have "normal" permissions/privileges except for pgdebug, which should have setgid procmod.

Please let me know what you find out.
--Don
Back to top
View user's profile
Aimé



Joined: 08 Feb 2010
Posts: 7

PostPosted: Wed Feb 10, 2010 2:25 pm    Post subject: Reply with quote

Here are "all the executables in the bin directory":
Code:
>ls -l /usr/local/pgi/bin/ | egrep '\*$'
-rwxrwxr-x   1 root      admin    1489688 Feb 11  2009 Jpgprof.jar*
-rwxrwxr-x   1 root      admin     500623 Feb 11  2009 jh.jar*
-rwxrwxr-x   1 root      admin     358081 Feb 11  2009 jpgdbg.jar*
-rwxrwxr-x   1 root      admin       9797 Mar 11  2009 makelocalrc*
-rwxr-xr-x   1 root      admin       9791 Mar 11  2009 makelocalrc.org*
-rwxr-xr-x   1 root      admin      69475 Feb 11  2009 optopgprof*
-rwxrwxr-x   1 root      admin        427 Feb 11  2009 osxtools86rc*
-rwxrwxr-x   1 root      admin      78696 Feb 11  2009 pgappend*
-rwxrwxr-x   1 root      admin      49304 Feb 11  2009 pgar*
-rwxrwxr-x   1 root      admin     192484 Feb 11  2009 pgcc*
-rwxrwxr-x   1 root      admin    1411708 Feb 11  2009 pgcheckout*
-rwxrwxr-x   1 root      admin     196744 Feb 11  2009 pgcpp*
-rwxrwxr-x   1 root      admin      25820 Feb 11  2009 pgcpuid*
-rwxrwxr-x   1 root      admin       9990 Feb 11  2009 pgdbg*
-rwxrwsr-x   1 root      kmem       23376 Feb 11  2009 pgdbg1*
-rwxrwsr-x   1 root      procmod  8827988 Feb 11  2009 pgdebug*
-rwxrwxr-x   1 root      admin      35980 Feb 11  2009 pgdecode*
-rwxrwxr-x   1 root      admin      60924 Feb 11  2009 pgextract*
-rwxrwxr-x   1 root      admin     192484 Feb 11  2009 pgf77*
-rwxrwxr-x   1 root      admin     192484 Feb 11  2009 pgf90*
-rwxrwxr-x   1 root      admin     192484 Feb 11  2009 pgf95*
-rwxrwxr-x   1 root      admin     192484 Feb 11  2009 pghpf*
-rwxrwxr-x   1 root      admin     381380 Feb 11  2009 pgipa*
-rwxr-xr-x   1 root      admin      13788 Feb 11  2009 pgoprun*
-rwxrwxr-x   1 root      admin    1501660 Feb 11  2009 pgprepro*
-rwxrwxr-x   1 root      admin     197160 Feb 11  2009 pgprof*
-rwxrwxr-x   1 root      admin       8507 Feb 11  2009 pgprofrc*
-rwxrwsr-x   1 root      kmem       84212 Feb 11  2009 pgserv*
-rwxrwxr-x   1 root      admin     638372 Feb 11  2009 pgsmart*
-rwxrwxr-x   1 root      admin      47480 Feb 11  2009 pgunzip*
-rwxrwxr-x   1 root      admin      48492 Feb 11  2009 pgzip*
Is there a problem with that?
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Debugging and Profiling All times are GMT - 7 Hours
Goto page Previous  1, 2, 3, 4, 5  Next
Page 2 of 5

 
Jump to:  
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 © phpBB Group