sh (pid 1081) segfaults for page address 00000000 at pc 00000000

Cristian Ionescu-Idbohrn cristian.ionescu-idbohrn at axis.com
Wed Jan 28 18:23:17 UTC 2009


On Wed, 28 Jan 2009, Denys Vlasenko wrote:

> On Tuesday 27 January 2009 01:09, Cristian Ionescu-Idbohrn wrote:
> > On Tue, 27 Jan 2009, Denys Vlasenko wrote:
> > > What is your .config?
> >
> > Attached.
>
> Hmm, CONFIG_ASH_BUILTIN_PRINTF=y!

So you suspect printf.  Let me check if I use it...
No, I don't.

> Does it help if you switch this off?

Will do.

> > > What is a most minimal .config it happens on
> > > (switch off applets/options and try again, until you
> > > are sure any of the remaining options is needed
> > > for this bug to happen)
> >
> > That's difficult too :(  The embedded system may get crippled to such
> > degree that nothing will work.
>
> No. You can have two busybox binaries, one "big", and another with
> just ash compiled in. This way, the rest of the system wouldn't need
> to be stripped due to lack of the commands.

Ok.  Doable.  I'll get back with some results.
Lots of TODO on my list.

Thank you all for the ideas.
I'm still not excluding a compiler bug.


Cheers,

-- 
Cristian


More information about the busybox mailing list