[BusyBox] problem with getpwuid_r()

defranceschi at medicoweb.com defranceschi at medicoweb.com
Wed Aug 13 16:51:45 UTC 2003


> defranceschi at medicoweb.com wrote:
>
>> I'm building an embedded system on x86 based on BusyBox v0.60.5. I
>> haven't installed a tinylogin, but I have made the following files
>>
>> ~ # cat /etc/passwd
>> root:x:0:0:root:/root:/bin/sh
>> soph::500:100:soph:/home/soph:/bin/sh
>> nobody:x:65534:65534:nobody:/tmp:/bin/sh
>>
>> ~ # cat /etc/group
>> root:x:0:root
>> users:x:100:
>> daemon:x:1:
>> shadow:x:42:
>> nogroup:x:65534:
>>
>> ~ # cat /etc/profile
>> #/etc/profile: system-wide .profile file for ash.
>> alias 'll=ls -la'
>> PATH=/usr/bin:/usr/sbin:/bin:/sbin:/usr/local/bin:/usr/local/sbin:/root
>> hostname -F /etc/hostname
>> USER=`id -un`
>> HOSTNAME=`hostname`
>> LOGNAME=$USER
>> HOME="/root"
>> PS1="\u@\h\W# "
>> export PS1 PATH USER LOGNAME HOME
>>
>> I have these setting on Makefile:
>> USE_SYSTEM_PWD_GRP = false
>>
>> I have these libc version:
>> lrwxrwxrwx    1 root     root           13 Aug 11 10:52 libc.so.6 ->
>> libc-2.2.4.so
>> -rwxr-xr-x    1 root     root      5716491 Feb 19 15:08 libc-2.2.4.so
>>
>> my application (lissajouls) don't run and it show me the following
>> message: (lissajouls:200): GLib-WARNING **: getpwuid_r(): failed due
>> to unknown user id (0)
>> (!) --->  CAUGHT SIGNAL 11  <---
>> Segmentation fault
>>
>> Can anyone help me out ?
>
> Have you  libnss_files.*.so?
> Setuped you /etc/nsswitch.conf ?
>
> If you haven`t size for libnss*, you can compile with busybox libpwd. I
> recomended use fresh busybox-1.pre version also.
>
>
> --w
> vodz

thank you ...
I added some librarys as you like suggest.
I recompiled BusyBox with:
USE_SYSTEM_PWD_GRP = true
The WARNING is fixed but signal 11 is still present :(

I use DirectFB library for build graphic interface under frame buffer.
On RedHat_7.3 I compile my source both for X11 that FB (with two entry on
Makefile).
On Busybox (with the same kernel :(  my application crash in this way:
~ # ./lissajouls

       ---------------------- DirectFB v0.9.17 ---------------------
             (c) 2000-2002  convergence integrated media GmbH
             (c) 2002       convergence GmbH
        -----------------------------------------------------------

(*) Single Application Core. (with MMX support) (2003-02-17 15:31)
(*) DirectFB/misc/memcpy: using linux kernel memcpy()
(*) DirectFB/InputDevice: MuTouch SMT3-R 2.20 (Microtouch)
(*) DirectFB/InputDevice: Keyboard 0.9 (convergence integrated media GmbH)
(*) MMX detected and enabled
(*) DirectFB/GraphicsDevice: MMX Software Rasterizer 0.6 (convergence
integrated media GmbH)
(!) --->  CAUGHT SIGNAL 11  <---
Segmentation fault
~ #

Can you (or anyone) help me ?
Thanks very much in advance!
Andrea.







More information about the busybox mailing list