Bug 8706 - Statically linking against glibc 2.21 results in broken uid/gid detection
Summary: Statically linking against glibc 2.21 results in broken uid/gid detection
Status: RESOLVED INVALID
Alias: None
Product: Busybox
Classification: Unclassified
Component: Other (show other bugs)
Version: 1.24.x
Hardware: All Linux
: P5 major
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
: 8711 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-02-22 13:31 UTC by alex hauras
Modified: 2016-02-23 07:01 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments
busybox config (26.30 KB, text/plain)
2016-02-22 13:31 UTC, alex hauras
Details

Note You need to log in before you can comment on or make changes to this bug.
Description alex hauras 2016-02-22 13:31:11 UTC
Created attachment 6341 [details]
busybox config

Dynamically linked busybox:
# ./busybox whoami
root
# ./busybox groups
root bin daemon sys adm disk wheel floppy tape video

Statically linked busybox:
# ./busybox whoami
whoami: unknown uid 0

# ./busybox groups
0groups: unknown ID 0
 1groups: unknown ID 1
 2groups: unknown ID 2
 3groups: unknown ID 3
 4groups: unknown ID 4
 6groups: unknown ID 6
 10groups: unknown ID 10
 11groups: unknown ID 11
 26groups: unknown ID 26
 27groups: unknown ID 27

... And many other applets, which use text uid/gid names (for example login cannot find user, etc)

glibc 2.21, gcc 4.9.3
tried compiling busybox with gcc -O0 with same error.
Comment 1 alex hauras 2016-02-23 06:58:55 UTC
*** Bug 8711 has been marked as a duplicate of this bug. ***
Comment 2 alex hauras 2016-02-23 07:01:34 UTC
I'm sorry, this is glibc-releated bug BZ-17250, and fix is available :
https://www.sourceware.org/ml/libc-alpha/2015-08/msg00091.html