9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Russ Cox" <rsc@swtch.com>
To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu>
Subject: Re: [9fans] Alef - run time error
Date: Sat, 17 Mar 2007 12:19:52 -0400	[thread overview]
Message-ID: <ee9e417a0703170919g2a2b6427p98afa49fc19ad0c6@mail.gmail.com> (raw)
In-Reply-To: <e691cfc32642bdb40cea869108916b51@proxima.alt.za>

On 3/17/07, lucio@proxima.alt.za <lucio@proxima.alt.za> wrote:
> These values are declared in the library (alef/lib/386/run.h) source code:
>
> /* Runtime data structures */
>
> enum
> {
>         Ptab            = 0x7fff5000,   /* Private stack */
>         Execstk         = 0x7f001000,   /* Exec stack linkage area */
> };
>
> The runtime fails:
>
> 8.sieve 6302: suicide: sys: trap: fault write addr=0x7fff5000 pc=0x00001c2d
>
> so I presume that new values and hopefully not major surgery, are
> called for.  Can anyone help?  Also, are there analogous values in the
> other platforms (power, sparc, mips) that require attention?

the pc address space got bigger in 2005 so that programs could
use more than 2gb of memory.  the top of the stack is now
0xdffff000 instead of 0x7ffff000, so if you s/0x7/0xd/ you
will probably be okay.  it would be even better if _main looked
at its stack pointer and anded off some bits, so that those
weren't hard-coded.

power didn't move, and mips and sparc aren't in the main tree anymore.

russ


  reply	other threads:[~2007-03-17 16:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-17 13:55 lucio
2007-03-17 16:19 ` Russ Cox [this message]
2007-03-17 16:58   ` lucio
2007-03-17 18:00     ` erik quanstrom
2007-03-17 21:29   ` Charles Forsyth

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ee9e417a0703170919g2a2b6427p98afa49fc19ad0c6@mail.gmail.com \
    --to=rsc@swtch.com \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).