gcc and initgroups()

From: Ulrich Windl (Ulrich.Windl_at_RZ.Uni-Regensburg.DE)
Date: 05/30/05


Date: 30 May 2005 13:38:39 +0200

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



Relevant Pages

  • Re: Perl/Tk build fails on HP-UX
    ... Perl 5.8.7 compiled with cc ... HP's bundled cc compiler (non-ansi) ... Looks like your HP-UX installation didn't include the development ...
    (comp.lang.perl.modules)
  • [HPADM] Unison/OCAML
    ... Unfortunately I can't find any binary for HP-UX so I have to compile the ... Unison is written in "Objective Caml" so I need the ... To complicate things even further I can't compile the ocaml compiler: ...
    (HP-UX-Admin)
  • [HPADM] Summary: Compiling gcc-sources on HP-UX
    ... Compiling gcc-sources on HP-UX ... a full ANSI C compiler is not included. ... > Universiteit Hasselt ...
    (HP-UX-Admin)
  • TYPE declarations with MAP and UNION
    ... I'm attempting to port from MS/Compaq Fortran to HP-UX Fortran ... real killer is the UNION and MAP statements within a TYPE declaration ... F90 is a good compiler it's just not quite as flexible with the rules as ...
    (comp.lang.fortran)
  • Re: [SLE] Cross Compiler for HPUX
    ... > Has anyone had success building a gcc cross compiler for a hpux host? ... > I have a suse machine with gcc and i wish to compile C code for a HPUX11i ... HP-UX has a much different set of libraries and header files. ...
    (SuSE)