[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] pid X: failed 256 WAS: problems booting kernel
thanks for the quick reply, I've tried several different versions of
the program, using printf, and fprintf(stdin / fprint(stderr, and
tried return 0, and exit(0), but I'm still getting the pid X: failed
256 message.
that i'm not so worried about, but it may be related to the problem
I'm having: printf 'ing anything. my program also has a scanf, but it
never reads anything either.
I'm still using the processor you sent me, I'm going to try to
resynthesize one tommorow, now that I have a working install on a
machine, but it strikes me as really odd that all the busybox stuff
(ls, cat, etc) will print just fine, and my printf stuff won't. is
the system stuff using some special hook, and the processor you sent
doesn't have stdin, stderr attached?
or are there any other culprits I should look at?
thanks for all your help,
jc
On Thu, 25 Nov 2004 17:15:28 +1000, John Williams
<jwilliams@itee.uq.edu.au> wrote:
>
>
> 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/
>
>
--
/* John Carter, BCS
* MSc Student (CIS) - University of Guelph
* email=mrjohndcarter@gmail.com
* site=http://www.jcarter.ca */
___________________________
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/