Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 169612 - sys-auth/nss_ldap-254 badly influences perls getpwuid function
Summary: sys-auth/nss_ldap-254 badly influences perls getpwuid function
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo LDAP project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-06 13:12 UTC by Torsten Kurbad
Modified: 2007-10-09 23:15 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Torsten Kurbad 2007-03-06 13:12:04 UTC
If you call

getpwuid(something);

in perl while >=sys-auth/nss_ldap-240 is active, all further calls to
system();
qx();
open(|pipe_to_executable);

won't execute anything.

I think it's the same behaviour that affected portage a while ago (cf. bug #147625). Is there any fix for that (except for downgrading nss_ldap).

Regards,
Torsten

Reproducible: Always
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-03-06 13:14:08 UTC
(In reply to comment #0)
> I think it's the same behaviour that affected portage a while ago (cf. bug
> #147625). Is there any fix for that (except for downgrading nss_ldap).

If it's the same issue, see Bug 156511.
Comment 2 Torsten Kurbad 2007-03-06 13:22:23 UTC
No, I don't think that it's quite the same.
In fact, getpwuid works fine, even if called several times in a loop, only AFTERWARDS every system-execution fails.

It's not a hang like described in bug #156511... But as it seems to be somehow connected to the mentioned upstream bug, I guess I'll just continue to use sys-auth/nss_ldap-239-r1 until the end of time. ;o)
Comment 3 Horst Prote 2007-04-12 17:05:05 UTC
(In reply to comment #0)
More precisely
> If you call
> 
> getpwuid(something);
in list context(!)
> 
> in perl while >=sys-auth/nss_ldap-240 is active, all further calls to
> system();
> qx();
> open(|pipe_to_executable);
> 
> won't execute anything.
At least in my few tests with calling getpwuid or getpwnam in scalar context
system() calls still work.

Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2007-09-18 23:19:17 UTC
please retest with 257. It contains a SIGPIPE fix.
Comment 5 Horst Prote 2007-10-09 11:57:47 UTC
(In reply to comment #4)

I tested 257 in list context
  @pwflds   = getpwuid( $> );
and scalar context
  $pwflds   = getpwuid( $> );
each with one call to
  system();
  qx();
  open(|pipe_to_executable);
and they all worked.
Comment 6 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2007-10-09 23:15:24 UTC
Thanks, closing.