[parisc-linux] C100 improvements, problems
Richard Hirst
rhirst@linuxcare.com
Sun, 4 Feb 2001 12:11:06 +0000
On Fri, Jan 26, 2001 at 12:16:29PM -0600, Greg Ingram wrote:
> > There is a bug in more (really!), now fixed, but needs a rebuild. If you
> > invoke it as /bin/more you'll be ok.
>
> I believe it, I just don't believe it. Is this related to stack
> direction? (What is it: grows down on parisc but up on Intel and most
> other Linux-supported processors?) If so, what is more fiddling with on
> its stack? Does it alter its behavior based on argv[0]? Oh well, not
> really too important now, I guess.
parsic grows up, most others grow down. 'more' checked argv[0] to see
how it was invoked, and due to a coding bug tried to read argv[0][-1].
As argv[0] is the first item on our stack, that caused a trap.
Richard