Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Zarmfab Software Development <fabsoft@fabsoft2.zarm.uni-bremen.de>
Subject: 100 % reproduceable oops with 2.0.26-axp (mlockall)
Date: Wed, 27 Nov 1996 12:12:54 +0100	[thread overview]
Message-ID: <14237f8e339b8ab6b77d43623234acd0.axp-list@archive.invalid> (raw)

Trying to make cdwrite-2.0 a realtime program, i found that
system call mlockall causes a 100 % reproduceable oops at my Avanti.
The kernel is 2.0.26 with axp-diffs 2.0.21

This is the oops - producing program:

#include <unistd.h>
#include <string.h>
#include <stdio.h>
#include <sys/resource.h>
#include <sys/mman.h>
#include <asm/unistd.h>

#ifdef __alpha
#define _syscall1(type,name,type1,arg1)	   \
type name(type1 arg1)                      \
{			                   \
	return syscall(__NR_##name, arg1); \
}

_syscall1(int,mlockall,int,flags);
#endif

int main(int argc,char *argv[])
{
  if (mlockall( MCL_CURRENT )) perror("mlockall");
  return 0;
}

this is the oops-message:

Nov 27 11:59:17 fabserver1 kernel: Unable to handle kernel paging request at virtual
 address 0000015555720000
Nov 27 11:59:17 fabserver1 kernel: oops(283): Oops 0
Nov 27 11:59:17 fabserver1 kernel: pc = [<fffffc0000331cc0>] ps = 0000
Nov 27 11:59:17 fabserver1 kernel: rp = [<fffffc00003320d0>] sp = fffffc00090fdea0

and this was told by gdb vmlinuz:

(gdb) list *0xfffffc0000331cc0
0xfffffc0000331cc0 is in mlock_fixup (mlock.c:129).
124                             pages = -pages;
125                     vma->vm_mm->locked_vm += pages;
126
127                     if (newflags & VM_LOCKED)
128                             while (start < end) {
129                                     char c = get_user((char *) start);
130                                     __asm__ __volatile__("": :"r" (c));
131                                     start += PAGE_SIZE;
132                             }
133             }

BTW, the same program runs without oops at my pentium under 2.0.26.
I first doubted the axp-diffs-patch was responsible for the oops, but mlock.c
isn't touched by the patch.

-- 
Martin Cornelius, ZARMFAB software development, University of Bremen
phone: 49-421-218-4807    FAX: 49-421-218-3889
email: fabsoft@zarm.uni-bremen.de
paper-mail: Hochschulring / Am Fallturm, 28359 BREMEN, Germany

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

                 reply	other threads:[~1996-11-27 11:12 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox