Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* 100 % reproduceable oops with 2.0.26-axp (mlockall)
@ 1996-11-27 11:12 Zarmfab Software Development
  0 siblings, 0 replies; only message in thread
From: Zarmfab Software Development @ 1996-11-27 11:12 UTC (permalink / 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1996-11-27 11:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-11-27 11:12 100 % reproduceable oops with 2.0.26-axp (mlockall) Zarmfab Software Development

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