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:08:05
  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-1771677491-921874085=: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:
> 
> > On Thu, 18 Mar 1999, Bill Studenmund wrote:
> > 
> > I can relatively easily reproduce the crash.  This morning, I did newfs on
> > my ccd filesystem (-b 32768 -f 8192) and ran a stress test that caused a
> > panic after about an hour.  The locks below come from this second panic
> > (not the one that gave the above traceback).  The second panic looks like
> > the first (same message), but it is still at the ddb prompt on the serial
> > console, and the alpha doesn't do kernel stack tracebacks yet, so I can't
> > confirm that it is exactly the same - tell me what you want to get, and
> > I'll do it.
> > 
> > > Does ddb (the in-kernel debugger) work on alpha? If so, call
> > > printlockedvnodes() before trying to reboot. I think it should tell you
> > > where/how the node got locked.
> > 
> > Here's the locks:
> > 
> > charger# sh wedge.sh
> > ... some minor output deleted
> > successful open, length=0, mapdata=0
> > panic: lockmgr: locking against myself
> > Stopped in tar at       Debugger+0x4:   ret     zero,(ra)
> > db> call printlockedvnodes
> 
> I'd say have it drop core, and then get a stack trace from gdb. :-)

This an attachment to this message.  Let me know if you don't like
attachments.

> Can you send me that script?

Likewise. 

The script uses a program 'maptest' which mmaps all listed files and
touches each page, forcing it to be pages into vm.  The directory that I
use for testing had 16 256MB files in it, so it tries to map 4GB of data.

I ran a test without the maptest, and it paniced.  I put it in thinking it
might make it panic sooner.  Giving you the source that is useful is
harder, cause it is part of my software, and I need to split out the
components that are essential for compilation.

I sent this reply to the list - please let me know if I don't need to
reply to the whole group in the future regarding this subject - thanks!

Paul

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

--0-1771677491-921874085=:16645
Content-Type: TEXT/PLAIN; charset=US-ASCII; name=traceback
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.BSF.4.01.9903191508050.16645@pdq.com>
Content-Description: traceback on alpha from 990319 15:00 or so
Content-Disposition: attachment; filename=traceback

Y2hhcmdlci5wZHEuY29tOls5N106IGxzIC1sDQp0b3RhbCAyMTIxNjMyDQot
cnctcnctci0tICAxIHJvb3QgIHdoZWVsICAgICAgICAgICAyIE1hciAxOCAw
Njo1NyBib3VuZHMNCi1ydy1yLS1yLS0gIDEgcm9vdCAgd2hlZWwgICAgICAg
ICAgIDIgTWFyIDE4IDA2OjU3IG1pbmZyZWUNCi1ydy1yLS1yLS0gIDEgcm9v
dCAgd2hlZWwgICAgMTIyNjQ5NzkgTWFyIDE4IDA2OjU5IG5ldGJzZC4wDQot
cnctci0tci0tICAxIHJvb3QgIHdoZWVsICAxMDczNzQyMzYwIE1hciAxOCAw
Njo1OSBuZXRic2QuMC5jb3JlDQpjaGFyZ2VyLnBkcS5jb206Wzk4XTogZ2Ri
IG5ldGJzZC4wDQpHREIgaXMgZnJlZSBzb2Z0d2FyZSBhbmQgeW91IGFyZSB3
ZWxjb21lIHRvIGRpc3RyaWJ1dGUgY29waWVzIG9mIGl0DQogdW5kZXIgY2Vy
dGFpbiBjb25kaXRpb25zOyB0eXBlICJzaG93IGNvcHlpbmciIHRvIHNlZSB0
aGUgY29uZGl0aW9ucy4NClRoZXJlIGlzIGFic29sdXRlbHkgbm8gd2FycmFu
dHkgZm9yIEdEQjsgdHlwZSAic2hvdyB3YXJyYW50eSIgZm9yIGRldGFpbHMu
DQpHREIgNC4xNiAoYWxwaGEtLW5ldGJzZCksIENvcHlyaWdodCAxOTk2IEZy
ZWUgU29mdHdhcmUgRm91bmRhdGlvbiwgSW5jLi4uDQooZ2RiKSB0YXJnZXQg
a2NvcmUgbmV0YnNkLjAuY29yZQ0KcGFuaWM6I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ldXJpc3RpYy1mZW5jZS1wb3N0IHdp
dGhvdXQgZmluZGluZw0Kd2FybmluZzogZW5jbG9zaW5nIGZ1bmN0aW9uIGZv
ciBhZGRyZXNzIDB4MTIwMDQ1MzJjDQpUaGlzIHdhcm5pbmcgb2NjdXJzIGlm
IHlvdSBhcmUgZGVidWdnaW5nIGEgZnVuY3Rpb24gd2l0aG91dCBhbnkgc3lt
Ym9scw0KKGZvciBleGFtcGxlLCBpbiBhIHN0cmlwcGVkIGV4ZWN1dGFibGUp
LiAgSW4gdGhhdCBjYXNlLCB5b3UgbWF5IHdpc2ggdG8NCmluY3JlYXNlIHRo
ZSBzaXplIG9mIHRoZSBzZWFyY2ggd2l0aCB0aGUgYHNldCBoZXVyaXN0aWMt
ZmVuY2UtcG9zdCcgY29tbWFuZC4NCg0KT3RoZXJ3aXNlLCB5b3UgdG9sZCBH
REIgdGhlcmUgd2FzIGEgZnVuY3Rpb24gd2hlcmUgdGhlcmUgaXNuJ3Qgb25l
LCBvcg0KKG1vcmUgbGlrZWx5KSB5b3UgaGF2ZSBlbmNvdW50ZXJlZCBhIGJ1
ZyBpbiBHREIuDQooZ2RiKSAgDQo=
--0-1771677491-921874085=:16645
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="wedge.sh"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.BSF.4.01.9903191508051.16645@pdq.com>
Content-Description: script I run to make alpha do a ufs panic
Content-Disposition: attachment; filename="wedge.sh"

IyEvYmluL3NoDQoNCkFMTD0nMSAyIDMgNCA1IDYgNyA4Jw0KDQptYXBpdGlu
KCkgew0KY2QgbWFwDQptYXB0ZXN0ID8gPz8gJg0KY2QgLi4NCn0NCg0KcG91
bmRpdGluKCkgew0KbWtkaXIgJDENCmNkICQxDQp0YXIgeHpwZiAuLi9zb3Vy
Y2VzLnRhci5neiAmDQpjZCAuLg0KfQ0KDQpjbGVhbml0dXAoKSB7DQpybSAt
cmYgJDEgJg0KfQ0KDQpmb3IgaSBpbiAkQUxMDQpkbw0KICAgIHBvdW5kaXRp
biAkaQ0KZG9uZQ0KDQptYXBpdGluDQoNCndhaXQNCg0KZm9yIGkgaW4gJEFM
TA0KZG8NCiAgICBjbGVhbml0dXAgJGkNCmRvbmUNCg0KbWFwaXRpbg0KDQpt
YXBpdGluDQoNCndhaXQNCg==
--0-1771677491-921874085=:16645--