From: buhr@stat.wisc.edu (Kevin Buhr)
To: Christoph Rohland <cr@sap.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: 2.4.0-test5 bug: invalid "shmid_kernel" passed to "shm_nopage_core"
Date: 26 Nov 2000 14:35:47 -0600 [thread overview]
Message-ID: <vbasnoeeajg.fsf@mozart.stat.wisc.edu> (raw)
In-Reply-To: <vbaaeapf4ti.fsf@mozart.stat.wisc.edu> <m3g0kggydi.fsf@linux.local> <vbay9y7dxgr.fsf@mozart.stat.wisc.edu> <m37l5rggmm.fsf@linux.local>
In-Reply-To: Christoph Rohland's message of "26 Nov 2000 11:41:21 +0100"
Christoph Rohland <cr@sap.com> writes:
>
> > I use a SysReq patch to do an oops-style dump instead of the usual
> > "showPc" function, so I was able to copy a stack dump down.
>
> Could you send me the patch? Does it do the dump on all cpus?
You can grab it at:
ftp://mozart.stat.wisc.edu/pub/misc/patch-2.4.0-test5-sysreq
It doesn't dump all CPUs; it just dumps whichever one handles the
SysReq request, so I just keep doing it until I get them both.
> I would be happy to help debug the shm code if you find a way to
> reproduce it.
Okay. I've actually determined that my window manager (Enlightenment)
creates a shared memory segment for the X server to map and unmap
anywhere from 25 to 100 times a second; the segment appears in the X
server's memory map at the address 0x40014000 that "shm_nopage" was
trying to fault in when my lockup occurred.
I didn't notice it before because the time the page is mapped is
small. To catch it, I had to do
while true; do egrep 40014000 /proc/xxx/maps; done
and wait a bit. A "printk" for shm_mmapping at address 0x40014004
gave me the 25-100 times per second figure.
The fact that this has crashed once in all the time I've been using
this setup would seem to imply a very subtle race condition. Ugh.
Can you offer me a tutorial on the SHM locking? What's supposed to
protect against what?
In the meantime, I'll keep plugging away at it.
Kevin <buhr@stat.wisc.edu>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
next prev parent reply other threads:[~2000-11-26 21:06 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-11-24 21:17 2.4.0-test5 bug: invalid "shmid_kernel" passed to "shm_nopage_core" Kevin Buhr
2000-11-25 10:05 ` Christoph Rohland
2000-11-26 7:05 ` Kevin Buhr
2000-11-26 10:41 ` Christoph Rohland
2000-11-26 20:35 ` Kevin Buhr [this message]
2000-12-19 8:58 ` Christoph Rohland
2000-12-19 18:11 ` Kevin Buhr
2000-12-20 7:30 ` Christoph Rohland
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=vbasnoeeajg.fsf@mozart.stat.wisc.edu \
--to=buhr@stat.wisc.edu \
--cc=cr@sap.com \
--cc=linux-kernel@vger.kernel.org \
/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