9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Quinn Dunkan <quinn@envy.ugcs.caltech.edu>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] more questions
Date: Wed,  4 Apr 2001 02:14:37 -0700	[thread overview]
Message-ID: <200104040914.CAA00691@tammananny.tiger> (raw)
In-Reply-To: Your message of "Wed, 28 Mar 0100 11:21:08." <20010328101459.DF9E1199C0@mail.cse.psu.edu>


[ rog ]
> i've been bitten by that regexp problem before.  your problem is that
> the matches array is being used uninitialised.  as the documentation
> says:

Of course, you're right.  I forgot about that whole uninitialized-auto-
variables thing.  Sorry to inflict my C-ignorance on the list.

But here's something else.  I've been having my program suicide, and while
tracking it down, managed to provoke a kernel panic.  The message is:

panic: fp: status 8181  fppc=0xfa62 pc=0x80100241
ktrace /kernel/path 8010649e 80c209ac
[ lots of hex ]


It has something to do with a number >= 2147483648, which smells like integer
overflow.  But the weird thing is that the number is being stored in a double,
and then cast to a ulong (and it does look like an fpu thing).  And whether or
not it crashes the program or the kernel changes when I do things like take
unrelated code out of the link line, or change the order of events.

A tarball with a few plan9 binaries that crash my kernel every time is at

http://www.calarts.edu/~quinn/9crash.tgz

Just run '1/lua 1/crash.lua' or '2/lua 2/crash.lua' and see if your printer
catches on fire.  I tried to isolate it better, but it's tricky because the
computer keeps crashing and I don't want to hose my kfs.  And it has a
tendency to hide.  I'm interested in seeing if it happens on other systems, or
if it's something wrong with mine.

If it's not just my setup, I'll upload the source too (or if people don't want
to run some random binary off the net).



Oh, and by the way, what do people do when they want to find the definition of
a function or type?  "grep -n '^func' *.c" works if the code is formatted right,
but that still doesn't work for types.


  reply	other threads:[~2001-04-04  9:14 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-28 10:21 rog
2001-04-04  9:14 ` Quinn Dunkan [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-04-04 19:05 Quinn Dunkan
2001-03-28 18:15 rob pike
2001-03-28  7:54 Quinn Dunkan
2001-03-28  5:56 Russ Cox

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=200104040914.CAA00691@tammananny.tiger \
    --to=quinn@envy.ugcs.caltech.edu \
    --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).