[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] pid X: failed 256 WAS: problems bootingkernel
Hi John,
John Carter wrote:
> I've created a user application, basically "hello, world", using
> printf, added it to the /user/ tree, and it seems to get built just
> fine, but when I run it on the sh shell I get back:
>
> pid X: failed 256
>
> where X is an integer value that keeps increasing and increasing.
> I'm guessing these programs are crashing, and this is just sash's way
> of telling us, but I have feeling this is some omission on my part.
> It does with or without printf. It does it returning void or int.
>
> I looked around, but this is a tough one to search on. Any ideas?
It's not a bug, it's a feature! :) No, seriously!
It's a symptom of the "sash" shell that you are using - if an
application returns a non-zero error code, sash reports that code, in
the rather abrupt manner that you have discovered.
Solutions:
1 - terminate your hello world with return 0 or exit(0)
2 - use a fancier shell (busybox's minix shell is nice).
Regards,
John
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@itee.uq.edu.au
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/