Subject: Re: kernel stack traceback
To: Bill Studenmund <wrstuden@nas.nasa.gov>
From: Paul H. Anderson <pha@pdq.com>
List: tech-kern
Date: 03/19/1999 15:51:57
  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
  Send mail to mime@docserver.cac.washington.edu for more info.

--0-1361881198-921876717=:16645
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Fri, 19 Mar 1999, Bill Studenmund wrote:

> On Fri, 19 Mar 1999, Paul H. Anderson wrote:
> 
> I'm confused. The script causes a panic even w/o the maptest program? Then
> for now it's not needed. :-) Though a utility which mmaps a found file
> could be cool. :-)

I included maptest.cpp as an attachment.  Let me know if you want it to do
anything different.  To compile: say "g++ -o maptest maptest.cpp"

Before I ran the script wedge.sh, I do:
mkdir map
#!/bin/sh
for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
do
dd if=/dev/zero of=map/$i bs=1024k count=256
done

Good luck, and let me know what else I can do to help get information
about the problem.  Thanks!

Paul

+------------------------------------------------------+
| Paul Anderson           Public Data Queries, Inc.    |
| pha@pdq.com             734-213-4964(W) 994-3734(H)  |
+------------------------------------------------------+

--0-1361881198-921876717=:16645
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="maptest.cpp"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.BSF.4.01.9903191551570.16645@pdq.com>
Content-Description: maptest program - see comments
Content-Disposition: attachment; filename="maptest.cpp"

Ly8NCi8vIG1hcHRlc3QuY3BwDQovLw0KLy8gbWFwcyBlYWNoIGZpbGUgZ2l2
ZW4gYXMgYSBjb21tYW5kIGxpbmUgYXJndW1lbnQNCi8vIGFmdGVyIG1hcHBp
bmcsIG1lYXN1cmVzIHJlc291cmNlIHVzYWdlIGNvbnN1bWVkIHdoaWxlIHRv
dWNoaW5nIChyZWFkaW5nKQ0KLy8gZWFjaCBwYWdlIG9mIGVhY2ggZmlsZS4N
Ci8vDQovLyBvcHRpb25zOiAtdiAodmVyYm9zZSkg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