process environment handling broken

Alessio Massaro alessio.massaro at oxinst.co.uk
Fri Apr 28 08:50:03 UTC 2006


I use the builtin ash shell of busybox and the builtin "env" command gives a
seg fault too.

I've prepared a debugging rootfs and I'm about to start banging this thing.
Wish me luck! :-)


> -----Original Message-----
> From: Bennett Todd [mailto:bet at rahul.net] 
> Sent: 27 April 2006 20:21
> To: Alessio Massaro
> Cc: uclibc at uclibc.org
> Subject: Re: process environment handling broken
> 
> 2006-04-27T04:34:50 Alessio Massaro:
> > All the info gets built correctly into an envp vector in 
> > busybox/networking/udhcp/script.c (fill_envp function) which is 
> > correctly passed to execle syscall to run the i/f config script.
> > Yet the script has none of the environment variables defined.
> 
> I can't explain that one.
> 
> I've used busybox+uclibc successfully, including udhcpc. I 
> use uClibc as the basis of my main desktop Linux distro, Bent 
> Linux[1].
> envars work fine.
> 
> Sounds to me like a bug in the shell you're using as /bin/sh. 
> I'd be a bit surprised if there were a version of uclibc 
> anywhere where getenv didn't work.
> 
> -Bennett
> 
> [1] <URL:http://bent.linux.net/>, my midlife-crisis project. Sound
>     bite "Unix as I came to love her, in the early 1980s, when both
>     she and I were a lot younger and healthier". uClibc (and some
>     dietlibc), strictly static linking, no dynamic loading at all,
>     no i18n, no GUI. Makes a lovely desktop workstation for a crank
>     like me, probably for nobody else in the world:-). But a fine
>     basis for custom-built hardened servers, initrds, and other
>     embedded applications. Plus, Bent Linux packages, being
>     statically linked, are univeral doners.
> 
> +++ Virus-scanned by Messagelabs for Oxford Instruments +++
> 




More information about the uClibc mailing list