Unix Technical Forum

gcc and initgroups()

This is a discussion on gcc and initgroups() within the HP-UX Operating System forums, part of the Unix Operating Systems category; --> Hello, I'm wondering whether it's a compiler or a library problem: GCC on HP-UX compiles a program using initgroups() ...


Go Back   Unix Technical Forum > Unix Operating Systems > HP-UX Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-16-2008, 07:12 PM
Ulrich Windl
 
Posts: n/a
Default gcc and initgroups()

Hello,

I'm wondering whether it's a compiler or a library problem: GCC on HP-UX
compiles a program using initgroups() in a way that it dumps core. Compiling
the same source with HP's bundled CC, doesn't dump core. Furthermore the
GCC-compiled binary doesn't dump core if I remove the line "+:" from
/etc/group.

See also http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21719

I found this bug wile debugging "sudo" crashes. Works on all machines except
one.

Regards,
Ulrich
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-16-2008, 07:12 PM
all mail refused
 
Posts: n/a
Default Re: gcc and initgroups()

On 2005-05-30, Ulrich Windl <Ulrich.Windl@RZ.Uni-Regensburg.DE> wrote:

> I'm wondering whether it's a compiler or a library problem: GCC on HP-UX
> ... doesn't dump core if I remove the line "+:" from /etc/group.


HP-UX version ?
10.x is obsolete.
11.x uses /etc/nsswitch.conf and doesn't need "+:".

--
Elvis Notargiacomo master AT barefaced DOT cheek
http://www.notatla.org.uk/goen/
Powergen write "Why not stay with us" - let me count the ways!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-16-2008, 07:12 PM
nospam@example.com
 
Posts: n/a
Default Re: gcc and initgroups()

In article <86acmd6j0g.fsf@pc8032.rz.uni-regensburg.de>,
Ulrich Windl <Ulrich.Windl@RZ.Uni-Regensburg.DE> wrote:

>See also http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21719


I responded in the GCC bug report, basically I think you need
the HP-UX libc patch PHCO_31903.

Steve Ellcey
sje <AT> cup . hp . com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-16-2008, 07:19 PM
Ulrich Windl
 
Posts: n/a
Default Re: gcc and initgroups()

all mail refused <elvis-45987@notatla.org.uk> writes:

> On 2005-05-30, Ulrich Windl <Ulrich.Windl@RZ.Uni-Regensburg.DE> wrote:
>
> > I'm wondering whether it's a compiler or a library problem: GCC on HP-UX
> > ... doesn't dump core if I remove the line "+:" from /etc/group.

>
> HP-UX version ?


11.11 on PA-RISC

> 10.x is obsolete.
> 11.x uses /etc/nsswitch.conf and doesn't need "+:".
>
> --
> Elvis Notargiacomo master AT barefaced DOT cheek
> http://www.notatla.org.uk/goen/
> Powergen write "Why not stay with us" - let me count the ways!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:51 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com