[Bug 205721] New: getgrgid_r always returns nonsense
https://bugzilla.novell.com/show_bug.cgi?id=205721 Summary: getgrgid_r always returns nonsense Product: openSUSE 10.2 Version: Alpha 4 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: dmueller@novell.com QAContact: qa@suse.de getgrgid_r seems to fail. works on 10.1. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=205721 ------- Comment #1 from dmueller@novell.com 2006-09-14 08:19 MST ------- Created an attachment (id=98694) --> (https://bugzilla.novell.com/attachment.cgi?id=98694&action=view) testcase -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=205721 ------- Comment #2 from dmueller@novell.com 2006-09-14 08:19 MST ------- actual output: r = 34, buf = getgrgid_r: Numerical result out of range expected output: r = 0, buf = suse -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=205721 dmueller@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team- |pbaudis@novell.com |screening@forge.provo.novell| |.com | Severity|Normal |Major -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=205721 pbaudis@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED ------- Comment #3 from pbaudis@novell.com 2006-09-14 08:48 MST ------- getgrgid_r does not return nonsense, it returns the error code for ERANGE, which is in sync with the documentation. Of course, the error still shouldn't happen. Do you have any system/chroot at hand I could use to test it? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=205721 pbaudis@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |dmueller@novell.com ------- Comment #5 from pbaudis@novell.com 2006-09-22 08:15 MST ------- There is new glibc in BETA, could you please check with it? (Because I can't reproduce it with latest BETA glibc in chroot on another machine.) I'm reluctant to upgrade glibc on other people's machines. ;-) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=205721 ------- Comment #6 from pbaudis@novell.com 2006-10-02 03:19 MST ------- Ping? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=205721 dmueller@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|dmueller@novell.com | ------- Comment #7 from dmueller@novell.com 2006-10-02 06:12 MST ------- $ rpm -q glibc glibc-2.4.90-20 $ ./getgrid r = 34, buf = 50 getgrgid_r: Numerical result out of range -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=205721 ------- Comment #8 from pbaudis@novell.com 2006-10-04 16:09 MST ------- The issue here is that the suse group has way too many members already and the resulting string is longer than _SC_GETGR_R_SIZE_MAX (1024), so getgrgid_r() asks for longer buffer by -ERANGE. This is obviously non-standard behaviour but the standard here makes no sense I believe and the only conforming implementation would have insanely high _SC_GETGR_R_SIZE_MAX. I have filed an Aardvark issue with OpenGroup and waiting for their feedback on the issue now. A possible workaround would be to raise _SC_GETGR_R_SIZE_MAX to say 16384 but I would prefer to avoid doing that unilaterally without some coordination with upstream. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=205721 ------- Comment #9 from pbaudis@novell.com 2006-10-15 20:32 MST ------- BTW, is it just a generic problem or does it break some particular application? Given the situation I'd recommend patching the application so that it supports growing getgrgid_r() buffer at any rate. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=205721 ------- Comment #10 from dmueller@novell.com 2006-10-16 03:55 MST ------- it breaks some unit tests in KDE 4.x I guess I'll have to patch it to retry with a bigger buffer. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=205721 ------- Comment #11 from dmueller@novell.com 2007-06-04 07:59 MST ------- ping.. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=205721 Dirk Mueller <dmueller@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Found By|Other |Development -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=205721 User pbaudis@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=205721#c12 Petr Baudis <pbaudis@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #12 from Petr Baudis <pbaudis@novell.com> 2008-12-04 16:47:00 MST --- Now, getgrgid_r() opengroup specification finally documents the ERANGE error and the behavior can be considered standard. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com