Protection fault with 'time' command.

Steven J. Hill sjhill at realitydiluted.com
Fri Feb 19 06:03:26 UTC 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Greetings.

I am trying to track down an issue with the 'time' command giving me a
general protection fault on my uClinux no-MMU ARM platform. I have
tracked it down to the line in 'run_command' doing the 'execvp' call:

   BB_EXECVP(cmd[0], cmd);

If I run 'time' and do not give it any arguments, I get the fault. I
decided to print the 'cmd' and 'cmd[0]' values:

  cmd = 0x0x1004ff68
  cmd[0] = 0x00000000

However, if I provide just one argument, if it is bogus, then 'cmd[0]'
has a valid pointer and I do not get the GP fault. One other thing to
note is that my root file system is a ROMFS. I guess I'm looking for
any ideas people might have. I'm not sure whether to blame busybox,
uClibc, or what at this point. Thanks in advance.

Steve
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkt+Ka0ACgkQgyK5H2Ic36elswCdFx/pu4B28MshGBldoCO8EIs3
aHgAnj++eCb3Ob0ZjYEX6dyNNJO+cFbR
=ieU+
-----END PGP SIGNATURE-----


More information about the busybox mailing list